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
794 ENABLE_VISIBILITY_INLINES_HIDDEN
801 ac_precious_vars='build_alias
812 ac_subdirs_all='projects/llvm-gcc
816 projects/llvm-poolalloc
819 projects/llvm-stacker
827 # Initialize some variables set by options.
829 ac_init_version=false
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
839 program_transform_name=s,x,x,
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
885 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 # Accept the important Cygnus configure options, so we can diagnose typos.
891 case $ac_dashdash$ac_option in
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
913 cache_file=config.cache ;;
915 -datadir | --datadir | --datadi | --datad)
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
927 -disable-* | --disable-*)
928 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
931 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
932 { (exit 1); exit 1; }; }
933 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
934 eval enable_$ac_feature=no ;;
936 -docdir | --docdir | --docdi | --doc | --do)
938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 -enable-* | --enable-*)
947 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
950 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
951 { (exit 1); exit 1; }; }
952 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
953 eval enable_$ac_feature=\$ac_optarg ;;
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
968 -help | --help | --hel | --he | -h)
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 htmldir=$ac_optarg ;;
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
998 -libdir | --libdir | --libdi | --libd)
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1089 -psdir | --psdir | --psdi | --psd | --ps)
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 sbindir=$ac_optarg ;;
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 sharedstatedir=$ac_optarg ;;
1115 -site | --site | --sit)
1117 -site=* | --site=* | --sit=*)
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1144 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package| sed 's/-/_/g'`
1150 eval with_$ac_package=\$ac_optarg ;;
1152 -without-* | --without-*)
1153 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid package name: $ac_package" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_package=`echo $ac_package | sed 's/-/_/g'`
1159 eval with_$ac_package=no ;;
1162 # Obsolete; use --with-x.
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1179 -*) { echo "$as_me: error: unrecognized option: $ac_option
1180 Try \`$0 --help' for more information." >&2
1181 { (exit 1); exit 1; }; }
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1188 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1189 { (exit 1); exit 1; }; }
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1194 # FIXME: should be removed in autoconf 3.0.
1195 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 { echo "$as_me: error: missing argument to $ac_option" >&2
1207 { (exit 1); exit 1; }; }
1210 # Be sure to have absolute directory names.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1216 eval ac_val=\$$ac_var
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1222 { (exit 1); exit 1; }; }
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1230 target=$target_alias
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1237 If a cross compiler is detected then cross compile mode will be used." >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246 test "$silent" = yes && exec 6>/dev/null
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 { echo "$as_me: error: Working directory cannot be determined" >&2
1253 { (exit 1); exit 1; }; }
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 { echo "$as_me: error: pwd does not report name of working directory" >&2
1256 { (exit 1); exit 1; }; }
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$0" ||
1264 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$0" : 'X\(//\)[^/]' \| \
1266 X"$0" : 'X\(//\)$' \| \
1267 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1291 ac_srcdir_defaulted=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1296 { (exit 1); exit 1; }; }
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1301 { (exit 1); exit 1; }; }
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 # Report the --help message.
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1327 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1334 Defaults for the options are specified in brackets.
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1358 For better control, use the options below.
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 --target=TARGET configure for building compilers for TARGET [HOST]
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --enable-polly Use polly if available (default is YES)
1401 --enable-libcpp Use libc++ if available (default is NO)
1402 --enable-cxx11 Use c++11 if available (default is NO)
1403 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1404 --enable-clang-static-analyzer
1405 Enable building of clang Static Analyzer (default is
1407 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1408 --enable-optimized Compile with optimizations enabled (default is NO)
1409 --enable-profiling Compile with profiling enabled (default is NO)
1410 --enable-assertions Compile with assertion checks enabled (default is
1412 --enable-werror Compile with -Werror enabled (default is NO)
1413 --enable-expensive-checks
1414 Compile with expensive debug checks enabled (default
1416 --enable-debug-runtime Build runtime libs with debug symbols (default is
1418 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1419 optimization is on and YES if it's off)
1420 --enable-keep-symbols Do not strip installed executables)
1421 --enable-jit Enable Just In Time Compiling (default is YES)
1422 --enable-docs Build documents (default is YES)
1423 --enable-doxygen Build doxygen documentation (default is NO)
1424 --enable-threads Use threads if available (default is YES)
1425 --enable-pthreads Use pthreads if available (default is YES)
1426 --enable-pic Build LLVM with Position Independent Code (default
1428 --enable-shared Build a shared library and link tools against it
1430 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1431 Win32 DLL (default is NO)
1432 --enable-timestamps Enable embedding timestamp information in build
1434 --enable-backtraces Enable embedding backtraces on crash (default is
1436 --enable-targets Build specific host targets: all or
1437 target1,target2,... Valid targets are: host, x86,
1438 x86_64, sparc, powerpc, arm, mips, hexagon, xcore,
1439 msp430, nvptx, and cpp (default=all)
1440 --enable-experimental-targets
1441 Build experimental host targets: disable or
1442 target1,target2,... (default=disable)
1443 --enable-bindings Build specific language bindings:
1444 all,auto,none,{binding-name} (default=auto)
1445 --enable-libffi Check for the presence of libffi (default is NO)
1446 --enable-ltdl-install install libltdl
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-optimize-option Select the compiler options to use for optimized
1453 --with-extra-options Specify additional options to compile LLVM with
1454 --with-extra-ld-options Specify additional options to link LLVM with
1455 --with-ocaml-libdir Specify install location for ocaml bindings (default
1457 --with-clang-srcdir Directory to the out-of-tree Clang source
1458 --with-clang-resource-dir
1459 Relative directory from the Clang binary for
1461 --with-c-include-dirs Colon separated list of directories clang will
1463 --with-gcc-toolchain Directory where gcc is installed.
1464 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1465 --with-binutils-include Specify path to binutils/include/ containing
1466 plugin-api.h file for gold plugin.
1467 --with-bug-report-url Specify the URL where bug reports should be
1468 submitted (default=http://llvm.org/bugs/)
1469 --with-internal-prefix Installation directory for internal files
1470 --with-udis86=<path> Use udis86 external x86 disassembler library
1471 --with-oprofile=<prefix>
1472 Tell OProfile >= 0.9.4 how to symbolize JIT output
1473 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
1483 CXX C++ compiler command
1484 CXXFLAGS C++ compiler flags
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1490 Report bugs to <http://llvm.org/bugs/>.
1495 if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
1497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498 test -d "$ac_dir" || continue
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1518 .) # We are building in place.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1540 $SHELL "$ac_srcdir/configure" --help=recursive
1542 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 cd "$ac_pwd" || { ac_status=$?; break; }
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1551 LLVM configure 3.3svn
1552 generated by GNU Autoconf 2.60
1554 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1555 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1559 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1563 cat >config.log <<_ACEOF
1564 This file contains any messages produced by compilers while
1565 running configure, to aid debugging if configure makes a mistake.
1567 It was created by LLVM $as_me 3.3svn, which was
1568 generated by GNU Autoconf 2.60. Invocation command line was
1580 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1581 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1582 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1583 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1584 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1586 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1587 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1589 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1590 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1591 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1592 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1593 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1594 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1595 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 test -z "$as_dir" && as_dir=.
1604 echo "PATH: $as_dir"
1620 # Keep a trace of the command line.
1621 # Strip out --no-create and --no-recursion so they do not pile up.
1622 # Strip out --silent because we don't want to record it for future runs.
1623 # Also quote any args containing shell meta-characters.
1624 # Make two passes to allow for proper duplicate-argument suppression.
1628 ac_must_keep_next=false
1634 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1636 | -silent | --silent | --silen | --sile | --sil)
1639 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1644 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1645 if test $ac_must_keep_next = true; then
1646 ac_must_keep_next=false # Got value, back to normal.
1649 *=* | --config-cache | -C | -disable-* | --disable-* \
1650 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1651 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1652 | -with-* | --with-* | -without-* | --without-* | --x)
1653 case "$ac_configure_args0 " in
1654 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657 -* ) ac_must_keep_next=true ;;
1660 ac_configure_args="$ac_configure_args '$ac_arg'"
1665 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1666 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1668 # When interrupted or exit'd, cleanup temporary files, and complete
1669 # config.log. We remove comments because anyway the quotes in there
1670 # would cause problems or look ugly.
1671 # WARNING: Use '\'' to represent an apostrophe within the trap.
1672 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1673 trap 'exit_status=$?
1674 # Save into config.log some information that might help in debugging.
1679 ## ---------------- ##
1680 ## Cache variables. ##
1681 ## ---------------- ##
1684 # The following way of writing the cache mishandles newlines in values,
1686 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1687 eval ac_val=\$$ac_var
1691 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1692 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1695 _ | IFS | as_nl) ;; #(
1696 *) $as_unset $ac_var ;;
1701 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1702 *${as_nl}ac_space=\ *)
1704 "s/'\''/'\''\\\\'\'''\''/g;
1705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1716 ## ----------------- ##
1717 ## Output variables. ##
1718 ## ----------------- ##
1721 for ac_var in $ac_subst_vars
1723 eval ac_val=\$$ac_var
1725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 echo "$ac_var='\''$ac_val'\''"
1731 if test -n "$ac_subst_files"; then
1733 ## ------------------- ##
1734 ## File substitutions. ##
1735 ## ------------------- ##
1738 for ac_var in $ac_subst_files
1740 eval ac_val=\$$ac_var
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 echo "$ac_var='\''$ac_val'\''"
1749 if test -s confdefs.h; then
1759 test "$ac_signal" != 0 &&
1760 echo "$as_me: caught signal $ac_signal"
1761 echo "$as_me: exit $exit_status"
1763 rm -f core *.core core.conftest.* &&
1764 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1767 for ac_signal in 1 2 13 15; do
1768 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1772 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1773 rm -f -r conftest* confdefs.h
1775 # Predefined preprocessor variables.
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_NAME "$PACKAGE_NAME"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_STRING "$PACKAGE_STRING"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1802 # Let the site file select an alternate cache file if it wants to.
1803 # Prefer explicitly selected file to automatically selected ones.
1804 if test -n "$CONFIG_SITE"; then
1805 set x "$CONFIG_SITE"
1806 elif test "x$prefix" != xNONE; then
1807 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1809 set x "$ac_default_prefix/share/config.site" \
1810 "$ac_default_prefix/etc/config.site"
1815 if test -r "$ac_site_file"; then
1816 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1817 echo "$as_me: loading site script $ac_site_file" >&6;}
1818 sed 's/^/| /' "$ac_site_file" >&5
1823 if test -r "$cache_file"; then
1824 # Some versions of bash will fail to source /dev/null (special
1825 # files actually), so we avoid doing that.
1826 if test -f "$cache_file"; then
1827 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1828 echo "$as_me: loading cache $cache_file" >&6;}
1830 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1831 *) . "./$cache_file";;
1835 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1836 echo "$as_me: creating cache $cache_file" >&6;}
1840 # Check that the precious variables saved in the cache have kept the same
1842 ac_cache_corrupted=false
1843 for ac_var in $ac_precious_vars; do
1844 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1845 eval ac_new_set=\$ac_env_${ac_var}_set
1846 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1847 eval ac_new_val=\$ac_env_${ac_var}_value
1848 case $ac_old_set,$ac_new_set in
1850 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1851 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1852 ac_cache_corrupted=: ;;
1854 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1855 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1856 ac_cache_corrupted=: ;;
1859 if test "x$ac_old_val" != "x$ac_new_val"; then
1860 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1861 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1862 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1863 echo "$as_me: former value: $ac_old_val" >&2;}
1864 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1865 echo "$as_me: current value: $ac_new_val" >&2;}
1866 ac_cache_corrupted=:
1869 # Pass precious variables to config.status.
1870 if test "$ac_new_set" = set; then
1872 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1873 *) ac_arg=$ac_var=$ac_new_val ;;
1875 case " $ac_configure_args " in
1876 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1877 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1881 if $ac_cache_corrupted; then
1882 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1883 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1884 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1885 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1886 { (exit 1); exit 1; }; }
1914 ac_cpp='$CPP $CPPFLAGS'
1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921 cat >>confdefs.h <<\_ACEOF
1922 #define LLVM_VERSION_MAJOR 3
1926 cat >>confdefs.h <<\_ACEOF
1927 #define LLVM_VERSION_MINOR 3
1931 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1940 for ac_dir in autoconf "$srcdir"/autoconf; do
1941 if test -f "$ac_dir/install-sh"; then
1943 ac_install_sh="$ac_aux_dir/install-sh -c"
1945 elif test -f "$ac_dir/install.sh"; then
1947 ac_install_sh="$ac_aux_dir/install.sh -c"
1949 elif test -f "$ac_dir/shtool"; then
1951 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 if test -z "$ac_aux_dir"; then
1956 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1957 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1958 { (exit 1); exit 1; }; }
1961 # These three variables are undocumented and unsupported,
1962 # and are intended to be withdrawn in a future Autoconf release.
1963 # They can cause serious problems if a builder's source tree is in a directory
1964 # whose full name contains unusual characters.
1965 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1966 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1967 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971 if test ${srcdir} != "." ; then
1972 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1973 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1974 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1975 { (exit 1); exit 1; }; }
1980 ac_cpp='$CPP $CPPFLAGS'
1981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1984 if test -n "$ac_tool_prefix"; then
1985 for ac_prog in clang llvm-gcc gcc
1987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1991 if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 if test -n "$CC"; then
1995 ac_cv_prog_CC="$CC" # Let the user override the test.
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 if test -n "$CC"; then
2016 { echo "$as_me:$LINENO: result: $CC" >&5
2017 echo "${ECHO_T}$CC" >&6; }
2019 { echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6; }
2024 test -n "$CC" && break
2027 if test -z "$CC"; then
2029 for ac_prog in clang llvm-gcc gcc
2031 # Extract the first word of "$ac_prog", so it can be a program name with args.
2032 set dummy $ac_prog; ac_word=$2
2033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 if test -n "$ac_ct_CC"; then
2039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2048 ac_cv_prog_ac_ct_CC="$ac_prog"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2059 if test -n "$ac_ct_CC"; then
2060 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2061 echo "${ECHO_T}$ac_ct_CC" >&6; }
2063 { echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6; }
2068 test -n "$ac_ct_CC" && break
2071 if test "x$ac_ct_CC" = x; then
2074 case $cross_compiling:$ac_tool_warned in
2076 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2077 whose name does not start with the host triplet. If you think this
2078 configuration is useful to you, please write to autoconf@gnu.org." >&5
2079 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2080 whose name does not start with the host triplet. If you think this
2081 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2082 ac_tool_warned=yes ;;
2089 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: no acceptable C compiler found in \$PATH
2092 See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }
2095 # Provide some information about the compiler.
2096 echo "$as_me:$LINENO: checking for C compiler version" >&5
2097 ac_compiler=`set X $ac_compile; echo $2`
2098 { (ac_try="$ac_compiler --version >&5"
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler --version >&5") 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108 { (ac_try="$ac_compiler -v >&5"
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114 (eval "$ac_compiler -v >&5") 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2118 { (ac_try="$ac_compiler -V >&5"
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2124 (eval "$ac_compiler -V >&5") 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2129 cat >conftest.$ac_ext <<_ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2144 ac_clean_files_save=$ac_clean_files
2145 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2146 # Try to create an executable without -o first, disregard a.out.
2147 # It will help us diagnose broken compilers, and finding out an intuition
2149 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2150 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2151 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2153 # List of possible output files, starting from the most likely.
2154 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2155 # only as a last resort. b.out is created by i960 compilers.
2156 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2158 # The IRIX 6 linker writes into existing files which may not be
2159 # executable, retaining their permissions. Remove them first so a
2160 # subsequent execution test works.
2162 for ac_file in $ac_files
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2166 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2171 if { (ac_try="$ac_link_default"
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2177 (eval "$ac_link_default") 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2182 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2183 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2184 # so that the user can short-circuit this test for compilers unknown to
2186 for ac_file in $ac_files
2188 test -f "$ac_file" || continue
2190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2193 # We found the default executable, but exeext='' is most
2197 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201 # We set ac_cv_exeext here because the later test for it is not
2202 # safe: cross compilers may not add the suffix if given an `-o'
2203 # argument, so we may need to know it at that point already.
2204 # Even if this section looks crufty: it has the advantage of
2211 test "$ac_cv_exeext" = no && ac_cv_exeext=
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2217 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2218 See \`config.log' for more details." >&5
2219 echo "$as_me: error: C compiler cannot create executables
2220 See \`config.log' for more details." >&2;}
2221 { (exit 77); exit 77; }; }
2224 ac_exeext=$ac_cv_exeext
2225 { echo "$as_me:$LINENO: result: $ac_file" >&5
2226 echo "${ECHO_T}$ac_file" >&6; }
2228 # Check that the compiler produces executables we can run. If not, either
2229 # the compiler is broken, or we cross compile.
2230 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2231 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2232 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2233 # If not cross compiling, check that we can run a simple program.
2234 if test "$cross_compiling" != yes; then
2235 if { ac_try='./$ac_file'
2236 { (case "(($ac_try" in
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2241 (eval "$ac_try") 2>&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2247 if test "$cross_compiling" = maybe; then
2250 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2260 { echo "$as_me:$LINENO: result: yes" >&5
2261 echo "${ECHO_T}yes" >&6; }
2263 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2264 ac_clean_files=$ac_clean_files_save
2265 # Check that the compiler produces executables we can run. If not, either
2266 # the compiler is broken, or we cross compile.
2267 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2268 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2269 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2270 echo "${ECHO_T}$cross_compiling" >&6; }
2272 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2273 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2274 if { (ac_try="$ac_link"
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280 (eval "$ac_link") 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; then
2284 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2285 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2286 # work properly (i.e., refer to `conftest.exe'), while it won't with
2288 for ac_file in conftest.exe conftest conftest.*; do
2289 test -f "$ac_file" || continue
2291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2292 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2298 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2301 See \`config.log' for more details." >&2;}
2302 { (exit 1); exit 1; }; }
2305 rm -f conftest$ac_cv_exeext
2306 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2307 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2309 rm -f conftest.$ac_ext
2310 EXEEXT=$ac_cv_exeext
2312 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2313 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2314 if test "${ac_cv_objext+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 cat >conftest.$ac_ext <<_ACEOF
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h. */
2332 rm -f conftest.o conftest.obj
2333 if { (ac_try="$ac_compile"
2335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336 *) ac_try_echo=$ac_try;;
2338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2339 (eval "$ac_compile") 2>&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; then
2343 for ac_file in conftest.o conftest.obj conftest.*; do
2344 test -f "$ac_file" || continue;
2346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2355 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2356 See \`config.log' for more details." >&5
2357 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2358 See \`config.log' for more details." >&2;}
2359 { (exit 1); exit 1; }; }
2362 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2364 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2365 echo "${ECHO_T}$ac_cv_objext" >&6; }
2366 OBJEXT=$ac_cv_objext
2368 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2369 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2370 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 cat >conftest.$ac_ext <<_ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2391 rm -f conftest.$ac_objext
2392 if { (ac_try="$ac_compile"
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398 (eval "$ac_compile") 2>conftest.er1
2400 grep -v '^ *+' conftest.er1 >conftest.err
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2406 { (case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_try") 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421 (eval "$ac_try") 2>&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2437 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2438 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2439 GCC=`test $ac_compiler_gnu = yes && echo yes`
2440 ac_test_CFLAGS=${CFLAGS+set}
2441 ac_save_CFLAGS=$CFLAGS
2442 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2443 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2444 if test "${ac_cv_prog_cc_g+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 ac_save_c_werror_flag=$ac_c_werror_flag
2448 ac_c_werror_flag=yes
2451 cat >conftest.$ac_ext <<_ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2466 rm -f conftest.$ac_objext
2467 if { (ac_try="$ac_compile"
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_compile") 2>conftest.er1
2475 grep -v '^ *+' conftest.er1 >conftest.err
2477 cat conftest.err >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try='test -s conftest.$ac_objext'
2491 { (case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496 (eval "$ac_try") 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; }; then
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2506 cat >conftest.$ac_ext <<_ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h. */
2521 rm -f conftest.$ac_objext
2522 if { (ac_try="$ac_compile"
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_compile") 2>conftest.er1
2530 grep -v '^ *+' conftest.er1 >conftest.err
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2536 { (case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_try") 2>&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; } &&
2545 { ac_try='test -s conftest.$ac_objext'
2546 { (case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_try") 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 ac_c_werror_flag=$ac_save_c_werror_flag
2562 cat >conftest.$ac_ext <<_ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (case "(($ac_try" in
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607 (eval "$ac_try") 2>&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_c_werror_flag=$ac_save_c_werror_flag
2628 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2629 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2630 if test "$ac_test_CFLAGS" = set; then
2631 CFLAGS=$ac_save_CFLAGS
2632 elif test $ac_cv_prog_cc_g = yes; then
2633 if test "$GCC" = yes; then
2639 if test "$GCC" = yes; then
2645 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2646 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2647 if test "${ac_cv_prog_cc_c89+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 ac_cv_prog_cc_c89=no
2652 cat >conftest.$ac_ext <<_ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2660 #include <sys/types.h>
2661 #include <sys/stat.h>
2662 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2663 struct buf { int x; };
2664 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2665 static char *e (p, i)
2671 static char *f (char * (*g) (char **, int), char **p, ...)
2676 s = g (p, va_arg (v,int));
2681 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2682 function prototypes and stuff, but not '\xHH' hex character constants.
2683 These don't provoke an error unfortunately, instead are silently treated
2684 as 'x'. The following induces an error, until -std is added to get
2685 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2686 array size at least. It's necessary to write '\x00'==0 to get something
2687 that's true only with -std. */
2688 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2690 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2691 inside strings and character constants. */
2693 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2695 int test (int i, double x);
2696 struct s1 {int (*f) (int a);};
2697 struct s2 {int (*f) (double a);};
2698 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2704 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2709 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2710 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2712 CC="$ac_save_CC $ac_arg"
2713 rm -f conftest.$ac_objext
2714 if { (ac_try="$ac_compile"
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compile") 2>conftest.er1
2722 grep -v '^ *+' conftest.er1 >conftest.err
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2728 { (case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_try") 2>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; } &&
2737 { ac_try='test -s conftest.$ac_objext'
2738 { (case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_try") 2>&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 ac_cv_prog_cc_c89=$ac_arg
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2755 rm -f core conftest.err conftest.$ac_objext
2756 test "x$ac_cv_prog_cc_c89" != "xno" && break
2758 rm -f conftest.$ac_ext
2763 case "x$ac_cv_prog_cc_c89" in
2765 { echo "$as_me:$LINENO: result: none needed" >&5
2766 echo "${ECHO_T}none needed" >&6; } ;;
2768 { echo "$as_me:$LINENO: result: unsupported" >&5
2769 echo "${ECHO_T}unsupported" >&6; } ;;
2771 CC="$CC $ac_cv_prog_cc_c89"
2772 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2773 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784 ac_cpp='$CXXCPP $CPPFLAGS'
2785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2788 if test -z "$CXX"; then
2789 if test -n "$CCC"; then
2792 if test -n "$ac_tool_prefix"; then
2793 for ac_prog in clang++ llvm-g++ g++
2795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_CXX+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 if test -n "$CXX"; then
2803 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 if test -n "$CXX"; then
2824 { echo "$as_me:$LINENO: result: $CXX" >&5
2825 echo "${ECHO_T}$CXX" >&6; }
2827 { echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6; }
2832 test -n "$CXX" && break
2835 if test -z "$CXX"; then
2837 for ac_prog in clang++ llvm-g++ g++
2839 # Extract the first word of "$ac_prog", so it can be a program name with args.
2840 set dummy $ac_prog; ac_word=$2
2841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 if test -n "$ac_ct_CXX"; then
2847 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_ac_ct_CXX="$ac_prog"
2857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2867 if test -n "$ac_ct_CXX"; then
2868 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2869 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2871 { echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6; }
2876 test -n "$ac_ct_CXX" && break
2879 if test "x$ac_ct_CXX" = x; then
2882 case $cross_compiling:$ac_tool_warned in
2884 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2885 whose name does not start with the host triplet. If you think this
2886 configuration is useful to you, please write to autoconf@gnu.org." >&5
2887 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2888 whose name does not start with the host triplet. If you think this
2889 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2890 ac_tool_warned=yes ;;
2898 # Provide some information about the compiler.
2899 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2900 ac_compiler=`set X $ac_compile; echo $2`
2901 { (ac_try="$ac_compiler --version >&5"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler --version >&5") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911 { (ac_try="$ac_compiler -v >&5"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -v >&5") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921 { (ac_try="$ac_compiler -V >&5"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_compiler -V >&5") 2>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2932 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2933 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2934 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 cat >conftest.$ac_ext <<_ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2955 rm -f conftest.$ac_objext
2956 if { (ac_try="$ac_compile"
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_compile") 2>conftest.er1
2964 grep -v '^ *+' conftest.er1 >conftest.err
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; } &&
2979 { ac_try='test -s conftest.$ac_objext'
2980 { (case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_try") 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3001 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3002 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3003 GXX=`test $ac_compiler_gnu = yes && echo yes`
3004 ac_test_CXXFLAGS=${CXXFLAGS+set}
3005 ac_save_CXXFLAGS=$CXXFLAGS
3006 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3007 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3008 if test "${ac_cv_prog_cxx_g+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3012 ac_cxx_werror_flag=yes
3015 cat >conftest.$ac_ext <<_ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3030 rm -f conftest.$ac_objext
3031 if { (ac_try="$ac_compile"
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compile") 2>conftest.er1
3039 grep -v '^ *+' conftest.er1 >conftest.err
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 ac_cv_prog_cxx_g=yes
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3070 cat >conftest.$ac_ext <<_ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3085 rm -f conftest.$ac_objext
3086 if { (ac_try="$ac_compile"
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_compile") 2>conftest.er1
3094 grep -v '^ *+' conftest.er1 >conftest.err
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; } &&
3109 { ac_try='test -s conftest.$ac_objext'
3110 { (case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_try") 2>&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3150 grep -v '^ *+' conftest.er1 >conftest.err
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3175 ac_cv_prog_cxx_g=yes
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3192 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3193 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3194 if test "$ac_test_CXXFLAGS" = set; then
3195 CXXFLAGS=$ac_save_CXXFLAGS
3196 elif test $ac_cv_prog_cxx_g = yes; then
3197 if test "$GXX" = yes; then
3203 if test "$GXX" = yes; then
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216 ac_cpp='$CPP $CPPFLAGS'
3217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3221 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3222 # On Suns, sometimes $CPP names a directory.
3223 if test -n "$CPP" && test -d "$CPP"; then
3226 if test -z "$CPP"; then
3227 if test "${ac_cv_prog_CPP+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 # Double quotes because CPP needs to be expanded
3231 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3234 for ac_c_preproc_warn_flag in '' yes
3236 # Use a header file that comes with gcc, so configuring glibc
3237 # with a fresh cross-compiler works.
3238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3239 # <limits.h> exists even on freestanding compilers.
3240 # On the NeXT, cc -E runs the code through the compiler's parser,
3241 # not just through cpp. "Syntax error" is here to catch this case.
3242 cat >conftest.$ac_ext <<_ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3249 # include <limits.h>
3251 # include <assert.h>
3255 if { (ac_try="$ac_cpp conftest.$ac_ext"
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3263 grep -v '^ *+' conftest.er1 >conftest.err
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } >/dev/null; then
3268 if test -s conftest.err; then
3269 ac_cpp_err=$ac_c_preproc_warn_flag
3270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3277 if test -z "$ac_cpp_err"; then
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3283 # Broken: fails on valid input.
3287 rm -f conftest.err conftest.$ac_ext
3289 # OK, works on sane cases. Now check whether nonexistent headers
3290 # can be detected and how.
3291 cat >conftest.$ac_ext <<_ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3297 #include <ac_nonexistent.h>
3299 if { (ac_try="$ac_cpp conftest.$ac_ext"
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3307 grep -v '^ *+' conftest.er1 >conftest.err
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } >/dev/null; then
3312 if test -s conftest.err; then
3313 ac_cpp_err=$ac_c_preproc_warn_flag
3314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3321 if test -z "$ac_cpp_err"; then
3322 # Broken: success on invalid input.
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3328 # Passes both tests.
3333 rm -f conftest.err conftest.$ac_ext
3336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3337 rm -f conftest.err conftest.$ac_ext
3338 if $ac_preproc_ok; then
3350 { echo "$as_me:$LINENO: result: $CPP" >&5
3351 echo "${ECHO_T}$CPP" >&6; }
3353 for ac_c_preproc_warn_flag in '' yes
3355 # Use a header file that comes with gcc, so configuring glibc
3356 # with a fresh cross-compiler works.
3357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3358 # <limits.h> exists even on freestanding compilers.
3359 # On the NeXT, cc -E runs the code through the compiler's parser,
3360 # not just through cpp. "Syntax error" is here to catch this case.
3361 cat >conftest.$ac_ext <<_ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3368 # include <limits.h>
3370 # include <assert.h>
3374 if { (ac_try="$ac_cpp conftest.$ac_ext"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } >/dev/null; then
3387 if test -s conftest.err; then
3388 ac_cpp_err=$ac_c_preproc_warn_flag
3389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3396 if test -z "$ac_cpp_err"; then
3399 echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3402 # Broken: fails on valid input.
3406 rm -f conftest.err conftest.$ac_ext
3408 # OK, works on sane cases. Now check whether nonexistent headers
3409 # can be detected and how.
3410 cat >conftest.$ac_ext <<_ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3416 #include <ac_nonexistent.h>
3418 if { (ac_try="$ac_cpp conftest.$ac_ext"
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3426 grep -v '^ *+' conftest.er1 >conftest.err
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } >/dev/null; then
3431 if test -s conftest.err; then
3432 ac_cpp_err=$ac_c_preproc_warn_flag
3433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3440 if test -z "$ac_cpp_err"; then
3441 # Broken: success on invalid input.
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 # Passes both tests.
3452 rm -f conftest.err conftest.$ac_ext
3455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3456 rm -f conftest.err conftest.$ac_ext
3457 if $ac_preproc_ok; then
3460 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3461 See \`config.log' for more details." >&5
3462 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3463 See \`config.log' for more details." >&2;}
3464 { (exit 1); exit 1; }; }
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476 if test -d ${srcdir}/projects/llvm-gcc ; then
3477 subdirs="$subdirs projects/llvm-gcc"
3481 if test -d ${srcdir}/projects/test-suite ; then
3482 subdirs="$subdirs projects/test-suite"
3486 if test -d ${srcdir}/projects/llvm-test ; then
3487 subdirs="$subdirs projects/llvm-test"
3491 if test -d ${srcdir}/projects/poolalloc ; then
3492 subdirs="$subdirs projects/poolalloc"
3496 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3497 subdirs="$subdirs projects/llvm-poolalloc"
3501 for i in `ls ${srcdir}/projects`
3503 if test -d ${srcdir}/projects/${i} ; then
3505 sample) subdirs="$subdirs projects/sample"
3507 privbracket) subdirs="$subdirs projects/privbracket"
3509 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3511 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3513 llvm-java) subdirs="$subdirs projects/llvm-java"
3515 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3517 safecode) subdirs="$subdirs projects/safecode"
3519 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3528 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3529 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3535 # Check whether --enable-polly was given.
3536 if test "${enable_polly+set}" = set; then
3537 enableval=$enable_polly;
3542 case "$enableval" in
3547 default) ENABLE_POLLY=1
3549 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3550 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3551 { (exit 1); exit 1; }; } ;;
3555 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3558 subdirs="$subdirs tools/polly"
3563 # Make sure we can run config.sub.
3564 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3565 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3566 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3567 { (exit 1); exit 1; }; }
3569 { echo "$as_me:$LINENO: checking build system type" >&5
3570 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3571 if test "${ac_cv_build+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 ac_build_alias=$build_alias
3575 test "x$ac_build_alias" = x &&
3576 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3577 test "x$ac_build_alias" = x &&
3578 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3579 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3580 { (exit 1); exit 1; }; }
3581 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3582 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3583 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3584 { (exit 1); exit 1; }; }
3587 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3588 echo "${ECHO_T}$ac_cv_build" >&6; }
3589 case $ac_cv_build in
3591 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3592 echo "$as_me: error: invalid value of canonical build" >&2;}
3593 { (exit 1); exit 1; }; };;
3596 ac_save_IFS=$IFS; IFS='-'
3602 # Remember, the first character of IFS is used to create $*,
3603 # except with old shells:
3606 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3609 { echo "$as_me:$LINENO: checking host system type" >&5
3610 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3611 if test "${ac_cv_host+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 if test "x$host_alias" = x; then
3615 ac_cv_host=$ac_cv_build
3617 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3618 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3619 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3620 { (exit 1); exit 1; }; }
3624 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3625 echo "${ECHO_T}$ac_cv_host" >&6; }
3628 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3629 echo "$as_me: error: invalid value of canonical host" >&2;}
3630 { (exit 1); exit 1; }; };;
3633 ac_save_IFS=$IFS; IFS='-'
3639 # Remember, the first character of IFS is used to create $*,
3640 # except with old shells:
3643 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3646 { echo "$as_me:$LINENO: checking target system type" >&5
3647 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3648 if test "${ac_cv_target+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 if test "x$target_alias" = x; then
3652 ac_cv_target=$ac_cv_host
3654 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3655 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3656 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3657 { (exit 1); exit 1; }; }
3661 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3662 echo "${ECHO_T}$ac_cv_target" >&6; }
3663 case $ac_cv_target in
3665 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3666 echo "$as_me: error: invalid value of canonical target" >&2;}
3667 { (exit 1); exit 1; }; };;
3669 target=$ac_cv_target
3670 ac_save_IFS=$IFS; IFS='-'
3676 # Remember, the first character of IFS is used to create $*,
3677 # except with old shells:
3680 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3683 # The aliases save the names the user supplied, while $host etc.
3684 # will get canonicalized.
3685 test -n "$target_alias" &&
3686 test "$program_prefix$program_suffix$program_transform_name" = \
3688 program_prefix=${target_alias}-
3690 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3691 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3692 if test "${llvm_cv_os_type+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="AIX"
3700 llvm_cv_platform_type="Unix" ;;
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="IRIX"
3705 llvm_cv_platform_type="Unix" ;;
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="Cygwin"
3710 llvm_cv_platform_type="Unix" ;;
3712 llvm_cv_link_all_option="-Wl,-all_load"
3713 llvm_cv_no_link_all_option="-Wl,-noall_load"
3714 llvm_cv_os_type="Darwin"
3715 llvm_cv_platform_type="Unix" ;;
3717 llvm_cv_link_all_option="-Wl,-all_load"
3718 llvm_cv_no_link_all_option="-Wl,-noall_load"
3719 llvm_cv_os_type="Minix"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-*-freebsd* | *-*-kfreebsd-gnu)
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="FreeBSD"
3725 llvm_cv_platform_type="Unix" ;;
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="OpenBSD"
3730 llvm_cv_platform_type="Unix" ;;
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="NetBSD"
3735 llvm_cv_platform_type="Unix" ;;
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="DragonFly"
3740 llvm_cv_platform_type="Unix" ;;
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="HP-UX"
3745 llvm_cv_platform_type="Unix" ;;
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="Interix"
3750 llvm_cv_platform_type="Unix" ;;
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="Linux"
3755 llvm_cv_platform_type="Unix" ;;
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="GNU"
3760 llvm_cv_platform_type="Unix" ;;
3762 llvm_cv_link_all_option="-Wl,-z,allextract"
3763 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3764 llvm_cv_os_type="SunOS"
3765 llvm_cv_platform_type="Unix" ;;
3767 llvm_cv_link_all_option="-Wl,-z,allextract"
3768 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3769 llvm_cv_os_type="AuroraUX"
3770 llvm_cv_platform_type="Unix" ;;
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="Win32"
3775 llvm_cv_platform_type="Win32" ;;
3777 llvm_cv_link_all_option="-Wl,--whole-archive"
3778 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779 llvm_cv_os_type="MingW"
3780 llvm_cv_platform_type="Win32" ;;
3782 llvm_cv_link_all_option="-Wl,--whole-archive"
3783 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3784 llvm_cv_os_type="Haiku"
3785 llvm_cv_platform_type="Unix" ;;
3787 llvm_cv_link_all_option="-Wl,--whole-archive"
3788 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3789 llvm_cv_os_type="Freestanding"
3790 llvm_cv_platform_type="Unix" ;;
3792 llvm_cv_link_all_option="-Wl,--whole-archive"
3793 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3794 llvm_cv_os_type="Freestanding"
3795 llvm_cv_platform_type="Unix" ;;
3797 llvm_cv_link_all_option=""
3798 llvm_cv_no_link_all_option=""
3799 llvm_cv_os_type="Unknown"
3800 llvm_cv_platform_type="Unknown" ;;
3803 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3804 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3806 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3807 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3808 if test "${llvm_cv_target_os_type+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 llvm_cv_target_os_type="AIX" ;;
3815 llvm_cv_target_os_type="IRIX" ;;
3817 llvm_cv_target_os_type="Cygwin" ;;
3819 llvm_cv_target_os_type="Darwin" ;;
3821 llvm_cv_target_os_type="Minix" ;;
3822 *-*-freebsd* | *-*-kfreebsd-gnu)
3823 llvm_cv_target_os_type="FreeBSD" ;;
3825 llvm_cv_target_os_type="OpenBSD" ;;
3827 llvm_cv_target_os_type="NetBSD" ;;
3829 llvm_cv_target_os_type="DragonFly" ;;
3831 llvm_cv_target_os_type="HP-UX" ;;
3833 llvm_cv_target_os_type="Interix" ;;
3835 llvm_cv_target_os_type="Linux" ;;
3837 llvm_cv_target_os_type="GNU" ;;
3839 llvm_cv_target_os_type="SunOS" ;;
3841 llvm_cv_target_os_type="AuroraUX" ;;
3843 llvm_cv_target_os_type="Win32" ;;
3845 llvm_cv_target_os_type="MingW" ;;
3847 llvm_cv_target_os_type="Haiku" ;;
3849 llvm_cv_target_os_type="RTEMS" ;;
3851 llvm_cv_target_os_type="NativeClient" ;;
3853 llvm_cv_target_os_type="Freestanding" ;;
3855 llvm_cv_target_os_type="Unknown" ;;
3858 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3859 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3861 if test "$llvm_cv_os_type" = "Unknown" ; then
3862 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3863 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3864 { (exit 1); exit 1; }; }
3869 HOST_OS=$llvm_cv_os_type
3871 TARGET_OS=$llvm_cv_target_os_type
3874 LINKALL=$llvm_cv_link_all_option
3876 NOLINKALL=$llvm_cv_no_link_all_option
3879 case $llvm_cv_platform_type in
3882 cat >>confdefs.h <<\_ACEOF
3883 #define LLVM_ON_UNIX 1
3893 cat >>confdefs.h <<\_ACEOF
3894 #define LLVM_ON_WIN32 1
3904 { echo "$as_me:$LINENO: checking target architecture" >&5
3905 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3906 if test "${llvm_cv_target_arch+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 i?86-*) llvm_cv_target_arch="x86" ;;
3911 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3912 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3913 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3914 arm*-*) llvm_cv_target_arch="ARM" ;;
3915 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3916 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
3917 xcore-*) llvm_cv_target_arch="XCore" ;;
3918 msp430-*) llvm_cv_target_arch="MSP430" ;;
3919 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3920 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3921 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3922 *) llvm_cv_target_arch="Unknown" ;;
3925 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3926 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3928 if test "$llvm_cv_target_arch" = "Unknown" ; then
3929 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3930 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3933 case "$llvm_cv_target_arch" in
3934 x86) LLVM_NATIVE_ARCH="X86" ;;
3935 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3936 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3939 ARCH=$llvm_cv_target_arch
3943 i?86-*) host_arch="x86" ;;
3944 amd64-* | x86_64-*) host_arch="x86_64" ;;
3945 sparc*-*) host_arch="Sparc" ;;
3946 powerpc*-*) host_arch="PowerPC" ;;
3947 arm*-*) host_arch="ARM" ;;
3948 mips-* | mips64-*) host_arch="Mips" ;;
3949 mipsel-* | mips64el-*) host_arch="Mips" ;;
3950 xcore-*) host_arch="XCore" ;;
3951 msp430-*) host_arch="MSP430" ;;
3952 hexagon-*) host_arch="Hexagon" ;;
3953 mblaze-*) host_arch="MBlaze" ;;
3954 *) host_arch="Unknown" ;;
3957 if test "$host_arch" = "Unknown" ; then
3958 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3959 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3962 HOST_ARCH=$host_arch
3967 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3968 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3969 if test "${ac_cv_path_GREP+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 # Extract the first word of "grep ggrep" to use in msg output
3973 if test -z "$GREP"; then
3974 set dummy grep ggrep; ac_prog_name=$2
3975 if test "${ac_cv_path_GREP+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 ac_path_GREP_found=false
3979 # Loop through the user's path and test for each of PROGNAME-LIST
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3984 test -z "$as_dir" && as_dir=.
3985 for ac_prog in grep ggrep; do
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3988 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3989 # Check for GNU ac_path_GREP and select it if it is found.
3990 # Check for GNU $ac_path_GREP
3991 case `"$ac_path_GREP" --version 2>&1` in
3993 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3996 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3999 cat "conftest.in" "conftest.in" >"conftest.tmp"
4000 mv "conftest.tmp" "conftest.in"
4001 cp "conftest.in" "conftest.nl"
4002 echo 'GREP' >> "conftest.nl"
4003 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4005 ac_count=`expr $ac_count + 1`
4006 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4007 # Best one so far, save it but keep looking for a better one
4008 ac_cv_path_GREP="$ac_path_GREP"
4009 ac_path_GREP_max=$ac_count
4011 # 10*(2^10) chars as input seems more than enough
4012 test $ac_count -gt 10 && break
4014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4018 $ac_path_GREP_found && break 3
4028 GREP="$ac_cv_path_GREP"
4029 if test -z "$GREP"; then
4030 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4031 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4032 { (exit 1); exit 1; }; }
4036 ac_cv_path_GREP=$GREP
4041 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4042 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4043 GREP="$ac_cv_path_GREP"
4046 { echo "$as_me:$LINENO: checking for egrep" >&5
4047 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4048 if test "${ac_cv_path_EGREP+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4052 then ac_cv_path_EGREP="$GREP -E"
4054 # Extract the first word of "egrep" to use in msg output
4055 if test -z "$EGREP"; then
4056 set dummy egrep; ac_prog_name=$2
4057 if test "${ac_cv_path_EGREP+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 ac_path_EGREP_found=false
4061 # Loop through the user's path and test for each of PROGNAME-LIST
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4066 test -z "$as_dir" && as_dir=.
4067 for ac_prog in egrep; do
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4070 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4071 # Check for GNU ac_path_EGREP and select it if it is found.
4072 # Check for GNU $ac_path_EGREP
4073 case `"$ac_path_EGREP" --version 2>&1` in
4075 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4078 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4081 cat "conftest.in" "conftest.in" >"conftest.tmp"
4082 mv "conftest.tmp" "conftest.in"
4083 cp "conftest.in" "conftest.nl"
4084 echo 'EGREP' >> "conftest.nl"
4085 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4087 ac_count=`expr $ac_count + 1`
4088 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4089 # Best one so far, save it but keep looking for a better one
4090 ac_cv_path_EGREP="$ac_path_EGREP"
4091 ac_path_EGREP_max=$ac_count
4093 # 10*(2^10) chars as input seems more than enough
4094 test $ac_count -gt 10 && break
4096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4100 $ac_path_EGREP_found && break 3
4110 EGREP="$ac_cv_path_EGREP"
4111 if test -z "$EGREP"; then
4112 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4113 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4114 { (exit 1); exit 1; }; }
4118 ac_cv_path_EGREP=$EGREP
4124 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4125 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4126 EGREP="$ac_cv_path_EGREP"
4129 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4130 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4131 if test "${ac_cv_header_stdc+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 cat >conftest.$ac_ext <<_ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4153 rm -f conftest.$ac_objext
4154 if { (ac_try="$ac_compile"
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_compile") 2>conftest.er1
4162 grep -v '^ *+' conftest.er1 >conftest.err
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4168 { (case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_try") 2>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; } &&
4177 { ac_try='test -s conftest.$ac_objext'
4178 { (case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_try") 2>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 ac_cv_header_stdc=yes
4189 echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 ac_cv_header_stdc=no
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 if test $ac_cv_header_stdc = yes; then
4198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4199 cat >conftest.$ac_ext <<_ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209 $EGREP "memchr" >/dev/null 2>&1; then
4212 ac_cv_header_stdc=no
4218 if test $ac_cv_header_stdc = yes; then
4219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4220 cat >conftest.$ac_ext <<_ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4230 $EGREP "free" >/dev/null 2>&1; then
4233 ac_cv_header_stdc=no
4239 if test $ac_cv_header_stdc = yes; then
4240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4241 if test "$cross_compiling" = yes; then
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4252 #if ((' ' & 0x0FF) == 0x020)
4253 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4254 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4256 # define ISLOWER(c) \
4257 (('a' <= (c) && (c) <= 'i') \
4258 || ('j' <= (c) && (c) <= 'r') \
4259 || ('s' <= (c) && (c) <= 'z'))
4260 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4263 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4268 for (i = 0; i < 256; i++)
4269 if (XOR (islower (i), ISLOWER (i))
4270 || toupper (i) != TOUPPER (i))
4275 rm -f conftest$ac_exeext
4276 if { (ac_try="$ac_link"
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_link") 2>&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4286 { (case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4297 echo "$as_me: program exited with status $ac_status" >&5
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4302 ac_cv_header_stdc=no
4304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4310 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4311 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4312 if test $ac_cv_header_stdc = yes; then
4314 cat >>confdefs.h <<\_ACEOF
4315 #define STDC_HEADERS 1
4320 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4330 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4331 inttypes.h stdint.h unistd.h
4333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 $ac_includes_default
4347 #include <$ac_header>
4349 rm -f conftest.$ac_objext
4350 if { (ac_try="$ac_compile"
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_compile") 2>conftest.er1
4358 grep -v '^ *+' conftest.er1 >conftest.err
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest.$ac_objext'
4374 { (case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_try") 2>&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 eval "$as_ac_Header=yes"
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 eval "$as_ac_Header=no"
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 ac_res=`eval echo '${'$as_ac_Header'}'`
4394 { echo "$as_me:$LINENO: result: $ac_res" >&5
4395 echo "${ECHO_T}$ac_res" >&6; }
4396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4397 cat >>confdefs.h <<_ACEOF
4398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4406 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4407 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4408 if test "${ac_cv_c_bigendian+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 # See if sys/param.h defines the BYTE_ORDER macro.
4412 cat >conftest.$ac_ext <<_ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 #include <sys/types.h>
4419 #include <sys/param.h>
4424 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4432 rm -f conftest.$ac_objext
4433 if { (ac_try="$ac_compile"
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 (eval "$ac_compile") 2>conftest.er1
4441 grep -v '^ *+' conftest.er1 >conftest.err
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4447 { (case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_try") 2>&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; } &&
4456 { ac_try='test -s conftest.$ac_objext'
4457 { (case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_try") 2>&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 # It does; now see whether it defined to BIG_ENDIAN or not.
4467 cat >conftest.$ac_ext <<_ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4473 #include <sys/types.h>
4474 #include <sys/param.h>
4479 #if BYTE_ORDER != BIG_ENDIAN
4487 rm -f conftest.$ac_objext
4488 if { (ac_try="$ac_compile"
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_compile") 2>conftest.er1
4496 grep -v '^ *+' conftest.er1 >conftest.err
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4502 { (case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507 (eval "$ac_try") 2>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; } &&
4511 { ac_try='test -s conftest.$ac_objext'
4512 { (case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_try") 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_cv_c_bigendian=yes
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 ac_cv_c_bigendian=no
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 # It does not; compile a test program.
4535 if test "$cross_compiling" = yes; then
4536 # try to guess the endianness by grepping values into an object file
4537 ac_cv_c_bigendian=unknown
4538 cat >conftest.$ac_ext <<_ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h. */
4544 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4545 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4546 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4547 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4548 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4549 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4553 _ascii (); _ebcdic ();
4558 rm -f conftest.$ac_objext
4559 if { (ac_try="$ac_compile"
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565 (eval "$ac_compile") 2>conftest.er1
4567 grep -v '^ *+' conftest.er1 >conftest.err
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4573 { (case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578 (eval "$ac_try") 2>&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; } &&
4582 { ac_try='test -s conftest.$ac_objext'
4583 { (case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588 (eval "$ac_try") 2>&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4593 ac_cv_c_bigendian=yes
4595 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4596 if test "$ac_cv_c_bigendian" = unknown; then
4597 ac_cv_c_bigendian=no
4599 # finding both strings is unlikely to happen, but who knows?
4600 ac_cv_c_bigendian=unknown
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 cat >conftest.$ac_ext <<_ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 $ac_includes_default
4623 /* Are we little or big endian? From Harbison&Steele. */
4627 char c[sizeof (long int)];
4630 return u.c[sizeof (long int) - 1] == 1;
4636 rm -f conftest$ac_exeext
4637 if { (ac_try="$ac_link"
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_link") 2>&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4647 { (case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652 (eval "$ac_try") 2>&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4656 ac_cv_c_bigendian=no
4658 echo "$as_me: program exited with status $ac_status" >&5
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4663 ac_cv_c_bigendian=yes
4665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4674 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4675 case $ac_cv_c_bigendian in
4683 { { echo "$as_me:$LINENO: error: unknown endianness
4684 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4685 echo "$as_me: error: unknown endianness
4686 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4687 { (exit 1); exit 1; }; } ;;
4691 if test "$cross_compiling" = yes; then
4692 LLVM_CROSS_COMPILING=1
4695 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4696 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4697 if test "${ac_cv_build_exeext+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4701 ac_cv_build_exeext=.exe
4703 ac_build_prefix=${build_alias}-
4705 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4706 set dummy ${ac_build_prefix}gcc; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 if test -n "$BUILD_CC"; then
4713 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 BUILD_CC=$ac_cv_prog_BUILD_CC
4733 if test -n "$BUILD_CC"; then
4734 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4735 echo "${ECHO_T}$BUILD_CC" >&6; }
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4742 if test -z "$BUILD_CC"; then
4743 # Extract the first word of "gcc", so it can be a program name with args.
4744 set dummy gcc; ac_word=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 if test -n "$BUILD_CC"; then
4751 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_BUILD_CC="gcc"
4761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 BUILD_CC=$ac_cv_prog_BUILD_CC
4771 if test -n "$BUILD_CC"; then
4772 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4773 echo "${ECHO_T}$BUILD_CC" >&6; }
4775 { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4780 if test -z "$BUILD_CC"; then
4781 # Extract the first word of "cc", so it can be a program name with args.
4782 set dummy cc; ac_word=$2
4783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4785 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 if test -n "$BUILD_CC"; then
4789 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4800 ac_prog_rejected=yes
4803 ac_cv_prog_BUILD_CC="cc"
4804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 if test $ac_prog_rejected = yes; then
4812 # We found a bogon in the path, so make sure we never use it.
4813 set dummy $ac_cv_prog_BUILD_CC
4815 if test $# != 0; then
4816 # We chose a different compiler from the bogus one.
4817 # However, it has the same basename, so the bogon will be chosen
4818 # first if we set BUILD_CC to just the basename; use the full file name.
4820 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4825 BUILD_CC=$ac_cv_prog_BUILD_CC
4826 if test -n "$BUILD_CC"; then
4827 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4828 echo "${ECHO_T}$BUILD_CC" >&6; }
4830 { echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6; }
4837 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4838 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4839 { (exit 1); exit 1; }; }
4840 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4842 echo 'int main () { return 0; }' > conftest.$ac_ext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4845 (eval $ac_build_link) 2>&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; then
4849 for file in conftest.*; do
4851 *.c | *.o | *.obj | *.dSYM) ;;
4852 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4856 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4857 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4858 { (exit 1); exit 1; }; }
4861 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4866 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4867 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4868 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4869 ac_build_exeext=$BUILD_EXEEXT
4871 ac_build_prefix=${build_alias}-
4872 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4873 set dummy ${ac_build_prefix}g++; ac_word=$2
4874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4876 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 if test -n "$BUILD_CXX"; then
4880 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4900 if test -n "$BUILD_CXX"; then
4901 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4902 echo "${ECHO_T}$BUILD_CXX" >&6; }
4904 { echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6; }
4909 if test -z "$BUILD_CXX"; then
4910 # Extract the first word of "g++", so it can be a program name with args.
4911 set dummy g++; ac_word=$2
4912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4914 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 if test -n "$BUILD_CXX"; then
4918 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_BUILD_CXX="g++"
4928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4938 if test -n "$BUILD_CXX"; then
4939 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4940 echo "${ECHO_T}$BUILD_CXX" >&6; }
4942 { echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6; }
4947 if test -z "$BUILD_CXX"; then
4948 # Extract the first word of "c++", so it can be a program name with args.
4949 set dummy c++; ac_word=$2
4950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4952 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 if test -n "$BUILD_CXX"; then
4956 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4966 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4967 ac_prog_rejected=yes
4970 ac_cv_prog_BUILD_CXX="c++"
4971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 if test $ac_prog_rejected = yes; then
4979 # We found a bogon in the path, so make sure we never use it.
4980 set dummy $ac_cv_prog_BUILD_CXX
4982 if test $# != 0; then
4983 # We chose a different compiler from the bogus one.
4984 # However, it has the same basename, so the bogon will be chosen
4985 # first if we set BUILD_CXX to just the basename; use the full file name.
4987 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4992 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4993 if test -n "$BUILD_CXX"; then
4994 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4995 echo "${ECHO_T}$BUILD_CXX" >&6; }
4997 { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
5005 LLVM_CROSS_COMPILING=0
5009 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5020 # Check whether --enable-libcpp was given.
5021 if test "${enable_libcpp+set}" = set; then
5022 enableval=$enable_libcpp;
5027 case "$enableval" in
5028 yes) ENABLE_LIBCPP=1
5032 default) ENABLE_LIBCPP=0
5034 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5035 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5036 { (exit 1); exit 1; }; } ;;
5039 # Check whether --enable-cxx11 was given.
5040 if test "${enable_cxx11+set}" = set; then
5041 enableval=$enable_cxx11;
5046 case "$enableval" in
5051 default) ENABLE_CXX11=0
5053 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5054 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5055 { (exit 1); exit 1; }; } ;;
5059 # Check whether --enable-clang-arcmt was given.
5060 if test "${enable_clang_arcmt+set}" = set; then
5061 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5066 case "$enableval" in
5067 yes) ENABLE_CLANG_ARCMT=1
5069 no) ENABLE_CLANG_ARCMT=0
5071 default) ENABLE_CLANG_ARCMT=1
5073 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5074 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5075 { (exit 1); exit 1; }; } ;;
5078 clang_static_analyzer="yes"
5079 # Check whether --enable-clang-static-analyzer was given.
5080 if test "${enable_clang_static_analyzer+set}" = set; then
5081 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5086 case "$enableval" in
5087 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5089 no) ENABLE_CLANG_STATIC_ANALYZER=0
5091 default) ENABLE_CLANG_STATIC_ANALYZER=1
5093 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5094 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5095 { (exit 1); exit 1; }; } ;;
5098 # Check whether --enable-clang-rewriter was given.
5099 if test "${enable_clang_rewriter+set}" = set; then
5100 enableval=$enable_clang_rewriter;
5105 case "$enableval" in
5106 yes) ENABLE_CLANG_REWRITER=1
5109 if test ${clang_arcmt} != "no" ; then
5110 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5111 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5112 { (exit 1); exit 1; }; }
5114 if test ${clang_static_analyzer} != "no" ; then
5115 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5116 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5117 { (exit 1); exit 1; }; }
5119 ENABLE_CLANG_REWRITER=0
5122 default) ENABLE_CLANG_REWRITER=1
5124 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5125 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5126 { (exit 1); exit 1; }; } ;;
5129 # Check whether --enable-optimized was given.
5130 if test "${enable_optimized+set}" = set; then
5131 enableval=$enable_optimized;
5136 if test ${enableval} = "no" ; then
5140 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5144 # Check whether --enable-profiling was given.
5145 if test "${enable_profiling+set}" = set; then
5146 enableval=$enable_profiling;
5151 if test ${enableval} = "no" ; then
5155 ENABLE_PROFILING=ENABLE_PROFILING=1
5159 # Check whether --enable-assertions was given.
5160 if test "${enable_assertions+set}" = set; then
5161 enableval=$enable_assertions;
5166 if test ${enableval} = "yes" ; then
5170 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5174 # Check whether --enable-werror was given.
5175 if test "${enable_werror+set}" = set; then
5176 enableval=$enable_werror;
5181 case "$enableval" in
5182 yes) ENABLE_WERROR=1
5186 default) ENABLE_WERROR=0
5188 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5189 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5190 { (exit 1); exit 1; }; } ;;
5193 # Check whether --enable-expensive-checks was given.
5194 if test "${enable_expensive_checks+set}" = set; then
5195 enableval=$enable_expensive_checks;
5200 if test ${enableval} = "yes" ; then
5201 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5203 EXPENSIVE_CHECKS=yes
5206 ENABLE_EXPENSIVE_CHECKS=
5212 # Check whether --enable-debug-runtime was given.
5213 if test "${enable_debug_runtime+set}" = set; then
5214 enableval=$enable_debug_runtime;
5219 if test ${enableval} = "no" ; then
5223 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5227 # Check whether --enable-debug-symbols was given.
5228 if test "${enable_debug_symbols+set}" = set; then
5229 enableval=$enable_debug_symbols;
5234 if test ${enableval} = "no" ; then
5238 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5242 # Check whether --enable-keep-symbols was given.
5243 if test "${enable_keep_symbols+set}" = set; then
5244 enableval=$enable_keep_symbols;
5249 if test ${enableval} = "no" ; then
5253 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5257 # Check whether --enable-jit was given.
5258 if test "${enable_jit+set}" = set; then
5259 enableval=$enable_jit;
5264 if test ${enableval} = "no"
5269 case "$llvm_cv_target_arch" in
5270 x86) TARGET_HAS_JIT=1
5272 Sparc) TARGET_HAS_JIT=0
5274 PowerPC) TARGET_HAS_JIT=1
5276 x86_64) TARGET_HAS_JIT=1
5278 ARM) TARGET_HAS_JIT=1
5280 Mips) TARGET_HAS_JIT=1
5282 XCore) TARGET_HAS_JIT=0
5284 MSP430) TARGET_HAS_JIT=0
5286 Hexagon) TARGET_HAS_JIT=0
5288 MBlaze) TARGET_HAS_JIT=0
5290 NVPTX) TARGET_HAS_JIT=0
5297 # Check whether --enable-docs was given.
5298 if test "${enable_docs+set}" = set; then
5299 enableval=$enable_docs;
5304 case "$enableval" in
5309 default) ENABLE_DOCS=1
5311 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5312 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5313 { (exit 1); exit 1; }; } ;;
5316 # Check whether --enable-doxygen was given.
5317 if test "${enable_doxygen+set}" = set; then
5318 enableval=$enable_doxygen;
5323 case "$enableval" in
5324 yes) ENABLE_DOXYGEN=1
5326 no) ENABLE_DOXYGEN=0
5328 default) ENABLE_DOXYGEN=0
5330 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5331 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5332 { (exit 1); exit 1; }; } ;;
5335 # Check whether --enable-threads was given.
5336 if test "${enable_threads+set}" = set; then
5337 enableval=$enable_threads;
5342 case "$enableval" in
5343 yes) LLVM_ENABLE_THREADS=1
5345 no) LLVM_ENABLE_THREADS=0
5347 default) LLVM_ENABLE_THREADS=1
5349 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5350 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5351 { (exit 1); exit 1; }; } ;;
5354 cat >>confdefs.h <<_ACEOF
5355 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5359 # Check whether --enable-pthreads was given.
5360 if test "${enable_pthreads+set}" = set; then
5361 enableval=$enable_pthreads;
5366 case "$enableval" in
5367 yes) ENABLE_PTHREADS=1
5369 no) ENABLE_PTHREADS=0
5371 default) ENABLE_PTHREADS=1
5373 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5374 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5375 { (exit 1); exit 1; }; } ;;
5378 # Check whether --enable-pic was given.
5379 if test "${enable_pic+set}" = set; then
5380 enableval=$enable_pic;
5385 case "$enableval" in
5390 default) ENABLE_PIC=1
5392 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5393 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5394 { (exit 1); exit 1; }; } ;;
5397 cat >>confdefs.h <<_ACEOF
5398 #define ENABLE_PIC $ENABLE_PIC
5402 # Check whether --enable-shared was given.
5403 if test "${enable_shared+set}" = set; then
5404 enableval=$enable_shared;
5409 case "$enableval" in
5410 yes) ENABLE_SHARED=1
5414 default) ENABLE_SHARED=0
5416 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5417 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5418 { (exit 1); exit 1; }; } ;;
5421 # Check whether --enable-embed-stdcxx was given.
5422 if test "${enable_embed_stdcxx+set}" = set; then
5423 enableval=$enable_embed_stdcxx;
5428 case "$enableval" in
5429 yes) ENABLE_EMBED_STDCXX=1
5431 no) ENABLE_EMBED_STDCXX=0
5433 default) ENABLE_EMBED_STDCXX=0
5435 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5436 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5437 { (exit 1); exit 1; }; } ;;
5440 # Check whether --enable-timestamps was given.
5441 if test "${enable_timestamps+set}" = set; then
5442 enableval=$enable_timestamps;
5447 case "$enableval" in
5448 yes) ENABLE_TIMESTAMPS=1
5450 no) ENABLE_TIMESTAMPS=0
5452 default) ENABLE_TIMESTAMPS=1
5454 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5455 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5456 { (exit 1); exit 1; }; } ;;
5459 cat >>confdefs.h <<_ACEOF
5460 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5465 # Check whether --enable-backtraces was given.
5466 if test "${enable_backtraces+set}" = set; then
5467 enableval=$enable_backtraces;
5472 case "$enableval" in
5473 yes) ENABLE_BACKTRACES=1
5475 no) ENABLE_BACKTRACES=0
5477 default) ENABLE_BACKTRACES=1
5479 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5480 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5481 { (exit 1); exit 1; }; } ;;
5484 cat >>confdefs.h <<_ACEOF
5485 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5490 # Check whether --enable-targets was given.
5491 if test "${enable_targets+set}" = set; then
5492 enableval=$enable_targets;
5497 if test "$enableval" = host-only ; then
5500 case "$enableval" in
5501 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5502 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5504 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5505 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5506 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5507 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5508 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5509 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5510 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5511 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5512 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5513 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5514 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5515 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5516 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5517 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5518 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5519 host) case "$llvm_cv_target_arch" in
5520 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5521 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5522 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5523 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5524 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5525 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5526 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5527 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5528 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5529 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5530 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5531 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5532 echo "$as_me: error: Can not set target to build" >&2;}
5533 { (exit 1); exit 1; }; } ;;
5535 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5536 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5537 { (exit 1); exit 1; }; } ;;
5543 # Check whether --enable-experimental-targets was given.
5544 if test "${enable_experimental_targets+set}" = set; then
5545 enableval=$enable_experimental_targets;
5551 if test ${enableval} != "disable"
5553 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5556 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5559 for a_target in $TARGETS_TO_BUILD; do
5560 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5562 cat >>confdefs.h <<_ACEOF
5563 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5566 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5567 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5568 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5569 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5570 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5571 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5573 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5574 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5577 cat >>confdefs.h <<_ACEOF
5578 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5582 cat >>confdefs.h <<_ACEOF
5583 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5587 cat >>confdefs.h <<_ACEOF
5588 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5592 cat >>confdefs.h <<_ACEOF
5593 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5596 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5598 cat >>confdefs.h <<_ACEOF
5599 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5603 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5605 cat >>confdefs.h <<_ACEOF
5606 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5613 LLVM_ENUM_TARGETS=""
5614 LLVM_ENUM_ASM_PRINTERS=""
5615 LLVM_ENUM_ASM_PARSERS=""
5616 LLVM_ENUM_DISASSEMBLERS=""
5617 for target_to_build in $TARGETS_TO_BUILD; do
5618 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5619 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5620 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5622 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5623 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5625 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5626 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5635 # Check whether --with-optimize-option was given.
5636 if test "${with_optimize_option+set}" = set; then
5637 withval=$with_optimize_option;
5642 { echo "$as_me:$LINENO: checking optimization flags" >&5
5643 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5646 case "$llvm_cv_os_type" in
5647 FreeBSD) optimize_option=-O2 ;;
5648 MingW) optimize_option=-O2 ;;
5649 *) optimize_option=-O3 ;;
5651 *) optimize_option="$withval" ;;
5653 OPTIMIZE_OPTION=$optimize_option
5655 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5656 echo "${ECHO_T}$optimize_option" >&6; }
5659 # Check whether --with-extra-options was given.
5660 if test "${with_extra_options+set}" = set; then
5661 withval=$with_extra_options;
5667 default) EXTRA_OPTIONS= ;;
5668 *) EXTRA_OPTIONS=$withval ;;
5670 EXTRA_OPTIONS=$EXTRA_OPTIONS
5674 # Check whether --with-extra-ld-options was given.
5675 if test "${with_extra_ld_options+set}" = set; then
5676 withval=$with_extra_ld_options;
5682 default) EXTRA_LD_OPTIONS= ;;
5683 *) EXTRA_LD_OPTIONS=$withval ;;
5685 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5688 # Check whether --enable-bindings was given.
5689 if test "${enable_bindings+set}" = set; then
5690 enableval=$enable_bindings;
5695 BINDINGS_TO_BUILD=""
5696 case "$enableval" in
5697 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5698 all ) BINDINGS_TO_BUILD="ocaml" ;;
5699 none | no) BINDINGS_TO_BUILD="" ;;
5700 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5701 case "$a_binding" in
5702 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5703 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5704 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5705 { (exit 1); exit 1; }; } ;;
5712 # Check whether --with-ocaml-libdir was given.
5713 if test "${with_ocaml_libdir+set}" = set; then
5714 withval=$with_ocaml_libdir;
5720 auto) with_ocaml_libdir="$withval" ;;
5721 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5722 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5723 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5724 { (exit 1); exit 1; }; } ;;
5728 # Check whether --with-clang-srcdir was given.
5729 if test "${with_clang_srcdir+set}" = set; then
5730 withval=$with_clang_srcdir;
5736 -) clang_src_root="" ;;
5737 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5738 *) clang_src_root="$ac_pwd/$withval" ;;
5740 CLANG_SRC_ROOT=$clang_src_root
5744 # Check whether --with-clang-resource-dir was given.
5745 if test "${with_clang_resource_dir+set}" = set; then
5746 withval=$with_clang_resource_dir;
5752 cat >>confdefs.h <<_ACEOF
5753 #define CLANG_RESOURCE_DIR "$withval"
5758 # Check whether --with-c-include-dirs was given.
5759 if test "${with_c_include_dirs+set}" = set; then
5760 withval=$with_c_include_dirs;
5766 cat >>confdefs.h <<_ACEOF
5767 #define C_INCLUDE_DIRS "$withval"
5771 # Clang normally uses the system c++ headers and libraries. With this option,
5772 # clang will use the ones provided by a gcc installation instead. This option should
5773 # be passed the same value that was used with --prefix when configuring gcc.
5775 # Check whether --with-gcc-toolchain was given.
5776 if test "${with_gcc_toolchain+set}" = set; then
5777 withval=$with_gcc_toolchain;
5783 cat >>confdefs.h <<_ACEOF
5784 #define GCC_INSTALL_PREFIX "$withval"
5789 # Check whether --with-default-sysroot was given.
5790 if test "${with_default_sysroot+set}" = set; then
5791 withval=$with_default_sysroot;
5797 cat >>confdefs.h <<_ACEOF
5798 #define DEFAULT_SYSROOT "$withval"
5803 # Check whether --with-binutils-include was given.
5804 if test "${with_binutils_include+set}" = set; then
5805 withval=$with_binutils_include;
5811 default) WITH_BINUTILS_INCDIR=default ;;
5812 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5813 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5814 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5815 { (exit 1); exit 1; }; } ;;
5817 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5818 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5820 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5821 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5822 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5823 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5824 { (exit 1); exit 1; }; };
5829 # Check whether --with-bug-report-url was given.
5830 if test "${with_bug_report_url+set}" = set; then
5831 withval=$with_bug_report_url;
5833 withval="http://llvm.org/bugs/"
5837 cat >>confdefs.h <<_ACEOF
5838 #define BUG_REPORT_URL "$withval"
5842 # Check whether --enable-libffi was given.
5843 if test "${enable_libffi+set}" = set; then
5844 enableval=$enable_libffi; case "$enableval" in
5845 yes) llvm_cv_enable_libffi="yes" ;;
5846 no) llvm_cv_enable_libffi="no" ;;
5847 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5848 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5849 { (exit 1); exit 1; }; } ;;
5852 llvm_cv_enable_libffi=no
5857 # Check whether --with-internal-prefix was given.
5858 if test "${with_internal_prefix+set}" = set; then
5859 withval=$with_internal_prefix;
5864 INTERNAL_PREFIX=$withval
5868 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5869 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5870 if test "${lt_cv_path_NM+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 if test -n "$NM"; then
5874 # Let the user override the test.
5877 lt_nm_to_check="${ac_tool_prefix}nm"
5878 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5879 lt_nm_to_check="$lt_nm_to_check nm"
5881 for lt_tmp_nm in $lt_nm_to_check; do
5882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5883 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5885 test -z "$ac_dir" && ac_dir=.
5886 tmp_nm="$ac_dir/$lt_tmp_nm"
5887 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5888 # Check to see if the nm accepts a BSD-compat flag.
5889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5890 # nm: unknown option "B" ignored
5891 # Tru64's nm complains that /dev/null is an invalid object file
5892 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5893 */dev/null* | *'Invalid file or object type'*)
5894 lt_cv_path_NM="$tmp_nm -B"
5898 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5900 lt_cv_path_NM="$tmp_nm -p"
5904 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5905 continue # so that we can try to find one that supports BSD flags
5914 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5917 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5918 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5923 { echo "$as_me:$LINENO: checking for GNU make" >&5
5924 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5925 if test "${llvm_cv_gnu_make_command+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 llvm_cv_gnu_make_command=''
5929 for a in "$MAKE" make gmake gnumake ; do
5930 if test -z "$a" ; then continue ; fi ;
5931 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5933 llvm_cv_gnu_make_command=$a ;
5938 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5939 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5940 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5944 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5945 echo "${ECHO_T}\"Not found\"" >&6; };
5949 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5950 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5952 if test "$LN_S" = "ln -s"; then
5953 { echo "$as_me:$LINENO: result: yes" >&5
5954 echo "${ECHO_T}yes" >&6; }
5956 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5957 echo "${ECHO_T}no, using $LN_S" >&6; }
5960 # Extract the first word of "cmp", so it can be a program name with args.
5961 set dummy cmp; ac_word=$2
5962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5964 if test "${ac_cv_path_CMP+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5979 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5992 if test -n "$CMP"; then
5993 { echo "$as_me:$LINENO: result: $CMP" >&5
5994 echo "${ECHO_T}$CMP" >&6; }
5996 { echo "$as_me:$LINENO: result: no" >&5
5997 echo "${ECHO_T}no" >&6; }
6001 # Extract the first word of "cp", so it can be a program name with args.
6002 set dummy cp; ac_word=$2
6003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6005 if test "${ac_cv_path_CP+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6033 if test -n "$CP"; then
6034 { echo "$as_me:$LINENO: result: $CP" >&5
6035 echo "${ECHO_T}$CP" >&6; }
6037 { echo "$as_me:$LINENO: result: no" >&5
6038 echo "${ECHO_T}no" >&6; }
6042 # Extract the first word of "date", so it can be a program name with args.
6043 set dummy date; ac_word=$2
6044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046 if test "${ac_cv_path_DATE+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6061 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6073 DATE=$ac_cv_path_DATE
6074 if test -n "$DATE"; then
6075 { echo "$as_me:$LINENO: result: $DATE" >&5
6076 echo "${ECHO_T}$DATE" >&6; }
6078 { echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6; }
6083 # Extract the first word of "find", so it can be a program name with args.
6084 set dummy find; ac_word=$2
6085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6087 if test "${ac_cv_path_FIND+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6102 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6114 FIND=$ac_cv_path_FIND
6115 if test -n "$FIND"; then
6116 { echo "$as_me:$LINENO: result: $FIND" >&5
6117 echo "${ECHO_T}$FIND" >&6; }
6119 { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6124 # Extract the first word of "grep", so it can be a program name with args.
6125 set dummy grep; ac_word=$2
6126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6128 if test "${ac_cv_path_GREP+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6143 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6155 GREP=$ac_cv_path_GREP
6156 if test -n "$GREP"; then
6157 { echo "$as_me:$LINENO: result: $GREP" >&5
6158 echo "${ECHO_T}$GREP" >&6; }
6160 { echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6; }
6165 # Extract the first word of "mkdir", so it can be a program name with args.
6166 set dummy mkdir; ac_word=$2
6167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6169 if test "${ac_cv_path_MKDIR+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6196 MKDIR=$ac_cv_path_MKDIR
6197 if test -n "$MKDIR"; then
6198 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6199 echo "${ECHO_T}$MKDIR" >&6; }
6201 { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6206 # Extract the first word of "mv", so it can be a program name with args.
6207 set dummy mv; ac_word=$2
6208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210 if test "${ac_cv_path_MV+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6238 if test -n "$MV"; then
6239 { echo "$as_me:$LINENO: result: $MV" >&5
6240 echo "${ECHO_T}$MV" >&6; }
6242 { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_prog_RANLIB+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 if test -n "$RANLIB"; then
6256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 RANLIB=$ac_cv_prog_RANLIB
6276 if test -n "$RANLIB"; then
6277 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6278 echo "${ECHO_T}$RANLIB" >&6; }
6280 { echo "$as_me:$LINENO: result: no" >&5
6281 echo "${ECHO_T}no" >&6; }
6286 if test -z "$ac_cv_prog_RANLIB"; then
6287 ac_ct_RANLIB=$RANLIB
6288 # Extract the first word of "ranlib", so it can be a program name with args.
6289 set dummy ranlib; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 if test -n "$ac_ct_RANLIB"; then
6296 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_ac_ct_RANLIB="ranlib"
6306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6316 if test -n "$ac_ct_RANLIB"; then
6317 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6318 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6320 { echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6; }
6324 if test "x$ac_ct_RANLIB" = x; then
6327 case $cross_compiling:$ac_tool_warned in
6329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6330 whose name does not start with the host triplet. If you think this
6331 configuration is useful to you, please write to autoconf@gnu.org." >&5
6332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6333 whose name does not start with the host triplet. If you think this
6334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6335 ac_tool_warned=yes ;;
6337 RANLIB=$ac_ct_RANLIB
6340 RANLIB="$ac_cv_prog_RANLIB"
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}ar; ac_word=$2
6346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6348 if test "${ac_cv_prog_AR+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 if test -n "$AR"; then
6352 ac_cv_prog_AR="$AR" # Let the user override the test.
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_AR="${ac_tool_prefix}ar"
6362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 if test -n "$AR"; then
6373 { echo "$as_me:$LINENO: result: $AR" >&5
6374 echo "${ECHO_T}$AR" >&6; }
6376 { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6382 if test -z "$ac_cv_prog_AR"; then
6384 # Extract the first word of "ar", so it can be a program name with args.
6385 set dummy ar; ac_word=$2
6386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 if test -n "$ac_ct_AR"; then
6392 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_ac_ct_AR="ar"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6412 if test -n "$ac_ct_AR"; then
6413 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6414 echo "${ECHO_T}$ac_ct_AR" >&6; }
6416 { echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6; }
6420 if test "x$ac_ct_AR" = x; then
6423 case $cross_compiling:$ac_tool_warned in
6425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6426 whose name does not start with the host triplet. If you think this
6427 configuration is useful to you, please write to autoconf@gnu.org." >&5
6428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6429 whose name does not start with the host triplet. If you think this
6430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6431 ac_tool_warned=yes ;;
6439 # Extract the first word of "rm", so it can be a program name with args.
6440 set dummy rm; ac_word=$2
6441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6443 if test "${ac_cv_path_RM+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6471 if test -n "$RM"; then
6472 { echo "$as_me:$LINENO: result: $RM" >&5
6473 echo "${ECHO_T}$RM" >&6; }
6475 { echo "$as_me:$LINENO: result: no" >&5
6476 echo "${ECHO_T}no" >&6; }
6480 # Extract the first word of "sed", so it can be a program name with args.
6481 set dummy sed; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_path_SED+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6512 if test -n "$SED"; then
6513 { echo "$as_me:$LINENO: result: $SED" >&5
6514 echo "${ECHO_T}$SED" >&6; }
6516 { echo "$as_me:$LINENO: result: no" >&5
6517 echo "${ECHO_T}no" >&6; }
6521 # Extract the first word of "tar", so it can be a program name with args.
6522 set dummy tar; ac_word=$2
6523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525 if test "${ac_cv_path_TAR+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6540 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6553 if test -n "$TAR"; then
6554 { echo "$as_me:$LINENO: result: $TAR" >&5
6555 echo "${ECHO_T}$TAR" >&6; }
6557 { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6562 # Extract the first word of "pwd", so it can be a program name with args.
6563 set dummy pwd; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_path_BINPWD+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6593 BINPWD=$ac_cv_path_BINPWD
6594 if test -n "$BINPWD"; then
6595 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6596 echo "${ECHO_T}$BINPWD" >&6; }
6598 { echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6; }
6604 # Extract the first word of "Graphviz", so it can be a program name with args.
6605 set dummy Graphviz; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6635 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6636 if test -n "$GRAPHVIZ"; then
6637 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6638 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6645 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6647 cat >>confdefs.h <<\_ACEOF
6648 #define HAVE_GRAPHVIZ 1
6651 if test "$llvm_cv_os_type" = "MingW" ; then
6652 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6655 cat >>confdefs.h <<_ACEOF
6656 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6660 # Extract the first word of "dot", so it can be a program name with args.
6661 set dummy dot; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_path_DOT+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6692 if test -n "$DOT"; then
6693 { echo "$as_me:$LINENO: result: $DOT" >&5
6694 echo "${ECHO_T}$DOT" >&6; }
6696 { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6701 if test "$DOT" != "echo dot" ; then
6703 cat >>confdefs.h <<\_ACEOF
6707 if test "$llvm_cv_os_type" = "MingW" ; then
6708 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6711 cat >>confdefs.h <<_ACEOF
6712 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6716 # Extract the first word of "fdp", so it can be a program name with args.
6717 set dummy fdp; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_path_FDP+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6748 if test -n "$FDP"; then
6749 { echo "$as_me:$LINENO: result: $FDP" >&5
6750 echo "${ECHO_T}$FDP" >&6; }
6752 { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6757 if test "$FDP" != "echo fdp" ; then
6759 cat >>confdefs.h <<\_ACEOF
6763 if test "$llvm_cv_os_type" = "MingW" ; then
6764 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6767 cat >>confdefs.h <<_ACEOF
6768 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6772 # Extract the first word of "neato", so it can be a program name with args.
6773 set dummy neato; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_NEATO+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6803 NEATO=$ac_cv_path_NEATO
6804 if test -n "$NEATO"; then
6805 { echo "$as_me:$LINENO: result: $NEATO" >&5
6806 echo "${ECHO_T}$NEATO" >&6; }
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6813 if test "$NEATO" != "echo neato" ; then
6815 cat >>confdefs.h <<\_ACEOF
6816 #define HAVE_NEATO 1
6819 if test "$llvm_cv_os_type" = "MingW" ; then
6820 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6823 cat >>confdefs.h <<_ACEOF
6824 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6828 # Extract the first word of "twopi", so it can be a program name with args.
6829 set dummy twopi; ac_word=$2
6830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832 if test "${ac_cv_path_TWOPI+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6859 TWOPI=$ac_cv_path_TWOPI
6860 if test -n "$TWOPI"; then
6861 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6862 echo "${ECHO_T}$TWOPI" >&6; }
6864 { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6869 if test "$TWOPI" != "echo twopi" ; then
6871 cat >>confdefs.h <<\_ACEOF
6872 #define HAVE_TWOPI 1
6875 if test "$llvm_cv_os_type" = "MingW" ; then
6876 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6879 cat >>confdefs.h <<_ACEOF
6880 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6884 # Extract the first word of "circo", so it can be a program name with args.
6885 set dummy circo; ac_word=$2
6886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6888 if test "${ac_cv_path_CIRCO+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6903 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6915 CIRCO=$ac_cv_path_CIRCO
6916 if test -n "$CIRCO"; then
6917 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6918 echo "${ECHO_T}$CIRCO" >&6; }
6920 { echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6; }
6925 if test "$CIRCO" != "echo circo" ; then
6927 cat >>confdefs.h <<\_ACEOF
6928 #define HAVE_CIRCO 1
6931 if test "$llvm_cv_os_type" = "MingW" ; then
6932 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6935 cat >>confdefs.h <<_ACEOF
6936 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6940 for ac_prog in gv gsview32
6942 # Extract the first word of "$ac_prog", so it can be a program name with args.
6943 set dummy $ac_prog; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_path_GV+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 if test -n "$GV"; then
6974 { echo "$as_me:$LINENO: result: $GV" >&5
6975 echo "${ECHO_T}$GV" >&6; }
6977 { echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6; }
6982 test -n "$GV" && break
6984 test -n "$GV" || GV="echo gv"
6986 if test "$GV" != "echo gv" ; then
6988 cat >>confdefs.h <<\_ACEOF
6992 if test "$llvm_cv_os_type" = "MingW" ; then
6993 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6996 cat >>confdefs.h <<_ACEOF
6997 #define LLVM_PATH_GV "$GV${EXEEXT}"
7001 # Extract the first word of "dotty", so it can be a program name with args.
7002 set dummy dotty; ac_word=$2
7003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005 if test "${ac_cv_path_DOTTY+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7032 DOTTY=$ac_cv_path_DOTTY
7033 if test -n "$DOTTY"; then
7034 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7035 echo "${ECHO_T}$DOTTY" >&6; }
7037 { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7042 if test "$DOTTY" != "echo dotty" ; then
7044 cat >>confdefs.h <<\_ACEOF
7045 #define HAVE_DOTTY 1
7048 if test "$llvm_cv_os_type" = "MingW" ; then
7049 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7052 cat >>confdefs.h <<_ACEOF
7053 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7057 # Extract the first word of "xdot.py", so it can be a program name with args.
7058 set dummy xdot.py; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7088 XDOT_PY=$ac_cv_path_XDOT_PY
7089 if test -n "$XDOT_PY"; then
7090 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7091 echo "${ECHO_T}$XDOT_PY" >&6; }
7093 { echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6; }
7098 if test "$XDOT_PY" != "echo xdot.py" ; then
7100 cat >>confdefs.h <<\_ACEOF
7101 #define HAVE_XDOT_PY 1
7104 if test "$llvm_cv_os_type" = "MingW" ; then
7105 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7108 cat >>confdefs.h <<_ACEOF
7109 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7114 # Find a good install program. We prefer a C program (faster),
7115 # so one script is as good as another. But avoid the broken or
7116 # incompatible versions:
7117 # SysV /etc/install, /usr/sbin/install
7118 # SunOS /usr/etc/install
7119 # IRIX /sbin/install
7121 # AmigaOS /C/install, which installs bootblocks on floppy discs
7122 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7123 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7124 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7125 # OS/2's system install, which has a completely different semantic
7126 # ./install, which can be erroneously created by make from ./install.sh.
7127 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7128 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7129 if test -z "$INSTALL"; then
7130 if test "${ac_cv_path_install+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 # Account for people who put trailing slashes in PATH elements.
7140 ./ | .// | /cC/* | \
7141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7142 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7145 # OSF1 and SCO ODT 3.0 have their own names for install.
7146 # Don't use installbsd from OSF since it installs stuff as root
7148 for ac_prog in ginstall scoinst install; do
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7151 if test $ac_prog = install &&
7152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7153 # AIX install. It has an incompatible calling convention.
7155 elif test $ac_prog = install &&
7156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7157 # program-specific install script used by HP pwplus--don't use.
7160 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7173 if test "${ac_cv_path_install+set}" = set; then
7174 INSTALL=$ac_cv_path_install
7176 # As a last resort, use the slow shell script. Don't cache a
7177 # value for INSTALL within a source directory, because that will
7178 # break other packages using the cache if that directory is
7179 # removed, or if the value is a relative name.
7180 INSTALL=$ac_install_sh
7183 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7184 echo "${ECHO_T}$INSTALL" >&6; }
7186 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7187 # It thinks the first close brace ends the variable substitution.
7188 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7190 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7192 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7195 [\\/$]* | ?:[\\/]* ) ;;
7196 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7199 # Extract the first word of "bzip2", so it can be a program name with args.
7200 set dummy bzip2; ac_word=$2
7201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203 if test "${ac_cv_path_BZIP2+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7218 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 BZIP2=$ac_cv_path_BZIP2
7230 if test -n "$BZIP2"; then
7231 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7232 echo "${ECHO_T}$BZIP2" >&6; }
7234 { echo "$as_me:$LINENO: result: no" >&5
7235 echo "${ECHO_T}no" >&6; }
7239 # Extract the first word of "cat", so it can be a program name with args.
7240 set dummy cat; ac_word=$2
7241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7243 if test "${ac_cv_path_CAT+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7258 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 if test -n "$CAT"; then
7271 { echo "$as_me:$LINENO: result: $CAT" >&5
7272 echo "${ECHO_T}$CAT" >&6; }
7274 { echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6; }
7279 # Extract the first word of "doxygen", so it can be a program name with args.
7280 set dummy doxygen; ac_word=$2
7281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7283 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7298 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 DOXYGEN=$ac_cv_path_DOXYGEN
7310 if test -n "$DOXYGEN"; then
7311 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7312 echo "${ECHO_T}$DOXYGEN" >&6; }
7314 { echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6; }
7319 # Extract the first word of "groff", so it can be a program name with args.
7320 set dummy groff; ac_word=$2
7321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323 if test "${ac_cv_path_GROFF+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7338 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 GROFF=$ac_cv_path_GROFF
7350 if test -n "$GROFF"; then
7351 { echo "$as_me:$LINENO: result: $GROFF" >&5
7352 echo "${ECHO_T}$GROFF" >&6; }
7354 { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7359 # Extract the first word of "gzip", so it can be a program name with args.
7360 set dummy gzip; ac_word=$2
7361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7363 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 GZIPBIN=$ac_cv_path_GZIPBIN
7390 if test -n "$GZIPBIN"; then
7391 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7392 echo "${ECHO_T}$GZIPBIN" >&6; }
7394 { echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6; }
7399 # Extract the first word of "pdfroff", so it can be a program name with args.
7400 set dummy pdfroff; ac_word=$2
7401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7403 if test "${ac_cv_path_PDFROFF+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 PDFROFF=$ac_cv_path_PDFROFF
7430 if test -n "$PDFROFF"; then
7431 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7432 echo "${ECHO_T}$PDFROFF" >&6; }
7434 { echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6; }
7439 # Extract the first word of "zip", so it can be a program name with args.
7440 set dummy zip; ac_word=$2
7441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7443 if test "${ac_cv_path_ZIP+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 if test -n "$ZIP"; then
7471 { echo "$as_me:$LINENO: result: $ZIP" >&5
7472 echo "${ECHO_T}$ZIP" >&6; }
7474 { echo "$as_me:$LINENO: result: no" >&5
7475 echo "${ECHO_T}no" >&6; }
7479 for ac_prog in ocamlc
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy $ac_prog; ac_word=$2
7483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7485 if test "${ac_cv_path_OCAMLC+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7500 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 OCAMLC=$ac_cv_path_OCAMLC
7512 if test -n "$OCAMLC"; then
7513 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7514 echo "${ECHO_T}$OCAMLC" >&6; }
7516 { echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6; }
7521 test -n "$OCAMLC" && break
7524 for ac_prog in ocamlopt
7526 # Extract the first word of "$ac_prog", so it can be a program name with args.
7527 set dummy $ac_prog; ac_word=$2
7528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7530 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7545 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 OCAMLOPT=$ac_cv_path_OCAMLOPT
7557 if test -n "$OCAMLOPT"; then
7558 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7559 echo "${ECHO_T}$OCAMLOPT" >&6; }
7561 { echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6; }
7566 test -n "$OCAMLOPT" && break
7569 for ac_prog in ocamldep
7571 # Extract the first word of "$ac_prog", so it can be a program name with args.
7572 set dummy $ac_prog; ac_word=$2
7573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7575 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 OCAMLDEP=$ac_cv_path_OCAMLDEP
7602 if test -n "$OCAMLDEP"; then
7603 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7604 echo "${ECHO_T}$OCAMLDEP" >&6; }
7606 { echo "$as_me:$LINENO: result: no" >&5
7607 echo "${ECHO_T}no" >&6; }
7611 test -n "$OCAMLDEP" && break
7614 for ac_prog in ocamldoc
7616 # Extract the first word of "$ac_prog", so it can be a program name with args.
7617 set dummy $ac_prog; ac_word=$2
7618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7620 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7635 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 OCAMLDOC=$ac_cv_path_OCAMLDOC
7647 if test -n "$OCAMLDOC"; then
7648 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7649 echo "${ECHO_T}$OCAMLDOC" >&6; }
7651 { echo "$as_me:$LINENO: result: no" >&5
7652 echo "${ECHO_T}no" >&6; }
7656 test -n "$OCAMLDOC" && break
7659 for ac_prog in gas as
7661 # Extract the first word of "$ac_prog", so it can be a program name with args.
7662 set dummy $ac_prog; ac_word=$2
7663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665 if test "${ac_cv_path_GAS+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7680 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 if test -n "$GAS"; then
7693 { echo "$as_me:$LINENO: result: $GAS" >&5
7694 echo "${ECHO_T}$GAS" >&6; }
7696 { echo "$as_me:$LINENO: result: no" >&5
7697 echo "${ECHO_T}no" >&6; }
7701 test -n "$GAS" && break
7705 { echo "$as_me:$LINENO: checking for linker version" >&5
7706 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7707 if test "${llvm_cv_link_version+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 version_string="$(ld -v 2>&1 | head -1)"
7714 if (echo "$version_string" | grep -q "ld64"); then
7715 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7717 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7721 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7722 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7724 cat >>confdefs.h <<_ACEOF
7725 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7730 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7731 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7732 if test "${llvm_cv_link_use_r+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 ac_cpp='$CPP $CPPFLAGS'
7737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7742 CFLAGS="$CFLAGS -Wl,-R."
7743 cat >conftest.$ac_ext <<_ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7758 rm -f conftest.$ac_objext conftest$ac_exeext
7759 if { (ac_try="$ac_link"
7761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7765 (eval "$ac_link") 2>conftest.er1
7767 grep -v '^ *+' conftest.er1 >conftest.err
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7773 { (case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_try") 2>&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; } &&
7782 { ac_try='test -s conftest$ac_exeext'
7783 { (case "(($ac_try" in
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_try") 2>&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 llvm_cv_link_use_r=yes
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7797 llvm_cv_link_use_r=no
7800 rm -f core conftest.err conftest.$ac_objext \
7801 conftest$ac_exeext conftest.$ac_ext
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7812 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7813 if test "$llvm_cv_link_use_r" = yes ; then
7815 cat >>confdefs.h <<\_ACEOF
7816 #define HAVE_LINK_R 1
7822 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7823 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7824 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 ac_cpp='$CPP $CPPFLAGS'
7829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (ac_try="$ac_link"
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_link") 2>conftest.er1
7859 grep -v '^ *+' conftest.er1 >conftest.err
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } &&
7864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7865 { (case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_try") 2>&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; } &&
7874 { ac_try='test -s conftest$ac_exeext'
7875 { (case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_try") 2>&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 llvm_cv_link_use_export_dynamic=yes
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 llvm_cv_link_use_export_dynamic=no
7892 rm -f core conftest.err conftest.$ac_objext \
7893 conftest$ac_exeext conftest.$ac_ext
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7904 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7905 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7907 cat >>confdefs.h <<\_ACEOF
7908 #define HAVE_LINK_EXPORT_DYNAMIC 1
7914 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7915 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7916 if test "${llvm_cv_link_use_version_script+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 ac_cpp='$CPP $CPPFLAGS'
7921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7927 # The following code is from the autoconf manual,
7928 # "11.13: Limitations of Usual Tools".
7929 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7930 # Use mktemp if possible; otherwise fall back on mkdir,
7931 # with $RANDOM to make collisions less likely.
7935 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7937 test -n "$tmp" && test -d "$tmp"
7939 tmp=$TMPDIR/foo$$-$RANDOM
7940 (umask 077 && mkdir "$tmp")
7943 echo "{" > "$tmp/export.map"
7944 echo " global: main;" >> "$tmp/export.map"
7945 echo " local: *;" >> "$tmp/export.map"
7946 echo "};" >> "$tmp/export.map"
7948 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7949 cat >conftest.$ac_ext <<_ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (ac_try="$ac_link"
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971 (eval "$ac_link") 2>conftest.er1
7973 grep -v '^ *+' conftest.er1 >conftest.err
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7988 { ac_try='test -s conftest$ac_exeext'
7989 { (case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_try") 2>&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7998 llvm_cv_link_use_version_script=yes
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8003 llvm_cv_link_use_version_script=no
8006 rm -f core conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
8008 rm "$tmp/export.map"
8012 ac_cpp='$CPP $CPPFLAGS'
8013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8019 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8020 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8021 if test "$llvm_cv_link_use_version_script" = yes ; then
8022 HAVE_LINK_VERSION_SCRIPT=1
8029 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8030 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8031 if test "${ac_cv_c_const+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8034 cat >conftest.$ac_ext <<_ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8044 /* FIXME: Include the comments suggested by Paul. */
8046 /* Ultrix mips cc rejects this. */
8047 typedef int charset[2];
8049 /* SunOS 4.1.1 cc rejects this. */
8050 char const *const *ccp;
8052 /* NEC SVR4.0.2 mips cc rejects this. */
8053 struct point {int x, y;};
8054 static struct point const zero = {0,0};
8055 /* AIX XL C 1.02.0.0 rejects this.
8056 It does not let you subtract one const X* pointer from another in
8057 an arm of an if-expression whose if-part is not a constant
8059 const char *g = "string";
8060 ccp = &g + (g ? g-g : 0);
8061 /* HPUX 7.0 cc rejects these. */
8064 ccp = (char const *const *) p;
8065 { /* SCO 3.2v4 cc rejects this. */
8067 char const *s = 0 ? (char *) 0 : (char const *) 0;
8072 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8074 const int *foo = &x[0];
8077 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8078 typedef const int *iptr;
8082 { /* AIX XL C 1.02.0.0 rejects this saying
8083 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8084 struct s { int j; const int *ap[3]; };
8085 struct s *b; b->j = 5;
8087 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8091 return !x[0] && !zero.x;
8098 rm -f conftest.$ac_objext
8099 if { (ac_try="$ac_compile"
8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
8107 grep -v '^ *+' conftest.er1 >conftest.err
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } &&
8112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8113 { (case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_try") 2>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; } &&
8122 { ac_try='test -s conftest.$ac_objext'
8123 { (case "(($ac_try" in
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_try") 2>&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8143 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8144 if test $ac_cv_c_const = no; then
8146 cat >>confdefs.h <<\_ACEOF
8158 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8159 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8160 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8161 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 #include <sys/types.h>
8183 rm -f conftest.$ac_objext
8184 if { (ac_try="$ac_compile"
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_compile") 2>conftest.er1
8192 grep -v '^ *+' conftest.er1 >conftest.err
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8198 { (case "(($ac_try" in
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_try") 2>&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; } &&
8207 { ac_try='test -s conftest.$ac_objext'
8208 { (case "(($ac_try" in
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_try") 2>&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8217 eval "$as_ac_Header=yes"
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8222 eval "$as_ac_Header=no"
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8227 ac_res=`eval echo '${'$as_ac_Header'}'`
8228 { echo "$as_me:$LINENO: result: $ac_res" >&5
8229 echo "${ECHO_T}$ac_res" >&6; }
8230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8231 cat >>confdefs.h <<_ACEOF
8232 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8235 ac_header_dirent=$ac_hdr; break
8239 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8240 if test $ac_header_dirent = dirent.h; then
8241 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8242 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8243 if test "${ac_cv_search_opendir+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 ac_func_search_save_LIBS=$LIBS
8247 cat >conftest.$ac_ext <<_ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8254 /* Override any GCC internal prototype to avoid an error.
8255 Use char because int might match the return type of a GCC
8256 builtin and then its argument prototype would still apply. */
8269 for ac_lib in '' dir; do
8270 if test -z "$ac_lib"; then
8271 ac_res="none required"
8274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8276 rm -f conftest.$ac_objext conftest$ac_exeext
8277 if { (ac_try="$ac_link"
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_link") 2>conftest.er1
8285 grep -v '^ *+' conftest.er1 >conftest.err
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8291 { (case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_try") 2>&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try='test -s conftest$ac_exeext'
8301 { (case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_try") 2>&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 ac_cv_search_opendir=$ac_res
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8318 rm -f core conftest.err conftest.$ac_objext \
8320 if test "${ac_cv_search_opendir+set}" = set; then
8324 if test "${ac_cv_search_opendir+set}" = set; then
8327 ac_cv_search_opendir=no
8330 LIBS=$ac_func_search_save_LIBS
8332 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8333 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8334 ac_res=$ac_cv_search_opendir
8335 if test "$ac_res" != no; then
8336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8341 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8342 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8343 if test "${ac_cv_search_opendir+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 ac_func_search_save_LIBS=$LIBS
8347 cat >conftest.$ac_ext <<_ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8354 /* Override any GCC internal prototype to avoid an error.
8355 Use char because int might match the return type of a GCC
8356 builtin and then its argument prototype would still apply. */
8369 for ac_lib in '' x; do
8370 if test -z "$ac_lib"; then
8371 ac_res="none required"
8374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8376 rm -f conftest.$ac_objext conftest$ac_exeext
8377 if { (ac_try="$ac_link"
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_link") 2>conftest.er1
8385 grep -v '^ *+' conftest.er1 >conftest.err
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8391 { (case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_try") 2>&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest$ac_exeext'
8401 { (case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_try") 2>&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; }; then
8410 ac_cv_search_opendir=$ac_res
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8418 rm -f core conftest.err conftest.$ac_objext \
8420 if test "${ac_cv_search_opendir+set}" = set; then
8424 if test "${ac_cv_search_opendir+set}" = set; then
8427 ac_cv_search_opendir=no
8430 LIBS=$ac_func_search_save_LIBS
8432 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8433 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8434 ac_res=$ac_cv_search_opendir
8435 if test "$ac_res" != no; then
8436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8443 for ac_header in dlfcn.h
8445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 ac_res=`eval echo '${'$as_ac_Header'}'`
8453 { echo "$as_me:$LINENO: result: $ac_res" >&5
8454 echo "${ECHO_T}$ac_res" >&6; }
8456 # Is the header compilable?
8457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8459 cat >conftest.$ac_ext <<_ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8465 $ac_includes_default
8466 #include <$ac_header>
8468 rm -f conftest.$ac_objext
8469 if { (ac_try="$ac_compile"
8471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472 *) ac_try_echo=$ac_try;;
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475 (eval "$ac_compile") 2>conftest.er1
8477 grep -v '^ *+' conftest.er1 >conftest.err
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8483 { (case "(($ac_try" in
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_try") 2>&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest.$ac_objext'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 ac_header_compiler=yes
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8507 ac_header_compiler=no
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8512 echo "${ECHO_T}$ac_header_compiler" >&6; }
8514 # Is the header present?
8515 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 #include <$ac_header>
8525 if { (ac_try="$ac_cpp conftest.$ac_ext"
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } >/dev/null; then
8538 if test -s conftest.err; then
8539 ac_cpp_err=$ac_c_preproc_warn_flag
8540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8547 if test -z "$ac_cpp_err"; then
8548 ac_header_preproc=yes
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8553 ac_header_preproc=no
8556 rm -f conftest.err conftest.$ac_ext
8557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8558 echo "${ECHO_T}$ac_header_preproc" >&6; }
8560 # So? What about this header?
8561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8567 ac_header_preproc=yes
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8583 ## ------------------------------------ ##
8584 ## Report this to http://llvm.org/bugs/ ##
8585 ## ------------------------------------ ##
8587 ) | sed "s/^/$as_me: WARNING: /" >&2
8590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 eval "$as_ac_Header=\$ac_header_preproc"
8597 ac_res=`eval echo '${'$as_ac_Header'}'`
8598 { echo "$as_me:$LINENO: result: $ac_res" >&5
8599 echo "${ECHO_T}$ac_res" >&6; }
8602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8603 cat >>confdefs.h <<_ACEOF
8604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8611 # Check whether --enable-ltdl-install was given.
8612 if test "${enable_ltdl_install+set}" = set; then
8613 enableval=$enable_ltdl_install;
8619 if test x"${enable_ltdl_install-no}" != xno; then
8621 INSTALL_LTDL_FALSE='#'
8623 INSTALL_LTDL_TRUE='#'
8629 if test x"${enable_ltdl_convenience-no}" != xno; then
8630 CONVENIENCE_LTDL_TRUE=
8631 CONVENIENCE_LTDL_FALSE='#'
8633 CONVENIENCE_LTDL_TRUE='#'
8634 CONVENIENCE_LTDL_FALSE=
8638 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8639 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8641 libname_spec='lib$name'
8649 shlibpath_overrides_runpath=unknown
8651 dynamic_linker="$host_os ld.so"
8652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8653 if test "$GCC" = yes; then
8654 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8655 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8656 # if the path contains ";" then we assume it to be the separator
8657 # otherwise default to the standard path separator (i.e. ":") - it is
8658 # assumed that no part of a normal pathname contains ";" but that should
8659 # okay in the real world where ";" in dirpaths is itself problematic.
8660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8665 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8667 need_lib_prefix=unknown
8668 hardcode_into_libs=no
8670 # when you set need_version to no, make sure it does not cause -set_version
8671 # flags to be left without arguments
8672 need_version=unknown
8677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8678 shlibpath_var=LIBPATH
8680 # AIX 3 has no versioning support, so we append a major version to the name.
8681 soname_spec='${libname}${release}${shared_ext}$major'
8688 hardcode_into_libs=yes
8689 if test "$host_cpu" = ia64; then
8690 # AIX 5 supports IA64
8691 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8692 shlibpath_var=LD_LIBRARY_PATH
8694 # With GCC up to 2.95.x, collect2 would create an import file
8695 # for dependence libraries. The import file would start with
8696 # the line `#! .'. This would cause the generated library to
8697 # depend on `.', always an invalid library. This was fixed in
8698 # development snapshots of GCC prior to 3.0.
8700 aix4 | aix4.[01] | aix4.[01].*)
8701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8703 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8710 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8711 # soname into executable. Probably we can add versioning support to
8712 # collect2, so additional links can be useful in future.
8713 if test "$aix_use_runtimelinking" = yes; then
8714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8715 # instead of lib<name>.a to let people know that these are not
8716 # typical AIX shared libraries.
8717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8719 # We preserve .a as extension for shared libraries through AIX4.2
8720 # and later when we are not doing run time linking.
8721 library_names_spec='${libname}${release}.a $libname.a'
8722 soname_spec='${libname}${release}${shared_ext}$major'
8724 shlibpath_var=LIBPATH
8729 library_names_spec='$libname.ixlibrary $libname.a'
8730 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8731 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'
8735 library_names_spec='${libname}${shared_ext}'
8736 dynamic_linker="$host_os ld.so"
8737 shlibpath_var=LIBRARY_PATH
8743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8744 soname_spec='${libname}${release}${shared_ext}$major'
8745 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8746 shlibpath_var=LD_LIBRARY_PATH
8747 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8748 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8749 # the default ld.so.conf also contains /usr/contrib/lib and
8750 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8751 # libtool to hard-code these into programs
8754 cygwin* | mingw* | pw32*)
8755 version_type=windows
8760 case $GCC,$host_os in
8761 yes,cygwin* | yes,mingw* | yes,pw32*)
8762 library_names_spec='$libname.dll.a'
8763 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8764 postinstall_cmds='base_file=`basename \${file}`~
8765 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8766 dldir=$destdir/`dirname \$dlpath`~
8767 test -d \$dldir || mkdir -p \$dldir~
8768 $install_prog $dir/$dlname \$dldir/$dlname~
8769 chmod a+x \$dldir/$dlname'
8770 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8771 dlpath=$dir/\$dldll~
8773 shlibpath_overrides_runpath=yes
8777 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8778 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8779 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8782 # MinGW DLLs use traditional 'lib' prefix
8783 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8785 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8786 # It is most probably a Windows format PATH printed by
8787 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8788 # path with ; separators, and with drive letters. We can handle the
8789 # drive letters (cygwin fileutils understands them), so leave them,
8790 # especially as we might pass files found there to a mingw objdump,
8791 # which wouldn't understand a cygwinified path. Ahh.
8792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8798 # pw32 DLLs use 'pw' prefix rather than 'lib'
8799 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8805 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8808 dynamic_linker='Win32 ld.exe'
8809 # FIXME: first we should search . and the directory the executable is in
8813 darwin* | rhapsody*)
8814 dynamic_linker="$host_os dyld"
8818 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8819 soname_spec='${libname}${release}${major}$shared_ext'
8820 shlibpath_overrides_runpath=yes
8821 shlibpath_var=DYLD_LIBRARY_PATH
8822 shrext_cmds='.dylib'
8823 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8824 if test "$GCC" = yes; then
8825 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"`
8827 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8829 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 shlibpath_var=LD_LIBRARY_PATH
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8850 soname_spec='${libname}${release}${shared_ext}$major'
8851 shlibpath_var=LD_LIBRARY_PATH
8852 shlibpath_overrides_runpath=no
8853 hardcode_into_libs=yes
8854 dynamic_linker='GNU ld.so'
8857 freebsd* | dragonfly*)
8858 # DragonFly does not have aout. When/if they implement a new
8859 # versioning mechanism, adjust this.
8860 if test -x /usr/bin/objformat; then
8861 objformat=`/usr/bin/objformat`
8864 freebsd[123].*) objformat=aout ;;
8868 version_type=freebsd-$objformat
8869 case $version_type in
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8880 shlibpath_var=LD_LIBRARY_PATH
8883 shlibpath_overrides_runpath=yes
8885 freebsd3.[01]* | freebsdelf3.[01]*)
8886 shlibpath_overrides_runpath=yes
8887 hardcode_into_libs=yes
8889 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8890 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8891 shlibpath_overrides_runpath=no
8892 hardcode_into_libs=yes
8894 freebsd*) # from 4.6 on
8895 shlibpath_overrides_runpath=yes
8896 hardcode_into_libs=yes
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8907 shlibpath_var=LD_LIBRARY_PATH
8908 hardcode_into_libs=yes
8911 hpux9* | hpux10* | hpux11*)
8912 # Give a soname corresponding to the major version so that dld.sl refuses to
8913 # link against other versions.
8920 hardcode_into_libs=yes
8921 dynamic_linker="$host_os dld.so"
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 if test "X$HPUX_IA64_MODE" = X32; then
8927 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8929 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8935 hardcode_into_libs=yes
8936 dynamic_linker="$host_os dld.sl"
8937 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940 soname_spec='${libname}${release}${shared_ext}$major'
8941 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8946 dynamic_linker="$host_os dld.sl"
8947 shlibpath_var=SHLIB_PATH
8948 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8953 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8954 postinstall_cmds='chmod 555 $lib'
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8964 shlibpath_var=LD_LIBRARY_PATH
8965 shlibpath_overrides_runpath=no
8966 hardcode_into_libs=yes
8969 irix5* | irix6* | nonstopux*)
8971 nonstopux*) version_type=nonstopux ;;
8973 if test "$lt_cv_prog_gnu_ld" = yes; then
8981 soname_spec='${libname}${release}${shared_ext}$major'
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8984 irix5* | nonstopux*)
8988 case $LD in # libtool.m4 will add one of these switches to LD
8989 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8990 libsuff= shlibsuff= libmagic=32-bit;;
8991 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8992 libsuff=32 shlibsuff=N32 libmagic=N32;;
8993 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8994 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8995 *) libsuff= shlibsuff= libmagic=never-match;;
8999 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9000 shlibpath_overrides_runpath=no
9001 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9002 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9003 hardcode_into_libs=yes
9006 # No shared lib support for Linux oldld, aout, or coff.
9007 linux*oldld* | linux*aout* | linux*coff*)
9011 # This must be Linux ELF.
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 shlibpath_overrides_runpath=no
9021 # This implies no fast_install, which is unacceptable.
9022 # Some rework will be needed to allow for fast_install
9023 # before this can be enabled.
9024 hardcode_into_libs=yes
9026 # Append ld.so.conf contents to the search path
9027 if test -f /etc/ld.so.conf; then
9028 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' ' '`
9029 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9032 # We used to test for /lib/ld.so.1 and disable shared libraries on
9033 # powerpc, because MkLinux only supported shared libraries with the
9034 # GNU dynamic linker. Since this was broken with cross compilers,
9035 # most powerpc-linux boxes support dynamic linking these days and
9036 # people can always --disable-shared, the test was removed, and we
9037 # assume the GNU/Linux dynamic linker is in use.
9038 dynamic_linker='GNU/Linux ld.so'
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=no
9049 hardcode_into_libs=yes
9050 dynamic_linker='GNU ld.so'
9057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9060 dynamic_linker='NetBSD (a.out) ld.so'
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 dynamic_linker='NetBSD ld.elf_so'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=yes
9068 hardcode_into_libs=yes
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 shlibpath_overrides_runpath=yes
9090 sys_lib_dlsearch_path_spec="/usr/lib"
9092 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9094 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9095 *) need_version=no ;;
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9102 openbsd2.[89] | openbsd2.[89].*)
9103 shlibpath_overrides_runpath=no
9106 shlibpath_overrides_runpath=yes
9110 shlibpath_overrides_runpath=yes
9115 libname_spec='$name'
9118 library_names_spec='$libname${shared_ext} $libname.a'
9119 dynamic_linker='OS/2 ld.exe'
9120 shlibpath_var=LIBPATH
9123 osf3* | osf4* | osf5*)
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9129 shlibpath_var=LD_LIBRARY_PATH
9130 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9131 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 shlibpath_overrides_runpath=yes
9142 hardcode_into_libs=yes
9143 # ldd complains unless libraries are executable
9144 postinstall_cmds='chmod +x $lib'
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 shlibpath_overrides_runpath=yes
9153 if test "$with_gnu_ld" = yes; then
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 case $host_vendor in
9166 shlibpath_overrides_runpath=no
9168 export_dynamic_flag_spec='${wl}-Blargedynsym'
9169 runpath_var=LD_RUN_PATH
9177 shlibpath_overrides_runpath=no
9178 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9184 if test -d /usr/nec ;then
9186 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9187 soname_spec='$libname${shared_ext}.$major'
9188 shlibpath_var=LD_LIBRARY_PATH
9192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9193 version_type=freebsd-elf
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 hardcode_into_libs=yes
9200 if test "$with_gnu_ld" = yes; then
9201 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9202 shlibpath_overrides_runpath=no
9204 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9205 shlibpath_overrides_runpath=yes
9208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9212 sys_lib_dlsearch_path_spec='/usr/lib'
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 shlibpath_var=LD_LIBRARY_PATH
9226 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9227 echo "${ECHO_T}$dynamic_linker" >&6; }
9228 test "$dynamic_linker" = no && can_build_shared=no
9230 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9231 if test "$GCC" = yes; then
9232 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9236 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9237 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9238 if test "${libltdl_cv_shlibext+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 eval libltdl_cv_shlibext=$shrext_cmds
9246 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9247 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9248 if test -n "$libltdl_cv_shlibext"; then
9250 cat >>confdefs.h <<_ACEOF
9251 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9257 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9258 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9259 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 libltdl_cv_shlibpath_var="$shlibpath_var"
9264 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9265 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9266 if test -n "$libltdl_cv_shlibpath_var"; then
9268 cat >>confdefs.h <<_ACEOF
9269 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9275 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9276 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9277 if test "${libltdl_cv_sys_search_path+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9282 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9283 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9284 if test -n "$libltdl_cv_sys_search_path"; then
9286 for dir in $libltdl_cv_sys_search_path; do
9287 if test -z "$sys_search_path"; then
9288 sys_search_path="$dir"
9290 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9294 cat >>confdefs.h <<_ACEOF
9295 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9300 { echo "$as_me:$LINENO: checking for objdir" >&5
9301 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9302 if test "${libltdl_cv_objdir+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 libltdl_cv_objdir="$objdir"
9306 if test -n "$objdir"; then
9309 rm -f .libs 2>/dev/null
9310 mkdir .libs 2>/dev/null
9311 if test -d .libs; then
9312 libltdl_cv_objdir=.libs
9314 # MS-DOS does not allow filenames that begin with a dot.
9315 libltdl_cv_objdir=_libs
9317 rmdir .libs 2>/dev/null
9321 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9322 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9324 cat >>confdefs.h <<_ACEOF
9325 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9333 # Check for command to grab the raw symbol name followed by C symbol from nm.
9334 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9335 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9336 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 # These are sane defaults that work on at least a few old systems.
9341 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9343 # Character class describing NM global symbol codes.
9344 symcode='[BCDEGRST]'
9346 # Regexp to match symbols that can be accessed directly from C.
9347 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9349 # Transform an extracted symbol line into a proper C declaration
9350 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9352 # Transform an extracted symbol line into symbol name and symbol address
9353 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'"
9355 # Define system-specific variables.
9360 cygwin* | mingw* | pw32*)
9361 symcode='[ABCDGISTW]'
9363 hpux*) # Its linker distinguishes data from code symbols
9364 if test "$host_cpu" = ia64; then
9365 symcode='[ABCDEGRST]'
9367 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9368 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'"
9371 if test "$host_cpu" = ia64; then
9372 symcode='[ABCDGIRSTW]'
9373 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9374 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'"
9378 symcode='[BCDEGRST]'
9381 symcode='[BCDEGQRST]'
9392 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9400 # Handle CRLF in mingw tool chain
9404 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9408 # If we're using GNU nm, then use its standard symbol codes.
9409 case `$NM -V 2>&1` in
9410 *GNU* | *'with BFD'*)
9411 symcode='[ABCDGIRSTW]' ;;
9414 # Try without a prefix undercore, then with it.
9415 for ac_symprfx in "" "_"; do
9417 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9418 symxfrm="\\1 $ac_symprfx\\2 \\2"
9420 # Write the raw and C identifiers.
9421 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9423 # Check to see that the pipe works correctly.
9427 cat > conftest.$ac_ext <<EOF
9432 void nm_test_func(){}
9436 int main(){nm_test_var='a';nm_test_func();return(0);}
9439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9440 (eval $ac_compile) 2>&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; then
9444 # Now try to grab the symbols.
9446 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9447 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && test -s "$nlist"; then
9451 # Try sorting and uniquifying the output.
9452 if sort "$nlist" | uniq > "$nlist"T; then
9453 mv -f "$nlist"T "$nlist"
9458 # Make sure that we snagged all the symbols we need.
9459 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9460 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9461 cat <<EOF > conftest.$ac_ext
9467 # Now generate the symbol file.
9468 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9470 cat <<EOF >> conftest.$ac_ext
9471 #if defined (__STDC__) && __STDC__
9472 # define lt_ptr_t void *
9474 # define lt_ptr_t char *
9478 /* The mapping between symbol names and symbols. */
9483 lt_preloaded_symbols[] =
9486 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9487 cat <<\EOF >> conftest.$ac_ext
9495 # Now try linking the two files.
9496 mv conftest.$ac_objext conftstm.$ac_objext
9497 lt_save_LIBS="$LIBS"
9498 lt_save_CFLAGS="$CFLAGS"
9499 LIBS="conftstm.$ac_objext"
9500 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9502 (eval $ac_link) 2>&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9508 LIBS="$lt_save_LIBS"
9509 CFLAGS="$lt_save_CFLAGS"
9511 echo "cannot find nm_test_func in $nlist" >&5
9514 echo "cannot find nm_test_var in $nlist" >&5
9517 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9520 echo "$progname: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9523 rm -f conftest* conftst*
9525 # Do not use the global_symbol_pipe unless it works.
9526 if test "$pipe_works" = yes; then
9529 lt_cv_sys_global_symbol_pipe=
9535 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9536 lt_cv_sys_global_symbol_to_cdecl=
9538 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9539 { echo "$as_me:$LINENO: result: failed" >&5
9540 echo "${ECHO_T}failed" >&6; }
9542 { echo "$as_me:$LINENO: result: ok" >&5
9543 echo "${ECHO_T}ok" >&6; }
9547 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9548 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9549 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9553 libltdl_cv_preloaded_symbols=yes
9555 libltdl_cv_preloaded_symbols=no
9559 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9560 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9561 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9563 cat >>confdefs.h <<\_ACEOF
9564 #define HAVE_PRELOADED_SYMBOLS 1
9572 ac_cpp='$CPP $CPPFLAGS'
9573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9578 { echo "$as_me:$LINENO: checking for shl_load" >&5
9579 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9580 if test "${ac_cv_func_shl_load+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 cat >conftest.$ac_ext <<_ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9589 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9591 #define shl_load innocuous_shl_load
9593 /* System header to define __stub macros and hopefully few prototypes,
9594 which can conflict with char shl_load (); below.
9595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9596 <limits.h> exists even on freestanding compilers. */
9599 # include <limits.h>
9601 # include <assert.h>
9606 /* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9613 /* The GNU C library defines this for functions which it implements
9614 to always fail with ENOSYS. Some functions are actually named
9615 something starting with __ and the normal name is an alias. */
9616 #if defined __stub_shl_load || defined __stub___shl_load
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (ac_try="$ac_link"
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_link") 2>conftest.er1
9637 grep -v '^ *+' conftest.er1 >conftest.err
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } &&
9642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9643 { (case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_try") 2>&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; } &&
9652 { ac_try='test -s conftest$ac_exeext'
9653 { (case "(($ac_try" in
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$ac_try") 2>&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 ac_cv_func_shl_load=yes
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9667 ac_cv_func_shl_load=no
9670 rm -f core conftest.err conftest.$ac_objext \
9671 conftest$ac_exeext conftest.$ac_ext
9673 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9674 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9675 if test $ac_cv_func_shl_load = yes; then
9677 cat >>confdefs.h <<\_ACEOF
9678 #define HAVE_SHL_LOAD 1
9682 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9683 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9684 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 ac_check_lib_save_LIBS=$LIBS
9689 cat >conftest.$ac_ext <<_ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9696 /* Override any GCC internal prototype to avoid an error.
9697 Use char because int might match the return type of a GCC
9698 builtin and then its argument prototype would still apply. */
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (ac_try="$ac_link"
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>conftest.er1
9720 grep -v '^ *+' conftest.er1 >conftest.err
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; } &&
9735 { ac_try='test -s conftest$ac_exeext'
9736 { (case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_try") 2>&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 ac_cv_lib_dld_shl_load=yes
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 ac_cv_lib_dld_shl_load=no
9753 rm -f core conftest.err conftest.$ac_objext \
9754 conftest$ac_exeext conftest.$ac_ext
9755 LIBS=$ac_check_lib_save_LIBS
9757 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9758 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9759 if test $ac_cv_lib_dld_shl_load = yes; then
9761 cat >>confdefs.h <<\_ACEOF
9762 #define HAVE_SHL_LOAD 1
9765 LIBADD_DL="$LIBADD_DL -ldld"
9767 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9768 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9769 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 ac_check_lib_save_LIBS=$LIBS
9774 cat >conftest.$ac_ext <<_ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9781 /* Override any GCC internal prototype to avoid an error.
9782 Use char because int might match the return type of a GCC
9783 builtin and then its argument prototype would still apply. */
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (ac_try="$ac_link"
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_link") 2>conftest.er1
9805 grep -v '^ *+' conftest.er1 >conftest.err
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9811 { (case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_try") 2>&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; } &&
9820 { ac_try='test -s conftest$ac_exeext'
9821 { (case "(($ac_try" in
9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823 *) ac_try_echo=$ac_try;;
9825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826 (eval "$ac_try") 2>&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; }; then
9830 ac_cv_lib_dl_dlopen=yes
9832 echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9835 ac_cv_lib_dl_dlopen=no
9838 rm -f core conftest.err conftest.$ac_objext \
9839 conftest$ac_exeext conftest.$ac_ext
9840 LIBS=$ac_check_lib_save_LIBS
9842 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9843 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9844 if test $ac_cv_lib_dl_dlopen = yes; then
9846 cat >>confdefs.h <<\_ACEOF
9847 #define HAVE_LIBDL 1
9850 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9852 cat >conftest.$ac_ext <<_ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9870 rm -f conftest.$ac_objext conftest$ac_exeext
9871 if { (ac_try="$ac_link"
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_link") 2>conftest.er1
9879 grep -v '^ *+' conftest.er1 >conftest.err
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9885 { (case "(($ac_try" in
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890 (eval "$ac_try") 2>&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; } &&
9894 { ac_try='test -s conftest$ac_exeext'
9895 { (case "(($ac_try" in
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_try") 2>&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9905 cat >>confdefs.h <<\_ACEOF
9906 #define HAVE_LIBDL 1
9908 libltdl_cv_func_dlopen="yes"
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9913 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9914 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9915 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 ac_check_lib_save_LIBS=$LIBS
9920 cat >conftest.$ac_ext <<_ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9927 /* Override any GCC internal prototype to avoid an error.
9928 Use char because int might match the return type of a GCC
9929 builtin and then its argument prototype would still apply. */
9942 rm -f conftest.$ac_objext conftest$ac_exeext
9943 if { (ac_try="$ac_link"
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 (eval "$ac_link") 2>conftest.er1
9951 grep -v '^ *+' conftest.er1 >conftest.err
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9957 { (case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_try") 2>&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try='test -s conftest$ac_exeext'
9967 { (case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_try") 2>&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_cv_lib_svld_dlopen=yes
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9981 ac_cv_lib_svld_dlopen=no
9984 rm -f core conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 LIBS=$ac_check_lib_save_LIBS
9988 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9989 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9990 if test $ac_cv_lib_svld_dlopen = yes; then
9992 cat >>confdefs.h <<\_ACEOF
9993 #define HAVE_LIBDL 1
9996 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9998 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9999 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10000 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 ac_check_lib_save_LIBS=$LIBS
10005 cat >conftest.$ac_ext <<_ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10012 /* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10022 return dld_link ();
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (ac_try="$ac_link"
10029 case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_link") 2>conftest.er1
10036 grep -v '^ *+' conftest.er1 >conftest.err
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } &&
10041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10042 { (case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_try") 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; } &&
10051 { ac_try='test -s conftest$ac_exeext'
10052 { (case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_try") 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_lib_dld_dld_link=yes
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10066 ac_cv_lib_dld_dld_link=no
10069 rm -f core conftest.err conftest.$ac_objext \
10070 conftest$ac_exeext conftest.$ac_ext
10071 LIBS=$ac_check_lib_save_LIBS
10073 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10074 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10075 if test $ac_cv_lib_dld_dld_link = yes; then
10077 cat >>confdefs.h <<\_ACEOF
10081 LIBADD_DL="$LIBADD_DL -ldld"
10083 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10084 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10085 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 cat >conftest.$ac_ext <<_ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10094 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10096 #define _dyld_func_lookup innocuous__dyld_func_lookup
10098 /* System header to define __stub macros and hopefully few prototypes,
10099 which can conflict with char _dyld_func_lookup (); below.
10100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10101 <limits.h> exists even on freestanding compilers. */
10104 # include <limits.h>
10106 # include <assert.h>
10109 #undef _dyld_func_lookup
10111 /* Override any GCC internal prototype to avoid an error.
10112 Use char because int might match the return type of a GCC
10113 builtin and then its argument prototype would still apply. */
10117 char _dyld_func_lookup ();
10118 /* The GNU C library defines this for functions which it implements
10119 to always fail with ENOSYS. Some functions are actually named
10120 something starting with __ and the normal name is an alias. */
10121 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10128 return _dyld_func_lookup ();
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (ac_try="$ac_link"
10135 case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_link") 2>conftest.er1
10142 grep -v '^ *+' conftest.er1 >conftest.err
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_func__dyld_func_lookup=yes
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10172 ac_cv_func__dyld_func_lookup=no
10175 rm -f core conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10178 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10179 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10180 if test $ac_cv_func__dyld_func_lookup = yes; then
10182 cat >>confdefs.h <<\_ACEOF
10183 #define HAVE_DYLD 1
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10209 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10211 lt_save_LIBS="$LIBS"
10212 LIBS="$LIBS $LIBADD_DL"
10214 for ac_func in dlerror
10216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10217 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10219 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 cat >conftest.$ac_ext <<_ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10230 #define $ac_func innocuous_$ac_func
10232 /* System header to define __stub macros and hopefully few prototypes,
10233 which can conflict with char $ac_func (); below.
10234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10235 <limits.h> exists even on freestanding compilers. */
10238 # include <limits.h>
10240 # include <assert.h>
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10252 /* The GNU C library defines this for functions which it implements
10253 to always fail with ENOSYS. Some functions are actually named
10254 something starting with __ and the normal name is an alias. */
10255 #if defined __stub_$ac_func || defined __stub___$ac_func
10262 return $ac_func ();
10267 rm -f conftest.$ac_objext conftest$ac_exeext
10268 if { (ac_try="$ac_link"
10269 case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274 (eval "$ac_link") 2>conftest.er1
10276 grep -v '^ *+' conftest.er1 >conftest.err
10278 cat conftest.err >&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } &&
10281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10282 { (case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_try") 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; } &&
10291 { ac_try='test -s conftest$ac_exeext'
10292 { (case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_try") 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
10301 eval "$as_ac_var=yes"
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 eval "$as_ac_var=no"
10309 rm -f core conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
10312 ac_res=`eval echo '${'$as_ac_var'}'`
10313 { echo "$as_me:$LINENO: result: $ac_res" >&5
10314 echo "${ECHO_T}$ac_res" >&6; }
10315 if test `eval echo '${'$as_ac_var'}'` = yes; then
10316 cat >>confdefs.h <<_ACEOF
10317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10323 LIBS="$lt_save_LIBS"
10326 ac_cpp='$CPP $CPPFLAGS'
10327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10333 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10334 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10335 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 ac_cv_sys_symbol_underscore=no
10339 cat > conftest.$ac_ext <<EOF
10340 void nm_test_func(){}
10341 int main(){nm_test_func;return 0;}
10343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344 (eval $ac_compile) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; then
10348 # Now try to grab the symbols.
10349 ac_nlist=conftest.nm
10350 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10351 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } && test -s "$ac_nlist"; then
10355 # See whether the symbols have a leading underscore.
10356 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10357 ac_cv_sys_symbol_underscore=yes
10359 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10362 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10366 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10369 echo "configure: failed program was:" >&5
10375 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10376 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10379 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10380 if test x"$libltdl_cv_func_dlopen" = xyes ||
10381 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10382 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10383 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10384 if test "${libltdl_cv_need_uscore+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 libltdl_cv_need_uscore=unknown
10389 LIBS="$LIBS $LIBADD_DL"
10390 if test "$cross_compiling" = yes; then :
10391 libltdl_cv_need_uscore=cross
10393 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10394 lt_status=$lt_dlunknown
10395 cat > conftest.$ac_ext <<EOF
10396 #line 10396 "configure"
10397 #include "confdefs.h"
10406 # define LT_DLGLOBAL RTLD_GLOBAL
10409 # define LT_DLGLOBAL DL_GLOBAL
10411 # define LT_DLGLOBAL 0
10415 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10416 find out it does not work in some platform. */
10417 #ifndef LT_DLLAZY_OR_NOW
10419 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10422 # define LT_DLLAZY_OR_NOW DL_LAZY
10425 # define LT_DLLAZY_OR_NOW RTLD_NOW
10428 # define LT_DLLAZY_OR_NOW DL_NOW
10430 # define LT_DLLAZY_OR_NOW 0
10438 extern "C" void exit (int);
10441 void fnord() { int i=42;}
10444 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10445 int status = $lt_dlunknown;
10449 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10450 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10451 /* dlclose (self); */
10459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10460 (eval $ac_link) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10464 (./conftest; exit; ) >&5 2>/dev/null
10466 case x$lt_status in
10467 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10468 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10469 x$lt_dlunknown|x*) ;;
10472 # compilation failed
10481 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10482 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10486 if test x"$libltdl_cv_need_uscore" = xyes; then
10488 cat >>confdefs.h <<\_ACEOF
10489 #define NEED_USCORE 1
10495 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10496 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10497 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 # PORTME does your system automatically load deplibs for dlopen?
10501 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10502 # For now, we just catch OSes we know something about -- in the
10503 # future, we'll try test this programmatically.
10504 libltdl_cv_sys_dlopen_deplibs=unknown
10506 aix3*|aix4.1.*|aix4.2.*)
10507 # Unknown whether this is true for these versions of AIX, but
10508 # we want this `case' here to explicitly catch those versions.
10509 libltdl_cv_sys_dlopen_deplibs=unknown
10512 libltdl_cv_sys_dlopen_deplibs=yes
10515 # Assuming the user has installed a libdl from somewhere, this is true
10516 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10517 libltdl_cv_sys_dlopen_deplibs=yes
10519 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10520 # GNU and its variants, using gnu ld.so (Glibc)
10521 libltdl_cv_sys_dlopen_deplibs=yes
10524 libltdl_cv_sys_dlopen_deplibs=yes
10527 libltdl_cv_sys_dlopen_deplibs=yes
10529 irix[12345]*|irix6.[01]*)
10530 # Catch all versions of IRIX before 6.2, and indicate that we don't
10531 # know how it worked for any of those versions.
10532 libltdl_cv_sys_dlopen_deplibs=unknown
10535 # The case above catches anything before 6.2, and it's known that
10536 # at 6.2 and later dlopen does load deplibs.
10537 libltdl_cv_sys_dlopen_deplibs=yes
10540 libltdl_cv_sys_dlopen_deplibs=yes
10543 libltdl_cv_sys_dlopen_deplibs=yes
10546 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10547 # it did *not* use an RPATH in a shared library to find objects the
10548 # library depends on, so we explicitly say `no'.
10549 libltdl_cv_sys_dlopen_deplibs=no
10551 osf5.0|osf5.0a|osf5.1)
10552 # dlopen *does* load deplibs and with the right loader patch applied
10553 # it even uses RPATH in a shared library to search for shared objects
10554 # that the library depends on, but there's no easy way to know if that
10555 # patch is installed. Since this is the case, all we can really
10556 # say is unknown -- it depends on the patch being installed. If
10557 # it is, this changes to `yes'. Without it, it would be `no'.
10558 libltdl_cv_sys_dlopen_deplibs=unknown
10561 # the two cases above should catch all versions of osf <= 5.1. Read
10562 # the comments above for what we know about them.
10563 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10564 # is used to find them so we can finally say `yes'.
10565 libltdl_cv_sys_dlopen_deplibs=yes
10568 libltdl_cv_sys_dlopen_deplibs=yes
10570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10571 libltdl_cv_sys_dlopen_deplibs=yes
10576 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10577 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10578 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10580 cat >>confdefs.h <<\_ACEOF
10581 #define LTDL_DLOPEN_DEPLIBS 1
10587 for ac_header in argz.h
10589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 ac_res=`eval echo '${'$as_ac_Header'}'`
10597 { echo "$as_me:$LINENO: result: $ac_res" >&5
10598 echo "${ECHO_T}$ac_res" >&6; }
10600 # Is the header compilable?
10601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10603 cat >conftest.$ac_ext <<_ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 $ac_includes_default
10610 #include <$ac_header>
10612 rm -f conftest.$ac_objext
10613 if { (ac_try="$ac_compile"
10614 case "(($ac_try" in
10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10616 *) ac_try_echo=$ac_try;;
10618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10619 (eval "$ac_compile") 2>conftest.er1
10621 grep -v '^ *+' conftest.er1 >conftest.err
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10627 { (case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_try") 2>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; } &&
10636 { ac_try='test -s conftest.$ac_objext'
10637 { (case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_try") 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_header_compiler=yes
10648 echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10651 ac_header_compiler=no
10654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10656 echo "${ECHO_T}$ac_header_compiler" >&6; }
10658 # Is the header present?
10659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10661 cat >conftest.$ac_ext <<_ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 #include <$ac_header>
10669 if { (ac_try="$ac_cpp conftest.$ac_ext"
10670 case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10677 grep -v '^ *+' conftest.er1 >conftest.err
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } >/dev/null; then
10682 if test -s conftest.err; then
10683 ac_cpp_err=$ac_c_preproc_warn_flag
10684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10691 if test -z "$ac_cpp_err"; then
10692 ac_header_preproc=yes
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 ac_header_preproc=no
10700 rm -f conftest.err conftest.$ac_ext
10701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10702 echo "${ECHO_T}$ac_header_preproc" >&6; }
10704 # So? What about this header?
10705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10711 ac_header_preproc=yes
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10727 ## ------------------------------------ ##
10728 ## Report this to http://llvm.org/bugs/ ##
10729 ## ------------------------------------ ##
10731 ) | sed "s/^/$as_me: WARNING: /" >&2
10734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 eval "$as_ac_Header=\$ac_header_preproc"
10741 ac_res=`eval echo '${'$as_ac_Header'}'`
10742 { echo "$as_me:$LINENO: result: $ac_res" >&5
10743 echo "${ECHO_T}$ac_res" >&6; }
10746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10747 cat >>confdefs.h <<_ACEOF
10748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10756 { echo "$as_me:$LINENO: checking for error_t" >&5
10757 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10758 if test "${ac_cv_type_error_t+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 cat >conftest.$ac_ext <<_ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10771 typedef error_t ac__type_new_;
10775 if ((ac__type_new_ *) 0)
10777 if (sizeof (ac__type_new_))
10783 rm -f conftest.$ac_objext
10784 if { (ac_try="$ac_compile"
10785 case "(($ac_try" in
10786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787 *) ac_try_echo=$ac_try;;
10789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790 (eval "$ac_compile") 2>conftest.er1
10792 grep -v '^ *+' conftest.er1 >conftest.err
10794 cat conftest.err >&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } &&
10797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10798 { (case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_try") 2>&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; } &&
10807 { ac_try='test -s conftest.$ac_objext'
10808 { (case "(($ac_try" in
10809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813 (eval "$ac_try") 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 ac_cv_type_error_t=yes
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10822 ac_cv_type_error_t=no
10825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10828 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10829 if test $ac_cv_type_error_t = yes; then
10831 cat >>confdefs.h <<_ACEOF
10832 #define HAVE_ERROR_T 1
10838 cat >>confdefs.h <<\_ACEOF
10839 #define error_t int
10850 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 cat >conftest.$ac_ext <<_ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10866 #define $ac_func innocuous_$ac_func
10868 /* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char $ac_func (); below.
10870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871 <limits.h> exists even on freestanding compilers. */
10874 # include <limits.h>
10876 # include <assert.h>
10881 /* Override any GCC internal prototype to avoid an error.
10882 Use char because int might match the return type of a GCC
10883 builtin and then its argument prototype would still apply. */
10888 /* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891 #if defined __stub_$ac_func || defined __stub___$ac_func
10898 return $ac_func ();
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (ac_try="$ac_link"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_link") 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10918 { (case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_try") 2>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest$ac_exeext'
10928 { (case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_try") 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 eval "$as_ac_var=yes"
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 eval "$as_ac_var=no"
10945 rm -f core conftest.err conftest.$ac_objext \
10946 conftest$ac_exeext conftest.$ac_ext
10948 ac_res=`eval echo '${'$as_ac_var'}'`
10949 { echo "$as_me:$LINENO: result: $ac_res" >&5
10950 echo "${ECHO_T}$ac_res" >&6; }
10951 if test `eval echo '${'$as_ac_var'}'` = yes; then
10952 cat >>confdefs.h <<_ACEOF
10953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10986 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 ac_res=`eval echo '${'$as_ac_Header'}'`
10997 { echo "$as_me:$LINENO: result: $ac_res" >&5
10998 echo "${ECHO_T}$ac_res" >&6; }
11000 # Is the header compilable?
11001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11003 cat >conftest.$ac_ext <<_ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11009 $ac_includes_default
11010 #include <$ac_header>
11012 rm -f conftest.$ac_objext
11013 if { (ac_try="$ac_compile"
11014 case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_compile") 2>conftest.er1
11021 grep -v '^ *+' conftest.er1 >conftest.err
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
11026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11027 { (case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_try") 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; } &&
11036 { ac_try='test -s conftest.$ac_objext'
11037 { (case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_try") 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 ac_header_compiler=yes
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ac_header_compiler=no
11054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11056 echo "${ECHO_T}$ac_header_compiler" >&6; }
11058 # Is the header present?
11059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11061 cat >conftest.$ac_ext <<_ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067 #include <$ac_header>
11069 if { (ac_try="$ac_cpp conftest.$ac_ext"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11077 grep -v '^ *+' conftest.er1 >conftest.err
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } >/dev/null; then
11082 if test -s conftest.err; then
11083 ac_cpp_err=$ac_c_preproc_warn_flag
11084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11091 if test -z "$ac_cpp_err"; then
11092 ac_header_preproc=yes
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11097 ac_header_preproc=no
11100 rm -f conftest.err conftest.$ac_ext
11101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11102 echo "${ECHO_T}$ac_header_preproc" >&6; }
11104 # So? What about this header?
11105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11111 ac_header_preproc=yes
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11127 ## ------------------------------------ ##
11128 ## Report this to http://llvm.org/bugs/ ##
11129 ## ------------------------------------ ##
11131 ) | sed "s/^/$as_me: WARNING: /" >&2
11134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 eval "$as_ac_Header=\$ac_header_preproc"
11141 ac_res=`eval echo '${'$as_ac_Header'}'`
11142 { echo "$as_me:$LINENO: result: $ac_res" >&5
11143 echo "${ECHO_T}$ac_res" >&6; }
11146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11147 cat >>confdefs.h <<_ACEOF
11148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11159 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 ac_res=`eval echo '${'$as_ac_Header'}'`
11169 { echo "$as_me:$LINENO: result: $ac_res" >&5
11170 echo "${ECHO_T}$ac_res" >&6; }
11172 # Is the header compilable?
11173 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11175 cat >conftest.$ac_ext <<_ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181 $ac_includes_default
11182 #include <$ac_header>
11184 rm -f conftest.$ac_objext
11185 if { (ac_try="$ac_compile"
11186 case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_compile") 2>conftest.er1
11193 grep -v '^ *+' conftest.er1 >conftest.err
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
11198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11199 { (case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204 (eval "$ac_try") 2>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; } &&
11208 { ac_try='test -s conftest.$ac_objext'
11209 { (case "(($ac_try" in
11210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214 (eval "$ac_try") 2>&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; }; then
11218 ac_header_compiler=yes
11220 echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.$ac_ext >&5
11223 ac_header_compiler=no
11226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11227 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11228 echo "${ECHO_T}$ac_header_compiler" >&6; }
11230 # Is the header present?
11231 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11233 cat >conftest.$ac_ext <<_ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 #include <$ac_header>
11241 if { (ac_try="$ac_cpp conftest.$ac_ext"
11242 case "(($ac_try" in
11243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244 *) ac_try_echo=$ac_try;;
11246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11249 grep -v '^ *+' conftest.er1 >conftest.err
11251 cat conftest.err >&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } >/dev/null; then
11254 if test -s conftest.err; then
11255 ac_cpp_err=$ac_c_preproc_warn_flag
11256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11263 if test -z "$ac_cpp_err"; then
11264 ac_header_preproc=yes
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11269 ac_header_preproc=no
11272 rm -f conftest.err conftest.$ac_ext
11273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11274 echo "${ECHO_T}$ac_header_preproc" >&6; }
11276 # So? What about this header?
11277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11283 ac_header_preproc=yes
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11289 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11293 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11299 ## ------------------------------------ ##
11300 ## Report this to http://llvm.org/bugs/ ##
11301 ## ------------------------------------ ##
11303 ) | sed "s/^/$as_me: WARNING: /" >&2
11306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 eval "$as_ac_Header=\$ac_header_preproc"
11313 ac_res=`eval echo '${'$as_ac_Header'}'`
11314 { echo "$as_me:$LINENO: result: $ac_res" >&5
11315 echo "${ECHO_T}$ac_res" >&6; }
11318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11319 cat >>confdefs.h <<_ACEOF
11320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11329 for ac_header in string.h strings.h
11331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 ac_res=`eval echo '${'$as_ac_Header'}'`
11339 { echo "$as_me:$LINENO: result: $ac_res" >&5
11340 echo "${ECHO_T}$ac_res" >&6; }
11342 # Is the header compilable?
11343 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11345 cat >conftest.$ac_ext <<_ACEOF
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11351 $ac_includes_default
11352 #include <$ac_header>
11354 rm -f conftest.$ac_objext
11355 if { (ac_try="$ac_compile"
11356 case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_compile") 2>conftest.er1
11363 grep -v '^ *+' conftest.er1 >conftest.err
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11369 { (case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_try") 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; } &&
11378 { ac_try='test -s conftest.$ac_objext'
11379 { (case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384 (eval "$ac_try") 2>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_header_compiler=yes
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11393 ac_header_compiler=no
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11398 echo "${ECHO_T}$ac_header_compiler" >&6; }
11400 # Is the header present?
11401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11403 cat >conftest.$ac_ext <<_ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 #include <$ac_header>
11411 if { (ac_try="$ac_cpp conftest.$ac_ext"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11419 grep -v '^ *+' conftest.er1 >conftest.err
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } >/dev/null; then
11424 if test -s conftest.err; then
11425 ac_cpp_err=$ac_c_preproc_warn_flag
11426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11433 if test -z "$ac_cpp_err"; then
11434 ac_header_preproc=yes
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ac_header_preproc=no
11442 rm -f conftest.err conftest.$ac_ext
11443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11444 echo "${ECHO_T}$ac_header_preproc" >&6; }
11446 # So? What about this header?
11447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11453 ac_header_preproc=yes
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11469 ## ------------------------------------ ##
11470 ## Report this to http://llvm.org/bugs/ ##
11471 ## ------------------------------------ ##
11473 ) | sed "s/^/$as_me: WARNING: /" >&2
11476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 eval "$as_ac_Header=\$ac_header_preproc"
11483 ac_res=`eval echo '${'$as_ac_Header'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485 echo "${ECHO_T}$ac_res" >&6; }
11488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11489 cat >>confdefs.h <<_ACEOF
11490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11500 for ac_func in strchr index
11502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 cat >conftest.$ac_ext <<_ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11516 #define $ac_func innocuous_$ac_func
11518 /* System header to define __stub macros and hopefully few prototypes,
11519 which can conflict with char $ac_func (); below.
11520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11521 <limits.h> exists even on freestanding compilers. */
11524 # include <limits.h>
11526 # include <assert.h>
11531 /* Override any GCC internal prototype to avoid an error.
11532 Use char because int might match the return type of a GCC
11533 builtin and then its argument prototype would still apply. */
11538 /* The GNU C library defines this for functions which it implements
11539 to always fail with ENOSYS. Some functions are actually named
11540 something starting with __ and the normal name is an alias. */
11541 #if defined __stub_$ac_func || defined __stub___$ac_func
11548 return $ac_func ();
11553 rm -f conftest.$ac_objext conftest$ac_exeext
11554 if { (ac_try="$ac_link"
11555 case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_link") 2>conftest.er1
11562 grep -v '^ *+' conftest.er1 >conftest.err
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11568 { (case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_try") 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest$ac_exeext'
11578 { (case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_try") 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 eval "$as_ac_var=yes"
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11592 eval "$as_ac_var=no"
11595 rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11598 ac_res=`eval echo '${'$as_ac_var'}'`
11599 { echo "$as_me:$LINENO: result: $ac_res" >&5
11600 echo "${ECHO_T}$ac_res" >&6; }
11601 if test `eval echo '${'$as_ac_var'}'` = yes; then
11602 cat >>confdefs.h <<_ACEOF
11603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11611 for ac_func in strrchr rindex
11613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 cat >conftest.$ac_ext <<_ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11627 #define $ac_func innocuous_$ac_func
11629 /* System header to define __stub macros and hopefully few prototypes,
11630 which can conflict with char $ac_func (); below.
11631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11632 <limits.h> exists even on freestanding compilers. */
11635 # include <limits.h>
11637 # include <assert.h>
11642 /* Override any GCC internal prototype to avoid an error.
11643 Use char because int might match the return type of a GCC
11644 builtin and then its argument prototype would still apply. */
11649 /* The GNU C library defines this for functions which it implements
11650 to always fail with ENOSYS. Some functions are actually named
11651 something starting with __ and the normal name is an alias. */
11652 #if defined __stub_$ac_func || defined __stub___$ac_func
11659 return $ac_func ();
11664 rm -f conftest.$ac_objext conftest$ac_exeext
11665 if { (ac_try="$ac_link"
11666 case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_link") 2>conftest.er1
11673 grep -v '^ *+' conftest.er1 >conftest.err
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } &&
11678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11679 { (case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_try") 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try='test -s conftest$ac_exeext'
11689 { (case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_try") 2>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; }; then
11698 eval "$as_ac_var=yes"
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 eval "$as_ac_var=no"
11706 rm -f core conftest.err conftest.$ac_objext \
11707 conftest$ac_exeext conftest.$ac_ext
11709 ac_res=`eval echo '${'$as_ac_var'}'`
11710 { echo "$as_me:$LINENO: result: $ac_res" >&5
11711 echo "${ECHO_T}$ac_res" >&6; }
11712 if test `eval echo '${'$as_ac_var'}'` = yes; then
11713 cat >>confdefs.h <<_ACEOF
11714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11722 for ac_func in memcpy bcopy
11724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 cat >conftest.$ac_ext <<_ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11738 #define $ac_func innocuous_$ac_func
11740 /* System header to define __stub macros and hopefully few prototypes,
11741 which can conflict with char $ac_func (); below.
11742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11743 <limits.h> exists even on freestanding compilers. */
11746 # include <limits.h>
11748 # include <assert.h>
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11760 /* The GNU C library defines this for functions which it implements
11761 to always fail with ENOSYS. Some functions are actually named
11762 something starting with __ and the normal name is an alias. */
11763 #if defined __stub_$ac_func || defined __stub___$ac_func
11770 return $ac_func ();
11775 rm -f conftest.$ac_objext conftest$ac_exeext
11776 if { (ac_try="$ac_link"
11777 case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_link") 2>conftest.er1
11784 grep -v '^ *+' conftest.er1 >conftest.err
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11790 { (case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_try") 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest$ac_exeext'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 eval "$as_ac_var=yes"
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 eval "$as_ac_var=no"
11817 rm -f core conftest.err conftest.$ac_objext \
11818 conftest$ac_exeext conftest.$ac_ext
11820 ac_res=`eval echo '${'$as_ac_var'}'`
11821 { echo "$as_me:$LINENO: result: $ac_res" >&5
11822 echo "${ECHO_T}$ac_res" >&6; }
11823 if test `eval echo '${'$as_ac_var'}'` = yes; then
11824 cat >>confdefs.h <<_ACEOF
11825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11833 for ac_func in memmove strcmp
11835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 cat >conftest.$ac_ext <<_ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11849 #define $ac_func innocuous_$ac_func
11851 /* System header to define __stub macros and hopefully few prototypes,
11852 which can conflict with char $ac_func (); below.
11853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11854 <limits.h> exists even on freestanding compilers. */
11857 # include <limits.h>
11859 # include <assert.h>
11864 /* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11871 /* The GNU C library defines this for functions which it implements
11872 to always fail with ENOSYS. Some functions are actually named
11873 something starting with __ and the normal name is an alias. */
11874 #if defined __stub_$ac_func || defined __stub___$ac_func
11881 return $ac_func ();
11886 rm -f conftest.$ac_objext conftest$ac_exeext
11887 if { (ac_try="$ac_link"
11888 case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893 (eval "$ac_link") 2>conftest.er1
11895 grep -v '^ *+' conftest.er1 >conftest.err
11897 cat conftest.err >&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
11900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11901 { (case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_try") 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest$ac_exeext'
11911 { (case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_try") 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 eval "$as_ac_var=yes"
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11925 eval "$as_ac_var=no"
11928 rm -f core conftest.err conftest.$ac_objext \
11929 conftest$ac_exeext conftest.$ac_ext
11931 ac_res=`eval echo '${'$as_ac_var'}'`
11932 { echo "$as_me:$LINENO: result: $ac_res" >&5
11933 echo "${ECHO_T}$ac_res" >&6; }
11934 if test `eval echo '${'$as_ac_var'}'` = yes; then
11935 cat >>confdefs.h <<_ACEOF
11936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11945 for ac_func in closedir opendir readdir
11947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 cat >conftest.$ac_ext <<_ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11961 #define $ac_func innocuous_$ac_func
11963 /* System header to define __stub macros and hopefully few prototypes,
11964 which can conflict with char $ac_func (); below.
11965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11966 <limits.h> exists even on freestanding compilers. */
11969 # include <limits.h>
11971 # include <assert.h>
11976 /* Override any GCC internal prototype to avoid an error.
11977 Use char because int might match the return type of a GCC
11978 builtin and then its argument prototype would still apply. */
11983 /* The GNU C library defines this for functions which it implements
11984 to always fail with ENOSYS. Some functions are actually named
11985 something starting with __ and the normal name is an alias. */
11986 #if defined __stub_$ac_func || defined __stub___$ac_func
11993 return $ac_func ();
11998 rm -f conftest.$ac_objext conftest$ac_exeext
11999 if { (ac_try="$ac_link"
12000 case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_link") 2>conftest.er1
12007 grep -v '^ *+' conftest.er1 >conftest.err
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12013 { (case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try='test -s conftest$ac_exeext'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 eval "$as_ac_var=yes"
12034 echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12037 eval "$as_ac_var=no"
12040 rm -f core conftest.err conftest.$ac_objext \
12041 conftest$ac_exeext conftest.$ac_ext
12043 ac_res=`eval echo '${'$as_ac_var'}'`
12044 { echo "$as_me:$LINENO: result: $ac_res" >&5
12045 echo "${ECHO_T}$ac_res" >&6; }
12046 if test `eval echo '${'$as_ac_var'}'` = yes; then
12047 cat >>confdefs.h <<_ACEOF
12048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12056 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12057 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12070 if test "$GCC" != "yes" && test "$ICC" != "yes"
12072 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12073 echo "$as_me: error: gcc|icc required but not found" >&2;}
12074 { (exit 1); exit 1; }; }
12077 if test "$GXX" != "yes" && test "$IXX" != "yes"
12079 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12080 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12081 { (exit 1); exit 1; }; }
12084 if test "$GCC" = "yes"
12086 cat >conftest.$ac_ext <<_ACEOF
12087 #if !defined(__GNUC__) || __GNUC__ < 3
12088 #error Unsupported GCC version
12092 rm -f conftest.$ac_objext
12093 if { (ac_try="$ac_compile"
12094 case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_compile") 2>conftest.er1
12101 grep -v '^ *+' conftest.er1 >conftest.err
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } &&
12106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12107 { (case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_try") 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12132 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12133 { (exit 1); exit 1; }; }
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 if test -z "$llvm_cv_gnu_make_command"
12141 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12142 echo "$as_me: error: GNU Make required but not found" >&2;}
12143 { (exit 1); exit 1; }; }
12146 { echo "$as_me:$LINENO: result: ok" >&5
12147 echo "${ECHO_T}ok" >&6; }
12149 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12150 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12151 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12153 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12155 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12157 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12158 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12162 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12163 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12164 if test "${ac_cv_lib_m_sin+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 ac_check_lib_save_LIBS=$LIBS
12169 cat >conftest.$ac_ext <<_ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12176 /* Override any GCC internal prototype to avoid an error.
12177 Use char because int might match the return type of a GCC
12178 builtin and then its argument prototype would still apply. */
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (ac_try="$ac_link"
12193 case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_link") 2>conftest.er1
12200 grep -v '^ *+' conftest.er1 >conftest.err
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } &&
12205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest$ac_exeext'
12216 { (case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_try") 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_cv_lib_m_sin=yes
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12233 rm -f core conftest.err conftest.$ac_objext \
12234 conftest$ac_exeext conftest.$ac_ext
12235 LIBS=$ac_check_lib_save_LIBS
12237 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12238 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12239 if test $ac_cv_lib_m_sin = yes; then
12240 cat >>confdefs.h <<_ACEOF
12241 #define HAVE_LIBM 1
12248 if test "$llvm_cv_os_type" = "MingW" ; then
12250 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12251 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12252 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 ac_check_lib_save_LIBS=$LIBS
12256 LIBS="-limagehlp $LIBS"
12257 cat >conftest.$ac_ext <<_ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_link") 2>conftest.er1
12282 grep -v '^ *+' conftest.er1 >conftest.err
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
12287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12288 { (case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_try") 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest$ac_exeext'
12298 { (case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_try") 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 ac_cv_lib_imagehlp_main=yes
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 ac_cv_lib_imagehlp_main=no
12315 rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12319 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12320 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12321 if test $ac_cv_lib_imagehlp_main = yes; then
12322 cat >>confdefs.h <<_ACEOF
12323 #define HAVE_LIBIMAGEHLP 1
12326 LIBS="-limagehlp $LIBS"
12331 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12332 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12333 if test "${ac_cv_lib_psapi_main+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 ac_check_lib_save_LIBS=$LIBS
12337 LIBS="-lpsapi $LIBS"
12338 cat >conftest.$ac_ext <<_ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (ac_try="$ac_link"
12356 case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_link") 2>conftest.er1
12363 grep -v '^ *+' conftest.er1 >conftest.err
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest$ac_exeext'
12379 { (case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_try") 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
12388 ac_cv_lib_psapi_main=yes
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 ac_cv_lib_psapi_main=no
12396 rm -f core conftest.err conftest.$ac_objext \
12397 conftest$ac_exeext conftest.$ac_ext
12398 LIBS=$ac_check_lib_save_LIBS
12400 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12401 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12402 if test $ac_cv_lib_psapi_main = yes; then
12403 cat >>confdefs.h <<_ACEOF
12404 #define HAVE_LIBPSAPI 1
12407 LIBS="-lpsapi $LIBS"
12413 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12414 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12415 if test "${ac_cv_search_dlopen+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12418 ac_func_search_save_LIBS=$LIBS
12419 cat >conftest.$ac_ext <<_ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12426 /* Override any GCC internal prototype to avoid an error.
12427 Use char because int might match the return type of a GCC
12428 builtin and then its argument prototype would still apply. */
12441 for ac_lib in '' dl; do
12442 if test -z "$ac_lib"; then
12443 ac_res="none required"
12446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12448 rm -f conftest.$ac_objext conftest$ac_exeext
12449 if { (ac_try="$ac_link"
12450 case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_link") 2>conftest.er1
12457 grep -v '^ *+' conftest.er1 >conftest.err
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12463 { (case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_try") 2>&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } &&
12472 { ac_try='test -s conftest$ac_exeext'
12473 { (case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_try") 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 ac_cv_search_dlopen=$ac_res
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12490 rm -f core conftest.err conftest.$ac_objext \
12492 if test "${ac_cv_search_dlopen+set}" = set; then
12496 if test "${ac_cv_search_dlopen+set}" = set; then
12499 ac_cv_search_dlopen=no
12501 rm conftest.$ac_ext
12502 LIBS=$ac_func_search_save_LIBS
12504 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12505 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12506 ac_res=$ac_cv_search_dlopen
12507 if test "$ac_res" != no; then
12508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12510 cat >>confdefs.h <<\_ACEOF
12511 #define HAVE_DLOPEN 1
12515 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12516 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12520 if test "$llvm_cv_enable_libffi" = "yes" ; then
12521 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12522 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12523 if test "${ac_cv_search_ffi_call+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 ac_func_search_save_LIBS=$LIBS
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 /* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12544 return ffi_call ();
12549 for ac_lib in '' ffi; do
12550 if test -z "$ac_lib"; then
12551 ac_res="none required"
12554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12556 rm -f conftest.$ac_objext conftest$ac_exeext
12557 if { (ac_try="$ac_link"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_link") 2>conftest.er1
12565 grep -v '^ *+' conftest.er1 >conftest.err
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12571 { (case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_try") 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest$ac_exeext'
12581 { (case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_try") 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_cv_search_ffi_call=$ac_res
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12598 rm -f core conftest.err conftest.$ac_objext \
12600 if test "${ac_cv_search_ffi_call+set}" = set; then
12604 if test "${ac_cv_search_ffi_call+set}" = set; then
12607 ac_cv_search_ffi_call=no
12609 rm conftest.$ac_ext
12610 LIBS=$ac_func_search_save_LIBS
12612 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12613 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12614 ac_res=$ac_cv_search_ffi_call
12615 if test "$ac_res" != no; then
12616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12618 cat >>confdefs.h <<\_ACEOF
12619 #define HAVE_FFI_CALL 1
12623 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12624 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12625 { (exit 1); exit 1; }; }
12630 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12631 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12632 if test "${ac_cv_search_mallinfo+set}" = set; then
12633 echo $ECHO_N "(cached) $ECHO_C" >&6
12635 ac_func_search_save_LIBS=$LIBS
12636 cat >conftest.$ac_ext <<_ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12643 /* Override any GCC internal prototype to avoid an error.
12644 Use char because int might match the return type of a GCC
12645 builtin and then its argument prototype would still apply. */
12653 return mallinfo ();
12658 for ac_lib in '' malloc; do
12659 if test -z "$ac_lib"; then
12660 ac_res="none required"
12663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12665 rm -f conftest.$ac_objext conftest$ac_exeext
12666 if { (ac_try="$ac_link"
12667 case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_link") 2>conftest.er1
12674 grep -v '^ *+' conftest.er1 >conftest.err
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12680 { (case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_try") 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; } &&
12689 { ac_try='test -s conftest$ac_exeext'
12690 { (case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_try") 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 ac_cv_search_mallinfo=$ac_res
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12707 rm -f core conftest.err conftest.$ac_objext \
12709 if test "${ac_cv_search_mallinfo+set}" = set; then
12713 if test "${ac_cv_search_mallinfo+set}" = set; then
12716 ac_cv_search_mallinfo=no
12718 rm conftest.$ac_ext
12719 LIBS=$ac_func_search_save_LIBS
12721 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12722 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12723 ac_res=$ac_cv_search_mallinfo
12724 if test "$ac_res" != no; then
12725 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12727 cat >>confdefs.h <<\_ACEOF
12728 #define HAVE_MALLINFO 1
12734 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12736 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12737 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12738 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12741 ac_check_lib_save_LIBS=$LIBS
12742 LIBS="-lpthread $LIBS"
12743 cat >conftest.$ac_ext <<_ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12756 char pthread_mutex_init ();
12760 return pthread_mutex_init ();
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_lib_pthread_pthread_mutex_init=yes
12801 echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12804 ac_cv_lib_pthread_pthread_mutex_init=no
12807 rm -f core conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809 LIBS=$ac_check_lib_save_LIBS
12811 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12812 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12813 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12814 cat >>confdefs.h <<_ACEOF
12815 #define HAVE_LIBPTHREAD 1
12818 LIBS="-lpthread $LIBS"
12822 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12823 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12824 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 ac_func_search_save_LIBS=$LIBS
12828 cat >conftest.$ac_ext <<_ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12835 /* Override any GCC internal prototype to avoid an error.
12836 Use char because int might match the return type of a GCC
12837 builtin and then its argument prototype would still apply. */
12841 char pthread_mutex_lock ();
12845 return pthread_mutex_lock ();
12850 for ac_lib in '' pthread; do
12851 if test -z "$ac_lib"; then
12852 ac_res="none required"
12855 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12857 rm -f conftest.$ac_objext conftest$ac_exeext
12858 if { (ac_try="$ac_link"
12859 case "(($ac_try" in
12860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861 *) ac_try_echo=$ac_try;;
12863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12864 (eval "$ac_link") 2>conftest.er1
12866 grep -v '^ *+' conftest.er1 >conftest.err
12868 cat conftest.err >&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } &&
12871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12872 { (case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_try") 2>&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; } &&
12881 { ac_try='test -s conftest$ac_exeext'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
12891 ac_cv_search_pthread_mutex_lock=$ac_res
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12899 rm -f core conftest.err conftest.$ac_objext \
12901 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12905 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12908 ac_cv_search_pthread_mutex_lock=no
12910 rm conftest.$ac_ext
12911 LIBS=$ac_func_search_save_LIBS
12913 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12914 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12915 ac_res=$ac_cv_search_pthread_mutex_lock
12916 if test "$ac_res" != no; then
12917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12919 cat >>confdefs.h <<\_ACEOF
12920 #define HAVE_PTHREAD_MUTEX_LOCK 1
12925 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12926 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12927 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 ac_func_search_save_LIBS=$LIBS
12931 cat >conftest.$ac_ext <<_ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12938 /* Override any GCC internal prototype to avoid an error.
12939 Use char because int might match the return type of a GCC
12940 builtin and then its argument prototype would still apply. */
12944 char pthread_rwlock_init ();
12948 return pthread_rwlock_init ();
12953 for ac_lib in '' pthread; do
12954 if test -z "$ac_lib"; then
12955 ac_res="none required"
12958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12960 rm -f conftest.$ac_objext conftest$ac_exeext
12961 if { (ac_try="$ac_link"
12962 case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967 (eval "$ac_link") 2>conftest.er1
12969 grep -v '^ *+' conftest.er1 >conftest.err
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } &&
12974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12975 { (case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_try") 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest$ac_exeext'
12985 { (case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_try") 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12994 ac_cv_search_pthread_rwlock_init=$ac_res
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
13002 rm -f core conftest.err conftest.$ac_objext \
13004 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13008 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13011 ac_cv_search_pthread_rwlock_init=no
13013 rm conftest.$ac_ext
13014 LIBS=$ac_func_search_save_LIBS
13016 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13017 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13018 ac_res=$ac_cv_search_pthread_rwlock_init
13019 if test "$ac_res" != no; then
13020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13022 cat >>confdefs.h <<\_ACEOF
13023 #define HAVE_PTHREAD_RWLOCK_INIT 1
13028 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13029 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13030 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13033 ac_func_search_save_LIBS=$LIBS
13034 cat >conftest.$ac_ext <<_ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13041 /* Override any GCC internal prototype to avoid an error.
13042 Use char because int might match the return type of a GCC
13043 builtin and then its argument prototype would still apply. */
13047 char pthread_getspecific ();
13051 return pthread_getspecific ();
13056 for ac_lib in '' pthread; do
13057 if test -z "$ac_lib"; then
13058 ac_res="none required"
13061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13063 rm -f conftest.$ac_objext conftest$ac_exeext
13064 if { (ac_try="$ac_link"
13065 case "(($ac_try" in
13066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067 *) ac_try_echo=$ac_try;;
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070 (eval "$ac_link") 2>conftest.er1
13072 grep -v '^ *+' conftest.er1 >conftest.err
13074 cat conftest.err >&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13078 { (case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_try") 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; } &&
13087 { ac_try='test -s conftest$ac_exeext'
13088 { (case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_try") 2>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
13097 ac_cv_search_pthread_getspecific=$ac_res
13099 echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13105 rm -f core conftest.err conftest.$ac_objext \
13107 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13111 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13114 ac_cv_search_pthread_getspecific=no
13116 rm conftest.$ac_ext
13117 LIBS=$ac_func_search_save_LIBS
13119 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13120 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13121 ac_res=$ac_cv_search_pthread_getspecific
13122 if test "$ac_res" != no; then
13123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13125 cat >>confdefs.h <<\_ACEOF
13126 #define HAVE_PTHREAD_GETSPECIFIC 1
13134 # Check whether --with-udis86 was given.
13135 if test "${with_udis86+set}" = set; then
13136 withval=$with_udis86;
13141 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13144 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13145 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13146 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 ac_check_lib_save_LIBS=$LIBS
13150 LIBS="-ludis86 $LIBS"
13151 cat >conftest.$ac_ext <<_ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13158 /* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
13173 rm -f conftest.$ac_objext conftest$ac_exeext
13174 if { (ac_try="$ac_link"
13175 case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_link") 2>conftest.er1
13182 grep -v '^ *+' conftest.er1 >conftest.err
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } &&
13187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13188 { (case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_try") 2>&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; } &&
13197 { ac_try='test -s conftest$ac_exeext'
13198 { (case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_try") 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; }; then
13207 ac_cv_lib_udis86_ud_init=yes
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13212 ac_cv_lib_udis86_ud_init=no
13215 rm -f core conftest.err conftest.$ac_objext \
13216 conftest$ac_exeext conftest.$ac_ext
13217 LIBS=$ac_check_lib_save_LIBS
13219 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13220 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13221 if test $ac_cv_lib_udis86_ud_init = yes; then
13222 cat >>confdefs.h <<_ACEOF
13223 #define HAVE_LIBUDIS86 1
13226 LIBS="-ludis86 $LIBS"
13230 echo "Error! You need to have libudis86 around."
13242 cat >>confdefs.h <<_ACEOF
13243 #define USE_UDIS86 $USE_UDIS86
13248 # Check whether --with-oprofile was given.
13249 if test "${with_oprofile+set}" = set; then
13250 withval=$with_oprofile;
13254 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13255 no) llvm_cv_oppath=
13258 *) llvm_cv_oppath="${withval}/lib/oprofile"
13259 CPPFLAGS="-I${withval}/include";;
13261 case $llvm_cv_os_type in
13263 if test -n "$llvm_cv_oppath" ; then
13264 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13265 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13266 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13267 if test "${ac_cv_search_bfd_init+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 ac_func_search_save_LIBS=$LIBS
13271 cat >conftest.$ac_ext <<_ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13278 /* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
13288 return bfd_init ();
13293 for ac_lib in '' bfd; do
13294 if test -z "$ac_lib"; then
13295 ac_res="none required"
13298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13300 rm -f conftest.$ac_objext conftest$ac_exeext
13301 if { (ac_try="$ac_link"
13302 case "(($ac_try" in
13303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_link") 2>conftest.er1
13309 grep -v '^ *+' conftest.er1 >conftest.err
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } &&
13314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13315 { (case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_try") 2>&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; } &&
13324 { ac_try='test -s conftest$ac_exeext'
13325 { (case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_try") 2>&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }; then
13334 ac_cv_search_bfd_init=$ac_res
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13342 rm -f core conftest.err conftest.$ac_objext \
13344 if test "${ac_cv_search_bfd_init+set}" = set; then
13348 if test "${ac_cv_search_bfd_init+set}" = set; then
13351 ac_cv_search_bfd_init=no
13353 rm conftest.$ac_ext
13354 LIBS=$ac_func_search_save_LIBS
13356 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13357 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13358 ac_res=$ac_cv_search_bfd_init
13359 if test "$ac_res" != no; then
13360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13364 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13365 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13366 if test "${ac_cv_search_op_open_agent+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 ac_func_search_save_LIBS=$LIBS
13370 cat >conftest.$ac_ext <<_ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13377 /* Override any GCC internal prototype to avoid an error.
13378 Use char because int might match the return type of a GCC
13379 builtin and then its argument prototype would still apply. */
13383 char op_open_agent ();
13387 return op_open_agent ();
13392 for ac_lib in '' opagent; do
13393 if test -z "$ac_lib"; then
13394 ac_res="none required"
13397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13399 rm -f conftest.$ac_objext conftest$ac_exeext
13400 if { (ac_try="$ac_link"
13401 case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_link") 2>conftest.er1
13408 grep -v '^ *+' conftest.er1 >conftest.err
13410 cat conftest.err >&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } &&
13413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13414 { (case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_try") 2>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; } &&
13423 { ac_try='test -s conftest$ac_exeext'
13424 { (case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_try") 2>&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; }; then
13433 ac_cv_search_op_open_agent=$ac_res
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13441 rm -f core conftest.err conftest.$ac_objext \
13443 if test "${ac_cv_search_op_open_agent+set}" = set; then
13447 if test "${ac_cv_search_op_open_agent+set}" = set; then
13450 ac_cv_search_op_open_agent=no
13452 rm conftest.$ac_ext
13453 LIBS=$ac_func_search_save_LIBS
13455 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13456 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13457 ac_res=$ac_cv_search_op_open_agent
13458 if test "$ac_res" != no; then
13459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13463 echo "Error! You need to have libopagent around."
13468 if test "${ac_cv_header_opagent_h+set}" = set; then
13469 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13470 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13471 if test "${ac_cv_header_opagent_h+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13475 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13477 # Is the header compilable?
13478 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13479 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13480 cat >conftest.$ac_ext <<_ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 $ac_includes_default
13487 #include <opagent.h>
13489 rm -f conftest.$ac_objext
13490 if { (ac_try="$ac_compile"
13491 case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_compile") 2>conftest.er1
13498 grep -v '^ *+' conftest.er1 >conftest.err
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13504 { (case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_try") 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; } &&
13513 { ac_try='test -s conftest.$ac_objext'
13514 { (case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_try") 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_header_compiler=yes
13525 echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13528 ac_header_compiler=no
13531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13533 echo "${ECHO_T}$ac_header_compiler" >&6; }
13535 # Is the header present?
13536 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13537 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13538 cat >conftest.$ac_ext <<_ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13544 #include <opagent.h>
13546 if { (ac_try="$ac_cpp conftest.$ac_ext"
13547 case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13554 grep -v '^ *+' conftest.er1 >conftest.err
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } >/dev/null; then
13559 if test -s conftest.err; then
13560 ac_cpp_err=$ac_c_preproc_warn_flag
13561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13568 if test -z "$ac_cpp_err"; then
13569 ac_header_preproc=yes
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13574 ac_header_preproc=no
13577 rm -f conftest.err conftest.$ac_ext
13578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13579 echo "${ECHO_T}$ac_header_preproc" >&6; }
13581 # So? What about this header?
13582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13584 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13585 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13587 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13588 ac_header_preproc=yes
13591 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13592 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13593 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13594 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13595 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13596 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13597 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13598 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13600 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13601 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13602 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13604 ## ------------------------------------ ##
13605 ## Report this to http://llvm.org/bugs/ ##
13606 ## ------------------------------------ ##
13608 ) | sed "s/^/$as_me: WARNING: /" >&2
13611 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13612 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13613 if test "${ac_cv_header_opagent_h+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 ac_cv_header_opagent_h=$ac_header_preproc
13618 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13619 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13622 if test $ac_cv_header_opagent_h = yes; then
13626 echo "Error! You need to have opagent.h around."
13634 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13635 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13636 { (exit 1); exit 1; }; } ;;
13647 cat >>confdefs.h <<_ACEOF
13648 #define LLVM_USE_OPROFILE $USE_OPROFILE
13653 # Check whether --with-intel-jitevents was given.
13654 if test "${with_intel_jitevents+set}" = set; then
13655 withval=$with_intel_jitevents;
13657 yes) USE_INTEL_JITEVENTS=1
13659 no) USE_INTEL_JITEVENTS=0
13661 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13662 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13663 { (exit 1); exit 1; }; };;
13666 case $llvm_cv_os_type in
13667 Linux|Win32|Cygwin|MingW) ;;
13668 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13669 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13670 { (exit 1); exit 1; }; };;
13673 case "$llvm_cv_target_arch" in
13675 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13676 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13677 { (exit 1); exit 1; }; };;
13682 USE_INTEL_JITEVENTS=0
13688 cat >>confdefs.h <<_ACEOF
13689 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13693 for ac_prog in xml2-config
13695 # Extract the first word of "$ac_prog", so it can be a program name with args.
13696 set dummy $ac_prog; ac_word=$2
13697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13699 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 if test -n "$XML2CONFIG"; then
13703 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13712 ac_cv_prog_XML2CONFIG="$ac_prog"
13713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13722 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13723 if test -n "$XML2CONFIG"; then
13724 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13725 echo "${ECHO_T}$XML2CONFIG" >&6; }
13727 { echo "$as_me:$LINENO: result: no" >&5
13728 echo "${ECHO_T}no" >&6; }
13732 test -n "$XML2CONFIG" && break
13736 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13737 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13738 if test "x$XML2CONFIG" = "x"; then
13739 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13740 echo "${ECHO_T}xml2-config not found" >&6; }
13742 LIBXML2_INC=`$XML2CONFIG --cflags`
13743 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13744 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13745 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13746 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13747 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13750 ac_check_lib_save_LIBS=$LIBS
13751 LIBS="-lxml2 $LIBS"
13752 cat >conftest.$ac_ext <<_ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13759 /* Override any GCC internal prototype to avoid an error.
13760 Use char because int might match the return type of a GCC
13761 builtin and then its argument prototype would still apply. */
13765 char xmlReadFile ();
13769 return xmlReadFile ();
13774 rm -f conftest.$ac_objext conftest$ac_exeext
13775 if { (ac_try="$ac_link"
13776 case "(($ac_try" in
13777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781 (eval "$ac_link") 2>conftest.er1
13783 grep -v '^ *+' conftest.er1 >conftest.err
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
13788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13789 { (case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_try") 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; } &&
13798 { ac_try='test -s conftest$ac_exeext'
13799 { (case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_try") 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_cv_lib_xml2_xmlReadFile=yes
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 ac_cv_lib_xml2_xmlReadFile=no
13816 rm -f core conftest.err conftest.$ac_objext \
13817 conftest$ac_exeext conftest.$ac_ext
13818 LIBS=$ac_check_lib_save_LIBS
13820 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13821 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13822 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13824 cat >>confdefs.h <<\_ACEOF
13825 #define CLANG_HAVE_LIBXML 1
13828 LIBXML2_LIBS="-lxml2"
13841 ac_header_dirent=no
13842 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13843 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13844 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13845 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 cat >conftest.$ac_ext <<_ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 #include <sys/types.h>
13867 rm -f conftest.$ac_objext
13868 if { (ac_try="$ac_compile"
13869 case "(($ac_try" in
13870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871 *) ac_try_echo=$ac_try;;
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874 (eval "$ac_compile") 2>conftest.er1
13876 grep -v '^ *+' conftest.er1 >conftest.err
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13882 { (case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_try") 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; } &&
13891 { ac_try='test -s conftest.$ac_objext'
13892 { (case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_try") 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 eval "$as_ac_Header=yes"
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13906 eval "$as_ac_Header=no"
13909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911 ac_res=`eval echo '${'$as_ac_Header'}'`
13912 { echo "$as_me:$LINENO: result: $ac_res" >&5
13913 echo "${ECHO_T}$ac_res" >&6; }
13914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13915 cat >>confdefs.h <<_ACEOF
13916 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13919 ac_header_dirent=$ac_hdr; break
13923 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13924 if test $ac_header_dirent = dirent.h; then
13925 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13926 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13927 if test "${ac_cv_search_opendir+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 ac_func_search_save_LIBS=$LIBS
13931 cat >conftest.$ac_ext <<_ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13938 /* Override any GCC internal prototype to avoid an error.
13939 Use char because int might match the return type of a GCC
13940 builtin and then its argument prototype would still apply. */
13953 for ac_lib in '' dir; do
13954 if test -z "$ac_lib"; then
13955 ac_res="none required"
13958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13960 rm -f conftest.$ac_objext conftest$ac_exeext
13961 if { (ac_try="$ac_link"
13962 case "(($ac_try" in
13963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964 *) ac_try_echo=$ac_try;;
13966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967 (eval "$ac_link") 2>conftest.er1
13969 grep -v '^ *+' conftest.er1 >conftest.err
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } &&
13974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13975 { (case "(($ac_try" in
13976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13977 *) ac_try_echo=$ac_try;;
13979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980 (eval "$ac_try") 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try='test -s conftest$ac_exeext'
13985 { (case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990 (eval "$ac_try") 2>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
13994 ac_cv_search_opendir=$ac_res
13996 echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
14002 rm -f core conftest.err conftest.$ac_objext \
14004 if test "${ac_cv_search_opendir+set}" = set; then
14008 if test "${ac_cv_search_opendir+set}" = set; then
14011 ac_cv_search_opendir=no
14013 rm conftest.$ac_ext
14014 LIBS=$ac_func_search_save_LIBS
14016 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14017 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14018 ac_res=$ac_cv_search_opendir
14019 if test "$ac_res" != no; then
14020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14025 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14026 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14027 if test "${ac_cv_search_opendir+set}" = set; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 ac_func_search_save_LIBS=$LIBS
14031 cat >conftest.$ac_ext <<_ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14038 /* Override any GCC internal prototype to avoid an error.
14039 Use char because int might match the return type of a GCC
14040 builtin and then its argument prototype would still apply. */
14053 for ac_lib in '' x; do
14054 if test -z "$ac_lib"; then
14055 ac_res="none required"
14058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14060 rm -f conftest.$ac_objext conftest$ac_exeext
14061 if { (ac_try="$ac_link"
14062 case "(($ac_try" in
14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067 (eval "$ac_link") 2>conftest.er1
14069 grep -v '^ *+' conftest.er1 >conftest.err
14071 cat conftest.err >&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); } &&
14074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14075 { (case "(($ac_try" in
14076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_try") 2>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; } &&
14084 { ac_try='test -s conftest$ac_exeext'
14085 { (case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_try") 2>&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; }; then
14094 ac_cv_search_opendir=$ac_res
14096 echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14102 rm -f core conftest.err conftest.$ac_objext \
14104 if test "${ac_cv_search_opendir+set}" = set; then
14108 if test "${ac_cv_search_opendir+set}" = set; then
14111 ac_cv_search_opendir=no
14113 rm conftest.$ac_ext
14114 LIBS=$ac_func_search_save_LIBS
14116 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14117 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14118 ac_res=$ac_cv_search_opendir
14119 if test "$ac_res" != no; then
14120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14126 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14127 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14128 if test "${ac_cv_header_mmap_anon+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 ac_cpp='$CPP $CPPFLAGS'
14133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14137 cat >conftest.$ac_ext <<_ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 #include <sys/mman.h>
14144 #include <unistd.h>
14149 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14154 rm -f conftest.$ac_objext
14155 if { (ac_try="$ac_compile"
14156 case "(($ac_try" in
14157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158 *) ac_try_echo=$ac_try;;
14160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161 (eval "$ac_compile") 2>conftest.er1
14163 grep -v '^ *+' conftest.er1 >conftest.err
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
14168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14169 { (case "(($ac_try" in
14170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171 *) ac_try_echo=$ac_try;;
14173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174 (eval "$ac_try") 2>&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; } &&
14178 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 ac_cv_header_mmap_anon=yes
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ac_cv_header_mmap_anon=no
14196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14198 ac_cpp='$CPP $CPPFLAGS'
14199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14205 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14206 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14207 if test "$ac_cv_header_mmap_anon" = yes; then
14209 cat >>confdefs.h <<\_ACEOF
14210 #define HAVE_MMAP_ANONYMOUS 1
14215 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14216 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14217 if test "${ac_cv_header_stat_broken+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 cat >conftest.$ac_ext <<_ACEOF
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14226 #include <sys/types.h>
14227 #include <sys/stat.h>
14229 #if defined S_ISBLK && defined S_IFDIR
14230 # if S_ISBLK (S_IFDIR)
14235 #if defined S_ISBLK && defined S_IFCHR
14236 # if S_ISBLK (S_IFCHR)
14241 #if defined S_ISLNK && defined S_IFREG
14242 # if S_ISLNK (S_IFREG)
14247 #if defined S_ISSOCK && defined S_IFREG
14248 # if S_ISSOCK (S_IFREG)
14254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14255 $EGREP "You lose" >/dev/null 2>&1; then
14256 ac_cv_header_stat_broken=yes
14258 ac_cv_header_stat_broken=no
14263 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14264 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14265 if test $ac_cv_header_stat_broken = yes; then
14267 cat >>confdefs.h <<\_ACEOF
14268 #define STAT_MACROS_BROKEN 1
14273 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14274 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14275 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 cat >conftest.$ac_ext <<_ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14284 #include <sys/types.h>
14285 #include <sys/wait.h>
14286 #ifndef WEXITSTATUS
14287 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14290 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14298 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14303 rm -f conftest.$ac_objext
14304 if { (ac_try="$ac_compile"
14305 case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_compile") 2>conftest.er1
14312 grep -v '^ *+' conftest.er1 >conftest.err
14314 cat conftest.err >&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } &&
14317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14318 { (case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_try") 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest.$ac_objext'
14328 { (case "(($ac_try" in
14329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333 (eval "$ac_try") 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 ac_cv_header_sys_wait_h=yes
14339 echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14342 ac_cv_header_sys_wait_h=no
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14348 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14349 if test $ac_cv_header_sys_wait_h = yes; then
14351 cat >>confdefs.h <<\_ACEOF
14352 #define HAVE_SYS_WAIT_H 1
14357 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14358 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14359 if test "${ac_cv_header_time+set}" = set; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 cat >conftest.$ac_ext <<_ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14368 #include <sys/types.h>
14369 #include <sys/time.h>
14375 if ((struct tm *) 0)
14381 rm -f conftest.$ac_objext
14382 if { (ac_try="$ac_compile"
14383 case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_compile") 2>conftest.er1
14390 grep -v '^ *+' conftest.er1 >conftest.err
14392 cat conftest.err >&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
14395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14396 { (case "(($ac_try" in
14397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398 *) ac_try_echo=$ac_try;;
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401 (eval "$ac_try") 2>&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); }; } &&
14405 { ac_try='test -s conftest.$ac_objext'
14406 { (case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_try") 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; }; then
14415 ac_cv_header_time=yes
14417 echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14420 ac_cv_header_time=no
14423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14425 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14426 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14427 if test $ac_cv_header_time = yes; then
14429 cat >>confdefs.h <<\_ACEOF
14430 #define TIME_WITH_SYS_TIME 1
14442 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 ac_res=`eval echo '${'$as_ac_Header'}'`
14452 { echo "$as_me:$LINENO: result: $ac_res" >&5
14453 echo "${ECHO_T}$ac_res" >&6; }
14455 # Is the header compilable?
14456 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14458 cat >conftest.$ac_ext <<_ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h. */
14464 $ac_includes_default
14465 #include <$ac_header>
14467 rm -f conftest.$ac_objext
14468 if { (ac_try="$ac_compile"
14469 case "(($ac_try" in
14470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471 *) ac_try_echo=$ac_try;;
14473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474 (eval "$ac_compile") 2>conftest.er1
14476 grep -v '^ *+' conftest.er1 >conftest.err
14478 cat conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
14481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14482 { (case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_try") 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_try") 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
14501 ac_header_compiler=yes
14503 echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14506 ac_header_compiler=no
14509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14511 echo "${ECHO_T}$ac_header_compiler" >&6; }
14513 # Is the header present?
14514 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14516 cat >conftest.$ac_ext <<_ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522 #include <$ac_header>
14524 if { (ac_try="$ac_cpp conftest.$ac_ext"
14525 case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14532 grep -v '^ *+' conftest.er1 >conftest.err
14534 cat conftest.err >&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } >/dev/null; then
14537 if test -s conftest.err; then
14538 ac_cpp_err=$ac_c_preproc_warn_flag
14539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14546 if test -z "$ac_cpp_err"; then
14547 ac_header_preproc=yes
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14552 ac_header_preproc=no
14555 rm -f conftest.err conftest.$ac_ext
14556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14557 echo "${ECHO_T}$ac_header_preproc" >&6; }
14559 # So? What about this header?
14560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14566 ac_header_preproc=yes
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14582 ## ------------------------------------ ##
14583 ## Report this to http://llvm.org/bugs/ ##
14584 ## ------------------------------------ ##
14586 ) | sed "s/^/$as_me: WARNING: /" >&2
14589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 eval "$as_ac_Header=\$ac_header_preproc"
14596 ac_res=`eval echo '${'$as_ac_Header'}'`
14597 { echo "$as_me:$LINENO: result: $ac_res" >&5
14598 echo "${ECHO_T}$ac_res" >&6; }
14601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14602 cat >>confdefs.h <<_ACEOF
14603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14616 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 ac_res=`eval echo '${'$as_ac_Header'}'`
14626 { echo "$as_me:$LINENO: result: $ac_res" >&5
14627 echo "${ECHO_T}$ac_res" >&6; }
14629 # Is the header compilable?
14630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14632 cat >conftest.$ac_ext <<_ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14638 $ac_includes_default
14639 #include <$ac_header>
14641 rm -f conftest.$ac_objext
14642 if { (ac_try="$ac_compile"
14643 case "(($ac_try" in
14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645 *) ac_try_echo=$ac_try;;
14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648 (eval "$ac_compile") 2>conftest.er1
14650 grep -v '^ *+' conftest.er1 >conftest.err
14652 cat conftest.err >&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
14655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14656 { (case "(($ac_try" in
14657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658 *) ac_try_echo=$ac_try;;
14660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14661 (eval "$ac_try") 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest.$ac_objext'
14666 { (case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_try") 2>&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; }; then
14675 ac_header_compiler=yes
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14680 ac_header_compiler=no
14683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14685 echo "${ECHO_T}$ac_header_compiler" >&6; }
14687 # Is the header present?
14688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14690 cat >conftest.$ac_ext <<_ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14696 #include <$ac_header>
14698 if { (ac_try="$ac_cpp conftest.$ac_ext"
14699 case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14706 grep -v '^ *+' conftest.er1 >conftest.err
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } >/dev/null; then
14711 if test -s conftest.err; then
14712 ac_cpp_err=$ac_c_preproc_warn_flag
14713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14720 if test -z "$ac_cpp_err"; then
14721 ac_header_preproc=yes
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14726 ac_header_preproc=no
14729 rm -f conftest.err conftest.$ac_ext
14730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14731 echo "${ECHO_T}$ac_header_preproc" >&6; }
14733 # So? What about this header?
14734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14740 ac_header_preproc=yes
14743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14756 ## ------------------------------------ ##
14757 ## Report this to http://llvm.org/bugs/ ##
14758 ## ------------------------------------ ##
14760 ) | sed "s/^/$as_me: WARNING: /" >&2
14763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 eval "$as_ac_Header=\$ac_header_preproc"
14770 ac_res=`eval echo '${'$as_ac_Header'}'`
14771 { echo "$as_me:$LINENO: result: $ac_res" >&5
14772 echo "${ECHO_T}$ac_res" >&6; }
14775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14776 cat >>confdefs.h <<_ACEOF
14777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14786 for ac_header in utime.h windows.h
14788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 ac_res=`eval echo '${'$as_ac_Header'}'`
14796 { echo "$as_me:$LINENO: result: $ac_res" >&5
14797 echo "${ECHO_T}$ac_res" >&6; }
14799 # Is the header compilable?
14800 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14802 cat >conftest.$ac_ext <<_ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h. */
14808 $ac_includes_default
14809 #include <$ac_header>
14811 rm -f conftest.$ac_objext
14812 if { (ac_try="$ac_compile"
14813 case "(($ac_try" in
14814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815 *) ac_try_echo=$ac_try;;
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_compile") 2>conftest.er1
14820 grep -v '^ *+' conftest.er1 >conftest.err
14822 cat conftest.err >&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } &&
14825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14826 { (case "(($ac_try" in
14827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14828 *) ac_try_echo=$ac_try;;
14830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14831 (eval "$ac_try") 2>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; } &&
14835 { ac_try='test -s conftest.$ac_objext'
14836 { (case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841 (eval "$ac_try") 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 ac_header_compiler=yes
14847 echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14850 ac_header_compiler=no
14853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14855 echo "${ECHO_T}$ac_header_compiler" >&6; }
14857 # Is the header present?
14858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14860 cat >conftest.$ac_ext <<_ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 #include <$ac_header>
14868 if { (ac_try="$ac_cpp conftest.$ac_ext"
14869 case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14876 grep -v '^ *+' conftest.er1 >conftest.err
14878 cat conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } >/dev/null; then
14881 if test -s conftest.err; then
14882 ac_cpp_err=$ac_c_preproc_warn_flag
14883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14890 if test -z "$ac_cpp_err"; then
14891 ac_header_preproc=yes
14893 echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.$ac_ext >&5
14896 ac_header_preproc=no
14899 rm -f conftest.err conftest.$ac_ext
14900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14901 echo "${ECHO_T}$ac_header_preproc" >&6; }
14903 # So? What about this header?
14904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14910 ac_header_preproc=yes
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14926 ## ------------------------------------ ##
14927 ## Report this to http://llvm.org/bugs/ ##
14928 ## ------------------------------------ ##
14930 ) | sed "s/^/$as_me: WARNING: /" >&2
14933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 eval "$as_ac_Header=\$ac_header_preproc"
14940 ac_res=`eval echo '${'$as_ac_Header'}'`
14941 { echo "$as_me:$LINENO: result: $ac_res" >&5
14942 echo "${ECHO_T}$ac_res" >&6; }
14945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14946 cat >>confdefs.h <<_ACEOF
14947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14959 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 ac_res=`eval echo '${'$as_ac_Header'}'`
14969 { echo "$as_me:$LINENO: result: $ac_res" >&5
14970 echo "${ECHO_T}$ac_res" >&6; }
14972 # Is the header compilable?
14973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14975 cat >conftest.$ac_ext <<_ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 $ac_includes_default
14982 #include <$ac_header>
14984 rm -f conftest.$ac_objext
14985 if { (ac_try="$ac_compile"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_compile") 2>conftest.er1
14993 grep -v '^ *+' conftest.er1 >conftest.err
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14999 { (case "(($ac_try" in
15000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001 *) ac_try_echo=$ac_try;;
15003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004 (eval "$ac_try") 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; } &&
15008 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; }; then
15018 ac_header_compiler=yes
15020 echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15023 ac_header_compiler=no
15026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15028 echo "${ECHO_T}$ac_header_compiler" >&6; }
15030 # Is the header present?
15031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15033 cat >conftest.$ac_ext <<_ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15039 #include <$ac_header>
15041 if { (ac_try="$ac_cpp conftest.$ac_ext"
15042 case "(($ac_try" in
15043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15044 *) ac_try_echo=$ac_try;;
15046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15049 grep -v '^ *+' conftest.er1 >conftest.err
15051 cat conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } >/dev/null; then
15054 if test -s conftest.err; then
15055 ac_cpp_err=$ac_c_preproc_warn_flag
15056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15063 if test -z "$ac_cpp_err"; then
15064 ac_header_preproc=yes
15066 echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15069 ac_header_preproc=no
15072 rm -f conftest.err conftest.$ac_ext
15073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15074 echo "${ECHO_T}$ac_header_preproc" >&6; }
15076 # So? What about this header?
15077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15083 ac_header_preproc=yes
15086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15099 ## ------------------------------------ ##
15100 ## Report this to http://llvm.org/bugs/ ##
15101 ## ------------------------------------ ##
15103 ) | sed "s/^/$as_me: WARNING: /" >&2
15106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15111 eval "$as_ac_Header=\$ac_header_preproc"
15113 ac_res=`eval echo '${'$as_ac_Header'}'`
15114 { echo "$as_me:$LINENO: result: $ac_res" >&5
15115 echo "${ECHO_T}$ac_res" >&6; }
15118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15119 cat >>confdefs.h <<_ACEOF
15120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15131 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 ac_res=`eval echo '${'$as_ac_Header'}'`
15141 { echo "$as_me:$LINENO: result: $ac_res" >&5
15142 echo "${ECHO_T}$ac_res" >&6; }
15144 # Is the header compilable?
15145 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15147 cat >conftest.$ac_ext <<_ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h. */
15153 $ac_includes_default
15154 #include <$ac_header>
15156 rm -f conftest.$ac_objext
15157 if { (ac_try="$ac_compile"
15158 case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_compile") 2>conftest.er1
15165 grep -v '^ *+' conftest.er1 >conftest.err
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } &&
15170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15171 { (case "(($ac_try" in
15172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15176 (eval "$ac_try") 2>&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; } &&
15180 { ac_try='test -s conftest.$ac_objext'
15181 { (case "(($ac_try" in
15182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15183 *) ac_try_echo=$ac_try;;
15185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15186 (eval "$ac_try") 2>&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15190 ac_header_compiler=yes
15192 echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15195 ac_header_compiler=no
15198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15200 echo "${ECHO_T}$ac_header_compiler" >&6; }
15202 # Is the header present?
15203 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15205 cat >conftest.$ac_ext <<_ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15211 #include <$ac_header>
15213 if { (ac_try="$ac_cpp conftest.$ac_ext"
15214 case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15221 grep -v '^ *+' conftest.er1 >conftest.err
15223 cat conftest.err >&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } >/dev/null; then
15226 if test -s conftest.err; then
15227 ac_cpp_err=$ac_c_preproc_warn_flag
15228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15235 if test -z "$ac_cpp_err"; then
15236 ac_header_preproc=yes
15238 echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15241 ac_header_preproc=no
15244 rm -f conftest.err conftest.$ac_ext
15245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15246 echo "${ECHO_T}$ac_header_preproc" >&6; }
15248 # So? What about this header?
15249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15255 ac_header_preproc=yes
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15271 ## ------------------------------------ ##
15272 ## Report this to http://llvm.org/bugs/ ##
15273 ## ------------------------------------ ##
15275 ) | sed "s/^/$as_me: WARNING: /" >&2
15278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 eval "$as_ac_Header=\$ac_header_preproc"
15285 ac_res=`eval echo '${'$as_ac_Header'}'`
15286 { echo "$as_me:$LINENO: result: $ac_res" >&5
15287 echo "${ECHO_T}$ac_res" >&6; }
15290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15291 cat >>confdefs.h <<_ACEOF
15292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15300 for ac_header in valgrind/valgrind.h
15302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15304 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 ac_res=`eval echo '${'$as_ac_Header'}'`
15310 { echo "$as_me:$LINENO: result: $ac_res" >&5
15311 echo "${ECHO_T}$ac_res" >&6; }
15313 # Is the header compilable?
15314 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15316 cat >conftest.$ac_ext <<_ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15322 $ac_includes_default
15323 #include <$ac_header>
15325 rm -f conftest.$ac_objext
15326 if { (ac_try="$ac_compile"
15327 case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_compile") 2>conftest.er1
15334 grep -v '^ *+' conftest.er1 >conftest.err
15336 cat conftest.err >&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15340 { (case "(($ac_try" in
15341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342 *) ac_try_echo=$ac_try;;
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345 (eval "$ac_try") 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; } &&
15349 { ac_try='test -s conftest.$ac_objext'
15350 { (case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_try") 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
15359 ac_header_compiler=yes
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 ac_header_compiler=no
15367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15369 echo "${ECHO_T}$ac_header_compiler" >&6; }
15371 # Is the header present?
15372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15374 cat >conftest.$ac_ext <<_ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15380 #include <$ac_header>
15382 if { (ac_try="$ac_cpp conftest.$ac_ext"
15383 case "(($ac_try" in
15384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385 *) ac_try_echo=$ac_try;;
15387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15390 grep -v '^ *+' conftest.er1 >conftest.err
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } >/dev/null; then
15395 if test -s conftest.err; then
15396 ac_cpp_err=$ac_c_preproc_warn_flag
15397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15404 if test -z "$ac_cpp_err"; then
15405 ac_header_preproc=yes
15407 echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15410 ac_header_preproc=no
15413 rm -f conftest.err conftest.$ac_ext
15414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15415 echo "${ECHO_T}$ac_header_preproc" >&6; }
15417 # So? What about this header?
15418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15424 ac_header_preproc=yes
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15440 ## ------------------------------------ ##
15441 ## Report this to http://llvm.org/bugs/ ##
15442 ## ------------------------------------ ##
15444 ) | sed "s/^/$as_me: WARNING: /" >&2
15447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 eval "$as_ac_Header=\$ac_header_preproc"
15454 ac_res=`eval echo '${'$as_ac_Header'}'`
15455 { echo "$as_me:$LINENO: result: $ac_res" >&5
15456 echo "${ECHO_T}$ac_res" >&6; }
15459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15460 cat >>confdefs.h <<_ACEOF
15461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15469 for ac_header in fenv.h
15471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476 echo $ECHO_N "(cached) $ECHO_C" >&6
15478 ac_res=`eval echo '${'$as_ac_Header'}'`
15479 { echo "$as_me:$LINENO: result: $ac_res" >&5
15480 echo "${ECHO_T}$ac_res" >&6; }
15482 # Is the header compilable?
15483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15485 cat >conftest.$ac_ext <<_ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15491 $ac_includes_default
15492 #include <$ac_header>
15494 rm -f conftest.$ac_objext
15495 if { (ac_try="$ac_compile"
15496 case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_compile") 2>conftest.er1
15503 grep -v '^ *+' conftest.er1 >conftest.err
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15509 { (case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_try") 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; } &&
15518 { ac_try='test -s conftest.$ac_objext'
15519 { (case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_try") 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_header_compiler=yes
15530 echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15533 ac_header_compiler=no
15536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15538 echo "${ECHO_T}$ac_header_compiler" >&6; }
15540 # Is the header present?
15541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15543 cat >conftest.$ac_ext <<_ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h. */
15549 #include <$ac_header>
15551 if { (ac_try="$ac_cpp conftest.$ac_ext"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15559 grep -v '^ *+' conftest.er1 >conftest.err
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } >/dev/null; then
15564 if test -s conftest.err; then
15565 ac_cpp_err=$ac_c_preproc_warn_flag
15566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15573 if test -z "$ac_cpp_err"; then
15574 ac_header_preproc=yes
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15579 ac_header_preproc=no
15582 rm -f conftest.err conftest.$ac_ext
15583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15584 echo "${ECHO_T}$ac_header_preproc" >&6; }
15586 # So? What about this header?
15587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15593 ac_header_preproc=yes
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15609 ## ------------------------------------ ##
15610 ## Report this to http://llvm.org/bugs/ ##
15611 ## ------------------------------------ ##
15613 ) | sed "s/^/$as_me: WARNING: /" >&2
15616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 eval "$as_ac_Header=\$ac_header_preproc"
15623 ac_res=`eval echo '${'$as_ac_Header'}'`
15624 { echo "$as_me:$LINENO: result: $ac_res" >&5
15625 echo "${ECHO_T}$ac_res" >&6; }
15628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15629 cat >>confdefs.h <<_ACEOF
15630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15637 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15639 for ac_header in pthread.h
15641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 ac_res=`eval echo '${'$as_ac_Header'}'`
15649 { echo "$as_me:$LINENO: result: $ac_res" >&5
15650 echo "${ECHO_T}$ac_res" >&6; }
15652 # Is the header compilable?
15653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15655 cat >conftest.$ac_ext <<_ACEOF
15658 cat confdefs.h >>conftest.$ac_ext
15659 cat >>conftest.$ac_ext <<_ACEOF
15660 /* end confdefs.h. */
15661 $ac_includes_default
15662 #include <$ac_header>
15664 rm -f conftest.$ac_objext
15665 if { (ac_try="$ac_compile"
15666 case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_compile") 2>conftest.er1
15673 grep -v '^ *+' conftest.er1 >conftest.err
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15679 { (case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_try") 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try='test -s conftest.$ac_objext'
15689 { (case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_try") 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_header_compiler=yes
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15703 ac_header_compiler=no
15706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15708 echo "${ECHO_T}$ac_header_compiler" >&6; }
15710 # Is the header present?
15711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15713 cat >conftest.$ac_ext <<_ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 #include <$ac_header>
15721 if { (ac_try="$ac_cpp conftest.$ac_ext"
15722 case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15729 grep -v '^ *+' conftest.er1 >conftest.err
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } >/dev/null; then
15734 if test -s conftest.err; then
15735 ac_cpp_err=$ac_c_preproc_warn_flag
15736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15743 if test -z "$ac_cpp_err"; then
15744 ac_header_preproc=yes
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ac_header_preproc=no
15752 rm -f conftest.err conftest.$ac_ext
15753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15754 echo "${ECHO_T}$ac_header_preproc" >&6; }
15756 # So? What about this header?
15757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15763 ac_header_preproc=yes
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15779 ## ------------------------------------ ##
15780 ## Report this to http://llvm.org/bugs/ ##
15781 ## ------------------------------------ ##
15783 ) | sed "s/^/$as_me: WARNING: /" >&2
15786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 eval "$as_ac_Header=\$ac_header_preproc"
15793 ac_res=`eval echo '${'$as_ac_Header'}'`
15794 { echo "$as_me:$LINENO: result: $ac_res" >&5
15795 echo "${ECHO_T}$ac_res" >&6; }
15798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15799 cat >>confdefs.h <<_ACEOF
15800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15816 if test "$llvm_cv_enable_libffi" = "yes" ; then
15819 for ac_header in ffi.h ffi/ffi.h
15821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 ac_res=`eval echo '${'$as_ac_Header'}'`
15829 { echo "$as_me:$LINENO: result: $ac_res" >&5
15830 echo "${ECHO_T}$ac_res" >&6; }
15832 # Is the header compilable?
15833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15835 cat >conftest.$ac_ext <<_ACEOF
15838 cat confdefs.h >>conftest.$ac_ext
15839 cat >>conftest.$ac_ext <<_ACEOF
15840 /* end confdefs.h. */
15841 $ac_includes_default
15842 #include <$ac_header>
15844 rm -f conftest.$ac_objext
15845 if { (ac_try="$ac_compile"
15846 case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_compile") 2>conftest.er1
15853 grep -v '^ *+' conftest.er1 >conftest.err
15855 cat conftest.err >&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } &&
15858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15859 { (case "(($ac_try" in
15860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861 *) ac_try_echo=$ac_try;;
15863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864 (eval "$ac_try") 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; } &&
15868 { ac_try='test -s conftest.$ac_objext'
15869 { (case "(($ac_try" in
15870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871 *) ac_try_echo=$ac_try;;
15873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874 (eval "$ac_try") 2>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; }; then
15878 ac_header_compiler=yes
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15883 ac_header_compiler=no
15886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15888 echo "${ECHO_T}$ac_header_compiler" >&6; }
15890 # Is the header present?
15891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15893 cat >conftest.$ac_ext <<_ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 #include <$ac_header>
15901 if { (ac_try="$ac_cpp conftest.$ac_ext"
15902 case "(($ac_try" in
15903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904 *) ac_try_echo=$ac_try;;
15906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15909 grep -v '^ *+' conftest.er1 >conftest.err
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } >/dev/null; then
15914 if test -s conftest.err; then
15915 ac_cpp_err=$ac_c_preproc_warn_flag
15916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15923 if test -z "$ac_cpp_err"; then
15924 ac_header_preproc=yes
15926 echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15929 ac_header_preproc=no
15932 rm -f conftest.err conftest.$ac_ext
15933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15934 echo "${ECHO_T}$ac_header_preproc" >&6; }
15936 # So? What about this header?
15937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15943 ac_header_preproc=yes
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15959 ## ------------------------------------ ##
15960 ## Report this to http://llvm.org/bugs/ ##
15961 ## ------------------------------------ ##
15963 ) | sed "s/^/$as_me: WARNING: /" >&2
15966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 eval "$as_ac_Header=\$ac_header_preproc"
15973 ac_res=`eval echo '${'$as_ac_Header'}'`
15974 { echo "$as_me:$LINENO: result: $ac_res" >&5
15975 echo "${ECHO_T}$ac_res" >&6; }
15978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15979 cat >>confdefs.h <<_ACEOF
15980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15990 for ac_header in CrashReporterClient.h
15992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15997 echo $ECHO_N "(cached) $ECHO_C" >&6
15999 ac_res=`eval echo '${'$as_ac_Header'}'`
16000 { echo "$as_me:$LINENO: result: $ac_res" >&5
16001 echo "${ECHO_T}$ac_res" >&6; }
16003 # Is the header compilable?
16004 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16006 cat >conftest.$ac_ext <<_ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16012 $ac_includes_default
16013 #include <$ac_header>
16015 rm -f conftest.$ac_objext
16016 if { (ac_try="$ac_compile"
16017 case "(($ac_try" in
16018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019 *) ac_try_echo=$ac_try;;
16021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16022 (eval "$ac_compile") 2>conftest.er1
16024 grep -v '^ *+' conftest.er1 >conftest.err
16026 cat conftest.err >&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
16029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16030 { (case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035 (eval "$ac_try") 2>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; } &&
16039 { ac_try='test -s conftest.$ac_objext'
16040 { (case "(($ac_try" in
16041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16042 *) ac_try_echo=$ac_try;;
16044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16045 (eval "$ac_try") 2>&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; }; then
16049 ac_header_compiler=yes
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16054 ac_header_compiler=no
16057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16059 echo "${ECHO_T}$ac_header_compiler" >&6; }
16061 # Is the header present?
16062 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16064 cat >conftest.$ac_ext <<_ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 #include <$ac_header>
16072 if { (ac_try="$ac_cpp conftest.$ac_ext"
16073 case "(($ac_try" in
16074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16080 grep -v '^ *+' conftest.er1 >conftest.err
16082 cat conftest.err >&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } >/dev/null; then
16085 if test -s conftest.err; then
16086 ac_cpp_err=$ac_c_preproc_warn_flag
16087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16094 if test -z "$ac_cpp_err"; then
16095 ac_header_preproc=yes
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16100 ac_header_preproc=no
16103 rm -f conftest.err conftest.$ac_ext
16104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16105 echo "${ECHO_T}$ac_header_preproc" >&6; }
16107 # So? What about this header?
16108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16114 ac_header_preproc=yes
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16130 ## ------------------------------------ ##
16131 ## Report this to http://llvm.org/bugs/ ##
16132 ## ------------------------------------ ##
16134 ) | sed "s/^/$as_me: WARNING: /" >&2
16137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16142 eval "$as_ac_Header=\$ac_header_preproc"
16144 ac_res=`eval echo '${'$as_ac_Header'}'`
16145 { echo "$as_me:$LINENO: result: $ac_res" >&5
16146 echo "${ECHO_T}$ac_res" >&6; }
16149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16150 cat >>confdefs.h <<_ACEOF
16151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16159 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16160 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16161 cat >conftest.$ac_ext <<_ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h. */
16167 extern const char *__crashreporter_info__;
16169 __crashreporter_info__ = "test";
16174 rm -f conftest.$ac_objext conftest$ac_exeext
16175 if { (ac_try="$ac_link"
16176 case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_link") 2>conftest.er1
16183 grep -v '^ *+' conftest.er1 >conftest.err
16185 cat conftest.err >&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } &&
16188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16189 { (case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194 (eval "$ac_try") 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; } &&
16198 { ac_try='test -s conftest$ac_exeext'
16199 { (case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_try") 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16208 { echo "$as_me:$LINENO: result: yes" >&5
16209 echo "${ECHO_T}yes" >&6; }
16211 cat >>confdefs.h <<\_ACEOF
16212 #define HAVE_CRASHREPORTER_INFO 1
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 { echo "$as_me:$LINENO: result: no" >&5
16220 echo "${ECHO_T}no" >&6; }
16222 cat >>confdefs.h <<\_ACEOF
16223 #define HAVE_CRASHREPORTER_INFO 0
16228 rm -f core conftest.err conftest.$ac_objext \
16229 conftest$ac_exeext conftest.$ac_ext
16234 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16235 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16236 if test "${ac_cv_huge_val_sanity+set}" = set; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 ac_cpp='$CXXCPP $CPPFLAGS'
16242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16246 ac_save_CXXFLAGS=$CXXFLAGS
16247 CXXFLAGS="$CXXFLAGS -pedantic"
16248 if test "$cross_compiling" = yes; then
16249 ac_cv_huge_val_sanity=yes
16251 cat >conftest.$ac_ext <<_ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16261 double x = HUGE_VAL; return x != x;
16266 rm -f conftest$ac_exeext
16267 if { (ac_try="$ac_link"
16268 case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_link") 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16277 { (case "(($ac_try" in
16278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279 *) ac_try_echo=$ac_try;;
16281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282 (eval "$ac_try") 2>&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16286 ac_cv_huge_val_sanity=yes
16288 echo "$as_me: program exited with status $ac_status" >&5
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 ( exit $ac_status )
16293 ac_cv_huge_val_sanity=no
16295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16299 CXXFLAGS=$ac_save_CXXFLAGS
16301 ac_cpp='$CPP $CPPFLAGS'
16302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16308 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16309 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16310 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16313 { echo "$as_me:$LINENO: checking for pid_t" >&5
16314 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16315 if test "${ac_cv_type_pid_t+set}" = set; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 cat >conftest.$ac_ext <<_ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16324 $ac_includes_default
16325 typedef pid_t ac__type_new_;
16329 if ((ac__type_new_ *) 0)
16331 if (sizeof (ac__type_new_))
16337 rm -f conftest.$ac_objext
16338 if { (ac_try="$ac_compile"
16339 case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_compile") 2>conftest.er1
16346 grep -v '^ *+' conftest.er1 >conftest.err
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
16351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16352 { (case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_try") 2>&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; } &&
16361 { ac_try='test -s conftest.$ac_objext'
16362 { (case "(($ac_try" in
16363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364 *) ac_try_echo=$ac_try;;
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367 (eval "$ac_try") 2>&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; }; then
16371 ac_cv_type_pid_t=yes
16373 echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16376 ac_cv_type_pid_t=no
16379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16382 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16383 if test $ac_cv_type_pid_t = yes; then
16387 cat >>confdefs.h <<_ACEOF
16393 { echo "$as_me:$LINENO: checking for size_t" >&5
16394 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16395 if test "${ac_cv_type_size_t+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
16398 cat >conftest.$ac_ext <<_ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16404 $ac_includes_default
16405 typedef size_t ac__type_new_;
16409 if ((ac__type_new_ *) 0)
16411 if (sizeof (ac__type_new_))
16417 rm -f conftest.$ac_objext
16418 if { (ac_try="$ac_compile"
16419 case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_compile") 2>conftest.er1
16426 grep -v '^ *+' conftest.er1 >conftest.err
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } &&
16431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16432 { (case "(($ac_try" in
16433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434 *) ac_try_echo=$ac_try;;
16436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16437 (eval "$ac_try") 2>&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; } &&
16441 { ac_try='test -s conftest.$ac_objext'
16442 { (case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_try") 2>&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; }; then
16451 ac_cv_type_size_t=yes
16453 echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 ac_cv_type_size_t=no
16459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16461 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16462 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16463 if test $ac_cv_type_size_t = yes; then
16467 cat >>confdefs.h <<_ACEOF
16468 #define size_t unsigned int
16474 cat >>confdefs.h <<_ACEOF
16475 #define RETSIGTYPE void
16478 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16479 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16480 if test "${ac_cv_struct_tm+set}" = set; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 cat >conftest.$ac_ext <<_ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16489 #include <sys/types.h>
16495 struct tm *tp; tp->tm_sec;
16500 rm -f conftest.$ac_objext
16501 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16509 grep -v '^ *+' conftest.er1 >conftest.err
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } &&
16514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } &&
16524 { ac_try='test -s conftest.$ac_objext'
16525 { (case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_try") 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 ac_cv_struct_tm=time.h
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16539 ac_cv_struct_tm=sys/time.h
16542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16544 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16545 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16546 if test $ac_cv_struct_tm = sys/time.h; then
16548 cat >>confdefs.h <<\_ACEOF
16549 #define TM_IN_SYS_TIME 1
16554 { echo "$as_me:$LINENO: checking for int64_t" >&5
16555 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16556 if test "${ac_cv_type_int64_t+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16559 cat >conftest.$ac_ext <<_ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 $ac_includes_default
16566 typedef int64_t ac__type_new_;
16570 if ((ac__type_new_ *) 0)
16572 if (sizeof (ac__type_new_))
16578 rm -f conftest.$ac_objext
16579 if { (ac_try="$ac_compile"
16580 case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_compile") 2>conftest.er1
16587 grep -v '^ *+' conftest.er1 >conftest.err
16589 cat conftest.err >&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
16592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16602 { ac_try='test -s conftest.$ac_objext'
16603 { (case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_try") 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ac_cv_type_int64_t=yes
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617 ac_cv_type_int64_t=no
16620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16622 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16623 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16624 if test $ac_cv_type_int64_t = yes; then
16626 cat >>confdefs.h <<_ACEOF
16627 #define HAVE_INT64_T 1
16632 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16633 echo "$as_me: error: Type int64_t required but not found" >&2;}
16634 { (exit 1); exit 1; }; }
16637 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16638 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16639 if test "${ac_cv_type_uint64_t+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 cat >conftest.$ac_ext <<_ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h. */
16648 $ac_includes_default
16649 typedef uint64_t ac__type_new_;
16653 if ((ac__type_new_ *) 0)
16655 if (sizeof (ac__type_new_))
16661 rm -f conftest.$ac_objext
16662 if { (ac_try="$ac_compile"
16663 case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_compile") 2>conftest.er1
16670 grep -v '^ *+' conftest.er1 >conftest.err
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } &&
16675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try='test -s conftest.$ac_objext'
16686 { (case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_try") 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 ac_cv_type_uint64_t=yes
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 ac_cv_type_uint64_t=no
16703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16705 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16706 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16707 if test $ac_cv_type_uint64_t = yes; then
16709 cat >>confdefs.h <<_ACEOF
16710 #define HAVE_UINT64_T 1
16715 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16716 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16717 if test "${ac_cv_type_u_int64_t+set}" = set; then
16718 echo $ECHO_N "(cached) $ECHO_C" >&6
16720 cat >conftest.$ac_ext <<_ACEOF
16723 cat confdefs.h >>conftest.$ac_ext
16724 cat >>conftest.$ac_ext <<_ACEOF
16725 /* end confdefs.h. */
16726 $ac_includes_default
16727 typedef u_int64_t ac__type_new_;
16731 if ((ac__type_new_ *) 0)
16733 if (sizeof (ac__type_new_))
16739 rm -f conftest.$ac_objext
16740 if { (ac_try="$ac_compile"
16741 case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_compile") 2>conftest.er1
16748 grep -v '^ *+' conftest.er1 >conftest.err
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } &&
16753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16754 { (case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_try") 2>&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; } &&
16763 { ac_try='test -s conftest.$ac_objext'
16764 { (case "(($ac_try" in
16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_try") 2>&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; }; then
16773 ac_cv_type_u_int64_t=yes
16775 echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16778 ac_cv_type_u_int64_t=no
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16784 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16785 if test $ac_cv_type_u_int64_t = yes; then
16787 cat >>confdefs.h <<_ACEOF
16788 #define HAVE_U_INT64_T 1
16793 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16794 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16795 { (exit 1); exit 1; }; }
16809 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16817 cat >conftest.$ac_ext <<_ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16825 #define $ac_func innocuous_$ac_func
16827 /* System header to define __stub macros and hopefully few prototypes,
16828 which can conflict with char $ac_func (); below.
16829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16830 <limits.h> exists even on freestanding compilers. */
16833 # include <limits.h>
16835 # include <assert.h>
16840 /* Override any GCC internal prototype to avoid an error.
16841 Use char because int might match the return type of a GCC
16842 builtin and then its argument prototype would still apply. */
16847 /* The GNU C library defines this for functions which it implements
16848 to always fail with ENOSYS. Some functions are actually named
16849 something starting with __ and the normal name is an alias. */
16850 #if defined __stub_$ac_func || defined __stub___$ac_func
16857 return $ac_func ();
16862 rm -f conftest.$ac_objext conftest$ac_exeext
16863 if { (ac_try="$ac_link"
16864 case "(($ac_try" in
16865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866 *) ac_try_echo=$ac_try;;
16868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16869 (eval "$ac_link") 2>conftest.er1
16871 grep -v '^ *+' conftest.er1 >conftest.err
16873 cat conftest.err >&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16877 { (case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_try") 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; } &&
16886 { ac_try='test -s conftest$ac_exeext'
16887 { (case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_try") 2>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
16896 eval "$as_ac_var=yes"
16898 echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16901 eval "$as_ac_var=no"
16904 rm -f core conftest.err conftest.$ac_objext \
16905 conftest$ac_exeext conftest.$ac_ext
16907 ac_res=`eval echo '${'$as_ac_var'}'`
16908 { echo "$as_me:$LINENO: result: $ac_res" >&5
16909 echo "${ECHO_T}$ac_res" >&6; }
16910 if test `eval echo '${'$as_ac_var'}'` = yes; then
16911 cat >>confdefs.h <<_ACEOF
16912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16922 for ac_func in powf fmodf strtof round
16924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 cat >conftest.$ac_ext <<_ACEOF
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h. */
16936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16938 #define $ac_func innocuous_$ac_func
16940 /* System header to define __stub macros and hopefully few prototypes,
16941 which can conflict with char $ac_func (); below.
16942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16943 <limits.h> exists even on freestanding compilers. */
16946 # include <limits.h>
16948 # include <assert.h>
16953 /* Override any GCC internal prototype to avoid an error.
16954 Use char because int might match the return type of a GCC
16955 builtin and then its argument prototype would still apply. */
16960 /* The GNU C library defines this for functions which it implements
16961 to always fail with ENOSYS. Some functions are actually named
16962 something starting with __ and the normal name is an alias. */
16963 #if defined __stub_$ac_func || defined __stub___$ac_func
16970 return $ac_func ();
16975 rm -f conftest.$ac_objext conftest$ac_exeext
16976 if { (ac_try="$ac_link"
16977 case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_link") 2>conftest.er1
16984 grep -v '^ *+' conftest.er1 >conftest.err
16986 cat conftest.err >&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } &&
16989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16990 { (case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_try") 2>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try='test -s conftest$ac_exeext'
17000 { (case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_try") 2>&5
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 eval "$as_ac_var=yes"
17011 echo "$as_me: failed program was:" >&5
17012 sed 's/^/| /' conftest.$ac_ext >&5
17014 eval "$as_ac_var=no"
17017 rm -f core conftest.err conftest.$ac_objext \
17018 conftest$ac_exeext conftest.$ac_ext
17020 ac_res=`eval echo '${'$as_ac_var'}'`
17021 { echo "$as_me:$LINENO: result: $ac_res" >&5
17022 echo "${ECHO_T}$ac_res" >&6; }
17023 if test `eval echo '${'$as_ac_var'}'` = yes; then
17024 cat >>confdefs.h <<_ACEOF
17025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17036 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17042 echo $ECHO_N "(cached) $ECHO_C" >&6
17044 cat >conftest.$ac_ext <<_ACEOF
17047 cat confdefs.h >>conftest.$ac_ext
17048 cat >>conftest.$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17052 #define $ac_func innocuous_$ac_func
17054 /* System header to define __stub macros and hopefully few prototypes,
17055 which can conflict with char $ac_func (); below.
17056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17057 <limits.h> exists even on freestanding compilers. */
17060 # include <limits.h>
17062 # include <assert.h>
17067 /* Override any GCC internal prototype to avoid an error.
17068 Use char because int might match the return type of a GCC
17069 builtin and then its argument prototype would still apply. */
17074 /* The GNU C library defines this for functions which it implements
17075 to always fail with ENOSYS. Some functions are actually named
17076 something starting with __ and the normal name is an alias. */
17077 #if defined __stub_$ac_func || defined __stub___$ac_func
17084 return $ac_func ();
17089 rm -f conftest.$ac_objext conftest$ac_exeext
17090 if { (ac_try="$ac_link"
17091 case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_link") 2>conftest.er1
17098 grep -v '^ *+' conftest.er1 >conftest.err
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } &&
17103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17104 { (case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_try") 2>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; } &&
17113 { ac_try='test -s conftest$ac_exeext'
17114 { (case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_try") 2>&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
17123 eval "$as_ac_var=yes"
17125 echo "$as_me: failed program was:" >&5
17126 sed 's/^/| /' conftest.$ac_ext >&5
17128 eval "$as_ac_var=no"
17131 rm -f core conftest.err conftest.$ac_objext \
17132 conftest$ac_exeext conftest.$ac_ext
17134 ac_res=`eval echo '${'$as_ac_var'}'`
17135 { echo "$as_me:$LINENO: result: $ac_res" >&5
17136 echo "${ECHO_T}$ac_res" >&6; }
17137 if test `eval echo '${'$as_ac_var'}'` = yes; then
17138 cat >>confdefs.h <<_ACEOF
17139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17148 for ac_func in isatty mkdtemp mkstemp
17150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17156 cat >conftest.$ac_ext <<_ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17164 #define $ac_func innocuous_$ac_func
17166 /* System header to define __stub macros and hopefully few prototypes,
17167 which can conflict with char $ac_func (); below.
17168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17169 <limits.h> exists even on freestanding compilers. */
17172 # include <limits.h>
17174 # include <assert.h>
17179 /* Override any GCC internal prototype to avoid an error.
17180 Use char because int might match the return type of a GCC
17181 builtin and then its argument prototype would still apply. */
17186 /* The GNU C library defines this for functions which it implements
17187 to always fail with ENOSYS. Some functions are actually named
17188 something starting with __ and the normal name is an alias. */
17189 #if defined __stub_$ac_func || defined __stub___$ac_func
17196 return $ac_func ();
17201 rm -f conftest.$ac_objext conftest$ac_exeext
17202 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17210 grep -v '^ *+' conftest.er1 >conftest.err
17212 cat conftest.err >&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } &&
17215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17216 { (case "(($ac_try" in
17217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218 *) ac_try_echo=$ac_try;;
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221 (eval "$ac_try") 2>&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; } &&
17225 { ac_try='test -s conftest$ac_exeext'
17226 { (case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_try") 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; }; then
17235 eval "$as_ac_var=yes"
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17240 eval "$as_ac_var=no"
17243 rm -f core conftest.err conftest.$ac_objext \
17244 conftest$ac_exeext conftest.$ac_ext
17246 ac_res=`eval echo '${'$as_ac_var'}'`
17247 { echo "$as_me:$LINENO: result: $ac_res" >&5
17248 echo "${ECHO_T}$ac_res" >&6; }
17249 if test `eval echo '${'$as_ac_var'}'` = yes; then
17250 cat >>confdefs.h <<_ACEOF
17251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17264 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 cat >conftest.$ac_ext <<_ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17280 #define $ac_func innocuous_$ac_func
17282 /* System header to define __stub macros and hopefully few prototypes,
17283 which can conflict with char $ac_func (); below.
17284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17285 <limits.h> exists even on freestanding compilers. */
17288 # include <limits.h>
17290 # include <assert.h>
17295 /* Override any GCC internal prototype to avoid an error.
17296 Use char because int might match the return type of a GCC
17297 builtin and then its argument prototype would still apply. */
17302 /* The GNU C library defines this for functions which it implements
17303 to always fail with ENOSYS. Some functions are actually named
17304 something starting with __ and the normal name is an alias. */
17305 #if defined __stub_$ac_func || defined __stub___$ac_func
17312 return $ac_func ();
17317 rm -f conftest.$ac_objext conftest$ac_exeext
17318 if { (ac_try="$ac_link"
17319 case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_link") 2>conftest.er1
17326 grep -v '^ *+' conftest.er1 >conftest.err
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17332 { (case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_try") 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; } &&
17341 { ac_try='test -s conftest$ac_exeext'
17342 { (case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_try") 2>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; }; then
17351 eval "$as_ac_var=yes"
17353 echo "$as_me: failed program was:" >&5
17354 sed 's/^/| /' conftest.$ac_ext >&5
17356 eval "$as_ac_var=no"
17359 rm -f core conftest.err conftest.$ac_objext \
17360 conftest$ac_exeext conftest.$ac_ext
17362 ac_res=`eval echo '${'$as_ac_var'}'`
17363 { echo "$as_me:$LINENO: result: $ac_res" >&5
17364 echo "${ECHO_T}$ac_res" >&6; }
17365 if test `eval echo '${'$as_ac_var'}'` = yes; then
17366 cat >>confdefs.h <<_ACEOF
17367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17377 for ac_func in strerror strerror_r setenv arc4random
17379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 cat >conftest.$ac_ext <<_ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17393 #define $ac_func innocuous_$ac_func
17395 /* System header to define __stub macros and hopefully few prototypes,
17396 which can conflict with char $ac_func (); below.
17397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17398 <limits.h> exists even on freestanding compilers. */
17401 # include <limits.h>
17403 # include <assert.h>
17408 /* Override any GCC internal prototype to avoid an error.
17409 Use char because int might match the return type of a GCC
17410 builtin and then its argument prototype would still apply. */
17415 /* The GNU C library defines this for functions which it implements
17416 to always fail with ENOSYS. Some functions are actually named
17417 something starting with __ and the normal name is an alias. */
17418 #if defined __stub_$ac_func || defined __stub___$ac_func
17425 return $ac_func ();
17430 rm -f conftest.$ac_objext conftest$ac_exeext
17431 if { (ac_try="$ac_link"
17432 case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_link") 2>conftest.er1
17439 grep -v '^ *+' conftest.er1 >conftest.err
17441 cat conftest.err >&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
17444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17445 { (case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_try") 2>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; } &&
17454 { ac_try='test -s conftest$ac_exeext'
17455 { (case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_try") 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 eval "$as_ac_var=yes"
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 eval "$as_ac_var=no"
17472 rm -f core conftest.err conftest.$ac_objext \
17473 conftest$ac_exeext conftest.$ac_ext
17475 ac_res=`eval echo '${'$as_ac_var'}'`
17476 { echo "$as_me:$LINENO: result: $ac_res" >&5
17477 echo "${ECHO_T}$ac_res" >&6; }
17478 if test `eval echo '${'$as_ac_var'}'` = yes; then
17479 cat >>confdefs.h <<_ACEOF
17480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17490 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 cat >conftest.$ac_ext <<_ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17506 #define $ac_func innocuous_$ac_func
17508 /* System header to define __stub macros and hopefully few prototypes,
17509 which can conflict with char $ac_func (); below.
17510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17511 <limits.h> exists even on freestanding compilers. */
17514 # include <limits.h>
17516 # include <assert.h>
17521 /* Override any GCC internal prototype to avoid an error.
17522 Use char because int might match the return type of a GCC
17523 builtin and then its argument prototype would still apply. */
17528 /* The GNU C library defines this for functions which it implements
17529 to always fail with ENOSYS. Some functions are actually named
17530 something starting with __ and the normal name is an alias. */
17531 #if defined __stub_$ac_func || defined __stub___$ac_func
17538 return $ac_func ();
17543 rm -f conftest.$ac_objext conftest$ac_exeext
17544 if { (ac_try="$ac_link"
17545 case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_link") 2>conftest.er1
17552 grep -v '^ *+' conftest.er1 >conftest.err
17554 cat conftest.err >&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } &&
17557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17558 { (case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_try") 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; } &&
17567 { ac_try='test -s conftest$ac_exeext'
17568 { (case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_try") 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 eval "$as_ac_var=yes"
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17582 eval "$as_ac_var=no"
17585 rm -f core conftest.err conftest.$ac_objext \
17586 conftest$ac_exeext conftest.$ac_ext
17588 ac_res=`eval echo '${'$as_ac_var'}'`
17589 { echo "$as_me:$LINENO: result: $ac_res" >&5
17590 echo "${ECHO_T}$ac_res" >&6; }
17591 if test `eval echo '${'$as_ac_var'}'` = yes; then
17592 cat >>confdefs.h <<_ACEOF
17593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17604 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 cat >conftest.$ac_ext <<_ACEOF
17615 cat confdefs.h >>conftest.$ac_ext
17616 cat >>conftest.$ac_ext <<_ACEOF
17617 /* end confdefs.h. */
17618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17620 #define $ac_func innocuous_$ac_func
17622 /* System header to define __stub macros and hopefully few prototypes,
17623 which can conflict with char $ac_func (); below.
17624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17625 <limits.h> exists even on freestanding compilers. */
17628 # include <limits.h>
17630 # include <assert.h>
17635 /* Override any GCC internal prototype to avoid an error.
17636 Use char because int might match the return type of a GCC
17637 builtin and then its argument prototype would still apply. */
17642 /* The GNU C library defines this for functions which it implements
17643 to always fail with ENOSYS. Some functions are actually named
17644 something starting with __ and the normal name is an alias. */
17645 #if defined __stub_$ac_func || defined __stub___$ac_func
17652 return $ac_func ();
17657 rm -f conftest.$ac_objext conftest$ac_exeext
17658 if { (ac_try="$ac_link"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_link") 2>conftest.er1
17666 grep -v '^ *+' conftest.er1 >conftest.err
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
17671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_try") 2>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; } &&
17681 { ac_try='test -s conftest$ac_exeext'
17682 { (case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_try") 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; }; then
17691 eval "$as_ac_var=yes"
17693 echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17696 eval "$as_ac_var=no"
17699 rm -f core conftest.err conftest.$ac_objext \
17700 conftest$ac_exeext conftest.$ac_ext
17702 ac_res=`eval echo '${'$as_ac_var'}'`
17703 { echo "$as_me:$LINENO: result: $ac_res" >&5
17704 echo "${ECHO_T}$ac_res" >&6; }
17705 if test `eval echo '${'$as_ac_var'}'` = yes; then
17706 cat >>confdefs.h <<_ACEOF
17707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17713 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17714 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17715 if test "${llvm_cv_c_printf_a+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 ac_cpp='$CPP $CPPFLAGS'
17720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17724 if test "$cross_compiling" = yes; then
17725 llvmac_cv_c_printf_a=no
17727 cat >conftest.$ac_ext <<_ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17736 #include <stdlib.h>
17742 volatile double A, B;
17746 sprintf(Buffer, "%a", A);
17750 if (A != 0x1.999999999999ap-4)
17757 rm -f conftest$ac_exeext
17758 if { (ac_try="$ac_link"
17759 case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_link") 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17768 { (case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_try") 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 llvm_cv_c_printf_a=yes
17779 echo "$as_me: program exited with status $ac_status" >&5
17780 echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17783 ( exit $ac_status )
17784 llvmac_cv_c_printf_a=no
17786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17791 ac_cpp='$CPP $CPPFLAGS'
17792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17797 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17798 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17799 if test "$llvm_cv_c_printf_a" = "yes"; then
17801 cat >>confdefs.h <<\_ACEOF
17802 #define HAVE_PRINTF_A 1
17808 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17809 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17810 if test "${ac_cv_func_rand48+set}" = set; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17814 ac_cpp='$CXXCPP $CPPFLAGS'
17815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17819 cat >conftest.$ac_ext <<_ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17825 #include <stdlib.h>
17829 srand48(0);lrand48();drand48();
17834 rm -f conftest.$ac_objext
17835 if { (ac_try="$ac_compile"
17836 case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_compile") 2>conftest.er1
17843 grep -v '^ *+' conftest.er1 >conftest.err
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17849 { (case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_try") 2>&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try='test -s conftest.$ac_objext'
17859 { (case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_try") 2>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_cv_func_rand48=yes
17870 echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17873 ac_cv_func_rand48=no
17876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 ac_cpp='$CPP $CPPFLAGS'
17879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17884 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17885 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17887 if test "$ac_cv_func_rand48" = "yes" ; then
17889 cat >>confdefs.h <<\_ACEOF
17890 #define HAVE_RAND48 1
17896 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17897 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17898 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17901 cat >conftest.$ac_ext <<_ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907 $ac_includes_default
17912 char *p = (char *) strerror_s;
17920 rm -f conftest.$ac_objext
17921 if { (ac_try="$ac_compile"
17922 case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_compile") 2>conftest.er1
17929 grep -v '^ *+' conftest.er1 >conftest.err
17931 cat conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } &&
17934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17935 { (case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_try") 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest.$ac_objext'
17945 { (case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950 (eval "$ac_try") 2>&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 ac_cv_have_decl_strerror_s=yes
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17959 ac_cv_have_decl_strerror_s=no
17962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17964 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17965 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17966 if test $ac_cv_have_decl_strerror_s = yes; then
17968 cat >>confdefs.h <<_ACEOF
17969 #define HAVE_DECL_STRERROR_S 1
17974 cat >>confdefs.h <<_ACEOF
17975 #define HAVE_DECL_STRERROR_S 0
17983 if test "$llvm_cv_os_type" = "MingW" ; then
17984 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17985 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17986 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17989 ac_check_lib_save_LIBS=$LIBS
17991 cat >conftest.$ac_ext <<_ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17998 /* Override any GCC internal prototype to avoid an error.
17999 Use char because int might match the return type of a GCC
18000 builtin and then its argument prototype would still apply. */
18013 rm -f conftest.$ac_objext conftest$ac_exeext
18014 if { (ac_try="$ac_link"
18015 case "(($ac_try" in
18016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18017 *) ac_try_echo=$ac_try;;
18019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18020 (eval "$ac_link") 2>conftest.er1
18022 grep -v '^ *+' conftest.er1 >conftest.err
18024 cat conftest.err >&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
18027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18028 { (case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_try") 2>&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; } &&
18037 { ac_try='test -s conftest$ac_exeext'
18038 { (case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_try") 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; }; then
18047 ac_cv_lib_gcc__alloca=yes
18049 echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.$ac_ext >&5
18052 ac_cv_lib_gcc__alloca=no
18055 rm -f core conftest.err conftest.$ac_objext \
18056 conftest$ac_exeext conftest.$ac_ext
18057 LIBS=$ac_check_lib_save_LIBS
18059 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18060 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18061 if test $ac_cv_lib_gcc__alloca = yes; then
18063 cat >>confdefs.h <<\_ACEOF
18064 #define HAVE__ALLOCA 1
18069 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18070 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18071 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18074 ac_check_lib_save_LIBS=$LIBS
18076 cat >conftest.$ac_ext <<_ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18083 /* Override any GCC internal prototype to avoid an error.
18084 Use char because int might match the return type of a GCC
18085 builtin and then its argument prototype would still apply. */
18093 return __alloca ();
18098 rm -f conftest.$ac_objext conftest$ac_exeext
18099 if { (ac_try="$ac_link"
18100 case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_link") 2>conftest.er1
18107 grep -v '^ *+' conftest.er1 >conftest.err
18109 cat conftest.err >&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } &&
18112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18113 { (case "(($ac_try" in
18114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115 *) ac_try_echo=$ac_try;;
18117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118 (eval "$ac_try") 2>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; } &&
18122 { ac_try='test -s conftest$ac_exeext'
18123 { (case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_try") 2>&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; }; then
18132 ac_cv_lib_gcc___alloca=yes
18134 echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18137 ac_cv_lib_gcc___alloca=no
18140 rm -f core conftest.err conftest.$ac_objext \
18141 conftest$ac_exeext conftest.$ac_ext
18142 LIBS=$ac_check_lib_save_LIBS
18144 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18145 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18146 if test $ac_cv_lib_gcc___alloca = yes; then
18148 cat >>confdefs.h <<\_ACEOF
18149 #define HAVE___ALLOCA 1
18154 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18155 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18156 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18157 echo $ECHO_N "(cached) $ECHO_C" >&6
18159 ac_check_lib_save_LIBS=$LIBS
18161 cat >conftest.$ac_ext <<_ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18168 /* Override any GCC internal prototype to avoid an error.
18169 Use char because int might match the return type of a GCC
18170 builtin and then its argument prototype would still apply. */
18178 return __chkstk ();
18183 rm -f conftest.$ac_objext conftest$ac_exeext
18184 if { (ac_try="$ac_link"
18185 case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_link") 2>conftest.er1
18192 grep -v '^ *+' conftest.er1 >conftest.err
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18207 { ac_try='test -s conftest$ac_exeext'
18208 { (case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_try") 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18217 ac_cv_lib_gcc___chkstk=yes
18219 echo "$as_me: failed program was:" >&5
18220 sed 's/^/| /' conftest.$ac_ext >&5
18222 ac_cv_lib_gcc___chkstk=no
18225 rm -f core conftest.err conftest.$ac_objext \
18226 conftest$ac_exeext conftest.$ac_ext
18227 LIBS=$ac_check_lib_save_LIBS
18229 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18230 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18231 if test $ac_cv_lib_gcc___chkstk = yes; then
18233 cat >>confdefs.h <<\_ACEOF
18234 #define HAVE___CHKSTK 1
18239 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18240 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18241 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18244 ac_check_lib_save_LIBS=$LIBS
18246 cat >conftest.$ac_ext <<_ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h. */
18253 /* Override any GCC internal prototype to avoid an error.
18254 Use char because int might match the return type of a GCC
18255 builtin and then its argument prototype would still apply. */
18263 return ___chkstk ();
18268 rm -f conftest.$ac_objext conftest$ac_exeext
18269 if { (ac_try="$ac_link"
18270 case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_link") 2>conftest.er1
18277 grep -v '^ *+' conftest.er1 >conftest.err
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
18282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18283 { (case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_try") 2>&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; } &&
18292 { ac_try='test -s conftest$ac_exeext'
18293 { (case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298 (eval "$ac_try") 2>&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; }; then
18302 ac_cv_lib_gcc____chkstk=yes
18304 echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18307 ac_cv_lib_gcc____chkstk=no
18310 rm -f core conftest.err conftest.$ac_objext \
18311 conftest$ac_exeext conftest.$ac_ext
18312 LIBS=$ac_check_lib_save_LIBS
18314 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18315 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18316 if test $ac_cv_lib_gcc____chkstk = yes; then
18318 cat >>confdefs.h <<\_ACEOF
18319 #define HAVE____CHKSTK 1
18325 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18326 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18327 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 ac_check_lib_save_LIBS=$LIBS
18332 cat >conftest.$ac_ext <<_ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18339 /* Override any GCC internal prototype to avoid an error.
18340 Use char because int might match the return type of a GCC
18341 builtin and then its argument prototype would still apply. */
18349 return __ashldi3 ();
18354 rm -f conftest.$ac_objext conftest$ac_exeext
18355 if { (ac_try="$ac_link"
18356 case "(($ac_try" in
18357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18358 *) ac_try_echo=$ac_try;;
18360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18361 (eval "$ac_link") 2>conftest.er1
18363 grep -v '^ *+' conftest.er1 >conftest.err
18365 cat conftest.err >&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } &&
18368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18369 { (case "(($ac_try" in
18370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18371 *) ac_try_echo=$ac_try;;
18373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18374 (eval "$ac_try") 2>&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; } &&
18378 { ac_try='test -s conftest$ac_exeext'
18379 { (case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384 (eval "$ac_try") 2>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 ac_cv_lib_gcc___ashldi3=yes
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 ac_cv_lib_gcc___ashldi3=no
18396 rm -f core conftest.err conftest.$ac_objext \
18397 conftest$ac_exeext conftest.$ac_ext
18398 LIBS=$ac_check_lib_save_LIBS
18400 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18401 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18402 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18404 cat >>confdefs.h <<\_ACEOF
18405 #define HAVE___ASHLDI3 1
18410 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18411 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18412 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 ac_check_lib_save_LIBS=$LIBS
18417 cat >conftest.$ac_ext <<_ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18424 /* Override any GCC internal prototype to avoid an error.
18425 Use char because int might match the return type of a GCC
18426 builtin and then its argument prototype would still apply. */
18434 return __ashrdi3 ();
18439 rm -f conftest.$ac_objext conftest$ac_exeext
18440 if { (ac_try="$ac_link"
18441 case "(($ac_try" in
18442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443 *) ac_try_echo=$ac_try;;
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_link") 2>conftest.er1
18448 grep -v '^ *+' conftest.er1 >conftest.err
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18454 { (case "(($ac_try" in
18455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456 *) ac_try_echo=$ac_try;;
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459 (eval "$ac_try") 2>&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; } &&
18463 { ac_try='test -s conftest$ac_exeext'
18464 { (case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_try") 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 ac_cv_lib_gcc___ashrdi3=yes
18475 echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18478 ac_cv_lib_gcc___ashrdi3=no
18481 rm -f core conftest.err conftest.$ac_objext \
18482 conftest$ac_exeext conftest.$ac_ext
18483 LIBS=$ac_check_lib_save_LIBS
18485 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18486 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18487 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18489 cat >>confdefs.h <<\_ACEOF
18490 #define HAVE___ASHRDI3 1
18495 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18496 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18497 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 ac_check_lib_save_LIBS=$LIBS
18502 cat >conftest.$ac_ext <<_ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18509 /* Override any GCC internal prototype to avoid an error.
18510 Use char because int might match the return type of a GCC
18511 builtin and then its argument prototype would still apply. */
18519 return __divdi3 ();
18524 rm -f conftest.$ac_objext conftest$ac_exeext
18525 if { (ac_try="$ac_link"
18526 case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_link") 2>conftest.er1
18533 grep -v '^ *+' conftest.er1 >conftest.err
18535 cat conftest.err >&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } &&
18538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18539 { (case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_try") 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; } &&
18548 { ac_try='test -s conftest$ac_exeext'
18549 { (case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_try") 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
18558 ac_cv_lib_gcc___divdi3=yes
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 ac_cv_lib_gcc___divdi3=no
18566 rm -f core conftest.err conftest.$ac_objext \
18567 conftest$ac_exeext conftest.$ac_ext
18568 LIBS=$ac_check_lib_save_LIBS
18570 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18571 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18572 if test $ac_cv_lib_gcc___divdi3 = yes; then
18574 cat >>confdefs.h <<\_ACEOF
18575 #define HAVE___DIVDI3 1
18580 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18581 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18582 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18585 ac_check_lib_save_LIBS=$LIBS
18587 cat >conftest.$ac_ext <<_ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18594 /* Override any GCC internal prototype to avoid an error.
18595 Use char because int might match the return type of a GCC
18596 builtin and then its argument prototype would still apply. */
18604 return __fixdfdi ();
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (ac_try="$ac_link"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_link") 2>conftest.er1
18618 grep -v '^ *+' conftest.er1 >conftest.err
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } &&
18623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18624 { (case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_try") 2>&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest$ac_exeext'
18634 { (case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_try") 2>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 ac_cv_lib_gcc___fixdfdi=yes
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 ac_cv_lib_gcc___fixdfdi=no
18651 rm -f core conftest.err conftest.$ac_objext \
18652 conftest$ac_exeext conftest.$ac_ext
18653 LIBS=$ac_check_lib_save_LIBS
18655 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18656 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18657 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18659 cat >>confdefs.h <<\_ACEOF
18660 #define HAVE___FIXDFDI 1
18665 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18666 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18667 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18670 ac_check_lib_save_LIBS=$LIBS
18672 cat >conftest.$ac_ext <<_ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18679 /* Override any GCC internal prototype to avoid an error.
18680 Use char because int might match the return type of a GCC
18681 builtin and then its argument prototype would still apply. */
18689 return __fixsfdi ();
18694 rm -f conftest.$ac_objext conftest$ac_exeext
18695 if { (ac_try="$ac_link"
18696 case "(($ac_try" in
18697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701 (eval "$ac_link") 2>conftest.er1
18703 grep -v '^ *+' conftest.er1 >conftest.err
18705 cat conftest.err >&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } &&
18708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18709 { (case "(($ac_try" in
18710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711 *) ac_try_echo=$ac_try;;
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714 (eval "$ac_try") 2>&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; } &&
18718 { ac_try='test -s conftest$ac_exeext'
18719 { (case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_try") 2>&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; }; then
18728 ac_cv_lib_gcc___fixsfdi=yes
18730 echo "$as_me: failed program was:" >&5
18731 sed 's/^/| /' conftest.$ac_ext >&5
18733 ac_cv_lib_gcc___fixsfdi=no
18736 rm -f core conftest.err conftest.$ac_objext \
18737 conftest$ac_exeext conftest.$ac_ext
18738 LIBS=$ac_check_lib_save_LIBS
18740 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18741 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18742 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18744 cat >>confdefs.h <<\_ACEOF
18745 #define HAVE___FIXSFDI 1
18750 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18751 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18752 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18753 echo $ECHO_N "(cached) $ECHO_C" >&6
18755 ac_check_lib_save_LIBS=$LIBS
18757 cat >conftest.$ac_ext <<_ACEOF
18760 cat confdefs.h >>conftest.$ac_ext
18761 cat >>conftest.$ac_ext <<_ACEOF
18762 /* end confdefs.h. */
18764 /* Override any GCC internal prototype to avoid an error.
18765 Use char because int might match the return type of a GCC
18766 builtin and then its argument prototype would still apply. */
18770 char __floatdidf ();
18774 return __floatdidf ();
18779 rm -f conftest.$ac_objext conftest$ac_exeext
18780 if { (ac_try="$ac_link"
18781 case "(($ac_try" in
18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783 *) ac_try_echo=$ac_try;;
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786 (eval "$ac_link") 2>conftest.er1
18788 grep -v '^ *+' conftest.er1 >conftest.err
18790 cat conftest.err >&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } &&
18793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18794 { (case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_try") 2>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest$ac_exeext'
18804 { (case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_try") 2>&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 ac_cv_lib_gcc___floatdidf=yes
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 ac_cv_lib_gcc___floatdidf=no
18821 rm -f core conftest.err conftest.$ac_objext \
18822 conftest$ac_exeext conftest.$ac_ext
18823 LIBS=$ac_check_lib_save_LIBS
18825 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18826 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18827 if test $ac_cv_lib_gcc___floatdidf = yes; then
18829 cat >>confdefs.h <<\_ACEOF
18830 #define HAVE___FLOATDIDF 1
18835 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18836 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18837 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18840 ac_check_lib_save_LIBS=$LIBS
18842 cat >conftest.$ac_ext <<_ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h. */
18849 /* Override any GCC internal prototype to avoid an error.
18850 Use char because int might match the return type of a GCC
18851 builtin and then its argument prototype would still apply. */
18859 return __lshrdi3 ();
18864 rm -f conftest.$ac_objext conftest$ac_exeext
18865 if { (ac_try="$ac_link"
18866 case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_link") 2>conftest.er1
18873 grep -v '^ *+' conftest.er1 >conftest.err
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
18878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18879 { (case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_try") 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest$ac_exeext'
18889 { (case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_try") 2>&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 ac_cv_lib_gcc___lshrdi3=yes
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 ac_cv_lib_gcc___lshrdi3=no
18906 rm -f core conftest.err conftest.$ac_objext \
18907 conftest$ac_exeext conftest.$ac_ext
18908 LIBS=$ac_check_lib_save_LIBS
18910 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18911 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18912 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18914 cat >>confdefs.h <<\_ACEOF
18915 #define HAVE___LSHRDI3 1
18920 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18921 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18922 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 ac_check_lib_save_LIBS=$LIBS
18927 cat >conftest.$ac_ext <<_ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h. */
18934 /* Override any GCC internal prototype to avoid an error.
18935 Use char because int might match the return type of a GCC
18936 builtin and then its argument prototype would still apply. */
18944 return __moddi3 ();
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_link") 2>conftest.er1
18958 grep -v '^ *+' conftest.er1 >conftest.err
18960 cat conftest.err >&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } &&
18963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18964 { (case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_try") 2>&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; } &&
18973 { ac_try='test -s conftest$ac_exeext'
18974 { (case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_try") 2>&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 ac_cv_lib_gcc___moddi3=yes
18985 echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18988 ac_cv_lib_gcc___moddi3=no
18991 rm -f core conftest.err conftest.$ac_objext \
18992 conftest$ac_exeext conftest.$ac_ext
18993 LIBS=$ac_check_lib_save_LIBS
18995 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18996 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18997 if test $ac_cv_lib_gcc___moddi3 = yes; then
18999 cat >>confdefs.h <<\_ACEOF
19000 #define HAVE___MODDI3 1
19005 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19006 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19007 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19010 ac_check_lib_save_LIBS=$LIBS
19012 cat >conftest.$ac_ext <<_ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h. */
19019 /* Override any GCC internal prototype to avoid an error.
19020 Use char because int might match the return type of a GCC
19021 builtin and then its argument prototype would still apply. */
19029 return __udivdi3 ();
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (ac_try="$ac_link"
19036 case "(($ac_try" in
19037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038 *) ac_try_echo=$ac_try;;
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041 (eval "$ac_link") 2>conftest.er1
19043 grep -v '^ *+' conftest.er1 >conftest.err
19045 cat conftest.err >&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } &&
19048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19049 { (case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054 (eval "$ac_try") 2>&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try='test -s conftest$ac_exeext'
19059 { (case "(($ac_try" in
19060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061 *) ac_try_echo=$ac_try;;
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064 (eval "$ac_try") 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 ac_cv_lib_gcc___udivdi3=yes
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19073 ac_cv_lib_gcc___udivdi3=no
19076 rm -f core conftest.err conftest.$ac_objext \
19077 conftest$ac_exeext conftest.$ac_ext
19078 LIBS=$ac_check_lib_save_LIBS
19080 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19081 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19082 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19084 cat >>confdefs.h <<\_ACEOF
19085 #define HAVE___UDIVDI3 1
19090 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19091 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19092 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 ac_check_lib_save_LIBS=$LIBS
19097 cat >conftest.$ac_ext <<_ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h. */
19104 /* Override any GCC internal prototype to avoid an error.
19105 Use char because int might match the return type of a GCC
19106 builtin and then its argument prototype would still apply. */
19114 return __umoddi3 ();
19119 rm -f conftest.$ac_objext conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_link") 2>conftest.er1
19128 grep -v '^ *+' conftest.er1 >conftest.err
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
19133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19134 { (case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_try") 2>&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; } &&
19143 { ac_try='test -s conftest$ac_exeext'
19144 { (case "(($ac_try" in
19145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146 *) ac_try_echo=$ac_try;;
19148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19149 (eval "$ac_try") 2>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 ac_cv_lib_gcc___umoddi3=yes
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19158 ac_cv_lib_gcc___umoddi3=no
19161 rm -f core conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
19163 LIBS=$ac_check_lib_save_LIBS
19165 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19166 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19167 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19169 cat >>confdefs.h <<\_ACEOF
19170 #define HAVE___UMODDI3 1
19176 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19177 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19178 if test "${ac_cv_lib_gcc___main+set}" = set; then
19179 echo $ECHO_N "(cached) $ECHO_C" >&6
19181 ac_check_lib_save_LIBS=$LIBS
19183 cat >conftest.$ac_ext <<_ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h. */
19190 /* Override any GCC internal prototype to avoid an error.
19191 Use char because int might match the return type of a GCC
19192 builtin and then its argument prototype would still apply. */
19205 rm -f conftest.$ac_objext conftest$ac_exeext
19206 if { (ac_try="$ac_link"
19207 case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_link") 2>conftest.er1
19214 grep -v '^ *+' conftest.er1 >conftest.err
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } &&
19219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19220 { (case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225 (eval "$ac_try") 2>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest$ac_exeext'
19230 { (case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235 (eval "$ac_try") 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_cv_lib_gcc___main=yes
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19244 ac_cv_lib_gcc___main=no
19247 rm -f core conftest.err conftest.$ac_objext \
19248 conftest$ac_exeext conftest.$ac_ext
19249 LIBS=$ac_check_lib_save_LIBS
19251 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19252 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19253 if test $ac_cv_lib_gcc___main = yes; then
19255 cat >>confdefs.h <<\_ACEOF
19256 #define HAVE___MAIN 1
19261 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19262 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19263 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19264 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 ac_check_lib_save_LIBS=$LIBS
19268 cat >conftest.$ac_ext <<_ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19275 /* Override any GCC internal prototype to avoid an error.
19276 Use char because int might match the return type of a GCC
19277 builtin and then its argument prototype would still apply. */
19285 return __cmpdi2 ();
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (ac_try="$ac_link"
19292 case "(($ac_try" in
19293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294 *) ac_try_echo=$ac_try;;
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297 (eval "$ac_link") 2>conftest.er1
19299 grep -v '^ *+' conftest.er1 >conftest.err
19301 cat conftest.err >&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } &&
19304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19305 { (case "(($ac_try" in
19306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19307 *) ac_try_echo=$ac_try;;
19309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19310 (eval "$ac_try") 2>&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; } &&
19314 { ac_try='test -s conftest$ac_exeext'
19315 { (case "(($ac_try" in
19316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317 *) ac_try_echo=$ac_try;;
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_try") 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 ac_cv_lib_gcc___cmpdi2=yes
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19329 ac_cv_lib_gcc___cmpdi2=no
19332 rm -f core conftest.err conftest.$ac_objext \
19333 conftest$ac_exeext conftest.$ac_ext
19334 LIBS=$ac_check_lib_save_LIBS
19336 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19337 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19338 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19340 cat >>confdefs.h <<\_ACEOF
19341 #define HAVE___CMPDI2 1
19348 if test "$llvm_cv_os_type" = "MingW" ; then
19349 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19350 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19351 cat >conftest.$ac_ext <<_ACEOF
19352 #include <windows.h>
19353 #include <imagehlp.h>
19354 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19355 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19357 rm -f conftest.$ac_objext
19358 if { (ac_try="$ac_compile"
19359 case "(($ac_try" in
19360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361 *) ac_try_echo=$ac_try;;
19363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19364 (eval "$ac_compile") 2>conftest.er1
19366 grep -v '^ *+' conftest.er1 >conftest.err
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
19371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19372 { (case "(($ac_try" in
19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 *) ac_try_echo=$ac_try;;
19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_try") 2>&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; } &&
19381 { ac_try='test -s conftest.$ac_objext'
19382 { (case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_try") 2>&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19392 { echo "$as_me:$LINENO: result: yes" >&5
19393 echo "${ECHO_T}yes" >&6; }
19394 llvm_cv_win32_elmcb_pcstr="PCSTR"
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19401 { echo "$as_me:$LINENO: result: no" >&5
19402 echo "${ECHO_T}no" >&6; }
19403 llvm_cv_win32_elmcb_pcstr="PSTR"
19407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19409 cat >>confdefs.h <<_ACEOF
19410 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19416 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19417 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19418 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19419 echo $ECHO_N "(cached) $ECHO_C" >&6
19422 ac_cpp='$CXXCPP $CPPFLAGS'
19423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19427 cat >conftest.$ac_ext <<_ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h. */
19442 rm -f conftest.$ac_objext
19443 if { (ac_try="$ac_compile"
19444 case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449 (eval "$ac_compile") 2>conftest.er1
19451 grep -v '^ *+' conftest.er1 >conftest.err
19453 cat conftest.err >&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } &&
19456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19457 { (case "(($ac_try" in
19458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19459 *) ac_try_echo=$ac_try;;
19461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19462 (eval "$ac_try") 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; } &&
19466 { ac_try='test -s conftest.$ac_objext'
19467 { (case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_try") 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 ac_cv_func_isnan_in_math_h=yes
19478 echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19481 ac_cv_func_isnan_in_math_h=no
19484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19486 ac_cpp='$CPP $CPPFLAGS'
19487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19492 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19493 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19496 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19498 cat >>confdefs.h <<\_ACEOF
19499 #define HAVE_ISNAN_IN_MATH_H 1
19504 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19505 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19506 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19507 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 ac_cpp='$CXXCPP $CPPFLAGS'
19511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19515 cat >conftest.$ac_ext <<_ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19530 rm -f conftest.$ac_objext
19531 if { (ac_try="$ac_compile"
19532 case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_compile") 2>conftest.er1
19539 grep -v '^ *+' conftest.er1 >conftest.err
19541 cat conftest.err >&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } &&
19544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19545 { (case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550 (eval "$ac_try") 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try='test -s conftest.$ac_objext'
19555 { (case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560 (eval "$ac_try") 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 ac_cv_func_isnan_in_cmath=yes
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ac_cv_func_isnan_in_cmath=no
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19574 ac_cpp='$CPP $CPPFLAGS'
19575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19580 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19581 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19583 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19585 cat >>confdefs.h <<\_ACEOF
19586 #define HAVE_ISNAN_IN_CMATH 1
19591 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19592 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19593 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 ac_cpp='$CXXCPP $CPPFLAGS'
19598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19602 cat >conftest.$ac_ext <<_ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h. */
19612 float f; std::isnan(f);
19617 rm -f conftest.$ac_objext
19618 if { (ac_try="$ac_compile"
19619 case "(($ac_try" in
19620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621 *) ac_try_echo=$ac_try;;
19623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624 (eval "$ac_compile") 2>conftest.er1
19626 grep -v '^ *+' conftest.er1 >conftest.err
19628 cat conftest.err >&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } &&
19631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19632 { (case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_try") 2>&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; } &&
19641 { ac_try='test -s conftest.$ac_objext'
19642 { (case "(($ac_try" in
19643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644 *) ac_try_echo=$ac_try;;
19646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647 (eval "$ac_try") 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_cv_func_std_isnan_in_cmath=yes
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 ac_cv_func_std_isnan_in_cmath=no
19659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19661 ac_cpp='$CPP $CPPFLAGS'
19662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19667 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19668 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19670 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19672 cat >>confdefs.h <<\_ACEOF
19673 #define HAVE_STD_ISNAN_IN_CMATH 1
19679 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19680 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19681 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19682 echo $ECHO_N "(cached) $ECHO_C" >&6
19685 ac_cpp='$CXXCPP $CPPFLAGS'
19686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19690 cat >conftest.$ac_ext <<_ACEOF
19693 cat confdefs.h >>conftest.$ac_ext
19694 cat >>conftest.$ac_ext <<_ACEOF
19695 /* end confdefs.h. */
19705 rm -f conftest.$ac_objext
19706 if { (ac_try="$ac_compile"
19707 case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_compile") 2>conftest.er1
19714 grep -v '^ *+' conftest.er1 >conftest.err
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
19719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19720 { (case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_try") 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try='test -s conftest.$ac_objext'
19730 { (case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_try") 2>&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; }; then
19739 ac_cv_func_isinf_in_math_h=yes
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19744 ac_cv_func_isinf_in_math_h=no
19747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19749 ac_cpp='$CPP $CPPFLAGS'
19750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19755 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19756 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19758 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19760 cat >>confdefs.h <<\_ACEOF
19761 #define HAVE_ISINF_IN_MATH_H 1
19766 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19767 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19768 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19772 ac_cpp='$CXXCPP $CPPFLAGS'
19773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19777 cat >conftest.$ac_ext <<_ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19792 rm -f conftest.$ac_objext
19793 if { (ac_try="$ac_compile"
19794 case "(($ac_try" in
19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_compile") 2>conftest.er1
19801 grep -v '^ *+' conftest.er1 >conftest.err
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } &&
19806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19807 { (case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_try") 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; } &&
19816 { ac_try='test -s conftest.$ac_objext'
19817 { (case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822 (eval "$ac_try") 2>&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 ac_cv_func_isinf_in_cmath=yes
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19831 ac_cv_func_isinf_in_cmath=no
19834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19836 ac_cpp='$CPP $CPPFLAGS'
19837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19842 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19843 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19845 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19847 cat >>confdefs.h <<\_ACEOF
19848 #define HAVE_ISINF_IN_CMATH 1
19853 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19854 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19855 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19859 ac_cpp='$CXXCPP $CPPFLAGS'
19860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19864 cat >conftest.$ac_ext <<_ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19874 float f; std::isinf(f);
19879 rm -f conftest.$ac_objext
19880 if { (ac_try="$ac_compile"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_compile") 2>conftest.er1
19888 grep -v '^ *+' conftest.er1 >conftest.err
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } &&
19893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19894 { (case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_try") 2>&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; } &&
19903 { ac_try='test -s conftest.$ac_objext'
19904 { (case "(($ac_try" in
19905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19906 *) ac_try_echo=$ac_try;;
19908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19909 (eval "$ac_try") 2>&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; }; then
19913 ac_cv_func_std_isinf_in_cmath=yes
19915 echo "$as_me: failed program was:" >&5
19916 sed 's/^/| /' conftest.$ac_ext >&5
19918 ac_cv_func_std_isinf_in_cmath=no
19921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923 ac_cpp='$CPP $CPPFLAGS'
19924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19929 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19930 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19932 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19934 cat >>confdefs.h <<\_ACEOF
19935 #define HAVE_STD_ISINF_IN_CMATH 1
19940 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19941 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19942 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19946 ac_cpp='$CXXCPP $CPPFLAGS'
19947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19951 cat >conftest.$ac_ext <<_ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19957 #include <ieeefp.h>
19961 float f; finite(f);
19966 rm -f conftest.$ac_objext
19967 if { (ac_try="$ac_compile"
19968 case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_compile") 2>conftest.er1
19975 grep -v '^ *+' conftest.er1 >conftest.err
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
19980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19981 { (case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_try") 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest.$ac_objext'
19991 { (case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_try") 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 ac_cv_func_finite_in_ieeefp_h=yes
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 ac_cv_func_finite_in_ieeefp_h=no
20008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 ac_cpp='$CPP $CPPFLAGS'
20011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20016 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20017 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20019 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20021 cat >>confdefs.h <<\_ACEOF
20022 #define HAVE_FINITE_IN_IEEEFP_H 1
20029 if test "$llvm_cv_platform_type" = "Unix" ; then
20032 for ac_header in stdlib.h unistd.h
20034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20039 echo $ECHO_N "(cached) $ECHO_C" >&6
20041 ac_res=`eval echo '${'$as_ac_Header'}'`
20042 { echo "$as_me:$LINENO: result: $ac_res" >&5
20043 echo "${ECHO_T}$ac_res" >&6; }
20045 # Is the header compilable?
20046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20048 cat >conftest.$ac_ext <<_ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 $ac_includes_default
20055 #include <$ac_header>
20057 rm -f conftest.$ac_objext
20058 if { (ac_try="$ac_compile"
20059 case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_compile") 2>conftest.er1
20066 grep -v '^ *+' conftest.er1 >conftest.err
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } &&
20071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20072 { (case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_try") 2>&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; } &&
20081 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20091 ac_header_compiler=yes
20093 echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20096 ac_header_compiler=no
20099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20101 echo "${ECHO_T}$ac_header_compiler" >&6; }
20103 # Is the header present?
20104 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20106 cat >conftest.$ac_ext <<_ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h. */
20112 #include <$ac_header>
20114 if { (ac_try="$ac_cpp conftest.$ac_ext"
20115 case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20122 grep -v '^ *+' conftest.er1 >conftest.err
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } >/dev/null; then
20127 if test -s conftest.err; then
20128 ac_cpp_err=$ac_c_preproc_warn_flag
20129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20136 if test -z "$ac_cpp_err"; then
20137 ac_header_preproc=yes
20139 echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20142 ac_header_preproc=no
20145 rm -f conftest.err conftest.$ac_ext
20146 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20147 echo "${ECHO_T}$ac_header_preproc" >&6; }
20149 # So? What about this header?
20150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20156 ac_header_preproc=yes
20159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20172 ## ------------------------------------ ##
20173 ## Report this to http://llvm.org/bugs/ ##
20174 ## ------------------------------------ ##
20176 ) | sed "s/^/$as_me: WARNING: /" >&2
20179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20184 eval "$as_ac_Header=\$ac_header_preproc"
20186 ac_res=`eval echo '${'$as_ac_Header'}'`
20187 { echo "$as_me:$LINENO: result: $ac_res" >&5
20188 echo "${ECHO_T}$ac_res" >&6; }
20191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20192 cat >>confdefs.h <<_ACEOF
20193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20201 for ac_func in getpagesize
20203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20209 cat >conftest.$ac_ext <<_ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20217 #define $ac_func innocuous_$ac_func
20219 /* System header to define __stub macros and hopefully few prototypes,
20220 which can conflict with char $ac_func (); below.
20221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20222 <limits.h> exists even on freestanding compilers. */
20225 # include <limits.h>
20227 # include <assert.h>
20232 /* Override any GCC internal prototype to avoid an error.
20233 Use char because int might match the return type of a GCC
20234 builtin and then its argument prototype would still apply. */
20239 /* The GNU C library defines this for functions which it implements
20240 to always fail with ENOSYS. Some functions are actually named
20241 something starting with __ and the normal name is an alias. */
20242 #if defined __stub_$ac_func || defined __stub___$ac_func
20249 return $ac_func ();
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (ac_try="$ac_link"
20256 case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_link") 2>conftest.er1
20263 grep -v '^ *+' conftest.er1 >conftest.err
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } &&
20268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20269 { (case "(($ac_try" in
20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274 (eval "$ac_try") 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; } &&
20278 { ac_try='test -s conftest$ac_exeext'
20279 { (case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_try") 2>&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
20288 eval "$as_ac_var=yes"
20290 echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20293 eval "$as_ac_var=no"
20296 rm -f core conftest.err conftest.$ac_objext \
20297 conftest$ac_exeext conftest.$ac_ext
20299 ac_res=`eval echo '${'$as_ac_var'}'`
20300 { echo "$as_me:$LINENO: result: $ac_res" >&5
20301 echo "${ECHO_T}$ac_res" >&6; }
20302 if test `eval echo '${'$as_ac_var'}'` = yes; then
20303 cat >>confdefs.h <<_ACEOF
20304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20310 { echo "$as_me:$LINENO: checking for working mmap" >&5
20311 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20312 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20313 echo $ECHO_N "(cached) $ECHO_C" >&6
20315 if test "$cross_compiling" = yes; then
20316 ac_cv_func_mmap_fixed_mapped=no
20318 cat >conftest.$ac_ext <<_ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324 $ac_includes_default
20325 /* malloc might have been renamed as rpl_malloc. */
20328 /* Thanks to Mike Haertel and Jim Avera for this test.
20329 Here is a matrix of mmap possibilities:
20330 mmap private not fixed
20331 mmap private fixed at somewhere currently unmapped
20332 mmap private fixed at somewhere already mapped
20333 mmap shared not fixed
20334 mmap shared fixed at somewhere currently unmapped
20335 mmap shared fixed at somewhere already mapped
20336 For private mappings, we should verify that changes cannot be read()
20337 back from the file, nor mmap's back from the file at a different
20338 address. (There have been systems where private was not correctly
20339 implemented like the infamous i386 svr4.0, and systems where the
20340 VM page cache was not coherent with the file system buffer cache
20341 like early versions of FreeBSD and possibly contemporary NetBSD.)
20342 For shared mappings, we should conversely verify that changes get
20343 propagated back to all the places they're supposed to be.
20345 Grep wants private fixed already mapped.
20346 The main things grep needs to know about mmap are:
20347 * does it exist and is it safe to write into the mmap'd area
20348 * how to use it (BSD variants) */
20351 #include <sys/mman.h>
20353 #if !STDC_HEADERS && !HAVE_STDLIB_H
20357 /* This mess was copied from the GNU getpagesize.h. */
20358 #if !HAVE_GETPAGESIZE
20359 /* Assume that all systems that can run configure have sys/param.h. */
20360 # if !HAVE_SYS_PARAM_H
20361 # define HAVE_SYS_PARAM_H 1
20364 # ifdef _SC_PAGESIZE
20365 # define getpagesize() sysconf(_SC_PAGESIZE)
20366 # else /* no _SC_PAGESIZE */
20367 # if HAVE_SYS_PARAM_H
20368 # include <sys/param.h>
20369 # ifdef EXEC_PAGESIZE
20370 # define getpagesize() EXEC_PAGESIZE
20371 # else /* no EXEC_PAGESIZE */
20373 # define getpagesize() NBPG * CLSIZE
20376 # endif /* no CLSIZE */
20377 # else /* no NBPG */
20379 # define getpagesize() NBPC
20380 # else /* no NBPC */
20382 # define getpagesize() PAGESIZE
20383 # endif /* PAGESIZE */
20384 # endif /* no NBPC */
20385 # endif /* no NBPG */
20386 # endif /* no EXEC_PAGESIZE */
20387 # else /* no HAVE_SYS_PARAM_H */
20388 # define getpagesize() 8192 /* punt totally */
20389 # endif /* no HAVE_SYS_PARAM_H */
20390 # endif /* no _SC_PAGESIZE */
20392 #endif /* no HAVE_GETPAGESIZE */
20397 char *data, *data2, *data3;
20401 pagesize = getpagesize ();
20403 /* First, make a file with some known garbage in it. */
20404 data = (char *) malloc (pagesize);
20407 for (i = 0; i < pagesize; ++i)
20408 *(data + i) = rand ();
20410 fd = creat ("conftest.mmap", 0600);
20413 if (write (fd, data, pagesize) != pagesize)
20417 /* Next, try to mmap the file at a fixed address which already has
20418 something else allocated at it. If we can, also make sure that
20419 we see the same garbage. */
20420 fd = open ("conftest.mmap", O_RDWR);
20423 data2 = (char *) malloc (2 * pagesize);
20426 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20427 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20428 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20430 for (i = 0; i < pagesize; ++i)
20431 if (*(data + i) != *(data2 + i))
20434 /* Finally, make sure that changes to the mapped area do not
20435 percolate back to the file as seen by read(). (This is a bug on
20436 some variants of i386 svr4.0.) */
20437 for (i = 0; i < pagesize; ++i)
20438 *(data2 + i) = *(data2 + i) + 1;
20439 data3 = (char *) malloc (pagesize);
20442 if (read (fd, data3, pagesize) != pagesize)
20444 for (i = 0; i < pagesize; ++i)
20445 if (*(data + i) != *(data3 + i))
20451 rm -f conftest$ac_exeext
20452 if { (ac_try="$ac_link"
20453 case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_link") 2>&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20462 { (case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_try") 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 ac_cv_func_mmap_fixed_mapped=yes
20473 echo "$as_me: program exited with status $ac_status" >&5
20474 echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20477 ( exit $ac_status )
20478 ac_cv_func_mmap_fixed_mapped=no
20480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20485 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20486 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20487 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20489 cat >>confdefs.h <<\_ACEOF
20490 #define HAVE_MMAP 1
20494 rm -f conftest.mmap
20496 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20497 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20498 if test "${ac_cv_func_mmap_file+set}" = set; then
20499 echo $ECHO_N "(cached) $ECHO_C" >&6
20502 ac_cpp='$CPP $CPPFLAGS'
20503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20507 if test "$cross_compiling" = yes; then
20508 ac_cv_func_mmap_file=no
20510 cat >conftest.$ac_ext <<_ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20518 #include <sys/types.h>
20519 #include <sys/mman.h>
20527 fd = creat ("foo",0777);
20528 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20530 return (fd != (int) MAP_FAILED);
20535 rm -f conftest$ac_exeext
20536 if { (ac_try="$ac_link"
20537 case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542 (eval "$ac_link") 2>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_func_mmap_file=yes
20557 echo "$as_me: program exited with status $ac_status" >&5
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20561 ( exit $ac_status )
20562 ac_cv_func_mmap_file=no
20564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20569 ac_cpp='$CPP $CPPFLAGS'
20570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20576 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20577 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20578 if test "$ac_cv_func_mmap_file" = yes; then
20580 cat >>confdefs.h <<\_ACEOF
20581 #define HAVE_MMAP_FILE
20588 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20589 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20590 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20591 echo $ECHO_N "(cached) $ECHO_C" >&6
20593 if test "$llvm_cv_os_type" = "Interix" ; then
20594 ac_cv_need_dev_zero_for_mmap=yes
20596 ac_cv_need_dev_zero_for_mmap=no
20600 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20601 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20602 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20604 cat >>confdefs.h <<\_ACEOF
20605 #define NEED_DEV_ZERO_FOR_MMAP 1
20610 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20612 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20613 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20615 if test "$ac_cv_func_mmap_file" = "no"
20617 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20618 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20622 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20623 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20625 ac_cpp='$CXXCPP $CPPFLAGS'
20626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20630 cat >conftest.$ac_ext <<_ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20637 volatile unsigned long val = 1;
20638 __sync_synchronize();
20639 __sync_val_compare_and_swap(&val, 1, 0);
20640 __sync_add_and_fetch(&val, 1);
20641 __sync_sub_and_fetch(&val, 1);
20646 rm -f conftest.$ac_objext conftest$ac_exeext
20647 if { (ac_try="$ac_link"
20648 case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_link") 2>conftest.er1
20655 grep -v '^ *+' conftest.er1 >conftest.err
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } &&
20660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20661 { (case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_try") 2>&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; } &&
20670 { ac_try='test -s conftest$ac_exeext'
20671 { (case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_try") 2>&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20681 ac_cpp='$CPP $CPPFLAGS'
20682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20686 { echo "$as_me:$LINENO: result: yes" >&5
20687 echo "${ECHO_T}yes" >&6; }
20689 cat >>confdefs.h <<\_ACEOF
20690 #define LLVM_HAS_ATOMICS 1
20694 echo "$as_me: failed program was:" >&5
20695 sed 's/^/| /' conftest.$ac_ext >&5
20697 { echo "$as_me:$LINENO: result: no" >&5
20698 echo "${ECHO_T}no" >&6; }
20700 cat >>confdefs.h <<\_ACEOF
20701 #define LLVM_HAS_ATOMICS 0
20704 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20705 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20708 rm -f core conftest.err conftest.$ac_objext \
20709 conftest$ac_exeext conftest.$ac_ext
20712 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20713 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20714 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20715 if test "${llvm_cv_linux_mixed+set}" = set; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 ac_cpp='$CPP $CPPFLAGS'
20720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20724 cat >conftest.$ac_ext <<_ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20731 error: Not x86-64 even if uname says so!
20742 rm -f conftest.$ac_objext
20743 if { (ac_try="$ac_compile"
20744 case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_compile") 2>conftest.er1
20751 grep -v '^ *+' conftest.er1 >conftest.err
20753 cat conftest.err >&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); } &&
20756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20757 { (case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_try") 2>&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; } &&
20766 { ac_try='test -s conftest.$ac_objext'
20767 { (case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_try") 2>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; }; then
20776 llvm_cv_linux_mixed=no
20778 echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20781 llvm_cv_linux_mixed=yes
20784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20786 ac_cpp='$CPP $CPPFLAGS'
20787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20793 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20794 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20796 if test "$llvm_cv_linux_mixed" = "yes"; then
20797 llvm_cv_target_arch="x86"
20803 for ac_func in __dso_handle
20805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
20811 cat >conftest.$ac_ext <<_ACEOF
20814 cat confdefs.h >>conftest.$ac_ext
20815 cat >>conftest.$ac_ext <<_ACEOF
20816 /* end confdefs.h. */
20817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20819 #define $ac_func innocuous_$ac_func
20821 /* System header to define __stub macros and hopefully few prototypes,
20822 which can conflict with char $ac_func (); below.
20823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20824 <limits.h> exists even on freestanding compilers. */
20827 # include <limits.h>
20829 # include <assert.h>
20834 /* Override any GCC internal prototype to avoid an error.
20835 Use char because int might match the return type of a GCC
20836 builtin and then its argument prototype would still apply. */
20841 /* The GNU C library defines this for functions which it implements
20842 to always fail with ENOSYS. Some functions are actually named
20843 something starting with __ and the normal name is an alias. */
20844 #if defined __stub_$ac_func || defined __stub___$ac_func
20851 return $ac_func ();
20856 rm -f conftest.$ac_objext conftest$ac_exeext
20857 if { (ac_try="$ac_link"
20858 case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_link") 2>conftest.er1
20865 grep -v '^ *+' conftest.er1 >conftest.err
20867 cat conftest.err >&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } &&
20870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20871 { (case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_try") 2>&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; } &&
20880 { ac_try='test -s conftest$ac_exeext'
20881 { (case "(($ac_try" in
20882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883 *) ac_try_echo=$ac_try;;
20885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886 (eval "$ac_try") 2>&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890 eval "$as_ac_var=yes"
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20895 eval "$as_ac_var=no"
20898 rm -f core conftest.err conftest.$ac_objext \
20899 conftest$ac_exeext conftest.$ac_ext
20901 ac_res=`eval echo '${'$as_ac_var'}'`
20902 { echo "$as_me:$LINENO: result: $ac_res" >&5
20903 echo "${ECHO_T}$ac_res" >&6; }
20904 if test `eval echo '${'$as_ac_var'}'` = yes; then
20905 cat >>confdefs.h <<_ACEOF
20906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20913 SHLIBEXT=$libltdl_cv_shlibext
20916 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20919 if test "${prefix}" = "NONE" ; then
20920 prefix="/usr/local"
20922 eval LLVM_PREFIX="${prefix}";
20923 eval LLVM_BINDIR="${prefix}/bin";
20924 eval LLVM_LIBDIR="${prefix}/lib";
20925 eval LLVM_DATADIR="${prefix}/share/llvm";
20926 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20927 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20928 eval LLVM_INCLUDEDIR="${prefix}/include";
20929 eval LLVM_INFODIR="${prefix}/info";
20930 eval LLVM_MANDIR="${prefix}/man";
20931 LLVM_CONFIGTIME=`date`
20943 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20944 LLVM_CONFIGTIME="(timestamp not enabled)"
20948 cat >>confdefs.h <<_ACEOF
20949 #define LLVM_PREFIX "$LLVM_PREFIX"
20953 cat >>confdefs.h <<_ACEOF
20954 #define LLVM_BINDIR "$LLVM_BINDIR"
20958 cat >>confdefs.h <<_ACEOF
20959 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20963 cat >>confdefs.h <<_ACEOF
20964 #define LLVM_DATADIR "$LLVM_DATADIR"
20968 cat >>confdefs.h <<_ACEOF
20969 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20973 cat >>confdefs.h <<_ACEOF
20974 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20978 cat >>confdefs.h <<_ACEOF
20979 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20983 cat >>confdefs.h <<_ACEOF
20984 #define LLVM_INFODIR "$LLVM_INFODIR"
20988 cat >>confdefs.h <<_ACEOF
20989 #define LLVM_MANDIR "$LLVM_MANDIR"
20993 cat >>confdefs.h <<_ACEOF
20994 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20998 cat >>confdefs.h <<_ACEOF
20999 #define LLVM_HOSTTRIPLE "$host"
21003 cat >>confdefs.h <<_ACEOF
21004 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21008 if test "$BINDINGS_TO_BUILD" = auto ; then
21009 BINDINGS_TO_BUILD=""
21010 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21011 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21014 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21020 binding_prereqs_failed=0
21021 for a_binding in $BINDINGS_TO_BUILD ; do
21022 case "$a_binding" in
21024 if test "x$OCAMLC" = x ; then
21025 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21026 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21027 binding_prereqs_failed=1
21029 if test "x$OCAMLDEP" = x ; then
21030 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21031 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21032 binding_prereqs_failed=1
21034 if test "x$OCAMLOPT" = x ; then
21035 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21036 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21038 if test "x$with_ocaml_libdir" != xauto ; then
21039 OCAML_LIBDIR=$with_ocaml_libdir
21042 ocaml_stdlib="`"$OCAMLC" -where`"
21043 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21045 # ocaml stdlib is beneath our prefix; use stdlib
21046 OCAML_LIBDIR=$ocaml_stdlib
21049 # ocaml stdlib is outside our prefix; use libdir/ocaml
21050 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21057 if test "$binding_prereqs_failed" = 1 ; then
21058 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21059 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21060 { (exit 1); exit 1; }; }
21063 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21064 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21065 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21069 ac_cpp='$CXXCPP $CPPFLAGS'
21070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21074 oldcxxflags="$CXXFLAGS"
21075 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21076 cat >conftest.$ac_ext <<_ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21082 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21091 rm -f conftest.$ac_objext
21092 if { (ac_try="$ac_compile"
21093 case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_compile") 2>conftest.er1
21100 grep -v '^ *+' conftest.er1 >conftest.err
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } &&
21105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21106 { (case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_try") 2>&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; } &&
21115 { ac_try='test -s conftest.$ac_objext'
21116 { (case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_try") 2>&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; }; then
21125 llvm_cv_cxx_visibility_inlines_hidden=yes
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21130 llvm_cv_cxx_visibility_inlines_hidden=no
21133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134 CXXFLAGS="$oldcxxflags"
21136 ac_cpp='$CPP $CPPFLAGS'
21137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21143 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21144 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21145 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21146 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21149 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21154 if test "$llvm_cv_link_use_r" = "yes" ; then
21161 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21162 RDYNAMIC="-Wl,-export-dynamic"
21169 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21176 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21178 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21180 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21182 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21184 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21187 ac_config_files="$ac_config_files Makefile.config"
21190 ac_config_files="$ac_config_files llvm.spec"
21193 ac_config_files="$ac_config_files docs/doxygen.cfg"
21196 if test "${clang_src_root}" = ""; then
21197 clang_src_root="$srcdir/tools/clang"
21199 if test -f ${clang_src_root}/README.txt; then
21200 configh="include/clang/Config/config.h"
21201 doxy="docs/doxygen.cfg"
21202 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21204 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21208 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21211 test "x$program_prefix" = "xNONE" && program_prefix=""
21215 ac_config_commands="$ac_config_commands setup"
21217 ac_config_commands="$ac_config_commands Makefile"
21220 ac_config_commands="$ac_config_commands Makefile.common"
21223 ac_config_commands="$ac_config_commands examples/Makefile"
21226 ac_config_commands="$ac_config_commands lib/Makefile"
21229 ac_config_commands="$ac_config_commands runtime/Makefile"
21232 ac_config_commands="$ac_config_commands test/Makefile"
21235 ac_config_commands="$ac_config_commands test/Makefile.tests"
21238 ac_config_commands="$ac_config_commands unittests/Makefile"
21241 ac_config_commands="$ac_config_commands tools/Makefile"
21244 ac_config_commands="$ac_config_commands utils/Makefile"
21247 ac_config_commands="$ac_config_commands projects/Makefile"
21250 ac_config_commands="$ac_config_commands bindings/Makefile"
21253 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21257 cat >confcache <<\_ACEOF
21258 # This file is a shell script that caches the results of configure
21259 # tests run on this system so they can be shared between configure
21260 # scripts and configure runs, see configure's option --config-cache.
21261 # It is not useful on other systems. If it contains results you don't
21262 # want to keep, you may remove or edit it.
21264 # config.status only pays attention to the cache file if you give it
21265 # the --recheck option to rerun configure.
21267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21269 # following values.
21273 # The following way of writing the cache mishandles newlines in values,
21274 # but we know of no workaround that is simple, portable, and efficient.
21275 # So, we kill variables containing newlines.
21276 # Ultrix sh set writes to stderr and can't be redirected directly,
21277 # and sets the high bit in the cache file unless we assign to the vars.
21279 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21280 eval ac_val=\$$ac_var
21284 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21285 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21288 _ | IFS | as_nl) ;; #(
21289 *) $as_unset $ac_var ;;
21295 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21296 *${as_nl}ac_space=\ *)
21297 # `set' does not quote correctly, so add quotes (double-quote
21298 # substitution turns \\\\ into \\, and sed turns \\ into \).
21301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21304 # `set' quotes correctly as required by POSIX, so do not add quotes.
21305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21316 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21318 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21319 if test -w "$cache_file"; then
21320 test "x$cache_file" != "x/dev/null" &&
21321 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21322 echo "$as_me: updating cache $cache_file" >&6;}
21323 cat confcache >$cache_file
21325 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21326 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21332 # Let make expand exec_prefix.
21333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21335 DEFS=-DHAVE_CONFIG_H
21339 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21340 # 1. Remove the extension, and $U if already installed.
21341 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21342 ac_i=`echo "$ac_i" | sed "$ac_script"`
21343 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21344 # will be set to the directory where LIBOBJS objects are built.
21345 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21346 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21348 LIBOBJS=$ac_libobjs
21350 LTLIBOBJS=$ac_ltlibobjs
21353 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21354 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21355 Usually this means the macro was only invoked conditionally." >&5
21356 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21357 Usually this means the macro was only invoked conditionally." >&2;}
21358 { (exit 1); exit 1; }; }
21360 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21361 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21362 Usually this means the macro was only invoked conditionally." >&5
21363 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21364 Usually this means the macro was only invoked conditionally." >&2;}
21365 { (exit 1); exit 1; }; }
21368 : ${CONFIG_STATUS=./config.status}
21369 ac_clean_files_save=$ac_clean_files
21370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21371 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21372 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21373 cat >$CONFIG_STATUS <<_ACEOF
21375 # Generated by $as_me.
21376 # Run this file to recreate the current configuration.
21377 # Compiler output produced by configure, useful for debugging
21378 # configure, is in config.log if it exists.
21381 ac_cs_recheck=false
21383 SHELL=\${CONFIG_SHELL-$SHELL}
21386 cat >>$CONFIG_STATUS <<\_ACEOF
21387 ## --------------------- ##
21388 ## M4sh Initialization. ##
21389 ## --------------------- ##
21391 # Be Bourne compatible
21392 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21395 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21396 # is contrary to our usage. Disable this feature.
21397 alias -g '${1+"$@"}'='"$@"'
21398 setopt NO_GLOB_SUBST
21400 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21402 BIN_SH=xpg4; export BIN_SH # for Tru64
21403 DUALCASE=1; export DUALCASE # for MKS sh
21407 # Avoid depending upon Character Ranges.
21408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21411 as_cr_digits='0123456789'
21412 as_cr_alnum=$as_cr_Letters$as_cr_digits
21414 # The user is always right.
21415 if test "${PATH_SEPARATOR+set}" != set; then
21416 echo "#! /bin/sh" >conf$$.sh
21417 echo "exit 0" >>conf$$.sh
21419 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21427 # Support unset when possible.
21428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21436 # We need space, tab and new line, in precisely that order. Quoting is
21437 # there to prevent editors from complaining about space-tab.
21438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21439 # splitting by setting IFS to empty value.)
21444 # Find who we are. Look in the path if we contain no directory separator.
21446 *[\\/]* ) as_myself=$0 ;;
21447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21448 for as_dir in $PATH
21451 test -z "$as_dir" && as_dir=.
21452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21458 # We did not find ourselves, most probably we were run as `sh COMMAND'
21459 # in which case we are not to be found in the path.
21460 if test "x$as_myself" = x; then
21463 if test ! -f "$as_myself"; then
21464 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21465 { (exit 1); exit 1; }
21468 # Work around bugs in pre-3.0 UWIN ksh.
21469 for as_var in ENV MAIL MAILPATH
21470 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21478 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21479 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21480 LC_TELEPHONE LC_TIME
21482 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21483 eval $as_var=C; export $as_var
21485 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21489 # Required to use basename.
21490 if expr a : '\(a\)' >/dev/null 2>&1 &&
21491 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21497 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21498 as_basename=basename
21504 # Name of the executable.
21505 as_me=`$as_basename -- "$0" ||
21506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21507 X"$0" : 'X\(//\)$' \| \
21508 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21510 sed '/^.*\/\([^/][^/]*\)\/*$/{
21529 as_lineno_1=$LINENO
21530 as_lineno_2=$LINENO
21531 test "x$as_lineno_1" != "x$as_lineno_2" &&
21532 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21534 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21535 # uniformly replaced by the line number. The first 'sed' inserts a
21536 # line-number line after each line using $LINENO; the second 'sed'
21537 # does the real work. The second script uses 'N' to pair each
21538 # line-number line with the line containing $LINENO, and appends
21539 # trailing '-' during substitution so that $LINENO is not a special
21540 # case at line end.
21541 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21542 # scripts with optimization help from Paolo Bonzini. Blame Lee
21543 # E. McMahon (1931-1989) for sed's syntax. :-)
21555 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21558 ' >$as_me.lineno &&
21559 chmod +x "$as_me.lineno" ||
21560 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21561 { (exit 1); exit 1; }; }
21563 # Don't try to exec as it changes $[0], causing all sort of problems
21564 # (the dirname of $[0] is not the place where we might find the
21565 # original and so on. Autoconf is especially sensitive to this).
21566 . "./$as_me.lineno"
21567 # Exit status is that of the last command.
21572 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21578 ECHO_C= ECHO_N= ECHO_T=
21579 case `echo -n x` in
21581 case `echo 'x\c'` in
21582 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21589 if expr a : '\(a\)' >/dev/null 2>&1 &&
21590 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21596 rm -f conf$$ conf$$.exe conf$$.file
21597 if test -d conf$$.dir; then
21598 rm -f conf$$.dir/conf$$.file
21604 if ln -s conf$$.file conf$$ 2>/dev/null; then
21606 # ... but there are two gotchas:
21607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21609 # In both cases, we have to default to `cp -p'.
21610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21612 elif ln conf$$.file conf$$ 2>/dev/null; then
21617 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21618 rmdir conf$$.dir 2>/dev/null
21620 if mkdir -p . 2>/dev/null; then
21623 test -d ./-p && rmdir ./-p
21627 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21628 # systems may use methods other than mode bits to determine executability.
21629 cat >conf$$.file <<_ASEOF
21633 chmod +x conf$$.file
21634 if test -x conf$$.file >/dev/null 2>&1; then
21635 as_executable_p="test -x"
21641 # Sed expression to map a string onto a valid CPP name.
21642 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21644 # Sed expression to map a string onto a valid variable name.
21645 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21650 # Save the log message, to keep $[0] and so on meaningful, and to
21651 # report actual input values of CONFIG_FILES etc. instead of their
21652 # values after options handling.
21654 This file was extended by LLVM $as_me 3.3svn, which was
21655 generated by GNU Autoconf 2.60. Invocation command line was
21657 CONFIG_FILES = $CONFIG_FILES
21658 CONFIG_HEADERS = $CONFIG_HEADERS
21659 CONFIG_LINKS = $CONFIG_LINKS
21660 CONFIG_COMMANDS = $CONFIG_COMMANDS
21663 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21668 cat >>$CONFIG_STATUS <<_ACEOF
21669 # Files that config.status was made for.
21670 config_files="$ac_config_files"
21671 config_headers="$ac_config_headers"
21672 config_commands="$ac_config_commands"
21676 cat >>$CONFIG_STATUS <<\_ACEOF
21678 \`$as_me' instantiates files from templates according to the
21679 current configuration.
21681 Usage: $0 [OPTIONS] [FILE]...
21683 -h, --help print this help, then exit
21684 -V, --version print version number, then exit
21685 -q, --quiet do not print progress messages
21686 -d, --debug don't remove temporary files
21687 --recheck update $as_me by reconfiguring in the same conditions
21688 --file=FILE[:TEMPLATE]
21689 instantiate the configuration file FILE
21690 --header=FILE[:TEMPLATE]
21691 instantiate the configuration header FILE
21693 Configuration files:
21696 Configuration headers:
21699 Configuration commands:
21702 Report bugs to <bug-autoconf@gnu.org>."
21705 cat >>$CONFIG_STATUS <<_ACEOF
21707 LLVM config.status 3.3svn
21708 configured by $0, generated by GNU Autoconf 2.60,
21709 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21711 Copyright (C) 2006 Free Software Foundation, Inc.
21712 This config.status script is free software; the Free Software Foundation
21713 gives unlimited permission to copy, distribute and modify it."
21720 cat >>$CONFIG_STATUS <<\_ACEOF
21721 # If no file are specified by the user, then we need to provide default
21722 # value. By we need to know if files were specified by the user.
21728 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21729 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21740 # Handling of the options.
21741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21743 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21744 echo "$ac_cs_version"; exit ;;
21745 --debug | --debu | --deb | --de | --d | -d )
21747 --file | --fil | --fi | --f )
21749 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21750 ac_need_defaults=false;;
21751 --header | --heade | --head | --hea )
21753 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21754 ac_need_defaults=false;;
21756 # Conflict between --help and --header
21757 { echo "$as_me: error: ambiguous option: $1
21758 Try \`$0 --help' for more information." >&2
21759 { (exit 1); exit 1; }; };;
21760 --help | --hel | -h )
21761 echo "$ac_cs_usage"; exit ;;
21762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21766 # This is an error.
21767 -*) { echo "$as_me: error: unrecognized option: $1
21768 Try \`$0 --help' for more information." >&2
21769 { (exit 1); exit 1; }; } ;;
21771 *) ac_config_targets="$ac_config_targets $1"
21772 ac_need_defaults=false ;;
21778 ac_configure_extra_args=
21780 if $ac_cs_silent; then
21782 ac_configure_extra_args="$ac_configure_extra_args --silent"
21786 cat >>$CONFIG_STATUS <<_ACEOF
21787 if \$ac_cs_recheck; then
21788 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21789 CONFIG_SHELL=$SHELL
21790 export CONFIG_SHELL
21791 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21795 cat >>$CONFIG_STATUS <<\_ACEOF
21799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21800 ## Running $as_me. ##
21806 cat >>$CONFIG_STATUS <<_ACEOF
21810 llvm_src="${srcdir}"
21814 cat >>$CONFIG_STATUS <<\_ACEOF
21816 # Handling of arguments.
21817 for ac_config_target in $ac_config_targets
21819 case $ac_config_target in
21820 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21821 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21822 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21823 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21824 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21825 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21826 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21827 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21828 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21829 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21830 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21831 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21832 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21833 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21834 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21835 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21836 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21837 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21838 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21839 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21840 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21841 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21842 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21843 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21844 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21845 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21846 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21848 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21849 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21850 { (exit 1); exit 1; }; };;
21855 # If the user did not use the arguments to specify the items to instantiate,
21856 # then the envvar interface is used. Set only those that are not.
21857 # We use the long form for the default assignment because of an extremely
21858 # bizarre bug on SunOS 4.1.3.
21859 if $ac_need_defaults; then
21860 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21861 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21862 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21865 # Have a temporary directory for convenience. Make it in the build tree
21866 # simply because there is no reason against having it here, and in addition,
21867 # creating and moving files from /tmp can sometimes cause problems.
21868 # Hook for its removal unless debugging.
21869 # Note that there is a small window in which the directory will not be cleaned:
21870 # after its creation but before its name has been assigned to `$tmp'.
21874 trap 'exit_status=$?
21875 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21877 trap '{ (exit 1); exit 1; }' 1 2 13 15
21879 # Create a (secure) tmp directory for tmp files.
21882 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21883 test -n "$tmp" && test -d "$tmp"
21886 tmp=./conf$$-$RANDOM
21887 (umask 077 && mkdir "$tmp")
21890 echo "$me: cannot create a temporary directory in ." >&2
21891 { (exit 1); exit 1; }
21895 # Set up the sed scripts for CONFIG_FILES section.
21898 # No need to generate the scripts if there are no CONFIG_FILES.
21899 # This happens for instance when ./config.status config.h
21900 if test -n "$CONFIG_FILES"; then
21907 for ac_last_try in false false false false false :; do
21908 cat >conf$$subs.sed <<_ACEOF
21909 SHELL!$SHELL$ac_delim
21910 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21911 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21912 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21913 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21914 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21915 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21916 exec_prefix!$exec_prefix$ac_delim
21917 prefix!$prefix$ac_delim
21918 program_transform_name!$program_transform_name$ac_delim
21919 bindir!$bindir$ac_delim
21920 sbindir!$sbindir$ac_delim
21921 libexecdir!$libexecdir$ac_delim
21922 datarootdir!$datarootdir$ac_delim
21923 datadir!$datadir$ac_delim
21924 sysconfdir!$sysconfdir$ac_delim
21925 sharedstatedir!$sharedstatedir$ac_delim
21926 localstatedir!$localstatedir$ac_delim
21927 includedir!$includedir$ac_delim
21928 oldincludedir!$oldincludedir$ac_delim
21929 docdir!$docdir$ac_delim
21930 infodir!$infodir$ac_delim
21931 htmldir!$htmldir$ac_delim
21932 dvidir!$dvidir$ac_delim
21933 pdfdir!$pdfdir$ac_delim
21934 psdir!$psdir$ac_delim
21935 libdir!$libdir$ac_delim
21936 localedir!$localedir$ac_delim
21937 mandir!$mandir$ac_delim
21938 DEFS!$DEFS$ac_delim
21939 ECHO_C!$ECHO_C$ac_delim
21940 ECHO_N!$ECHO_N$ac_delim
21941 ECHO_T!$ECHO_T$ac_delim
21942 LIBS!$LIBS$ac_delim
21943 build_alias!$build_alias$ac_delim
21944 host_alias!$host_alias$ac_delim
21945 target_alias!$target_alias$ac_delim
21946 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21948 CFLAGS!$CFLAGS$ac_delim
21949 LDFLAGS!$LDFLAGS$ac_delim
21950 CPPFLAGS!$CPPFLAGS$ac_delim
21951 ac_ct_CC!$ac_ct_CC$ac_delim
21952 EXEEXT!$EXEEXT$ac_delim
21953 OBJEXT!$OBJEXT$ac_delim
21955 CXXFLAGS!$CXXFLAGS$ac_delim
21956 ac_ct_CXX!$ac_ct_CXX$ac_delim
21958 subdirs!$subdirs$ac_delim
21959 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21960 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21961 build!$build$ac_delim
21962 build_cpu!$build_cpu$ac_delim
21963 build_vendor!$build_vendor$ac_delim
21964 build_os!$build_os$ac_delim
21965 host!$host$ac_delim
21966 host_cpu!$host_cpu$ac_delim
21967 host_vendor!$host_vendor$ac_delim
21968 host_os!$host_os$ac_delim
21969 target!$target$ac_delim
21970 target_cpu!$target_cpu$ac_delim
21971 target_vendor!$target_vendor$ac_delim
21972 target_os!$target_os$ac_delim
21974 HOST_OS!$HOST_OS$ac_delim
21975 TARGET_OS!$TARGET_OS$ac_delim
21976 LINKALL!$LINKALL$ac_delim
21977 NOLINKALL!$NOLINKALL$ac_delim
21978 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21979 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21980 ARCH!$ARCH$ac_delim
21981 HOST_ARCH!$HOST_ARCH$ac_delim
21982 ENDIAN!$ENDIAN$ac_delim
21983 GREP!$GREP$ac_delim
21984 EGREP!$EGREP$ac_delim
21985 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21986 BUILD_CC!$BUILD_CC$ac_delim
21987 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21988 BUILD_CXX!$BUILD_CXX$ac_delim
21989 CVSBUILD!$CVSBUILD$ac_delim
21990 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21991 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21992 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
21993 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
21994 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
21995 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21996 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21997 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21998 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21999 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22000 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22001 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22002 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22003 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22005 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22008 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22010 elif $ac_last_try; then
22011 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22012 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22013 { (exit 1); exit 1; }; }
22015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22019 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22020 if test -n "$ac_eof"; then
22021 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22022 ac_eof=`expr $ac_eof + 1`
22025 cat >>$CONFIG_STATUS <<_ACEOF
22026 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22027 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22030 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22031 s/^/s,@/; s/!/@,|#_!!_#|/
22034 s/'"$ac_delim"'$/,g/; t
22036 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22037 ' >>$CONFIG_STATUS <conf$$subs.sed
22038 rm -f conf$$subs.sed
22039 cat >>$CONFIG_STATUS <<_ACEOF
22045 for ac_last_try in false false false false false :; do
22046 cat >conf$$subs.sed <<_ACEOF
22047 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22048 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22049 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22050 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22051 ENABLE_PIC!$ENABLE_PIC$ac_delim
22052 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22053 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22054 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22055 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22056 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22057 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22058 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22059 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22060 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22061 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22062 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22063 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22064 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22065 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22066 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22068 ifGNUmake!$ifGNUmake$ac_delim
22069 LN_S!$LN_S$ac_delim
22072 DATE!$DATE$ac_delim
22073 FIND!$FIND$ac_delim
22074 MKDIR!$MKDIR$ac_delim
22076 RANLIB!$RANLIB$ac_delim
22081 BINPWD!$BINPWD$ac_delim
22082 GRAPHVIZ!$GRAPHVIZ$ac_delim
22085 NEATO!$NEATO$ac_delim
22086 TWOPI!$TWOPI$ac_delim
22087 CIRCO!$CIRCO$ac_delim
22089 DOTTY!$DOTTY$ac_delim
22090 XDOT_PY!$XDOT_PY$ac_delim
22091 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22092 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22093 INSTALL_DATA!$INSTALL_DATA$ac_delim
22094 BZIP2!$BZIP2$ac_delim
22096 DOXYGEN!$DOXYGEN$ac_delim
22097 GROFF!$GROFF$ac_delim
22098 GZIPBIN!$GZIPBIN$ac_delim
22099 PDFROFF!$PDFROFF$ac_delim
22101 OCAMLC!$OCAMLC$ac_delim
22102 OCAMLOPT!$OCAMLOPT$ac_delim
22103 OCAMLDEP!$OCAMLDEP$ac_delim
22104 OCAMLDOC!$OCAMLDOC$ac_delim
22106 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22107 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22108 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22109 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22110 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22111 LIBADD_DL!$LIBADD_DL$ac_delim
22112 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22113 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22114 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22115 USE_UDIS86!$USE_UDIS86$ac_delim
22116 USE_OPROFILE!$USE_OPROFILE$ac_delim
22117 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22118 XML2CONFIG!$XML2CONFIG$ac_delim
22119 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22120 LIBXML2_INC!$LIBXML2_INC$ac_delim
22121 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22122 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22123 MMAP_FILE!$MMAP_FILE$ac_delim
22124 SHLIBEXT!$SHLIBEXT$ac_delim
22125 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22126 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22127 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22128 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22129 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22130 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22131 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22132 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22133 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22134 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22135 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22136 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22137 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22138 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22139 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22140 RPATH!$RPATH$ac_delim
22141 RDYNAMIC!$RDYNAMIC$ac_delim
22142 program_prefix!$program_prefix$ac_delim
22143 LIBOBJS!$LIBOBJS$ac_delim
22146 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22148 elif $ac_last_try; then
22149 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22150 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22151 { (exit 1); exit 1; }; }
22153 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22157 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22158 if test -n "$ac_eof"; then
22159 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22160 ac_eof=`expr $ac_eof + 1`
22163 cat >>$CONFIG_STATUS <<_ACEOF
22164 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22168 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22169 s/^/s,@/; s/!/@,|#_!!_#|/
22172 s/'"$ac_delim"'$/,g/; t
22174 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22175 ' >>$CONFIG_STATUS <conf$$subs.sed
22176 rm -f conf$$subs.sed
22177 cat >>$CONFIG_STATUS <<_ACEOF
22183 for ac_last_try in false false false false false :; do
22184 cat >conf$$subs.sed <<_ACEOF
22185 LTLIBOBJS!$LTLIBOBJS$ac_delim
22188 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then
22190 elif $ac_last_try; then
22191 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22192 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22193 { (exit 1); exit 1; }; }
22195 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22199 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22200 if test -n "$ac_eof"; then
22201 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22202 ac_eof=`expr $ac_eof + 1`
22205 cat >>$CONFIG_STATUS <<_ACEOF
22206 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22210 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22211 s/^/s,@/; s/!/@,|#_!!_#|/
22214 s/'"$ac_delim"'$/,g/; t
22216 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22217 ' >>$CONFIG_STATUS <conf$$subs.sed
22218 rm -f conf$$subs.sed
22219 cat >>$CONFIG_STATUS <<_ACEOF
22226 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22227 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22228 # trailing colons and then remove the whole line if VPATH becomes empty
22229 # (actually we leave an empty line to preserve line numbers).
22230 if test "x$srcdir" = x.; then
22231 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22232 s/:*\$(srcdir):*/:/
22233 s/:*\${srcdir}:*/:/
22235 s/^\([^=]*=[ ]*\):*/\1/
22241 cat >>$CONFIG_STATUS <<\_ACEOF
22242 fi # test -n "$CONFIG_FILES"
22245 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22248 :[FHLC]) ac_mode=$ac_tag; continue;;
22250 case $ac_mode$ac_tag in
22252 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22253 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22254 { (exit 1); exit 1; }; };;
22255 :[FH]-) ac_tag=-:-;;
22256 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22273 -) ac_f="$tmp/stdin";;
22274 *) # Look for the file first in the build tree, then in the source tree
22275 # (if the path is not absolute). The absolute path cannot be DOS-style,
22276 # because $ac_f cannot contain `:'.
22280 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22282 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22283 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22284 { (exit 1); exit 1; }; };;
22286 ac_file_inputs="$ac_file_inputs $ac_f"
22289 # Let's still pretend it is `configure' which instantiates (i.e., don't
22290 # use $as_me), people would be surprised to read:
22291 # /* config.h. Generated by config.status. */
22292 configure_input="Generated from "`IFS=:
22293 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22294 if test x"$ac_file" != x-; then
22295 configure_input="$ac_file. $configure_input"
22296 { echo "$as_me:$LINENO: creating $ac_file" >&5
22297 echo "$as_me: creating $ac_file" >&6;}
22301 *:-:* | *:-) cat >"$tmp/stdin";;
22306 ac_dir=`$as_dirname -- "$ac_file" ||
22307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22308 X"$ac_file" : 'X\(//\)[^/]' \| \
22309 X"$ac_file" : 'X\(//\)$' \| \
22310 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22316 /^X\(\/\/\)[^/].*/{
22331 -*) as_dir=./$as_dir;;
22333 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22337 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22338 *) as_qdir=$as_dir;;
22340 as_dirs="'$as_qdir' $as_dirs"
22341 as_dir=`$as_dirname -- "$as_dir" ||
22342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22343 X"$as_dir" : 'X\(//\)[^/]' \| \
22344 X"$as_dir" : 'X\(//\)$' \| \
22345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22351 /^X\(\/\/\)[^/].*/{
22364 test -d "$as_dir" && break
22366 test -z "$as_dirs" || eval "mkdir $as_dirs"
22367 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22368 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22369 { (exit 1); exit 1; }; }; }
22373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22376 # A ".." for each directory in $ac_dir_suffix.
22377 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22378 case $ac_top_builddir_sub in
22379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22383 ac_abs_top_builddir=$ac_pwd
22384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22385 # for backward compatibility:
22386 ac_top_builddir=$ac_top_build_prefix
22389 .) # We are building in place.
22391 ac_top_srcdir=$ac_top_builddir_sub
22392 ac_abs_top_srcdir=$ac_pwd ;;
22393 [\\/]* | ?:[\\/]* ) # Absolute name.
22394 ac_srcdir=$srcdir$ac_dir_suffix;
22395 ac_top_srcdir=$srcdir
22396 ac_abs_top_srcdir=$srcdir ;;
22397 *) # Relative name.
22398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22399 ac_top_srcdir=$ac_top_build_prefix$srcdir
22400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22413 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22417 cat >>$CONFIG_STATUS <<\_ACEOF
22418 # If the template does not know about datarootdir, expand it.
22419 # FIXME: This hack should be removed a few years after 2.60.
22420 ac_datarootdir_hack=; ac_datarootdir_seen=
22422 case `sed -n '/datarootdir/ {
22431 ' $ac_file_inputs` in
22432 *datarootdir*) ac_datarootdir_seen=yes;;
22433 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22434 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22435 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22437 cat >>$CONFIG_STATUS <<_ACEOF
22438 ac_datarootdir_hack='
22439 s&@datadir@&$datadir&g
22440 s&@docdir@&$docdir&g
22441 s&@infodir@&$infodir&g
22442 s&@localedir@&$localedir&g
22443 s&@mandir@&$mandir&g
22444 s&\\\${datarootdir}&$datarootdir&g' ;;
22448 # Neutralize VPATH when `$srcdir' = `.'.
22449 # Shell code in configure.ac might set extrasub.
22450 # FIXME: do we really want to maintain this feature?
22451 cat >>$CONFIG_STATUS <<_ACEOF
22455 cat >>$CONFIG_STATUS <<\_ACEOF
22457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22458 s&@configure_input@&$configure_input&;t t
22459 s&@top_builddir@&$ac_top_builddir_sub&;t t
22460 s&@srcdir@&$ac_srcdir&;t t
22461 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22462 s&@top_srcdir@&$ac_top_srcdir&;t t
22463 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22464 s&@builddir@&$ac_builddir&;t t
22465 s&@abs_builddir@&$ac_abs_builddir&;t t
22466 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22467 s&@INSTALL@&$ac_INSTALL&;t t
22468 $ac_datarootdir_hack
22469 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22471 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22472 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22473 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22474 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22475 which seems to be undefined. Please make sure it is defined." >&5
22476 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22477 which seems to be undefined. Please make sure it is defined." >&2;}
22481 -) cat "$tmp/out"; rm -f "$tmp/out";;
22482 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22491 # Transform confdefs.h into a sed script `conftest.defines', that
22492 # substitutes the proper values into config.h.in to produce config.h.
22493 rm -f conftest.defines conftest.tail
22494 # First, append a space to every undef/define line, to ease matching.
22495 echo 's/$/ /' >conftest.defines
22496 # Then, protect against being on the right side of a sed subst, or in
22497 # an unquoted here document, in config.status. If some macros were
22498 # called several times there might be several #defines for the same
22499 # symbol, which is useless. But do not sort them, since the last
22500 # AC_DEFINE must be honored.
22501 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22502 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22503 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22504 # PARAMS is the parameter list in the macro definition--in most cases, it's
22505 # just an empty string.
22506 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22507 ac_dB='\\)[ (].*,\\1define\\2'
22515 s/^[ ]*#[ ]*define[ ][ ]*//
22520 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22521 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22522 ' >>conftest.defines
22524 # Remove the space that was appended to ease matching.
22525 # Then replace #undef with comments. This is necessary, for
22526 # example, in the case of _POSIX_SOURCE, which is predefined and required
22527 # on some systems where configure will not decide to define it.
22528 # (The regexp can be short, since the line contains either #define or #undef.)
22530 s,^[ #]*u.*,/* & */,' >>conftest.defines
22532 # Break up conftest.defines:
22533 ac_max_sed_lines=50
22535 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22536 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22537 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22539 ac_in='$ac_file_inputs'
22540 ac_out='"$tmp/out1"'
22541 ac_nxt='"$tmp/out2"'
22545 # Write a here document:
22546 cat >>$CONFIG_STATUS <<_ACEOF
22547 # First, check the format of the line:
22548 cat >"\$tmp/defines.sed" <<\\CEOF
22549 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22550 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22554 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22556 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22557 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22558 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22559 grep . conftest.tail >/dev/null || break
22560 rm -f conftest.defines
22561 mv conftest.tail conftest.defines
22563 rm -f conftest.defines conftest.tail
22565 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22566 cat >>$CONFIG_STATUS <<\_ACEOF
22567 if test x"$ac_file" != x-; then
22568 echo "/* $configure_input */" >"$tmp/config.h"
22569 cat "$ac_result" >>"$tmp/config.h"
22570 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22571 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22572 echo "$as_me: $ac_file is unchanged" >&6;}
22575 mv "$tmp/config.h" $ac_file
22578 echo "/* $configure_input */"
22584 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22585 echo "$as_me: executing $ac_file commands" >&6;}
22590 case $ac_file$ac_mode in
22591 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22592 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22593 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22594 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22595 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22596 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22597 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22598 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22599 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22600 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22601 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22602 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22603 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22604 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22605 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22606 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22607 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22608 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22609 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22610 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22611 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22612 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22613 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22614 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22615 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22616 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22622 { (exit 0); exit 0; }
22624 chmod +x $CONFIG_STATUS
22625 ac_clean_files=$ac_clean_files_save
22628 # configure is writing to config.log, and then calls config.status.
22629 # config.status does its own redirection, appending to config.log.
22630 # Unfortunately, on DOS this fails, as config.log is still kept open
22631 # by configure, so config.status won't be able to write to it; its
22632 # output is simply discarded. So we exec the FD to /dev/null,
22633 # effectively closing config.log, so it can be properly (re)opened and
22634 # appended to by config.status. When coming back to configure, we
22635 # need to make the FD available again.
22636 if test "$no_create" != yes; then
22638 ac_config_status_args=
22639 test "$silent" = yes &&
22640 ac_config_status_args="$ac_config_status_args --quiet"
22642 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22644 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22645 # would make configure fail if this is the last instruction.
22646 $ac_cs_success || { (exit 1); exit 1; }
22650 # CONFIG_SUBDIRS section.
22652 if test "$no_recursion" != yes; then
22654 # Remove --cache-file and --srcdir arguments so they do not pile up.
22655 ac_sub_configure_args=
22657 eval "set x $ac_configure_args"
22661 if test -n "$ac_prev"; then
22666 -cache-file | --cache-file | --cache-fil | --cache-fi \
22667 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22668 ac_prev=cache_file ;;
22669 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22670 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22673 --config-cache | -C)
22675 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22677 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22679 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22681 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22685 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22687 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22691 # Always prepend --prefix to ensure using the same prefix
22692 # in subdir configurations.
22693 ac_arg="--prefix=$prefix"
22695 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22697 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22700 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22702 # Do not complain, so a configure script can configure whichever
22703 # parts of a large source tree are present.
22704 test -d "$srcdir/$ac_dir" || continue
22706 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22707 echo "$as_me:$LINENO: $ac_msg" >&5
22711 -*) as_dir=./$as_dir;;
22713 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22717 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22718 *) as_qdir=$as_dir;;
22720 as_dirs="'$as_qdir' $as_dirs"
22721 as_dir=`$as_dirname -- "$as_dir" ||
22722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22723 X"$as_dir" : 'X\(//\)[^/]' \| \
22724 X"$as_dir" : 'X\(//\)$' \| \
22725 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22731 /^X\(\/\/\)[^/].*/{
22744 test -d "$as_dir" && break
22746 test -z "$as_dirs" || eval "mkdir $as_dirs"
22747 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22748 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22749 { (exit 1); exit 1; }; }; }
22753 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22755 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22756 # A ".." for each directory in $ac_dir_suffix.
22757 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22758 case $ac_top_builddir_sub in
22759 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22760 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22763 ac_abs_top_builddir=$ac_pwd
22764 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22765 # for backward compatibility:
22766 ac_top_builddir=$ac_top_build_prefix
22769 .) # We are building in place.
22771 ac_top_srcdir=$ac_top_builddir_sub
22772 ac_abs_top_srcdir=$ac_pwd ;;
22773 [\\/]* | ?:[\\/]* ) # Absolute name.
22774 ac_srcdir=$srcdir$ac_dir_suffix;
22775 ac_top_srcdir=$srcdir
22776 ac_abs_top_srcdir=$srcdir ;;
22777 *) # Relative name.
22778 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22779 ac_top_srcdir=$ac_top_build_prefix$srcdir
22780 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22782 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22787 # Check for guested configure; otherwise get Cygnus style configure.
22788 if test -f "$ac_srcdir/configure.gnu"; then
22789 ac_sub_configure=$ac_srcdir/configure.gnu
22790 elif test -f "$ac_srcdir/configure"; then
22791 ac_sub_configure=$ac_srcdir/configure
22792 elif test -f "$ac_srcdir/configure.in"; then
22793 # This should be Cygnus configure.
22794 ac_sub_configure=$ac_aux_dir/configure
22796 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22797 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22801 # The recursion is here.
22802 if test -n "$ac_sub_configure"; then
22803 # Make the cache file name correct relative to the subdirectory.
22804 case $cache_file in
22805 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22806 *) # Relative name.
22807 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22810 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22811 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22812 # The eval makes quoting arguments work.
22813 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22814 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22815 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22816 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22817 { (exit 1); exit 1; }; }