2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
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-2012 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.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/VMCore/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
692 ENABLE_EXPENSIVE_CHECKS
709 LLVM_ENUM_ASM_PRINTERS
710 LLVM_ENUM_ASM_PARSERS
711 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
790 ENABLE_VISIBILITY_INLINES_HIDDEN
797 ac_precious_vars='build_alias
808 ac_subdirs_all='projects/llvm-gcc
812 projects/llvm-poolalloc
815 projects/llvm-stacker
823 # Initialize some variables set by options.
825 ac_init_version=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
835 program_transform_name=s,x,x,
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 -enable-* | --enable-*)
943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
964 -help | --help | --hel | --he | -h)
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1113 -site=* | --site=* | --sit=*)
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package| sed 's/-/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/-/_/g'`
1155 eval with_$ac_package=no ;;
1158 # Obsolete; use --with-x.
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
1206 # Be sure to have absolute directory names.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1323 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1387 if test -n "$ac_init_help"; then
1388 case $ac_init_help in
1389 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-polly Use polly if available (default is YES)
1397 --enable-libcpp Use libc++ if available (default is NO)
1398 --enable-cxx11 Use c++11 if available (default is NO)
1399 --enable-optimized Compile with optimizations enabled (default is NO)
1400 --enable-profiling Compile with profiling enabled (default is NO)
1401 --enable-assertions Compile with assertion checks enabled (default is
1403 --enable-werror Compile with -Werror enabled (default is NO)
1404 --enable-expensive-checks
1405 Compile with expensive debug checks enabled (default
1407 --enable-debug-runtime Build runtime libs with debug symbols (default is
1409 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1410 optimization is on and YES if it's off)
1411 --enable-keep-symbols Do not strip installed executables)
1412 --enable-jit Enable Just In Time Compiling (default is YES)
1413 --enable-docs Build documents (default is YES)
1414 --enable-doxygen Build doxygen documentation (default is NO)
1415 --enable-threads Use threads if available (default is YES)
1416 --enable-pthreads Use pthreads if available (default is YES)
1417 --enable-pic Build LLVM with Position Independent Code (default
1419 --enable-shared Build a shared library and link tools against it
1421 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1422 Win32 DLL (default is NO)
1423 --enable-timestamps Enable embedding timestamp information in build
1425 --enable-backtraces Enable embedding backtraces on crash (default is
1427 --enable-targets Build specific host targets: all or
1428 target1,target2,... Valid targets are: host, x86,
1429 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1430 xcore, msp430, nvptx, and cpp (default=all)
1431 --enable-experimental-targets
1432 Build experimental host targets: disable or
1433 target1,target2,... (default=disable)
1434 --enable-bindings Build specific language bindings:
1435 all,auto,none,{binding-name} (default=auto)
1436 --enable-libffi Check for the presence of libffi (default is NO)
1437 --enable-ltdl-install install libltdl
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-optimize-option Select the compiler options to use for optimized
1444 --with-extra-options Specify additional options to compile LLVM with
1445 --with-extra-ld-options Specify additional options to link LLVM with
1446 --with-ocaml-libdir Specify install location for ocaml bindings (default
1448 --with-clang-srcdir Directory to the out-of-tree Clang source
1449 --with-clang-resource-dir
1450 Relative directory from the Clang binary for
1452 --with-c-include-dirs Colon separated list of directories clang will
1454 --with-gcc-toolchain Directory where gcc is installed.
1455 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1456 --with-binutils-include Specify path to binutils/include/ containing
1457 plugin-api.h file for gold plugin.
1458 --with-bug-report-url Specify the URL where bug reports should be
1459 submitted (default=http://llvm.org/bugs/)
1460 --with-internal-prefix Installation directory for internal files
1461 --with-udis86=<path> Use udis86 external x86 disassembler library
1462 --with-oprofile=<prefix>
1463 Tell OProfile >= 0.9.4 how to symbolize JIT output
1464 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1467 Some influential environment variables:
1468 CC C compiler command
1469 CFLAGS C compiler flags
1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
1472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 CXX C++ compiler command
1475 CXXFLAGS C++ compiler flags
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to <http://llvm.org/bugs/>.
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" || continue
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1509 .) # We are building in place.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1542 LLVM configure 3.2svn
1543 generated by GNU Autoconf 2.60
1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1546 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1550 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1554 cat >config.log <<_ACEOF
1555 This file contains any messages produced by compilers while
1556 running configure, to aid debugging if configure makes a mistake.
1558 It was created by LLVM $as_me 3.2svn, which was
1559 generated by GNU Autoconf 2.60. Invocation command line was
1571 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1577 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1580 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1581 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1582 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1583 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1584 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1585 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1586 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 test -z "$as_dir" && as_dir=.
1595 echo "PATH: $as_dir"
1611 # Keep a trace of the command line.
1612 # Strip out --no-create and --no-recursion so they do not pile up.
1613 # Strip out --silent because we don't want to record it for future runs.
1614 # Also quote any args containing shell meta-characters.
1615 # Make two passes to allow for proper duplicate-argument suppression.
1619 ac_must_keep_next=false
1625 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627 | -silent | --silent | --silen | --sile | --sil)
1630 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1633 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1635 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1636 if test $ac_must_keep_next = true; then
1637 ac_must_keep_next=false # Got value, back to normal.
1640 *=* | --config-cache | -C | -disable-* | --disable-* \
1641 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643 | -with-* | --with-* | -without-* | --without-* | --x)
1644 case "$ac_configure_args0 " in
1645 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1648 -* ) ac_must_keep_next=true ;;
1651 ac_configure_args="$ac_configure_args '$ac_arg'"
1656 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1659 # When interrupted or exit'd, cleanup temporary files, and complete
1660 # config.log. We remove comments because anyway the quotes in there
1661 # would cause problems or look ugly.
1662 # WARNING: Use '\'' to represent an apostrophe within the trap.
1663 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1664 trap 'exit_status=$?
1665 # Save into config.log some information that might help in debugging.
1670 ## ---------------- ##
1671 ## Cache variables. ##
1672 ## ---------------- ##
1675 # The following way of writing the cache mishandles newlines in values,
1677 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678 eval ac_val=\$$ac_var
1682 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1686 _ | IFS | as_nl) ;; #(
1687 *) $as_unset $ac_var ;;
1692 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693 *${as_nl}ac_space=\ *)
1695 "s/'\''/'\''\\\\'\'''\''/g;
1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1707 ## ----------------- ##
1708 ## Output variables. ##
1709 ## ----------------- ##
1712 for ac_var in $ac_subst_vars
1714 eval ac_val=\$$ac_var
1716 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1718 echo "$ac_var='\''$ac_val'\''"
1722 if test -n "$ac_subst_files"; then
1724 ## ------------------- ##
1725 ## File substitutions. ##
1726 ## ------------------- ##
1729 for ac_var in $ac_subst_files
1731 eval ac_val=\$$ac_var
1733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1735 echo "$ac_var='\''$ac_val'\''"
1740 if test -s confdefs.h; then
1750 test "$ac_signal" != 0 &&
1751 echo "$as_me: caught signal $ac_signal"
1752 echo "$as_me: exit $exit_status"
1754 rm -f core *.core core.conftest.* &&
1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1758 for ac_signal in 1 2 13 15; do
1759 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1764 rm -f -r conftest* confdefs.h
1766 # Predefined preprocessor variables.
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_NAME "$PACKAGE_NAME"
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_STRING "$PACKAGE_STRING"
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1793 # Let the site file select an alternate cache file if it wants to.
1794 # Prefer explicitly selected file to automatically selected ones.
1795 if test -n "$CONFIG_SITE"; then
1796 set x "$CONFIG_SITE"
1797 elif test "x$prefix" != xNONE; then
1798 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1800 set x "$ac_default_prefix/share/config.site" \
1801 "$ac_default_prefix/etc/config.site"
1806 if test -r "$ac_site_file"; then
1807 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808 echo "$as_me: loading site script $ac_site_file" >&6;}
1809 sed 's/^/| /' "$ac_site_file" >&5
1814 if test -r "$cache_file"; then
1815 # Some versions of bash will fail to source /dev/null (special
1816 # files actually), so we avoid doing that.
1817 if test -f "$cache_file"; then
1818 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819 echo "$as_me: loading cache $cache_file" >&6;}
1821 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822 *) . "./$cache_file";;
1826 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827 echo "$as_me: creating cache $cache_file" >&6;}
1831 # Check that the precious variables saved in the cache have kept the same
1833 ac_cache_corrupted=false
1834 for ac_var in $ac_precious_vars; do
1835 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836 eval ac_new_set=\$ac_env_${ac_var}_set
1837 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838 eval ac_new_val=\$ac_env_${ac_var}_value
1839 case $ac_old_set,$ac_new_set in
1841 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1845 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1850 if test "x$ac_old_val" != "x$ac_new_val"; then
1851 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1854 echo "$as_me: former value: $ac_old_val" >&2;}
1855 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1856 echo "$as_me: current value: $ac_new_val" >&2;}
1857 ac_cache_corrupted=:
1860 # Pass precious variables to config.status.
1861 if test "$ac_new_set" = set; then
1863 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1864 *) ac_arg=$ac_var=$ac_new_val ;;
1866 case " $ac_configure_args " in
1867 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1868 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1872 if $ac_cache_corrupted; then
1873 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877 { (exit 1); exit 1; }; }
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 cat >>confdefs.h <<\_ACEOF
1913 #define LLVM_VERSION_MAJOR 3
1917 cat >>confdefs.h <<\_ACEOF
1918 #define LLVM_VERSION_MINOR 2
1922 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1931 for ac_dir in autoconf "$srcdir"/autoconf; do
1932 if test -f "$ac_dir/install-sh"; then
1934 ac_install_sh="$ac_aux_dir/install-sh -c"
1936 elif test -f "$ac_dir/install.sh"; then
1938 ac_install_sh="$ac_aux_dir/install.sh -c"
1940 elif test -f "$ac_dir/shtool"; then
1942 ac_install_sh="$ac_aux_dir/shtool install -c"
1946 if test -z "$ac_aux_dir"; then
1947 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1948 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1949 { (exit 1); exit 1; }; }
1952 # These three variables are undocumented and unsupported,
1953 # and are intended to be withdrawn in a future Autoconf release.
1954 # They can cause serious problems if a builder's source tree is in a directory
1955 # whose full name contains unusual characters.
1956 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1957 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1958 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962 if test ${srcdir} != "." ; then
1963 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1964 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1965 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1966 { (exit 1); exit 1; }; }
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976 for ac_prog in clang llvm-gcc gcc
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2015 test -n "$CC" && break
2018 if test -z "$CC"; then
2020 for ac_prog in clang llvm-gcc gcc
2022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039 ac_cv_prog_ac_ct_CC="$ac_prog"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6; }
2054 { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2059 test -n "$ac_ct_CC" && break
2062 if test "x$ac_ct_CC" = x; then
2065 case $cross_compiling:$ac_tool_warned in
2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet. If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&5
2070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet. If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073 ac_tool_warned=yes ;;
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO: checking for C compiler version" >&5
2088 ac_compiler=`set X $ac_compile; echo $2`
2089 { (ac_try="$ac_compiler --version >&5"
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler --version >&5") 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099 { (ac_try="$ac_compiler -v >&5"
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -v >&5") 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109 { (ac_try="$ac_compiler -V >&5"
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_compiler -V >&5") 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2120 cat >conftest.$ac_ext <<_ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2140 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 # List of possible output files, starting from the most likely.
2145 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146 # only as a last resort. b.out is created by i960 compilers.
2147 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2149 # The IRIX 6 linker writes into existing files which may not be
2150 # executable, retaining their permissions. Remove them first so a
2151 # subsequent execution test works.
2153 for ac_file in $ac_files
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162 if { (ac_try="$ac_link_default"
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168 (eval "$ac_link_default") 2>&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2175 # so that the user can short-circuit this test for compilers unknown to
2177 for ac_file in $ac_files
2179 test -f "$ac_file" || continue
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2184 # We found the default executable, but exeext='' is most
2188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 # We set ac_cv_exeext here because the later test for it is not
2193 # safe: cross compilers may not add the suffix if given an `-o'
2194 # argument, so we may need to know it at that point already.
2195 # Even if this section looks crufty: it has the advantage of
2202 test "$ac_cv_exeext" = no && ac_cv_exeext=
2205 echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212 { (exit 77); exit 77; }; }
2215 ac_exeext=$ac_cv_exeext
2216 { echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6; }
2219 # Check that the compiler produces executables we can run. If not, either
2220 # the compiler is broken, or we cross compile.
2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232 (eval "$ac_try") 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2238 if test "$cross_compiling" = maybe; then
2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&5
2244 echo "$as_me: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2251 { echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6; }
2254 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255 ac_clean_files=$ac_clean_files_save
2256 # Check that the compiler produces executables we can run. If not, either
2257 # the compiler is broken, or we cross compile.
2258 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261 echo "${ECHO_T}$cross_compiling" >&6; }
2263 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265 if { (ac_try="$ac_link"
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_link") 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2279 for ac_file in conftest.exe conftest conftest.*; do
2280 test -f "$ac_file" || continue
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest$ac_cv_exeext
2297 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2300 rm -f conftest.$ac_ext
2301 EXEEXT=$ac_cv_exeext
2303 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305 if test "${ac_cv_objext+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 cat >conftest.$ac_ext <<_ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2323 rm -f conftest.o conftest.obj
2324 if { (ac_try="$ac_compile"
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_compile") 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file in conftest.o conftest.obj conftest.*; do
2335 test -f "$ac_file" || continue;
2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2355 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356 echo "${ECHO_T}$ac_cv_objext" >&6; }
2357 OBJEXT=$ac_cv_objext
2359 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat >conftest.$ac_ext <<_ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2382 rm -f conftest.$ac_objext
2383 if { (ac_try="$ac_compile"
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>conftest.er1
2391 grep -v '^ *+' conftest.er1 >conftest.err
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
2407 { (case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_try") 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 ac_save_c_werror_flag=$ac_c_werror_flag
2439 ac_c_werror_flag=yes
2442 cat >conftest.$ac_ext <<_ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>conftest.er1
2466 grep -v '^ *+' conftest.er1 >conftest.err
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_try") 2>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2497 cat >conftest.$ac_ext <<_ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2512 rm -f conftest.$ac_objext
2513 if { (ac_try="$ac_compile"
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_compile") 2>conftest.er1
2521 grep -v '^ *+' conftest.er1 >conftest.err
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_try") 2>&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2551 ac_c_werror_flag=$ac_save_c_werror_flag
2553 cat >conftest.$ac_ext <<_ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compile") 2>conftest.er1
2577 grep -v '^ *+' conftest.er1 >conftest.err
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_try") 2>&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_c_werror_flag=$ac_save_c_werror_flag
2619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621 if test "$ac_test_CFLAGS" = set; then
2622 CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624 if test "$GCC" = yes; then
2630 if test "$GCC" = yes; then
2636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_c89+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 ac_cv_prog_cc_c89=no
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2651 #include <sys/types.h>
2652 #include <sys/stat.h>
2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2654 struct buf { int x; };
2655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656 static char *e (p, i)
2662 static char *f (char * (*g) (char **, int), char **p, ...)
2667 s = g (p, va_arg (v,int));
2672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2673 function prototypes and stuff, but not '\xHH' hex character constants.
2674 These don't provoke an error unfortunately, instead are silently treated
2675 as 'x'. The following induces an error, until -std is added to get
2676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2677 array size at least. It's necessary to write '\x00'==0 to get something
2678 that's true only with -std. */
2679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682 inside strings and character constants. */
2684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2686 int test (int i, double x);
2687 struct s1 {int (*f) (int a);};
2688 struct s2 {int (*f) (double a);};
2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2695 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2703 CC="$ac_save_CC $ac_arg"
2704 rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2713 grep -v '^ *+' conftest.er1 >conftest.err
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_try") 2>&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_prog_cc_c89=$ac_arg
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2746 rm -f core conftest.err conftest.$ac_objext
2747 test "x$ac_cv_prog_cc_c89" != "xno" && break
2749 rm -f conftest.$ac_ext
2754 case "x$ac_cv_prog_cc_c89" in
2756 { echo "$as_me:$LINENO: result: none needed" >&5
2757 echo "${ECHO_T}none needed" >&6; } ;;
2759 { echo "$as_me:$LINENO: result: unsupported" >&5
2760 echo "${ECHO_T}unsupported" >&6; } ;;
2762 CC="$CC $ac_cv_prog_cc_c89"
2763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 ac_cpp='$CXXCPP $CPPFLAGS'
2776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779 if test -z "$CXX"; then
2780 if test -n "$CCC"; then
2783 if test -n "$ac_tool_prefix"; then
2784 for ac_prog in clang++ llvm-g++ g++
2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_CXX+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 if test -n "$CXX"; then
2794 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 if test -n "$CXX"; then
2815 { echo "$as_me:$LINENO: result: $CXX" >&5
2816 echo "${ECHO_T}$CXX" >&6; }
2818 { echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6; }
2823 test -n "$CXX" && break
2826 if test -z "$CXX"; then
2828 for ac_prog in clang++ llvm-g++ g++
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 if test -n "$ac_ct_CXX"; then
2838 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CXX="$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858 if test -n "$ac_ct_CXX"; then
2859 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2862 { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2867 test -n "$ac_ct_CXX" && break
2870 if test "x$ac_ct_CXX" = x; then
2873 case $cross_compiling:$ac_tool_warned in
2875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet. If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&5
2878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet. If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881 ac_tool_warned=yes ;;
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2992 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994 GXX=`test $ac_compiler_gnu = yes && echo yes`
2995 ac_test_CXXFLAGS=${CXXFLAGS+set}
2996 ac_save_CXXFLAGS=$CXXFLAGS
2997 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cxx_g+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003 ac_cxx_werror_flag=yes
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_prog_cxx_g=yes
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3061 cat >conftest.$ac_ext <<_ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3085 grep -v '^ *+' conftest.er1 >conftest.err
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_cv_prog_cxx_g=yes
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185 if test "$ac_test_CXXFLAGS" = set; then
3186 CXXFLAGS=$ac_save_CXXFLAGS
3187 elif test $ac_cv_prog_cxx_g = yes; then
3188 if test "$GXX" = yes; then
3194 if test "$GXX" = yes; then
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3217 if test -z "$CPP"; then
3218 if test "${ac_cv_prog_CPP+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3225 for ac_c_preproc_warn_flag in '' yes
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3240 # include <limits.h>
3242 # include <assert.h>
3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3254 grep -v '^ *+' conftest.er1 >conftest.err
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268 if test -z "$ac_cpp_err"; then
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 # Broken: fails on valid input.
3278 rm -f conftest.err conftest.$ac_ext
3280 # OK, works on sane cases. Now check whether nonexistent headers
3281 # can be detected and how.
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288 #include <ac_nonexistent.h>
3290 if { (ac_try="$ac_cpp conftest.$ac_ext"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312 if test -z "$ac_cpp_err"; then
3313 # Broken: success on invalid input.
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 # Passes both tests.
3324 rm -f conftest.err conftest.$ac_ext
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.$ac_ext
3329 if $ac_preproc_ok; then
3341 { echo "$as_me:$LINENO: result: $CPP" >&5
3342 echo "${ECHO_T}$CPP" >&6; }
3344 for ac_c_preproc_warn_flag in '' yes
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.$ac_ext <<_ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3359 # include <limits.h>
3361 # include <assert.h>
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387 if test -z "$ac_cpp_err"; then
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 # Broken: fails on valid input.
3397 rm -f conftest.err conftest.$ac_ext
3399 # OK, works on sane cases. Now check whether nonexistent headers
3400 # can be detected and how.
3401 cat >conftest.$ac_ext <<_ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 #include <ac_nonexistent.h>
3409 if { (ac_try="$ac_cpp conftest.$ac_ext"
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417 grep -v '^ *+' conftest.er1 >conftest.err
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 if test -z "$ac_cpp_err"; then
3432 # Broken: success on invalid input.
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Passes both tests.
3443 rm -f conftest.err conftest.$ac_ext
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 if test -d ${srcdir}/projects/llvm-gcc ; then
3468 subdirs="$subdirs projects/llvm-gcc"
3472 if test -d ${srcdir}/projects/test-suite ; then
3473 subdirs="$subdirs projects/test-suite"
3477 if test -d ${srcdir}/projects/llvm-test ; then
3478 subdirs="$subdirs projects/llvm-test"
3482 if test -d ${srcdir}/projects/poolalloc ; then
3483 subdirs="$subdirs projects/poolalloc"
3487 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3488 subdirs="$subdirs projects/llvm-poolalloc"
3492 for i in `ls ${srcdir}/projects`
3494 if test -d ${srcdir}/projects/${i} ; then
3496 sample) subdirs="$subdirs projects/sample"
3498 privbracket) subdirs="$subdirs projects/privbracket"
3500 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3502 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3504 llvm-java) subdirs="$subdirs projects/llvm-java"
3506 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3508 safecode) subdirs="$subdirs projects/safecode"
3510 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3519 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3520 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3526 # Check whether --enable-polly was given.
3527 if test "${enable_polly+set}" = set; then
3528 enableval=$enable_polly;
3533 case "$enableval" in
3538 default) ENABLE_POLLY=1
3540 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3541 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3542 { (exit 1); exit 1; }; } ;;
3546 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3549 subdirs="$subdirs tools/polly"
3554 # Make sure we can run config.sub.
3555 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3556 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3557 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3558 { (exit 1); exit 1; }; }
3560 { echo "$as_me:$LINENO: checking build system type" >&5
3561 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3562 if test "${ac_cv_build+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 ac_build_alias=$build_alias
3566 test "x$ac_build_alias" = x &&
3567 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3568 test "x$ac_build_alias" = x &&
3569 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3570 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3571 { (exit 1); exit 1; }; }
3572 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3573 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3574 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3575 { (exit 1); exit 1; }; }
3578 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3579 echo "${ECHO_T}$ac_cv_build" >&6; }
3580 case $ac_cv_build in
3582 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3583 echo "$as_me: error: invalid value of canonical build" >&2;}
3584 { (exit 1); exit 1; }; };;
3587 ac_save_IFS=$IFS; IFS='-'
3593 # Remember, the first character of IFS is used to create $*,
3594 # except with old shells:
3597 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3600 { echo "$as_me:$LINENO: checking host system type" >&5
3601 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3602 if test "${ac_cv_host+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 if test "x$host_alias" = x; then
3606 ac_cv_host=$ac_cv_build
3608 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3609 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3610 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3611 { (exit 1); exit 1; }; }
3615 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3616 echo "${ECHO_T}$ac_cv_host" >&6; }
3619 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3620 echo "$as_me: error: invalid value of canonical host" >&2;}
3621 { (exit 1); exit 1; }; };;
3624 ac_save_IFS=$IFS; IFS='-'
3630 # Remember, the first character of IFS is used to create $*,
3631 # except with old shells:
3634 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3637 { echo "$as_me:$LINENO: checking target system type" >&5
3638 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3639 if test "${ac_cv_target+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 if test "x$target_alias" = x; then
3643 ac_cv_target=$ac_cv_host
3645 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3646 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3647 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3648 { (exit 1); exit 1; }; }
3652 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3653 echo "${ECHO_T}$ac_cv_target" >&6; }
3654 case $ac_cv_target in
3656 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3657 echo "$as_me: error: invalid value of canonical target" >&2;}
3658 { (exit 1); exit 1; }; };;
3660 target=$ac_cv_target
3661 ac_save_IFS=$IFS; IFS='-'
3667 # Remember, the first character of IFS is used to create $*,
3668 # except with old shells:
3671 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3674 # The aliases save the names the user supplied, while $host etc.
3675 # will get canonicalized.
3676 test -n "$target_alias" &&
3677 test "$program_prefix$program_suffix$program_transform_name" = \
3679 program_prefix=${target_alias}-
3681 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3682 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3683 if test "${llvm_cv_os_type+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="AIX"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="IRIX"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="Cygwin"
3701 llvm_cv_platform_type="Unix" ;;
3703 llvm_cv_link_all_option="-Wl,-all_load"
3704 llvm_cv_no_link_all_option="-Wl,-noall_load"
3705 llvm_cv_os_type="Darwin"
3706 llvm_cv_platform_type="Unix" ;;
3708 llvm_cv_link_all_option="-Wl,-all_load"
3709 llvm_cv_no_link_all_option="-Wl,-noall_load"
3710 llvm_cv_os_type="Minix"
3711 llvm_cv_platform_type="Unix" ;;
3712 *-*-freebsd* | *-*-kfreebsd-gnu)
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="FreeBSD"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="OpenBSD"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="NetBSD"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option="-Wl,--whole-archive"
3729 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730 llvm_cv_os_type="DragonFly"
3731 llvm_cv_platform_type="Unix" ;;
3733 llvm_cv_link_all_option="-Wl,--whole-archive"
3734 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735 llvm_cv_os_type="HP-UX"
3736 llvm_cv_platform_type="Unix" ;;
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="Interix"
3741 llvm_cv_platform_type="Unix" ;;
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="Linux"
3746 llvm_cv_platform_type="Unix" ;;
3748 llvm_cv_link_all_option="-Wl,--whole-archive"
3749 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750 llvm_cv_os_type="GNU"
3751 llvm_cv_platform_type="Unix" ;;
3753 llvm_cv_link_all_option="-Wl,-z,allextract"
3754 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3755 llvm_cv_os_type="SunOS"
3756 llvm_cv_platform_type="Unix" ;;
3758 llvm_cv_link_all_option="-Wl,-z,allextract"
3759 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3760 llvm_cv_os_type="AuroraUX"
3761 llvm_cv_platform_type="Unix" ;;
3763 llvm_cv_link_all_option="-Wl,--whole-archive"
3764 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765 llvm_cv_os_type="Win32"
3766 llvm_cv_platform_type="Win32" ;;
3768 llvm_cv_link_all_option="-Wl,--whole-archive"
3769 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770 llvm_cv_os_type="MingW"
3771 llvm_cv_platform_type="Win32" ;;
3773 llvm_cv_link_all_option="-Wl,--whole-archive"
3774 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775 llvm_cv_os_type="Haiku"
3776 llvm_cv_platform_type="Unix" ;;
3778 llvm_cv_link_all_option="-Wl,--whole-archive"
3779 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3780 llvm_cv_os_type="Freestanding"
3781 llvm_cv_platform_type="Unix" ;;
3783 llvm_cv_link_all_option="-Wl,--whole-archive"
3784 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3785 llvm_cv_os_type="Freestanding"
3786 llvm_cv_platform_type="Unix" ;;
3788 llvm_cv_link_all_option=""
3789 llvm_cv_no_link_all_option=""
3790 llvm_cv_os_type="Unknown"
3791 llvm_cv_platform_type="Unknown" ;;
3794 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3795 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3797 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3798 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3799 if test "${llvm_cv_target_os_type+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 llvm_cv_target_os_type="AIX" ;;
3806 llvm_cv_target_os_type="IRIX" ;;
3808 llvm_cv_target_os_type="Cygwin" ;;
3810 llvm_cv_target_os_type="Darwin" ;;
3812 llvm_cv_target_os_type="Minix" ;;
3813 *-*-freebsd* | *-*-kfreebsd-gnu)
3814 llvm_cv_target_os_type="FreeBSD" ;;
3816 llvm_cv_target_os_type="OpenBSD" ;;
3818 llvm_cv_target_os_type="NetBSD" ;;
3820 llvm_cv_target_os_type="DragonFly" ;;
3822 llvm_cv_target_os_type="HP-UX" ;;
3824 llvm_cv_target_os_type="Interix" ;;
3826 llvm_cv_target_os_type="Linux" ;;
3828 llvm_cv_target_os_type="GNU" ;;
3830 llvm_cv_target_os_type="SunOS" ;;
3832 llvm_cv_target_os_type="AuroraUX" ;;
3834 llvm_cv_target_os_type="Win32" ;;
3836 llvm_cv_target_os_type="MingW" ;;
3838 llvm_cv_target_os_type="Haiku" ;;
3840 llvm_cv_target_os_type="RTEMS" ;;
3842 llvm_cv_target_os_type="NativeClient" ;;
3844 llvm_cv_target_os_type="Freestanding" ;;
3846 llvm_cv_target_os_type="Unknown" ;;
3849 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3850 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3852 if test "$llvm_cv_os_type" = "Unknown" ; then
3853 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3854 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3855 { (exit 1); exit 1; }; }
3860 HOST_OS=$llvm_cv_os_type
3862 TARGET_OS=$llvm_cv_target_os_type
3865 LINKALL=$llvm_cv_link_all_option
3867 NOLINKALL=$llvm_cv_no_link_all_option
3870 case $llvm_cv_platform_type in
3873 cat >>confdefs.h <<\_ACEOF
3874 #define LLVM_ON_UNIX 1
3884 cat >>confdefs.h <<\_ACEOF
3885 #define LLVM_ON_WIN32 1
3895 { echo "$as_me:$LINENO: checking target architecture" >&5
3896 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3897 if test "${llvm_cv_target_arch+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 i?86-*) llvm_cv_target_arch="x86" ;;
3902 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3903 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3904 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3905 arm*-*) llvm_cv_target_arch="ARM" ;;
3906 mips-*) llvm_cv_target_arch="Mips" ;;
3907 mipsel-*) llvm_cv_target_arch="Mips" ;;
3908 xcore-*) llvm_cv_target_arch="XCore" ;;
3909 msp430-*) llvm_cv_target_arch="MSP430" ;;
3910 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3911 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3912 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3913 *) llvm_cv_target_arch="Unknown" ;;
3916 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3917 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3919 if test "$llvm_cv_target_arch" = "Unknown" ; then
3920 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3921 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3924 case "$llvm_cv_target_arch" in
3925 x86) LLVM_NATIVE_ARCH="X86" ;;
3926 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3927 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3930 ARCH=$llvm_cv_target_arch
3934 i?86-*) host_arch="x86" ;;
3935 amd64-* | x86_64-*) host_arch="x86_64" ;;
3936 sparc*-*) host_arch="Sparc" ;;
3937 powerpc*-*) host_arch="PowerPC" ;;
3938 arm*-*) host_arch="ARM" ;;
3939 mips-*) host_arch="Mips" ;;
3940 mipsel-*) host_arch="Mips" ;;
3941 xcore-*) host_arch="XCore" ;;
3942 msp430-*) host_arch="MSP430" ;;
3943 hexagon-*) host_arch="Hexagon" ;;
3944 mblaze-*) host_arch="MBlaze" ;;
3945 *) host_arch="Unknown" ;;
3948 if test "$host_arch" = "Unknown" ; then
3949 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3950 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3953 HOST_ARCH=$host_arch
3958 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3959 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 # Extract the first word of "grep ggrep" to use in msg output
3964 if test -z "$GREP"; then
3965 set dummy grep ggrep; ac_prog_name=$2
3966 if test "${ac_cv_path_GREP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 ac_path_GREP_found=false
3970 # Loop through the user's path and test for each of PROGNAME-LIST
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975 test -z "$as_dir" && as_dir=.
3976 for ac_prog in grep ggrep; do
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3979 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3980 # Check for GNU ac_path_GREP and select it if it is found.
3981 # Check for GNU $ac_path_GREP
3982 case `"$ac_path_GREP" --version 2>&1` in
3984 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3987 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 echo 'GREP' >> "conftest.nl"
3994 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996 ac_count=`expr $ac_count + 1`
3997 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_GREP="$ac_path_GREP"
4000 ac_path_GREP_max=$ac_count
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009 $ac_path_GREP_found && break 3
4019 GREP="$ac_cv_path_GREP"
4020 if test -z "$GREP"; then
4021 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023 { (exit 1); exit 1; }; }
4027 ac_cv_path_GREP=$GREP
4032 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4034 GREP="$ac_cv_path_GREP"
4037 { echo "$as_me:$LINENO: checking for egrep" >&5
4038 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4043 then ac_cv_path_EGREP="$GREP -E"
4045 # Extract the first word of "egrep" to use in msg output
4046 if test -z "$EGREP"; then
4047 set dummy egrep; ac_prog_name=$2
4048 if test "${ac_cv_path_EGREP+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 ac_path_EGREP_found=false
4052 # Loop through the user's path and test for each of PROGNAME-LIST
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4057 test -z "$as_dir" && as_dir=.
4058 for ac_prog in egrep; do
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4061 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4062 # Check for GNU ac_path_EGREP and select it if it is found.
4063 # Check for GNU $ac_path_EGREP
4064 case `"$ac_path_EGREP" --version 2>&1` in
4066 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4069 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4072 cat "conftest.in" "conftest.in" >"conftest.tmp"
4073 mv "conftest.tmp" "conftest.in"
4074 cp "conftest.in" "conftest.nl"
4075 echo 'EGREP' >> "conftest.nl"
4076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4078 ac_count=`expr $ac_count + 1`
4079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080 # Best one so far, save it but keep looking for a better one
4081 ac_cv_path_EGREP="$ac_path_EGREP"
4082 ac_path_EGREP_max=$ac_count
4084 # 10*(2^10) chars as input seems more than enough
4085 test $ac_count -gt 10 && break
4087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4091 $ac_path_EGREP_found && break 3
4101 EGREP="$ac_cv_path_EGREP"
4102 if test -z "$EGREP"; then
4103 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105 { (exit 1); exit 1; }; }
4109 ac_cv_path_EGREP=$EGREP
4115 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4116 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4117 EGREP="$ac_cv_path_EGREP"
4120 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4121 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4122 if test "${ac_cv_header_stdc+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4144 rm -f conftest.$ac_objext
4145 if { (ac_try="$ac_compile"
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_compile") 2>conftest.er1
4153 grep -v '^ *+' conftest.er1 >conftest.err
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
4158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4159 { (case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_try") 2>&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; } &&
4168 { ac_try='test -s conftest.$ac_objext'
4169 { (case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 ac_cv_header_stdc=yes
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 ac_cv_header_stdc=no
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 if test $ac_cv_header_stdc = yes; then
4189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4200 $EGREP "memchr" >/dev/null 2>&1; then
4203 ac_cv_header_stdc=no
4209 if test $ac_cv_header_stdc = yes; then
4210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221 $EGREP "free" >/dev/null 2>&1; then
4224 ac_cv_header_stdc=no
4230 if test $ac_cv_header_stdc = yes; then
4231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4232 if test "$cross_compiling" = yes; then
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4243 #if ((' ' & 0x0FF) == 0x020)
4244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4247 # define ISLOWER(c) \
4248 (('a' <= (c) && (c) <= 'i') \
4249 || ('j' <= (c) && (c) <= 'r') \
4250 || ('s' <= (c) && (c) <= 'z'))
4251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4259 for (i = 0; i < 256; i++)
4260 if (XOR (islower (i), ISLOWER (i))
4261 || toupper (i) != TOUPPER (i))
4266 rm -f conftest$ac_exeext
4267 if { (ac_try="$ac_link"
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_link") 2>&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4277 { (case "(($ac_try" in
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_try") 2>&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4288 echo "$as_me: program exited with status $ac_status" >&5
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4293 ac_cv_header_stdc=no
4295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4301 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4302 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4303 if test $ac_cv_header_stdc = yes; then
4305 cat >>confdefs.h <<\_ACEOF
4306 #define STDC_HEADERS 1
4311 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4321 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4322 inttypes.h stdint.h unistd.h
4324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 $ac_includes_default
4338 #include <$ac_header>
4340 rm -f conftest.$ac_objext
4341 if { (ac_try="$ac_compile"
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_compile") 2>conftest.er1
4349 grep -v '^ *+' conftest.er1 >conftest.err
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4355 { (case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_try") 2>&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try='test -s conftest.$ac_objext'
4365 { (case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_try") 2>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 eval "$as_ac_Header=yes"
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4379 eval "$as_ac_Header=no"
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 ac_res=`eval echo '${'$as_ac_Header'}'`
4385 { echo "$as_me:$LINENO: result: $ac_res" >&5
4386 echo "${ECHO_T}$ac_res" >&6; }
4387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4388 cat >>confdefs.h <<_ACEOF
4389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4397 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4398 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4399 if test "${ac_cv_c_bigendian+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 # See if sys/param.h defines the BYTE_ORDER macro.
4403 cat >conftest.$ac_ext <<_ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4409 #include <sys/types.h>
4410 #include <sys/param.h>
4415 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4423 rm -f conftest.$ac_objext
4424 if { (ac_try="$ac_compile"
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_compile") 2>conftest.er1
4432 grep -v '^ *+' conftest.er1 >conftest.err
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } &&
4437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4438 { (case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_try") 2>&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_try") 2>&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; }; then
4457 # It does; now see whether it defined to BIG_ENDIAN or not.
4458 cat >conftest.$ac_ext <<_ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 #include <sys/types.h>
4465 #include <sys/param.h>
4470 #if BYTE_ORDER != BIG_ENDIAN
4478 rm -f conftest.$ac_objext
4479 if { (ac_try="$ac_compile"
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_compile") 2>conftest.er1
4487 grep -v '^ *+' conftest.er1 >conftest.err
4489 cat conftest.err >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } &&
4492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4493 { (case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_try") 2>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try='test -s conftest.$ac_objext'
4503 { (case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508 (eval "$ac_try") 2>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4512 ac_cv_c_bigendian=yes
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 ac_cv_c_bigendian=no
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4525 # It does not; compile a test program.
4526 if test "$cross_compiling" = yes; then
4527 # try to guess the endianness by grepping values into an object file
4528 ac_cv_c_bigendian=unknown
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4536 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4537 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4538 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4539 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4540 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4544 _ascii (); _ebcdic ();
4549 rm -f conftest.$ac_objext
4550 if { (ac_try="$ac_compile"
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_compile") 2>conftest.er1
4558 grep -v '^ *+' conftest.er1 >conftest.err
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4564 { (case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_try") 2>&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_try") 2>&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4584 ac_cv_c_bigendian=yes
4586 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4587 if test "$ac_cv_c_bigendian" = unknown; then
4588 ac_cv_c_bigendian=no
4590 # finding both strings is unlikely to happen, but who knows?
4591 ac_cv_c_bigendian=unknown
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 cat >conftest.$ac_ext <<_ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 $ac_includes_default
4614 /* Are we little or big endian? From Harbison&Steele. */
4618 char c[sizeof (long int)];
4621 return u.c[sizeof (long int) - 1] == 1;
4627 rm -f conftest$ac_exeext
4628 if { (ac_try="$ac_link"
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634 (eval "$ac_link") 2>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4638 { (case "(($ac_try" in
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_try") 2>&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 ac_cv_c_bigendian=no
4649 echo "$as_me: program exited with status $ac_status" >&5
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4654 ac_cv_c_bigendian=yes
4656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4665 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4666 case $ac_cv_c_bigendian in
4674 { { echo "$as_me:$LINENO: error: unknown endianness
4675 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4676 echo "$as_me: error: unknown endianness
4677 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4678 { (exit 1); exit 1; }; } ;;
4682 if test "$cross_compiling" = yes; then
4683 LLVM_CROSS_COMPILING=1
4686 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4687 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4688 if test "${ac_cv_build_exeext+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4692 ac_cv_build_exeext=.exe
4694 ac_build_prefix=${build_alias}-
4696 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4697 set dummy ${ac_build_prefix}gcc; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 if test -n "$BUILD_CC"; then
4704 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 BUILD_CC=$ac_cv_prog_BUILD_CC
4724 if test -n "$BUILD_CC"; then
4725 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4726 echo "${ECHO_T}$BUILD_CC" >&6; }
4728 { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4733 if test -z "$BUILD_CC"; then
4734 # Extract the first word of "gcc", so it can be a program name with args.
4735 set dummy gcc; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 if test -n "$BUILD_CC"; then
4742 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_BUILD_CC="gcc"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 BUILD_CC=$ac_cv_prog_BUILD_CC
4762 if test -n "$BUILD_CC"; then
4763 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4764 echo "${ECHO_T}$BUILD_CC" >&6; }
4766 { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4771 if test -z "$BUILD_CC"; then
4772 # Extract the first word of "cc", so it can be a program name with args.
4773 set dummy cc; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 if test -n "$BUILD_CC"; then
4780 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4791 ac_prog_rejected=yes
4794 ac_cv_prog_BUILD_CC="cc"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 if test $ac_prog_rejected = yes; then
4803 # We found a bogon in the path, so make sure we never use it.
4804 set dummy $ac_cv_prog_BUILD_CC
4806 if test $# != 0; then
4807 # We chose a different compiler from the bogus one.
4808 # However, it has the same basename, so the bogon will be chosen
4809 # first if we set BUILD_CC to just the basename; use the full file name.
4811 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4816 BUILD_CC=$ac_cv_prog_BUILD_CC
4817 if test -n "$BUILD_CC"; then
4818 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4819 echo "${ECHO_T}$BUILD_CC" >&6; }
4821 { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4828 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4829 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4830 { (exit 1); exit 1; }; }
4831 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4833 echo 'int main () { return 0; }' > conftest.$ac_ext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4836 (eval $ac_build_link) 2>&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; then
4840 for file in conftest.*; do
4842 *.c | *.o | *.obj | *.dSYM) ;;
4843 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4847 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4848 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4849 { (exit 1); exit 1; }; }
4852 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4857 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4858 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4859 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4860 ac_build_exeext=$BUILD_EXEEXT
4862 ac_build_prefix=${build_alias}-
4863 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4864 set dummy ${ac_build_prefix}g++; ac_word=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 if test -n "$BUILD_CXX"; then
4871 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4891 if test -n "$BUILD_CXX"; then
4892 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4893 echo "${ECHO_T}$BUILD_CXX" >&6; }
4895 { echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6; }
4900 if test -z "$BUILD_CXX"; then
4901 # Extract the first word of "g++", so it can be a program name with args.
4902 set dummy g++; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 if test -n "$BUILD_CXX"; then
4909 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_BUILD_CXX="g++"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4929 if test -n "$BUILD_CXX"; then
4930 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4931 echo "${ECHO_T}$BUILD_CXX" >&6; }
4933 { echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6; }
4938 if test -z "$BUILD_CXX"; then
4939 # Extract the first word of "c++", so it can be a program name with args.
4940 set dummy c++; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 if test -n "$BUILD_CXX"; then
4947 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4957 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4958 ac_prog_rejected=yes
4961 ac_cv_prog_BUILD_CXX="c++"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 if test $ac_prog_rejected = yes; then
4970 # We found a bogon in the path, so make sure we never use it.
4971 set dummy $ac_cv_prog_BUILD_CXX
4973 if test $# != 0; then
4974 # We chose a different compiler from the bogus one.
4975 # However, it has the same basename, so the bogon will be chosen
4976 # first if we set BUILD_CXX to just the basename; use the full file name.
4978 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4983 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4984 if test -n "$BUILD_CXX"; then
4985 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4986 echo "${ECHO_T}$BUILD_CXX" >&6; }
4988 { echo "$as_me:$LINENO: result: no" >&5
4989 echo "${ECHO_T}no" >&6; }
4996 LLVM_CROSS_COMPILING=0
5000 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5011 # Check whether --enable-libcpp was given.
5012 if test "${enable_libcpp+set}" = set; then
5013 enableval=$enable_libcpp;
5018 case "$enableval" in
5019 yes) ENABLE_LIBCPP=1
5023 default) ENABLE_LIBCPP=0
5025 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5026 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5027 { (exit 1); exit 1; }; } ;;
5030 # Check whether --enable-cxx11 was given.
5031 if test "${enable_cxx11+set}" = set; then
5032 enableval=$enable_cxx11;
5037 case "$enableval" in
5042 default) ENABLE_CXX11=0
5044 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5045 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5046 { (exit 1); exit 1; }; } ;;
5049 # Check whether --enable-optimized was given.
5050 if test "${enable_optimized+set}" = set; then
5051 enableval=$enable_optimized;
5056 if test ${enableval} = "no" ; then
5060 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5064 # Check whether --enable-profiling was given.
5065 if test "${enable_profiling+set}" = set; then
5066 enableval=$enable_profiling;
5071 if test ${enableval} = "no" ; then
5075 ENABLE_PROFILING=ENABLE_PROFILING=1
5079 # Check whether --enable-assertions was given.
5080 if test "${enable_assertions+set}" = set; then
5081 enableval=$enable_assertions;
5086 if test ${enableval} = "yes" ; then
5090 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5094 # Check whether --enable-werror was given.
5095 if test "${enable_werror+set}" = set; then
5096 enableval=$enable_werror;
5101 case "$enableval" in
5102 yes) ENABLE_WERROR=1
5106 default) ENABLE_WERROR=0
5108 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5109 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5110 { (exit 1); exit 1; }; } ;;
5113 # Check whether --enable-expensive-checks was given.
5114 if test "${enable_expensive_checks+set}" = set; then
5115 enableval=$enable_expensive_checks;
5120 if test ${enableval} = "yes" ; then
5121 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5123 EXPENSIVE_CHECKS=yes
5126 ENABLE_EXPENSIVE_CHECKS=
5132 # Check whether --enable-debug-runtime was given.
5133 if test "${enable_debug_runtime+set}" = set; then
5134 enableval=$enable_debug_runtime;
5139 if test ${enableval} = "no" ; then
5143 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5147 # Check whether --enable-debug-symbols was given.
5148 if test "${enable_debug_symbols+set}" = set; then
5149 enableval=$enable_debug_symbols;
5154 if test ${enableval} = "no" ; then
5158 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5162 # Check whether --enable-keep-symbols was given.
5163 if test "${enable_keep_symbols+set}" = set; then
5164 enableval=$enable_keep_symbols;
5169 if test ${enableval} = "no" ; then
5173 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5177 # Check whether --enable-jit was given.
5178 if test "${enable_jit+set}" = set; then
5179 enableval=$enable_jit;
5184 if test ${enableval} = "no"
5189 case "$llvm_cv_target_arch" in
5190 x86) TARGET_HAS_JIT=1
5192 Sparc) TARGET_HAS_JIT=0
5194 PowerPC) TARGET_HAS_JIT=1
5196 x86_64) TARGET_HAS_JIT=1
5198 ARM) TARGET_HAS_JIT=1
5200 Mips) TARGET_HAS_JIT=1
5202 XCore) TARGET_HAS_JIT=0
5204 MSP430) TARGET_HAS_JIT=0
5206 Hexagon) TARGET_HAS_JIT=0
5208 MBlaze) TARGET_HAS_JIT=0
5210 NVPTX) TARGET_HAS_JIT=0
5217 # Check whether --enable-docs was given.
5218 if test "${enable_docs+set}" = set; then
5219 enableval=$enable_docs;
5224 case "$enableval" in
5229 default) ENABLE_DOCS=1
5231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5233 { (exit 1); exit 1; }; } ;;
5236 # Check whether --enable-doxygen was given.
5237 if test "${enable_doxygen+set}" = set; then
5238 enableval=$enable_doxygen;
5243 case "$enableval" in
5244 yes) ENABLE_DOXYGEN=1
5246 no) ENABLE_DOXYGEN=0
5248 default) ENABLE_DOXYGEN=0
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5255 # Check whether --enable-threads was given.
5256 if test "${enable_threads+set}" = set; then
5257 enableval=$enable_threads;
5262 case "$enableval" in
5263 yes) LLVM_ENABLE_THREADS=1
5265 no) LLVM_ENABLE_THREADS=0
5267 default) LLVM_ENABLE_THREADS=1
5269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5274 cat >>confdefs.h <<_ACEOF
5275 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5279 # Check whether --enable-pthreads was given.
5280 if test "${enable_pthreads+set}" = set; then
5281 enableval=$enable_pthreads;
5286 case "$enableval" in
5287 yes) ENABLE_PTHREADS=1
5289 no) ENABLE_PTHREADS=0
5291 default) ENABLE_PTHREADS=1
5293 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5295 { (exit 1); exit 1; }; } ;;
5298 # Check whether --enable-pic was given.
5299 if test "${enable_pic+set}" = set; then
5300 enableval=$enable_pic;
5305 case "$enableval" in
5310 default) ENABLE_PIC=1
5312 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5313 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5314 { (exit 1); exit 1; }; } ;;
5317 cat >>confdefs.h <<_ACEOF
5318 #define ENABLE_PIC $ENABLE_PIC
5322 # Check whether --enable-shared was given.
5323 if test "${enable_shared+set}" = set; then
5324 enableval=$enable_shared;
5329 case "$enableval" in
5330 yes) ENABLE_SHARED=1
5334 default) ENABLE_SHARED=0
5336 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5337 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5338 { (exit 1); exit 1; }; } ;;
5341 # Check whether --enable-embed-stdcxx was given.
5342 if test "${enable_embed_stdcxx+set}" = set; then
5343 enableval=$enable_embed_stdcxx;
5348 case "$enableval" in
5349 yes) ENABLE_EMBED_STDCXX=1
5351 no) ENABLE_EMBED_STDCXX=0
5353 default) ENABLE_EMBED_STDCXX=0
5355 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5356 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5357 { (exit 1); exit 1; }; } ;;
5360 # Check whether --enable-timestamps was given.
5361 if test "${enable_timestamps+set}" = set; then
5362 enableval=$enable_timestamps;
5367 case "$enableval" in
5368 yes) ENABLE_TIMESTAMPS=1
5370 no) ENABLE_TIMESTAMPS=0
5372 default) ENABLE_TIMESTAMPS=1
5374 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5375 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5376 { (exit 1); exit 1; }; } ;;
5379 cat >>confdefs.h <<_ACEOF
5380 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5385 # Check whether --enable-backtraces was given.
5386 if test "${enable_backtraces+set}" = set; then
5387 enableval=$enable_backtraces;
5392 case "$enableval" in
5393 yes) ENABLE_TIMESTAMPS=1
5395 no) ENABLE_TIMESTAMPS=0
5397 default) ENABLE_TIMESTAMPS=1
5399 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5400 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5401 { (exit 1); exit 1; }; } ;;
5404 cat >>confdefs.h <<_ACEOF
5405 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5410 # Check whether --enable-targets was given.
5411 if test "${enable_targets+set}" = set; then
5412 enableval=$enable_targets;
5417 if test "$enableval" = host-only ; then
5420 case "$enableval" in
5421 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5422 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5424 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5425 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5426 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5427 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5428 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5429 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5430 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5431 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5432 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5433 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5434 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5435 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5436 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5437 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5438 host) case "$llvm_cv_target_arch" in
5439 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5440 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5441 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5442 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5443 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5444 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5445 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5446 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5447 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5448 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5449 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5450 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5451 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5452 echo "$as_me: error: Can not set target to build" >&2;}
5453 { (exit 1); exit 1; }; } ;;
5455 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5456 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5457 { (exit 1); exit 1; }; } ;;
5463 # Check whether --enable-experimental-targets was given.
5464 if test "${enable_experimental_targets+set}" = set; then
5465 enableval=$enable_experimental_targets;
5471 if test ${enableval} != "disable"
5473 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5476 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5479 for a_target in $TARGETS_TO_BUILD; do
5480 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5482 cat >>confdefs.h <<_ACEOF
5483 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5486 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5487 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5488 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5489 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5490 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5491 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5493 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5494 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5497 cat >>confdefs.h <<_ACEOF
5498 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5502 cat >>confdefs.h <<_ACEOF
5503 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5507 cat >>confdefs.h <<_ACEOF
5508 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5512 cat >>confdefs.h <<_ACEOF
5513 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5516 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5518 cat >>confdefs.h <<_ACEOF
5519 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5523 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5525 cat >>confdefs.h <<_ACEOF
5526 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5533 LLVM_ENUM_TARGETS=""
5534 LLVM_ENUM_ASM_PRINTERS=""
5535 LLVM_ENUM_ASM_PARSERS=""
5536 LLVM_ENUM_DISASSEMBLERS=""
5537 for target_to_build in $TARGETS_TO_BUILD; do
5538 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5539 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5540 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5542 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5543 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5545 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5546 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5555 # Check whether --with-optimize-option was given.
5556 if test "${with_optimize_option+set}" = set; then
5557 withval=$with_optimize_option;
5562 { echo "$as_me:$LINENO: checking optimization flags" >&5
5563 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5566 case "$llvm_cv_os_type" in
5567 FreeBSD) optimize_option=-O2 ;;
5568 MingW) optimize_option=-O2 ;;
5569 *) optimize_option=-O3 ;;
5571 *) optimize_option="$withval" ;;
5573 OPTIMIZE_OPTION=$optimize_option
5575 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5576 echo "${ECHO_T}$optimize_option" >&6; }
5579 # Check whether --with-extra-options was given.
5580 if test "${with_extra_options+set}" = set; then
5581 withval=$with_extra_options;
5587 default) EXTRA_OPTIONS= ;;
5588 *) EXTRA_OPTIONS=$withval ;;
5590 EXTRA_OPTIONS=$EXTRA_OPTIONS
5594 # Check whether --with-extra-ld-options was given.
5595 if test "${with_extra_ld_options+set}" = set; then
5596 withval=$with_extra_ld_options;
5602 default) EXTRA_LD_OPTIONS= ;;
5603 *) EXTRA_LD_OPTIONS=$withval ;;
5605 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5608 # Check whether --enable-bindings was given.
5609 if test "${enable_bindings+set}" = set; then
5610 enableval=$enable_bindings;
5615 BINDINGS_TO_BUILD=""
5616 case "$enableval" in
5617 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5618 all ) BINDINGS_TO_BUILD="ocaml" ;;
5619 none | no) BINDINGS_TO_BUILD="" ;;
5620 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5621 case "$a_binding" in
5622 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5623 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5624 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5625 { (exit 1); exit 1; }; } ;;
5632 # Check whether --with-ocaml-libdir was given.
5633 if test "${with_ocaml_libdir+set}" = set; then
5634 withval=$with_ocaml_libdir;
5640 auto) with_ocaml_libdir="$withval" ;;
5641 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5642 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5643 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5644 { (exit 1); exit 1; }; } ;;
5648 # Check whether --with-clang-srcdir was given.
5649 if test "${with_clang_srcdir+set}" = set; then
5650 withval=$with_clang_srcdir;
5656 -) clang_src_root="" ;;
5657 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5658 *) clang_src_root="$ac_pwd/$withval" ;;
5660 CLANG_SRC_ROOT=$clang_src_root
5664 # Check whether --with-clang-resource-dir was given.
5665 if test "${with_clang_resource_dir+set}" = set; then
5666 withval=$with_clang_resource_dir;
5672 cat >>confdefs.h <<_ACEOF
5673 #define CLANG_RESOURCE_DIR "$withval"
5678 # Check whether --with-c-include-dirs was given.
5679 if test "${with_c_include_dirs+set}" = set; then
5680 withval=$with_c_include_dirs;
5686 cat >>confdefs.h <<_ACEOF
5687 #define C_INCLUDE_DIRS "$withval"
5691 # Clang normally uses the system c++ headers and libraries. With this option,
5692 # clang will use the ones provided by a gcc installation instead. This option should
5693 # be passed the same value that was used with --prefix when configuring gcc.
5695 # Check whether --with-gcc-toolchain was given.
5696 if test "${with_gcc_toolchain+set}" = set; then
5697 withval=$with_gcc_toolchain;
5703 cat >>confdefs.h <<_ACEOF
5704 #define GCC_INSTALL_PREFIX "$withval"
5709 # Check whether --with-default-sysroot was given.
5710 if test "${with_default_sysroot+set}" = set; then
5711 withval=$with_default_sysroot;
5717 cat >>confdefs.h <<_ACEOF
5718 #define DEFAULT_SYSROOT "$withval"
5723 # Check whether --with-binutils-include was given.
5724 if test "${with_binutils_include+set}" = set; then
5725 withval=$with_binutils_include;
5731 default) WITH_BINUTILS_INCDIR=default ;;
5732 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5733 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5734 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5735 { (exit 1); exit 1; }; } ;;
5737 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5738 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5740 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5741 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5742 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5743 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5744 { (exit 1); exit 1; }; };
5749 # Check whether --with-bug-report-url was given.
5750 if test "${with_bug_report_url+set}" = set; then
5751 withval=$with_bug_report_url;
5753 withval="http://llvm.org/bugs/"
5757 cat >>confdefs.h <<_ACEOF
5758 #define BUG_REPORT_URL "$withval"
5762 # Check whether --enable-libffi was given.
5763 if test "${enable_libffi+set}" = set; then
5764 enableval=$enable_libffi; case "$enableval" in
5765 yes) llvm_cv_enable_libffi="yes" ;;
5766 no) llvm_cv_enable_libffi="no" ;;
5767 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5768 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5769 { (exit 1); exit 1; }; } ;;
5772 llvm_cv_enable_libffi=no
5777 # Check whether --with-internal-prefix was given.
5778 if test "${with_internal_prefix+set}" = set; then
5779 withval=$with_internal_prefix;
5784 INTERNAL_PREFIX=$withval
5788 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5789 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5790 if test "${lt_cv_path_NM+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 if test -n "$NM"; then
5794 # Let the user override the test.
5797 lt_nm_to_check="${ac_tool_prefix}nm"
5798 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5799 lt_nm_to_check="$lt_nm_to_check nm"
5801 for lt_tmp_nm in $lt_nm_to_check; do
5802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5803 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5805 test -z "$ac_dir" && ac_dir=.
5806 tmp_nm="$ac_dir/$lt_tmp_nm"
5807 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5808 # Check to see if the nm accepts a BSD-compat flag.
5809 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5810 # nm: unknown option "B" ignored
5811 # Tru64's nm complains that /dev/null is an invalid object file
5812 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5813 */dev/null* | *'Invalid file or object type'*)
5814 lt_cv_path_NM="$tmp_nm -B"
5818 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5820 lt_cv_path_NM="$tmp_nm -p"
5824 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5825 continue # so that we can try to find one that supports BSD flags
5834 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5837 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5838 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5843 { echo "$as_me:$LINENO: checking for GNU make" >&5
5844 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5845 if test "${llvm_cv_gnu_make_command+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 llvm_cv_gnu_make_command=''
5849 for a in "$MAKE" make gmake gnumake ; do
5850 if test -z "$a" ; then continue ; fi ;
5851 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5853 llvm_cv_gnu_make_command=$a ;
5858 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5859 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5860 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5864 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5865 echo "${ECHO_T}\"Not found\"" >&6; };
5869 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5870 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5872 if test "$LN_S" = "ln -s"; then
5873 { echo "$as_me:$LINENO: result: yes" >&5
5874 echo "${ECHO_T}yes" >&6; }
5876 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5877 echo "${ECHO_T}no, using $LN_S" >&6; }
5880 # Extract the first word of "cmp", so it can be a program name with args.
5881 set dummy cmp; ac_word=$2
5882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884 if test "${ac_cv_path_CMP+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5899 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5912 if test -n "$CMP"; then
5913 { echo "$as_me:$LINENO: result: $CMP" >&5
5914 echo "${ECHO_T}$CMP" >&6; }
5916 { echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6; }
5921 # Extract the first word of "cp", so it can be a program name with args.
5922 set dummy cp; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_path_CP+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5940 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5953 if test -n "$CP"; then
5954 { echo "$as_me:$LINENO: result: $CP" >&5
5955 echo "${ECHO_T}$CP" >&6; }
5957 { echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6; }
5962 # Extract the first word of "date", so it can be a program name with args.
5963 set dummy date; ac_word=$2
5964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966 if test "${ac_cv_path_DATE+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5981 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5993 DATE=$ac_cv_path_DATE
5994 if test -n "$DATE"; then
5995 { echo "$as_me:$LINENO: result: $DATE" >&5
5996 echo "${ECHO_T}$DATE" >&6; }
5998 { echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6; }
6003 # Extract the first word of "find", so it can be a program name with args.
6004 set dummy find; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_path_FIND+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6022 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6034 FIND=$ac_cv_path_FIND
6035 if test -n "$FIND"; then
6036 { echo "$as_me:$LINENO: result: $FIND" >&5
6037 echo "${ECHO_T}$FIND" >&6; }
6039 { echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6; }
6044 # Extract the first word of "grep", so it can be a program name with args.
6045 set dummy grep; ac_word=$2
6046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048 if test "${ac_cv_path_GREP+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6075 GREP=$ac_cv_path_GREP
6076 if test -n "$GREP"; then
6077 { echo "$as_me:$LINENO: result: $GREP" >&5
6078 echo "${ECHO_T}$GREP" >&6; }
6080 { echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6; }
6085 # Extract the first word of "mkdir", so it can be a program name with args.
6086 set dummy mkdir; ac_word=$2
6087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6089 if test "${ac_cv_path_MKDIR+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6116 MKDIR=$ac_cv_path_MKDIR
6117 if test -n "$MKDIR"; then
6118 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6119 echo "${ECHO_T}$MKDIR" >&6; }
6121 { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6126 # Extract the first word of "mv", so it can be a program name with args.
6127 set dummy mv; ac_word=$2
6128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6130 if test "${ac_cv_path_MV+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6145 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6158 if test -n "$MV"; then
6159 { echo "$as_me:$LINENO: result: $MV" >&5
6160 echo "${ECHO_T}$MV" >&6; }
6162 { echo "$as_me:$LINENO: result: no" >&5
6163 echo "${ECHO_T}no" >&6; }
6167 if test -n "$ac_tool_prefix"; then
6168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6169 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6172 if test "${ac_cv_prog_RANLIB+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 if test -n "$RANLIB"; then
6176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 RANLIB=$ac_cv_prog_RANLIB
6196 if test -n "$RANLIB"; then
6197 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6198 echo "${ECHO_T}$RANLIB" >&6; }
6200 { echo "$as_me:$LINENO: result: no" >&5
6201 echo "${ECHO_T}no" >&6; }
6206 if test -z "$ac_cv_prog_RANLIB"; then
6207 ac_ct_RANLIB=$RANLIB
6208 # Extract the first word of "ranlib", so it can be a program name with args.
6209 set dummy ranlib; ac_word=$2
6210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 if test -n "$ac_ct_RANLIB"; then
6216 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
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_prog_ac_ct_RANLIB="ranlib"
6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6236 if test -n "$ac_ct_RANLIB"; then
6237 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6238 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6240 { echo "$as_me:$LINENO: result: no" >&5
6241 echo "${ECHO_T}no" >&6; }
6244 if test "x$ac_ct_RANLIB" = x; then
6247 case $cross_compiling:$ac_tool_warned in
6249 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6250 whose name does not start with the host triplet. If you think this
6251 configuration is useful to you, please write to autoconf@gnu.org." >&5
6252 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6253 whose name does not start with the host triplet. If you think this
6254 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6255 ac_tool_warned=yes ;;
6257 RANLIB=$ac_ct_RANLIB
6260 RANLIB="$ac_cv_prog_RANLIB"
6263 if test -n "$ac_tool_prefix"; then
6264 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6265 set dummy ${ac_tool_prefix}ar; ac_word=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_prog_AR+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 if test -n "$AR"; then
6272 ac_cv_prog_AR="$AR" # Let the user override the test.
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_AR="${ac_tool_prefix}ar"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 if test -n "$AR"; then
6293 { echo "$as_me:$LINENO: result: $AR" >&5
6294 echo "${ECHO_T}$AR" >&6; }
6296 { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6302 if test -z "$ac_cv_prog_AR"; then
6304 # Extract the first word of "ar", so it can be a program name with args.
6305 set dummy ar; ac_word=$2
6306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6308 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 if test -n "$ac_ct_AR"; then
6312 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_prog_ac_ct_AR="ar"
6322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6332 if test -n "$ac_ct_AR"; then
6333 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6334 echo "${ECHO_T}$ac_ct_AR" >&6; }
6336 { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6340 if test "x$ac_ct_AR" = x; then
6343 case $cross_compiling:$ac_tool_warned in
6345 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6346 whose name does not start with the host triplet. If you think this
6347 configuration is useful to you, please write to autoconf@gnu.org." >&5
6348 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6349 whose name does not start with the host triplet. If you think this
6350 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6351 ac_tool_warned=yes ;;
6359 # Extract the first word of "rm", so it can be a program name with args.
6360 set dummy rm; ac_word=$2
6361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6363 if test "${ac_cv_path_RM+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6391 if test -n "$RM"; then
6392 { echo "$as_me:$LINENO: result: $RM" >&5
6393 echo "${ECHO_T}$RM" >&6; }
6395 { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6400 # Extract the first word of "sed", so it can be a program name with args.
6401 set dummy sed; ac_word=$2
6402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404 if test "${ac_cv_path_SED+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6432 if test -n "$SED"; then
6433 { echo "$as_me:$LINENO: result: $SED" >&5
6434 echo "${ECHO_T}$SED" >&6; }
6436 { echo "$as_me:$LINENO: result: no" >&5
6437 echo "${ECHO_T}no" >&6; }
6441 # Extract the first word of "tar", so it can be a program name with args.
6442 set dummy tar; ac_word=$2
6443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6445 if test "${ac_cv_path_TAR+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6473 if test -n "$TAR"; then
6474 { echo "$as_me:$LINENO: result: $TAR" >&5
6475 echo "${ECHO_T}$TAR" >&6; }
6477 { echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6; }
6482 # Extract the first word of "pwd", so it can be a program name with args.
6483 set dummy pwd; ac_word=$2
6484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6486 if test "${ac_cv_path_BINPWD+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6501 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6513 BINPWD=$ac_cv_path_BINPWD
6514 if test -n "$BINPWD"; then
6515 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6516 echo "${ECHO_T}$BINPWD" >&6; }
6518 { echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6; }
6524 # Extract the first word of "Graphviz", so it can be a program name with args.
6525 set dummy Graphviz; ac_word=$2
6526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6528 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6555 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6556 if test -n "$GRAPHVIZ"; then
6557 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6558 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6560 { echo "$as_me:$LINENO: result: no" >&5
6561 echo "${ECHO_T}no" >&6; }
6565 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6567 cat >>confdefs.h <<\_ACEOF
6568 #define HAVE_GRAPHVIZ 1
6571 if test "$llvm_cv_os_type" = "MingW" ; then
6572 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6575 cat >>confdefs.h <<_ACEOF
6576 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6580 # Extract the first word of "dot", so it can be a program name with args.
6581 set dummy dot; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_path_DOT+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6612 if test -n "$DOT"; then
6613 { echo "$as_me:$LINENO: result: $DOT" >&5
6614 echo "${ECHO_T}$DOT" >&6; }
6616 { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6621 if test "$DOT" != "echo dot" ; then
6623 cat >>confdefs.h <<\_ACEOF
6627 if test "$llvm_cv_os_type" = "MingW" ; then
6628 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6631 cat >>confdefs.h <<_ACEOF
6632 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6636 # Extract the first word of "fdp", so it can be a program name with args.
6637 set dummy fdp; ac_word=$2
6638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640 if test "${ac_cv_path_FDP+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6668 if test -n "$FDP"; then
6669 { echo "$as_me:$LINENO: result: $FDP" >&5
6670 echo "${ECHO_T}$FDP" >&6; }
6672 { echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6; }
6677 if test "$FDP" != "echo fdp" ; then
6679 cat >>confdefs.h <<\_ACEOF
6683 if test "$llvm_cv_os_type" = "MingW" ; then
6684 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6687 cat >>confdefs.h <<_ACEOF
6688 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6692 # Extract the first word of "neato", so it can be a program name with args.
6693 set dummy neato; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_path_NEATO+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6723 NEATO=$ac_cv_path_NEATO
6724 if test -n "$NEATO"; then
6725 { echo "$as_me:$LINENO: result: $NEATO" >&5
6726 echo "${ECHO_T}$NEATO" >&6; }
6728 { echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6; }
6733 if test "$NEATO" != "echo neato" ; then
6735 cat >>confdefs.h <<\_ACEOF
6736 #define HAVE_NEATO 1
6739 if test "$llvm_cv_os_type" = "MingW" ; then
6740 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6743 cat >>confdefs.h <<_ACEOF
6744 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6748 # Extract the first word of "twopi", so it can be a program name with args.
6749 set dummy twopi; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_TWOPI+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6779 TWOPI=$ac_cv_path_TWOPI
6780 if test -n "$TWOPI"; then
6781 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6782 echo "${ECHO_T}$TWOPI" >&6; }
6784 { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6789 if test "$TWOPI" != "echo twopi" ; then
6791 cat >>confdefs.h <<\_ACEOF
6792 #define HAVE_TWOPI 1
6795 if test "$llvm_cv_os_type" = "MingW" ; then
6796 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6799 cat >>confdefs.h <<_ACEOF
6800 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6804 # Extract the first word of "circo", so it can be a program name with args.
6805 set dummy circo; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_path_CIRCO+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6835 CIRCO=$ac_cv_path_CIRCO
6836 if test -n "$CIRCO"; then
6837 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6838 echo "${ECHO_T}$CIRCO" >&6; }
6840 { echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6; }
6845 if test "$CIRCO" != "echo circo" ; then
6847 cat >>confdefs.h <<\_ACEOF
6848 #define HAVE_CIRCO 1
6851 if test "$llvm_cv_os_type" = "MingW" ; then
6852 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6855 cat >>confdefs.h <<_ACEOF
6856 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6860 for ac_prog in gv gsview32
6862 # Extract the first word of "$ac_prog", so it can be a program name with args.
6863 set dummy $ac_prog; ac_word=$2
6864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866 if test "${ac_cv_path_GV+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6881 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 if test -n "$GV"; then
6894 { echo "$as_me:$LINENO: result: $GV" >&5
6895 echo "${ECHO_T}$GV" >&6; }
6897 { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6902 test -n "$GV" && break
6904 test -n "$GV" || GV="echo gv"
6906 if test "$GV" != "echo gv" ; then
6908 cat >>confdefs.h <<\_ACEOF
6912 if test "$llvm_cv_os_type" = "MingW" ; then
6913 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6916 cat >>confdefs.h <<_ACEOF
6917 #define LLVM_PATH_GV "$GV${EXEEXT}"
6921 # Extract the first word of "dotty", so it can be a program name with args.
6922 set dummy dotty; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_DOTTY+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6952 DOTTY=$ac_cv_path_DOTTY
6953 if test -n "$DOTTY"; then
6954 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6955 echo "${ECHO_T}$DOTTY" >&6; }
6957 { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6962 if test "$DOTTY" != "echo dotty" ; then
6964 cat >>confdefs.h <<\_ACEOF
6965 #define HAVE_DOTTY 1
6968 if test "$llvm_cv_os_type" = "MingW" ; then
6969 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6972 cat >>confdefs.h <<_ACEOF
6973 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6977 # Extract the first word of "xdot.py", so it can be a program name with args.
6978 set dummy xdot.py; ac_word=$2
6979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6981 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7008 XDOT_PY=$ac_cv_path_XDOT_PY
7009 if test -n "$XDOT_PY"; then
7010 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7011 echo "${ECHO_T}$XDOT_PY" >&6; }
7013 { echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6; }
7018 if test "$XDOT_PY" != "echo xdot.py" ; then
7020 cat >>confdefs.h <<\_ACEOF
7021 #define HAVE_XDOT_PY 1
7024 if test "$llvm_cv_os_type" = "MingW" ; then
7025 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7028 cat >>confdefs.h <<_ACEOF
7029 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7034 # Find a good install program. We prefer a C program (faster),
7035 # so one script is as good as another. But avoid the broken or
7036 # incompatible versions:
7037 # SysV /etc/install, /usr/sbin/install
7038 # SunOS /usr/etc/install
7039 # IRIX /sbin/install
7041 # AmigaOS /C/install, which installs bootblocks on floppy discs
7042 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7043 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7044 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7045 # OS/2's system install, which has a completely different semantic
7046 # ./install, which can be erroneously created by make from ./install.sh.
7047 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7048 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7049 if test -z "$INSTALL"; then
7050 if test "${ac_cv_path_install+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir=.
7058 # Account for people who put trailing slashes in PATH elements.
7060 ./ | .// | /cC/* | \
7061 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7062 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7065 # OSF1 and SCO ODT 3.0 have their own names for install.
7066 # Don't use installbsd from OSF since it installs stuff as root
7068 for ac_prog in ginstall scoinst install; do
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7071 if test $ac_prog = install &&
7072 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7073 # AIX install. It has an incompatible calling convention.
7075 elif test $ac_prog = install &&
7076 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7077 # program-specific install script used by HP pwplus--don't use.
7080 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7093 if test "${ac_cv_path_install+set}" = set; then
7094 INSTALL=$ac_cv_path_install
7096 # As a last resort, use the slow shell script. Don't cache a
7097 # value for INSTALL within a source directory, because that will
7098 # break other packages using the cache if that directory is
7099 # removed, or if the value is a relative name.
7100 INSTALL=$ac_install_sh
7103 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7104 echo "${ECHO_T}$INSTALL" >&6; }
7106 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7107 # It thinks the first close brace ends the variable substitution.
7108 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7110 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7112 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7115 [\\/$]* | ?:[\\/]* ) ;;
7116 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7119 # Extract the first word of "bzip2", so it can be a program name with args.
7120 set dummy bzip2; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_path_BZIP2+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 BZIP2=$ac_cv_path_BZIP2
7150 if test -n "$BZIP2"; then
7151 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7152 echo "${ECHO_T}$BZIP2" >&6; }
7154 { echo "$as_me:$LINENO: result: no" >&5
7155 echo "${ECHO_T}no" >&6; }
7159 # Extract the first word of "cat", so it can be a program name with args.
7160 set dummy cat; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_path_CAT+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7178 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 if test -n "$CAT"; then
7191 { echo "$as_me:$LINENO: result: $CAT" >&5
7192 echo "${ECHO_T}$CAT" >&6; }
7194 { echo "$as_me:$LINENO: result: no" >&5
7195 echo "${ECHO_T}no" >&6; }
7199 # Extract the first word of "doxygen", so it can be a program name with args.
7200 set dummy doxygen; 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_DOXYGEN+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 ac_cv_path_DOXYGEN="$DOXYGEN" # 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_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 DOXYGEN=$ac_cv_path_DOXYGEN
7230 if test -n "$DOXYGEN"; then
7231 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7232 echo "${ECHO_T}$DOXYGEN" >&6; }
7234 { echo "$as_me:$LINENO: result: no" >&5
7235 echo "${ECHO_T}no" >&6; }
7239 # Extract the first word of "groff", so it can be a program name with args.
7240 set dummy groff; 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_GROFF+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 ac_cv_path_GROFF="$GROFF" # 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_GROFF="$as_dir/$ac_word$ac_exec_ext"
7259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 GROFF=$ac_cv_path_GROFF
7270 if test -n "$GROFF"; then
7271 { echo "$as_me:$LINENO: result: $GROFF" >&5
7272 echo "${ECHO_T}$GROFF" >&6; }
7274 { echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6; }
7279 # Extract the first word of "gzip", so it can be a program name with args.
7280 set dummy gzip; 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_GZIPBIN+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 ac_cv_path_GZIPBIN="$GZIPBIN" # 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_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 GZIPBIN=$ac_cv_path_GZIPBIN
7310 if test -n "$GZIPBIN"; then
7311 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7312 echo "${ECHO_T}$GZIPBIN" >&6; }
7314 { echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6; }
7319 # Extract the first word of "pdfroff", so it can be a program name with args.
7320 set dummy pdfroff; 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_PDFROFF+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 ac_cv_path_PDFROFF="$PDFROFF" # 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_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 PDFROFF=$ac_cv_path_PDFROFF
7350 if test -n "$PDFROFF"; then
7351 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7352 echo "${ECHO_T}$PDFROFF" >&6; }
7354 { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7359 # Extract the first word of "zip", so it can be a program name with args.
7360 set dummy zip; 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_ZIP+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 ac_cv_path_ZIP="$ZIP" # 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_ZIP="$as_dir/$ac_word$ac_exec_ext"
7379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 if test -n "$ZIP"; then
7391 { echo "$as_me:$LINENO: result: $ZIP" >&5
7392 echo "${ECHO_T}$ZIP" >&6; }
7394 { echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6; }
7399 for ac_prog in ocamlc
7401 # Extract the first word of "$ac_prog", so it can be a program name with args.
7402 set dummy $ac_prog; ac_word=$2
7403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405 if test "${ac_cv_path_OCAMLC+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7420 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 OCAMLC=$ac_cv_path_OCAMLC
7432 if test -n "$OCAMLC"; then
7433 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7434 echo "${ECHO_T}$OCAMLC" >&6; }
7436 { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7441 test -n "$OCAMLC" && break
7444 for ac_prog in ocamlopt
7446 # Extract the first word of "$ac_prog", so it can be a program name with args.
7447 set dummy $ac_prog; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 OCAMLOPT=$ac_cv_path_OCAMLOPT
7477 if test -n "$OCAMLOPT"; then
7478 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7479 echo "${ECHO_T}$OCAMLOPT" >&6; }
7481 { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7486 test -n "$OCAMLOPT" && break
7489 for ac_prog in ocamldep
7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 OCAMLDEP=$ac_cv_path_OCAMLDEP
7522 if test -n "$OCAMLDEP"; then
7523 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7524 echo "${ECHO_T}$OCAMLDEP" >&6; }
7526 { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7531 test -n "$OCAMLDEP" && break
7534 for ac_prog in ocamldoc
7536 # Extract the first word of "$ac_prog", so it can be a program name with args.
7537 set dummy $ac_prog; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 OCAMLDOC=$ac_cv_path_OCAMLDOC
7567 if test -n "$OCAMLDOC"; then
7568 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7569 echo "${ECHO_T}$OCAMLDOC" >&6; }
7571 { echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6; }
7576 test -n "$OCAMLDOC" && break
7579 for ac_prog in gas as
7581 # Extract the first word of "$ac_prog", so it can be a program name with args.
7582 set dummy $ac_prog; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_GAS+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 if test -n "$GAS"; then
7613 { echo "$as_me:$LINENO: result: $GAS" >&5
7614 echo "${ECHO_T}$GAS" >&6; }
7616 { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7621 test -n "$GAS" && break
7625 { echo "$as_me:$LINENO: checking for linker version" >&5
7626 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7627 if test "${llvm_cv_link_version+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 version_string="$(ld -v 2>&1 | head -1)"
7634 if (echo "$version_string" | grep -q "ld64"); then
7635 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7637 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7641 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7642 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7644 cat >>confdefs.h <<_ACEOF
7645 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7650 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7651 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7652 if test "${llvm_cv_link_use_r+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 ac_cpp='$CPP $CPPFLAGS'
7657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7662 CFLAGS="$CFLAGS -Wl,-R."
7663 cat >conftest.$ac_ext <<_ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (ac_try="$ac_link"
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685 (eval "$ac_link") 2>conftest.er1
7687 grep -v '^ *+' conftest.er1 >conftest.err
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } &&
7692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7693 { (case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_try") 2>&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; } &&
7702 { ac_try='test -s conftest$ac_exeext'
7703 { (case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_try") 2>&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; }; then
7712 llvm_cv_link_use_r=yes
7714 echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7717 llvm_cv_link_use_r=no
7720 rm -f core conftest.err conftest.$ac_objext \
7721 conftest$ac_exeext conftest.$ac_ext
7724 ac_cpp='$CPP $CPPFLAGS'
7725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7731 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7732 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7733 if test "$llvm_cv_link_use_r" = yes ; then
7735 cat >>confdefs.h <<\_ACEOF
7736 #define HAVE_LINK_R 1
7742 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7743 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7744 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 ac_cpp='$CPP $CPPFLAGS'
7749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7754 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7755 cat >conftest.$ac_ext <<_ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7770 rm -f conftest.$ac_objext conftest$ac_exeext
7771 if { (ac_try="$ac_link"
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_link") 2>conftest.er1
7779 grep -v '^ *+' conftest.er1 >conftest.err
7781 cat conftest.err >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } &&
7784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7785 { (case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_try") 2>&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; } &&
7794 { ac_try='test -s conftest$ac_exeext'
7795 { (case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_try") 2>&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 llvm_cv_link_use_export_dynamic=yes
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7809 llvm_cv_link_use_export_dynamic=no
7812 rm -f core conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7824 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7825 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7827 cat >>confdefs.h <<\_ACEOF
7828 #define HAVE_LINK_EXPORT_DYNAMIC 1
7834 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7835 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7836 if test "${llvm_cv_link_use_version_script+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 ac_cpp='$CPP $CPPFLAGS'
7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7847 # The following code is from the autoconf manual,
7848 # "11.13: Limitations of Usual Tools".
7849 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7850 # Use mktemp if possible; otherwise fall back on mkdir,
7851 # with $RANDOM to make collisions less likely.
7855 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7857 test -n "$tmp" && test -d "$tmp"
7859 tmp=$TMPDIR/foo$$-$RANDOM
7860 (umask 077 && mkdir "$tmp")
7863 echo "{" > "$tmp/export.map"
7864 echo " global: main;" >> "$tmp/export.map"
7865 echo " local: *;" >> "$tmp/export.map"
7866 echo "};" >> "$tmp/export.map"
7868 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7869 cat >conftest.$ac_ext <<_ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (ac_try="$ac_link"
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891 (eval "$ac_link") 2>conftest.er1
7893 grep -v '^ *+' conftest.er1 >conftest.err
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7899 { (case "(($ac_try" in
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904 (eval "$ac_try") 2>&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (case "(($ac_try" in
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_try") 2>&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 llvm_cv_link_use_version_script=yes
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 llvm_cv_link_use_version_script=no
7926 rm -f core conftest.err conftest.$ac_objext \
7927 conftest$ac_exeext conftest.$ac_ext
7928 rm "$tmp/export.map"
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7940 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7941 if test "$llvm_cv_link_use_version_script" = yes ; then
7942 HAVE_LINK_VERSION_SCRIPT=1
7949 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7950 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7951 if test "${ac_cv_c_const+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7964 /* FIXME: Include the comments suggested by Paul. */
7966 /* Ultrix mips cc rejects this. */
7967 typedef int charset[2];
7969 /* SunOS 4.1.1 cc rejects this. */
7970 char const *const *ccp;
7972 /* NEC SVR4.0.2 mips cc rejects this. */
7973 struct point {int x, y;};
7974 static struct point const zero = {0,0};
7975 /* AIX XL C 1.02.0.0 rejects this.
7976 It does not let you subtract one const X* pointer from another in
7977 an arm of an if-expression whose if-part is not a constant
7979 const char *g = "string";
7980 ccp = &g + (g ? g-g : 0);
7981 /* HPUX 7.0 cc rejects these. */
7984 ccp = (char const *const *) p;
7985 { /* SCO 3.2v4 cc rejects this. */
7987 char const *s = 0 ? (char *) 0 : (char const *) 0;
7992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7994 const int *foo = &x[0];
7997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7998 typedef const int *iptr;
8002 { /* AIX XL C 1.02.0.0 rejects this saying
8003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8004 struct s { int j; const int *ap[3]; };
8005 struct s *b; b->j = 5;
8007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8011 return !x[0] && !zero.x;
8018 rm -f conftest.$ac_objext
8019 if { (ac_try="$ac_compile"
8021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022 *) ac_try_echo=$ac_try;;
8024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025 (eval "$ac_compile") 2>conftest.er1
8027 grep -v '^ *+' conftest.er1 >conftest.err
8029 cat conftest.err >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } &&
8032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8033 { (case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_try") 2>&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; } &&
8042 { ac_try='test -s conftest.$ac_objext'
8043 { (case "(($ac_try" in
8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8048 (eval "$ac_try") 2>&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8063 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8064 if test $ac_cv_c_const = no; then
8066 cat >>confdefs.h <<\_ACEOF
8078 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8079 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8080 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8081 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 cat >conftest.$ac_ext <<_ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 #include <sys/types.h>
8103 rm -f conftest.$ac_objext
8104 if { (ac_try="$ac_compile"
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8112 grep -v '^ *+' conftest.er1 >conftest.err
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8118 { (case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_try") 2>&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest.$ac_objext'
8128 { (case "(($ac_try" in
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133 (eval "$ac_try") 2>&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 eval "$as_ac_Header=yes"
8139 echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8142 eval "$as_ac_Header=no"
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 ac_res=`eval echo '${'$as_ac_Header'}'`
8148 { echo "$as_me:$LINENO: result: $ac_res" >&5
8149 echo "${ECHO_T}$ac_res" >&6; }
8150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8151 cat >>confdefs.h <<_ACEOF
8152 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8155 ac_header_dirent=$ac_hdr; break
8159 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8160 if test $ac_header_dirent = dirent.h; then
8161 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8162 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8163 if test "${ac_cv_search_opendir+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 ac_func_search_save_LIBS=$LIBS
8167 cat >conftest.$ac_ext <<_ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8174 /* Override any GCC internal prototype to avoid an error.
8175 Use char because int might match the return type of a GCC
8176 builtin and then its argument prototype would still apply. */
8189 for ac_lib in '' dir; do
8190 if test -z "$ac_lib"; then
8191 ac_res="none required"
8194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8196 rm -f conftest.$ac_objext conftest$ac_exeext
8197 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8205 grep -v '^ *+' conftest.er1 >conftest.err
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8211 { (case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_try") 2>&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; } &&
8220 { ac_try='test -s conftest$ac_exeext'
8221 { (case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_try") 2>&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_cv_search_opendir=$ac_res
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8238 rm -f core conftest.err conftest.$ac_objext \
8240 if test "${ac_cv_search_opendir+set}" = set; then
8244 if test "${ac_cv_search_opendir+set}" = set; then
8247 ac_cv_search_opendir=no
8250 LIBS=$ac_func_search_save_LIBS
8252 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8253 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8254 ac_res=$ac_cv_search_opendir
8255 if test "$ac_res" != no; then
8256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8261 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8262 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8263 if test "${ac_cv_search_opendir+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 ac_func_search_save_LIBS=$LIBS
8267 cat >conftest.$ac_ext <<_ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8274 /* Override any GCC internal prototype to avoid an error.
8275 Use char because int might match the return type of a GCC
8276 builtin and then its argument prototype would still apply. */
8289 for ac_lib in '' x; do
8290 if test -z "$ac_lib"; then
8291 ac_res="none required"
8294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8296 rm -f conftest.$ac_objext conftest$ac_exeext
8297 if { (ac_try="$ac_link"
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_link") 2>conftest.er1
8305 grep -v '^ *+' conftest.er1 >conftest.err
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8311 { (case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_try") 2>&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; } &&
8320 { ac_try='test -s conftest$ac_exeext'
8321 { (case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_try") 2>&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_search_opendir=$ac_res
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8338 rm -f core conftest.err conftest.$ac_objext \
8340 if test "${ac_cv_search_opendir+set}" = set; then
8344 if test "${ac_cv_search_opendir+set}" = set; then
8347 ac_cv_search_opendir=no
8350 LIBS=$ac_func_search_save_LIBS
8352 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8353 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8354 ac_res=$ac_cv_search_opendir
8355 if test "$ac_res" != no; then
8356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8363 for ac_header in dlfcn.h
8365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 ac_res=`eval echo '${'$as_ac_Header'}'`
8373 { echo "$as_me:$LINENO: result: $ac_res" >&5
8374 echo "${ECHO_T}$ac_res" >&6; }
8376 # Is the header compilable?
8377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8379 cat >conftest.$ac_ext <<_ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 $ac_includes_default
8386 #include <$ac_header>
8388 rm -f conftest.$ac_objext
8389 if { (ac_try="$ac_compile"
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8403 { (case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_try") 2>&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; } &&
8412 { ac_try='test -s conftest.$ac_objext'
8413 { (case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_try") 2>&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_header_compiler=yes
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8427 ac_header_compiler=no
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8432 echo "${ECHO_T}$ac_header_compiler" >&6; }
8434 # Is the header present?
8435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8437 cat >conftest.$ac_ext <<_ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h. */
8443 #include <$ac_header>
8445 if { (ac_try="$ac_cpp conftest.$ac_ext"
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8453 grep -v '^ *+' conftest.er1 >conftest.err
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } >/dev/null; then
8458 if test -s conftest.err; then
8459 ac_cpp_err=$ac_c_preproc_warn_flag
8460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8467 if test -z "$ac_cpp_err"; then
8468 ac_header_preproc=yes
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8473 ac_header_preproc=no
8476 rm -f conftest.err conftest.$ac_ext
8477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8478 echo "${ECHO_T}$ac_header_preproc" >&6; }
8480 # So? What about this header?
8481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8487 ac_header_preproc=yes
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8503 ## ------------------------------------ ##
8504 ## Report this to http://llvm.org/bugs/ ##
8505 ## ------------------------------------ ##
8507 ) | sed "s/^/$as_me: WARNING: /" >&2
8510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 eval "$as_ac_Header=\$ac_header_preproc"
8517 ac_res=`eval echo '${'$as_ac_Header'}'`
8518 { echo "$as_me:$LINENO: result: $ac_res" >&5
8519 echo "${ECHO_T}$ac_res" >&6; }
8522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8523 cat >>confdefs.h <<_ACEOF
8524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8531 # Check whether --enable-ltdl-install was given.
8532 if test "${enable_ltdl_install+set}" = set; then
8533 enableval=$enable_ltdl_install;
8539 if test x"${enable_ltdl_install-no}" != xno; then
8541 INSTALL_LTDL_FALSE='#'
8543 INSTALL_LTDL_TRUE='#'
8549 if test x"${enable_ltdl_convenience-no}" != xno; then
8550 CONVENIENCE_LTDL_TRUE=
8551 CONVENIENCE_LTDL_FALSE='#'
8553 CONVENIENCE_LTDL_TRUE='#'
8554 CONVENIENCE_LTDL_FALSE=
8558 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8559 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8561 libname_spec='lib$name'
8569 shlibpath_overrides_runpath=unknown
8571 dynamic_linker="$host_os ld.so"
8572 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8573 if test "$GCC" = yes; then
8574 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8575 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8576 # if the path contains ";" then we assume it to be the separator
8577 # otherwise default to the standard path separator (i.e. ":") - it is
8578 # assumed that no part of a normal pathname contains ";" but that should
8579 # okay in the real world where ";" in dirpaths is itself problematic.
8580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8585 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8587 need_lib_prefix=unknown
8588 hardcode_into_libs=no
8590 # when you set need_version to no, make sure it does not cause -set_version
8591 # flags to be left without arguments
8592 need_version=unknown
8597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8598 shlibpath_var=LIBPATH
8600 # AIX 3 has no versioning support, so we append a major version to the name.
8601 soname_spec='${libname}${release}${shared_ext}$major'
8608 hardcode_into_libs=yes
8609 if test "$host_cpu" = ia64; then
8610 # AIX 5 supports IA64
8611 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8612 shlibpath_var=LD_LIBRARY_PATH
8614 # With GCC up to 2.95.x, collect2 would create an import file
8615 # for dependence libraries. The import file would start with
8616 # the line `#! .'. This would cause the generated library to
8617 # depend on `.', always an invalid library. This was fixed in
8618 # development snapshots of GCC prior to 3.0.
8620 aix4 | aix4.[01] | aix4.[01].*)
8621 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8623 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8630 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8631 # soname into executable. Probably we can add versioning support to
8632 # collect2, so additional links can be useful in future.
8633 if test "$aix_use_runtimelinking" = yes; then
8634 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8635 # instead of lib<name>.a to let people know that these are not
8636 # typical AIX shared libraries.
8637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8639 # We preserve .a as extension for shared libraries through AIX4.2
8640 # and later when we are not doing run time linking.
8641 library_names_spec='${libname}${release}.a $libname.a'
8642 soname_spec='${libname}${release}${shared_ext}$major'
8644 shlibpath_var=LIBPATH
8649 library_names_spec='$libname.ixlibrary $libname.a'
8650 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8651 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'
8655 library_names_spec='${libname}${shared_ext}'
8656 dynamic_linker="$host_os ld.so"
8657 shlibpath_var=LIBRARY_PATH
8663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8664 soname_spec='${libname}${release}${shared_ext}$major'
8665 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8666 shlibpath_var=LD_LIBRARY_PATH
8667 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8668 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8669 # the default ld.so.conf also contains /usr/contrib/lib and
8670 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8671 # libtool to hard-code these into programs
8674 cygwin* | mingw* | pw32*)
8675 version_type=windows
8680 case $GCC,$host_os in
8681 yes,cygwin* | yes,mingw* | yes,pw32*)
8682 library_names_spec='$libname.dll.a'
8683 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8684 postinstall_cmds='base_file=`basename \${file}`~
8685 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8686 dldir=$destdir/`dirname \$dlpath`~
8687 test -d \$dldir || mkdir -p \$dldir~
8688 $install_prog $dir/$dlname \$dldir/$dlname~
8689 chmod a+x \$dldir/$dlname'
8690 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8691 dlpath=$dir/\$dldll~
8693 shlibpath_overrides_runpath=yes
8697 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8698 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8699 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8702 # MinGW DLLs use traditional 'lib' prefix
8703 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8704 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8705 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8706 # It is most probably a Windows format PATH printed by
8707 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8708 # path with ; separators, and with drive letters. We can handle the
8709 # drive letters (cygwin fileutils understands them), so leave them,
8710 # especially as we might pass files found there to a mingw objdump,
8711 # which wouldn't understand a cygwinified path. Ahh.
8712 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8718 # pw32 DLLs use 'pw' prefix rather than 'lib'
8719 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8725 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8728 dynamic_linker='Win32 ld.exe'
8729 # FIXME: first we should search . and the directory the executable is in
8733 darwin* | rhapsody*)
8734 dynamic_linker="$host_os dyld"
8738 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8739 soname_spec='${libname}${release}${major}$shared_ext'
8740 shlibpath_overrides_runpath=yes
8741 shlibpath_var=DYLD_LIBRARY_PATH
8742 shrext_cmds='.dylib'
8743 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8744 if test "$GCC" = yes; then
8745 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"`
8747 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8749 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8757 soname_spec='${libname}${release}${shared_ext}$major'
8758 shlibpath_var=LD_LIBRARY_PATH
8769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8770 soname_spec='${libname}${release}${shared_ext}$major'
8771 shlibpath_var=LD_LIBRARY_PATH
8772 shlibpath_overrides_runpath=no
8773 hardcode_into_libs=yes
8774 dynamic_linker='GNU ld.so'
8777 freebsd* | dragonfly*)
8778 # DragonFly does not have aout. When/if they implement a new
8779 # versioning mechanism, adjust this.
8780 if test -x /usr/bin/objformat; then
8781 objformat=`/usr/bin/objformat`
8784 freebsd[123].*) objformat=aout ;;
8788 version_type=freebsd-$objformat
8789 case $version_type in
8791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8800 shlibpath_var=LD_LIBRARY_PATH
8803 shlibpath_overrides_runpath=yes
8805 freebsd3.[01]* | freebsdelf3.[01]*)
8806 shlibpath_overrides_runpath=yes
8807 hardcode_into_libs=yes
8809 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8810 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8811 shlibpath_overrides_runpath=no
8812 hardcode_into_libs=yes
8814 freebsd*) # from 4.6 on
8815 shlibpath_overrides_runpath=yes
8816 hardcode_into_libs=yes
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 shlibpath_var=LD_LIBRARY_PATH
8828 hardcode_into_libs=yes
8831 hpux9* | hpux10* | hpux11*)
8832 # Give a soname corresponding to the major version so that dld.sl refuses to
8833 # link against other versions.
8840 hardcode_into_libs=yes
8841 dynamic_linker="$host_os dld.so"
8842 shlibpath_var=LD_LIBRARY_PATH
8843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 if test "X$HPUX_IA64_MODE" = X32; then
8847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8849 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8855 hardcode_into_libs=yes
8856 dynamic_linker="$host_os dld.sl"
8857 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8860 soname_spec='${libname}${release}${shared_ext}$major'
8861 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8866 dynamic_linker="$host_os dld.sl"
8867 shlibpath_var=SHLIB_PATH
8868 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870 soname_spec='${libname}${release}${shared_ext}$major'
8873 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8874 postinstall_cmds='chmod 555 $lib'
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8884 shlibpath_var=LD_LIBRARY_PATH
8885 shlibpath_overrides_runpath=no
8886 hardcode_into_libs=yes
8889 irix5* | irix6* | nonstopux*)
8891 nonstopux*) version_type=nonstopux ;;
8893 if test "$lt_cv_prog_gnu_ld" = yes; then
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8904 irix5* | nonstopux*)
8908 case $LD in # libtool.m4 will add one of these switches to LD
8909 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8910 libsuff= shlibsuff= libmagic=32-bit;;
8911 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8912 libsuff=32 shlibsuff=N32 libmagic=N32;;
8913 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8914 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8915 *) libsuff= shlibsuff= libmagic=never-match;;
8919 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8920 shlibpath_overrides_runpath=no
8921 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8922 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8923 hardcode_into_libs=yes
8926 # No shared lib support for Linux oldld, aout, or coff.
8927 linux*oldld* | linux*aout* | linux*coff*)
8931 # This must be Linux ELF.
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8939 shlibpath_var=LD_LIBRARY_PATH
8940 shlibpath_overrides_runpath=no
8941 # This implies no fast_install, which is unacceptable.
8942 # Some rework will be needed to allow for fast_install
8943 # before this can be enabled.
8944 hardcode_into_libs=yes
8946 # Append ld.so.conf contents to the search path
8947 if test -f /etc/ld.so.conf; then
8948 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' ' '`
8949 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8952 # We used to test for /lib/ld.so.1 and disable shared libraries on
8953 # powerpc, because MkLinux only supported shared libraries with the
8954 # GNU dynamic linker. Since this was broken with cross compilers,
8955 # most powerpc-linux boxes support dynamic linking these days and
8956 # people can always --disable-shared, the test was removed, and we
8957 # assume the GNU/Linux dynamic linker is in use.
8958 dynamic_linker='GNU/Linux ld.so'
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
8967 shlibpath_var=LD_LIBRARY_PATH
8968 shlibpath_overrides_runpath=no
8969 hardcode_into_libs=yes
8970 dynamic_linker='GNU ld.so'
8977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8980 dynamic_linker='NetBSD (a.out) ld.so'
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 dynamic_linker='NetBSD ld.elf_so'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=yes
8988 hardcode_into_libs=yes
8993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath=yes
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 shlibpath_overrides_runpath=yes
9010 sys_lib_dlsearch_path_spec="/usr/lib"
9012 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9014 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9015 *) need_version=no ;;
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9022 openbsd2.[89] | openbsd2.[89].*)
9023 shlibpath_overrides_runpath=no
9026 shlibpath_overrides_runpath=yes
9030 shlibpath_overrides_runpath=yes
9035 libname_spec='$name'
9038 library_names_spec='$libname${shared_ext} $libname.a'
9039 dynamic_linker='OS/2 ld.exe'
9040 shlibpath_var=LIBPATH
9043 osf3* | osf4* | osf5*)
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9051 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=yes
9062 hardcode_into_libs=yes
9063 # ldd complains unless libraries are executable
9064 postinstall_cmds='chmod +x $lib'
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9070 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 shlibpath_overrides_runpath=yes
9073 if test "$with_gnu_ld" = yes; then
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 case $host_vendor in
9086 shlibpath_overrides_runpath=no
9088 export_dynamic_flag_spec='${wl}-Blargedynsym'
9089 runpath_var=LD_RUN_PATH
9097 shlibpath_overrides_runpath=no
9098 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9104 if test -d /usr/nec ;then
9106 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9107 soname_spec='$libname${shared_ext}.$major'
9108 shlibpath_var=LD_LIBRARY_PATH
9112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9113 version_type=freebsd-elf
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 hardcode_into_libs=yes
9120 if test "$with_gnu_ld" = yes; then
9121 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9122 shlibpath_overrides_runpath=no
9124 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9125 shlibpath_overrides_runpath=yes
9128 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9132 sys_lib_dlsearch_path_spec='/usr/lib'
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 shlibpath_var=LD_LIBRARY_PATH
9146 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9147 echo "${ECHO_T}$dynamic_linker" >&6; }
9148 test "$dynamic_linker" = no && can_build_shared=no
9150 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9151 if test "$GCC" = yes; then
9152 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9156 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9157 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9158 if test "${libltdl_cv_shlibext+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 eval libltdl_cv_shlibext=$shrext_cmds
9166 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9167 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9168 if test -n "$libltdl_cv_shlibext"; then
9170 cat >>confdefs.h <<_ACEOF
9171 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9177 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9178 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9179 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 libltdl_cv_shlibpath_var="$shlibpath_var"
9184 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9185 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9186 if test -n "$libltdl_cv_shlibpath_var"; then
9188 cat >>confdefs.h <<_ACEOF
9189 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9195 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9196 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9197 if test "${libltdl_cv_sys_search_path+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9202 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9203 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9204 if test -n "$libltdl_cv_sys_search_path"; then
9206 for dir in $libltdl_cv_sys_search_path; do
9207 if test -z "$sys_search_path"; then
9208 sys_search_path="$dir"
9210 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9214 cat >>confdefs.h <<_ACEOF
9215 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9220 { echo "$as_me:$LINENO: checking for objdir" >&5
9221 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9222 if test "${libltdl_cv_objdir+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 libltdl_cv_objdir="$objdir"
9226 if test -n "$objdir"; then
9229 rm -f .libs 2>/dev/null
9230 mkdir .libs 2>/dev/null
9231 if test -d .libs; then
9232 libltdl_cv_objdir=.libs
9234 # MS-DOS does not allow filenames that begin with a dot.
9235 libltdl_cv_objdir=_libs
9237 rmdir .libs 2>/dev/null
9241 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9242 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9244 cat >>confdefs.h <<_ACEOF
9245 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9253 # Check for command to grab the raw symbol name followed by C symbol from nm.
9254 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9255 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9256 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 # These are sane defaults that work on at least a few old systems.
9261 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9263 # Character class describing NM global symbol codes.
9264 symcode='[BCDEGRST]'
9266 # Regexp to match symbols that can be accessed directly from C.
9267 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9269 # Transform an extracted symbol line into a proper C declaration
9270 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9272 # Transform an extracted symbol line into symbol name and symbol address
9273 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'"
9275 # Define system-specific variables.
9280 cygwin* | mingw* | pw32*)
9281 symcode='[ABCDGISTW]'
9283 hpux*) # Its linker distinguishes data from code symbols
9284 if test "$host_cpu" = ia64; then
9285 symcode='[ABCDEGRST]'
9287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9288 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'"
9291 if test "$host_cpu" = ia64; then
9292 symcode='[ABCDGIRSTW]'
9293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9294 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'"
9298 symcode='[BCDEGRST]'
9301 symcode='[BCDEGQRST]'
9312 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9320 # Handle CRLF in mingw tool chain
9324 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9328 # If we're using GNU nm, then use its standard symbol codes.
9329 case `$NM -V 2>&1` in
9330 *GNU* | *'with BFD'*)
9331 symcode='[ABCDGIRSTW]' ;;
9334 # Try without a prefix undercore, then with it.
9335 for ac_symprfx in "" "_"; do
9337 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9338 symxfrm="\\1 $ac_symprfx\\2 \\2"
9340 # Write the raw and C identifiers.
9341 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9343 # Check to see that the pipe works correctly.
9347 cat > conftest.$ac_ext <<EOF
9352 void nm_test_func(){}
9356 int main(){nm_test_var='a';nm_test_func();return(0);}
9359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9360 (eval $ac_compile) 2>&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; then
9364 # Now try to grab the symbols.
9366 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9367 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } && test -s "$nlist"; then
9371 # Try sorting and uniquifying the output.
9372 if sort "$nlist" | uniq > "$nlist"T; then
9373 mv -f "$nlist"T "$nlist"
9378 # Make sure that we snagged all the symbols we need.
9379 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9380 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9381 cat <<EOF > conftest.$ac_ext
9387 # Now generate the symbol file.
9388 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9390 cat <<EOF >> conftest.$ac_ext
9391 #if defined (__STDC__) && __STDC__
9392 # define lt_ptr_t void *
9394 # define lt_ptr_t char *
9398 /* The mapping between symbol names and symbols. */
9403 lt_preloaded_symbols[] =
9406 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9407 cat <<\EOF >> conftest.$ac_ext
9415 # Now try linking the two files.
9416 mv conftest.$ac_objext conftstm.$ac_objext
9417 lt_save_LIBS="$LIBS"
9418 lt_save_CFLAGS="$CFLAGS"
9419 LIBS="conftstm.$ac_objext"
9420 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9422 (eval $ac_link) 2>&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9428 LIBS="$lt_save_LIBS"
9429 CFLAGS="$lt_save_CFLAGS"
9431 echo "cannot find nm_test_func in $nlist" >&5
9434 echo "cannot find nm_test_var in $nlist" >&5
9437 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9440 echo "$progname: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9443 rm -f conftest* conftst*
9445 # Do not use the global_symbol_pipe unless it works.
9446 if test "$pipe_works" = yes; then
9449 lt_cv_sys_global_symbol_pipe=
9455 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9456 lt_cv_sys_global_symbol_to_cdecl=
9458 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9459 { echo "$as_me:$LINENO: result: failed" >&5
9460 echo "${ECHO_T}failed" >&6; }
9462 { echo "$as_me:$LINENO: result: ok" >&5
9463 echo "${ECHO_T}ok" >&6; }
9467 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9468 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9469 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9473 libltdl_cv_preloaded_symbols=yes
9475 libltdl_cv_preloaded_symbols=no
9479 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9480 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9481 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9483 cat >>confdefs.h <<\_ACEOF
9484 #define HAVE_PRELOADED_SYMBOLS 1
9492 ac_cpp='$CPP $CPPFLAGS'
9493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9498 { echo "$as_me:$LINENO: checking for shl_load" >&5
9499 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9500 if test "${ac_cv_func_shl_load+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 cat >conftest.$ac_ext <<_ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9511 #define shl_load innocuous_shl_load
9513 /* System header to define __stub macros and hopefully few prototypes,
9514 which can conflict with char shl_load (); below.
9515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9516 <limits.h> exists even on freestanding compilers. */
9519 # include <limits.h>
9521 # include <assert.h>
9526 /* Override any GCC internal prototype to avoid an error.
9527 Use char because int might match the return type of a GCC
9528 builtin and then its argument prototype would still apply. */
9533 /* The GNU C library defines this for functions which it implements
9534 to always fail with ENOSYS. Some functions are actually named
9535 something starting with __ and the normal name is an alias. */
9536 #if defined __stub_shl_load || defined __stub___shl_load
9548 rm -f conftest.$ac_objext conftest$ac_exeext
9549 if { (ac_try="$ac_link"
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_link") 2>conftest.er1
9557 grep -v '^ *+' conftest.er1 >conftest.err
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9563 { (case "(($ac_try" in
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_try") 2>&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; } &&
9572 { ac_try='test -s conftest$ac_exeext'
9573 { (case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_try") 2>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 ac_cv_func_shl_load=yes
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9587 ac_cv_func_shl_load=no
9590 rm -f core conftest.err conftest.$ac_objext \
9591 conftest$ac_exeext conftest.$ac_ext
9593 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9594 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9595 if test $ac_cv_func_shl_load = yes; then
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_SHL_LOAD 1
9602 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9603 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9604 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 ac_check_lib_save_LIBS=$LIBS
9609 cat >conftest.$ac_ext <<_ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9616 /* Override any GCC internal prototype to avoid an error.
9617 Use char because int might match the return type of a GCC
9618 builtin and then its argument prototype would still apply. */
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (ac_try="$ac_link"
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_link") 2>conftest.er1
9640 grep -v '^ *+' conftest.er1 >conftest.err
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9646 { (case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_try") 2>&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; } &&
9655 { ac_try='test -s conftest$ac_exeext'
9656 { (case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_try") 2>&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; }; then
9665 ac_cv_lib_dld_shl_load=yes
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 ac_cv_lib_dld_shl_load=no
9673 rm -f core conftest.err conftest.$ac_objext \
9674 conftest$ac_exeext conftest.$ac_ext
9675 LIBS=$ac_check_lib_save_LIBS
9677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9678 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9679 if test $ac_cv_lib_dld_shl_load = yes; then
9681 cat >>confdefs.h <<\_ACEOF
9682 #define HAVE_SHL_LOAD 1
9685 LIBADD_DL="$LIBADD_DL -ldld"
9687 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9688 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9689 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9692 ac_check_lib_save_LIBS=$LIBS
9694 cat >conftest.$ac_ext <<_ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9701 /* Override any GCC internal prototype to avoid an error.
9702 Use char because int might match the return type of a GCC
9703 builtin and then its argument prototype would still apply. */
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (ac_try="$ac_link"
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_link") 2>conftest.er1
9725 grep -v '^ *+' conftest.er1 >conftest.err
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9731 { (case "(($ac_try" in
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_try") 2>&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; } &&
9740 { ac_try='test -s conftest$ac_exeext'
9741 { (case "(($ac_try" in
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746 (eval "$ac_try") 2>&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_cv_lib_dl_dlopen=yes
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9755 ac_cv_lib_dl_dlopen=no
9758 rm -f core conftest.err conftest.$ac_objext \
9759 conftest$ac_exeext conftest.$ac_ext
9760 LIBS=$ac_check_lib_save_LIBS
9762 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9763 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9764 if test $ac_cv_lib_dl_dlopen = yes; then
9766 cat >>confdefs.h <<\_ACEOF
9767 #define HAVE_LIBDL 1
9770 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9772 cat >conftest.$ac_ext <<_ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (ac_try="$ac_link"
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_link") 2>conftest.er1
9799 grep -v '^ *+' conftest.er1 >conftest.err
9801 cat conftest.err >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9805 { (case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_try") 2>&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; } &&
9814 { ac_try='test -s conftest$ac_exeext'
9815 { (case "(($ac_try" in
9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817 *) ac_try_echo=$ac_try;;
9819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820 (eval "$ac_try") 2>&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9825 cat >>confdefs.h <<\_ACEOF
9826 #define HAVE_LIBDL 1
9828 libltdl_cv_func_dlopen="yes"
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9834 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9835 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 ac_check_lib_save_LIBS=$LIBS
9840 cat >conftest.$ac_ext <<_ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9847 /* Override any GCC internal prototype to avoid an error.
9848 Use char because int might match the return type of a GCC
9849 builtin and then its argument prototype would still apply. */
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (ac_try="$ac_link"
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_link") 2>conftest.er1
9871 grep -v '^ *+' conftest.er1 >conftest.err
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9877 { (case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_try") 2>&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_try") 2>&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; }; then
9896 ac_cv_lib_svld_dlopen=yes
9898 echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9901 ac_cv_lib_svld_dlopen=no
9904 rm -f core conftest.err conftest.$ac_objext \
9905 conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9908 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9909 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9910 if test $ac_cv_lib_svld_dlopen = yes; then
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_LIBDL 1
9916 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9918 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9919 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9920 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 ac_check_lib_save_LIBS=$LIBS
9925 cat >conftest.$ac_ext <<_ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9932 /* Override any GCC internal prototype to avoid an error.
9933 Use char because int might match the return type of a GCC
9934 builtin and then its argument prototype would still apply. */
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (ac_try="$ac_link"
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_link") 2>conftest.er1
9956 grep -v '^ *+' conftest.er1 >conftest.err
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9962 { (case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_try") 2>&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; } &&
9971 { ac_try='test -s conftest$ac_exeext'
9972 { (case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_try") 2>&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_cv_lib_dld_dld_link=yes
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9986 ac_cv_lib_dld_dld_link=no
9989 rm -f core conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 LIBS=$ac_check_lib_save_LIBS
9993 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9994 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9995 if test $ac_cv_lib_dld_dld_link = yes; then
9997 cat >>confdefs.h <<\_ACEOF
10001 LIBADD_DL="$LIBADD_DL -ldld"
10003 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10004 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10005 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 cat >conftest.$ac_ext <<_ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h. */
10014 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10016 #define _dyld_func_lookup innocuous__dyld_func_lookup
10018 /* System header to define __stub macros and hopefully few prototypes,
10019 which can conflict with char _dyld_func_lookup (); below.
10020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10021 <limits.h> exists even on freestanding compilers. */
10024 # include <limits.h>
10026 # include <assert.h>
10029 #undef _dyld_func_lookup
10031 /* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
10037 char _dyld_func_lookup ();
10038 /* The GNU C library defines this for functions which it implements
10039 to always fail with ENOSYS. Some functions are actually named
10040 something starting with __ and the normal name is an alias. */
10041 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10048 return _dyld_func_lookup ();
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (ac_try="$ac_link"
10055 case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_link") 2>conftest.er1
10062 grep -v '^ *+' conftest.er1 >conftest.err
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10068 { (case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_try") 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_try") 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10087 ac_cv_func__dyld_func_lookup=yes
10089 echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 ac_cv_func__dyld_func_lookup=no
10095 rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10098 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10099 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10100 if test $ac_cv_func__dyld_func_lookup = yes; then
10102 cat >>confdefs.h <<\_ACEOF
10103 #define HAVE_DYLD 1
10117 rm -f core conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext conftest.$ac_ext
10129 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10131 lt_save_LIBS="$LIBS"
10132 LIBS="$LIBS $LIBADD_DL"
10134 for ac_func in dlerror
10136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10142 cat >conftest.$ac_ext <<_ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10150 #define $ac_func innocuous_$ac_func
10152 /* System header to define __stub macros and hopefully few prototypes,
10153 which can conflict with char $ac_func (); below.
10154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10155 <limits.h> exists even on freestanding compilers. */
10158 # include <limits.h>
10160 # include <assert.h>
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10172 /* The GNU C library defines this for functions which it implements
10173 to always fail with ENOSYS. Some functions are actually named
10174 something starting with __ and the normal name is an alias. */
10175 #if defined __stub_$ac_func || defined __stub___$ac_func
10182 return $ac_func ();
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (ac_try="$ac_link"
10189 case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_link") 2>conftest.er1
10196 grep -v '^ *+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10202 { (case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_try") 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try='test -s conftest$ac_exeext'
10212 { (case "(($ac_try" in
10213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214 *) ac_try_echo=$ac_try;;
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_try") 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 eval "$as_ac_var=yes"
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 eval "$as_ac_var=no"
10229 rm -f core conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10232 ac_res=`eval echo '${'$as_ac_var'}'`
10233 { echo "$as_me:$LINENO: result: $ac_res" >&5
10234 echo "${ECHO_T}$ac_res" >&6; }
10235 if test `eval echo '${'$as_ac_var'}'` = yes; then
10236 cat >>confdefs.h <<_ACEOF
10237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10243 LIBS="$lt_save_LIBS"
10246 ac_cpp='$CPP $CPPFLAGS'
10247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10253 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10254 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10255 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 ac_cv_sys_symbol_underscore=no
10259 cat > conftest.$ac_ext <<EOF
10260 void nm_test_func(){}
10261 int main(){nm_test_func;return 0;}
10263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10264 (eval $ac_compile) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; then
10268 # Now try to grab the symbols.
10269 ac_nlist=conftest.nm
10270 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10271 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && test -s "$ac_nlist"; then
10275 # See whether the symbols have a leading underscore.
10276 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10277 ac_cv_sys_symbol_underscore=yes
10279 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10282 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10286 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10289 echo "configure: failed program was:" >&5
10295 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10296 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10299 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10300 if test x"$libltdl_cv_func_dlopen" = xyes ||
10301 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10302 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10303 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10304 if test "${libltdl_cv_need_uscore+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 libltdl_cv_need_uscore=unknown
10309 LIBS="$LIBS $LIBADD_DL"
10310 if test "$cross_compiling" = yes; then :
10311 libltdl_cv_need_uscore=cross
10313 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10314 lt_status=$lt_dlunknown
10315 cat > conftest.$ac_ext <<EOF
10316 #line 10316 "configure"
10317 #include "confdefs.h"
10326 # define LT_DLGLOBAL RTLD_GLOBAL
10329 # define LT_DLGLOBAL DL_GLOBAL
10331 # define LT_DLGLOBAL 0
10335 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10336 find out it does not work in some platform. */
10337 #ifndef LT_DLLAZY_OR_NOW
10339 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10342 # define LT_DLLAZY_OR_NOW DL_LAZY
10345 # define LT_DLLAZY_OR_NOW RTLD_NOW
10348 # define LT_DLLAZY_OR_NOW DL_NOW
10350 # define LT_DLLAZY_OR_NOW 0
10358 extern "C" void exit (int);
10361 void fnord() { int i=42;}
10364 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10365 int status = $lt_dlunknown;
10369 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10370 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10371 /* dlclose (self); */
10379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380 (eval $ac_link) 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10384 (./conftest; exit; ) >&5 2>/dev/null
10386 case x$lt_status in
10387 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10388 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10389 x$lt_dlunknown|x*) ;;
10392 # compilation failed
10401 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10402 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10406 if test x"$libltdl_cv_need_uscore" = xyes; then
10408 cat >>confdefs.h <<\_ACEOF
10409 #define NEED_USCORE 1
10415 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10416 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10417 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 # PORTME does your system automatically load deplibs for dlopen?
10421 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10422 # For now, we just catch OSes we know something about -- in the
10423 # future, we'll try test this programmatically.
10424 libltdl_cv_sys_dlopen_deplibs=unknown
10426 aix3*|aix4.1.*|aix4.2.*)
10427 # Unknown whether this is true for these versions of AIX, but
10428 # we want this `case' here to explicitly catch those versions.
10429 libltdl_cv_sys_dlopen_deplibs=unknown
10432 libltdl_cv_sys_dlopen_deplibs=yes
10435 # Assuming the user has installed a libdl from somewhere, this is true
10436 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10437 libltdl_cv_sys_dlopen_deplibs=yes
10439 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10440 # GNU and its variants, using gnu ld.so (Glibc)
10441 libltdl_cv_sys_dlopen_deplibs=yes
10444 libltdl_cv_sys_dlopen_deplibs=yes
10447 libltdl_cv_sys_dlopen_deplibs=yes
10449 irix[12345]*|irix6.[01]*)
10450 # Catch all versions of IRIX before 6.2, and indicate that we don't
10451 # know how it worked for any of those versions.
10452 libltdl_cv_sys_dlopen_deplibs=unknown
10455 # The case above catches anything before 6.2, and it's known that
10456 # at 6.2 and later dlopen does load deplibs.
10457 libltdl_cv_sys_dlopen_deplibs=yes
10460 libltdl_cv_sys_dlopen_deplibs=yes
10463 libltdl_cv_sys_dlopen_deplibs=yes
10466 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10467 # it did *not* use an RPATH in a shared library to find objects the
10468 # library depends on, so we explicitly say `no'.
10469 libltdl_cv_sys_dlopen_deplibs=no
10471 osf5.0|osf5.0a|osf5.1)
10472 # dlopen *does* load deplibs and with the right loader patch applied
10473 # it even uses RPATH in a shared library to search for shared objects
10474 # that the library depends on, but there's no easy way to know if that
10475 # patch is installed. Since this is the case, all we can really
10476 # say is unknown -- it depends on the patch being installed. If
10477 # it is, this changes to `yes'. Without it, it would be `no'.
10478 libltdl_cv_sys_dlopen_deplibs=unknown
10481 # the two cases above should catch all versions of osf <= 5.1. Read
10482 # the comments above for what we know about them.
10483 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10484 # is used to find them so we can finally say `yes'.
10485 libltdl_cv_sys_dlopen_deplibs=yes
10488 libltdl_cv_sys_dlopen_deplibs=yes
10490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10491 libltdl_cv_sys_dlopen_deplibs=yes
10496 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10497 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10498 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10500 cat >>confdefs.h <<\_ACEOF
10501 #define LTDL_DLOPEN_DEPLIBS 1
10507 for ac_header in argz.h
10509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 ac_res=`eval echo '${'$as_ac_Header'}'`
10517 { echo "$as_me:$LINENO: result: $ac_res" >&5
10518 echo "${ECHO_T}$ac_res" >&6; }
10520 # Is the header compilable?
10521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10523 cat >conftest.$ac_ext <<_ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10529 $ac_includes_default
10530 #include <$ac_header>
10532 rm -f conftest.$ac_objext
10533 if { (ac_try="$ac_compile"
10534 case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_compile") 2>conftest.er1
10541 grep -v '^ *+' conftest.er1 >conftest.err
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10547 { (case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_try") 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; } &&
10556 { ac_try='test -s conftest.$ac_objext'
10557 { (case "(($ac_try" in
10558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562 (eval "$ac_try") 2>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; }; then
10566 ac_header_compiler=yes
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10571 ac_header_compiler=no
10574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10576 echo "${ECHO_T}$ac_header_compiler" >&6; }
10578 # Is the header present?
10579 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10581 cat >conftest.$ac_ext <<_ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 #include <$ac_header>
10589 if { (ac_try="$ac_cpp conftest.$ac_ext"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10597 grep -v '^ *+' conftest.er1 >conftest.err
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } >/dev/null; then
10602 if test -s conftest.err; then
10603 ac_cpp_err=$ac_c_preproc_warn_flag
10604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10611 if test -z "$ac_cpp_err"; then
10612 ac_header_preproc=yes
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10617 ac_header_preproc=no
10620 rm -f conftest.err conftest.$ac_ext
10621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10622 echo "${ECHO_T}$ac_header_preproc" >&6; }
10624 # So? What about this header?
10625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10631 ac_header_preproc=yes
10634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10647 ## ------------------------------------ ##
10648 ## Report this to http://llvm.org/bugs/ ##
10649 ## ------------------------------------ ##
10651 ) | sed "s/^/$as_me: WARNING: /" >&2
10654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 eval "$as_ac_Header=\$ac_header_preproc"
10661 ac_res=`eval echo '${'$as_ac_Header'}'`
10662 { echo "$as_me:$LINENO: result: $ac_res" >&5
10663 echo "${ECHO_T}$ac_res" >&6; }
10666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10667 cat >>confdefs.h <<_ACEOF
10668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10676 { echo "$as_me:$LINENO: checking for error_t" >&5
10677 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10678 if test "${ac_cv_type_error_t+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 cat >conftest.$ac_ext <<_ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10691 typedef error_t ac__type_new_;
10695 if ((ac__type_new_ *) 0)
10697 if (sizeof (ac__type_new_))
10703 rm -f conftest.$ac_objext
10704 if { (ac_try="$ac_compile"
10705 case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_compile") 2>conftest.er1
10712 grep -v '^ *+' conftest.er1 >conftest.err
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10718 { (case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_try") 2>&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; } &&
10727 { ac_try='test -s conftest.$ac_objext'
10728 { (case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_try") 2>&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 ac_cv_type_error_t=yes
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10742 ac_cv_type_error_t=no
10745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10748 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10749 if test $ac_cv_type_error_t = yes; then
10751 cat >>confdefs.h <<_ACEOF
10752 #define HAVE_ERROR_T 1
10758 cat >>confdefs.h <<\_ACEOF
10759 #define error_t int
10770 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10773 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10775 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 cat >conftest.$ac_ext <<_ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10786 #define $ac_func innocuous_$ac_func
10788 /* System header to define __stub macros and hopefully few prototypes,
10789 which can conflict with char $ac_func (); below.
10790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791 <limits.h> exists even on freestanding compilers. */
10794 # include <limits.h>
10796 # include <assert.h>
10801 /* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10808 /* The GNU C library defines this for functions which it implements
10809 to always fail with ENOSYS. Some functions are actually named
10810 something starting with __ and the normal name is an alias. */
10811 #if defined __stub_$ac_func || defined __stub___$ac_func
10818 return $ac_func ();
10823 rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (ac_try="$ac_link"
10825 case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_link") 2>conftest.er1
10832 grep -v '^ *+' conftest.er1 >conftest.err
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_try") 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 eval "$as_ac_var=yes"
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 eval "$as_ac_var=no"
10865 rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10868 ac_res=`eval echo '${'$as_ac_var'}'`
10869 { echo "$as_me:$LINENO: result: $ac_res" >&5
10870 echo "${ECHO_T}$ac_res" >&6; }
10871 if test `eval echo '${'$as_ac_var'}'` = yes; then
10872 cat >>confdefs.h <<_ACEOF
10873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10906 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 ac_res=`eval echo '${'$as_ac_Header'}'`
10917 { echo "$as_me:$LINENO: result: $ac_res" >&5
10918 echo "${ECHO_T}$ac_res" >&6; }
10920 # Is the header compilable?
10921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10923 cat >conftest.$ac_ext <<_ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 $ac_includes_default
10930 #include <$ac_header>
10932 rm -f conftest.$ac_objext
10933 if { (ac_try="$ac_compile"
10934 case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_compile") 2>conftest.er1
10941 grep -v '^ *+' conftest.er1 >conftest.err
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10947 { (case "(($ac_try" in
10948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949 *) ac_try_echo=$ac_try;;
10951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952 (eval "$ac_try") 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest.$ac_objext'
10957 { (case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_try") 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 ac_header_compiler=yes
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_header_compiler=no
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10976 echo "${ECHO_T}$ac_header_compiler" >&6; }
10978 # Is the header present?
10979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10981 cat >conftest.$ac_ext <<_ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10987 #include <$ac_header>
10989 if { (ac_try="$ac_cpp conftest.$ac_ext"
10990 case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10997 grep -v '^ *+' conftest.er1 >conftest.err
10999 cat conftest.err >&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } >/dev/null; then
11002 if test -s conftest.err; then
11003 ac_cpp_err=$ac_c_preproc_warn_flag
11004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11011 if test -z "$ac_cpp_err"; then
11012 ac_header_preproc=yes
11014 echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11017 ac_header_preproc=no
11020 rm -f conftest.err conftest.$ac_ext
11021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11022 echo "${ECHO_T}$ac_header_preproc" >&6; }
11024 # So? What about this header?
11025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11031 ac_header_preproc=yes
11034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11047 ## ------------------------------------ ##
11048 ## Report this to http://llvm.org/bugs/ ##
11049 ## ------------------------------------ ##
11051 ) | sed "s/^/$as_me: WARNING: /" >&2
11054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 eval "$as_ac_Header=\$ac_header_preproc"
11061 ac_res=`eval echo '${'$as_ac_Header'}'`
11062 { echo "$as_me:$LINENO: result: $ac_res" >&5
11063 echo "${ECHO_T}$ac_res" >&6; }
11066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11067 cat >>confdefs.h <<_ACEOF
11068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11079 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 ac_res=`eval echo '${'$as_ac_Header'}'`
11089 { echo "$as_me:$LINENO: result: $ac_res" >&5
11090 echo "${ECHO_T}$ac_res" >&6; }
11092 # Is the header compilable?
11093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11095 cat >conftest.$ac_ext <<_ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 $ac_includes_default
11102 #include <$ac_header>
11104 rm -f conftest.$ac_objext
11105 if { (ac_try="$ac_compile"
11106 case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_compile") 2>conftest.er1
11113 grep -v '^ *+' conftest.er1 >conftest.err
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119 { (case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_try") 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; } &&
11128 { ac_try='test -s conftest.$ac_objext'
11129 { (case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_try") 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }; then
11138 ac_header_compiler=yes
11140 echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 ac_header_compiler=no
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148 echo "${ECHO_T}$ac_header_compiler" >&6; }
11150 # Is the header present?
11151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11153 cat >conftest.$ac_ext <<_ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 #include <$ac_header>
11161 if { (ac_try="$ac_cpp conftest.$ac_ext"
11162 case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11169 grep -v '^ *+' conftest.er1 >conftest.err
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } >/dev/null; then
11174 if test -s conftest.err; then
11175 ac_cpp_err=$ac_c_preproc_warn_flag
11176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11183 if test -z "$ac_cpp_err"; then
11184 ac_header_preproc=yes
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11189 ac_header_preproc=no
11192 rm -f conftest.err conftest.$ac_ext
11193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11194 echo "${ECHO_T}$ac_header_preproc" >&6; }
11196 # So? What about this header?
11197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11203 ac_header_preproc=yes
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11219 ## ------------------------------------ ##
11220 ## Report this to http://llvm.org/bugs/ ##
11221 ## ------------------------------------ ##
11223 ) | sed "s/^/$as_me: WARNING: /" >&2
11226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 eval "$as_ac_Header=\$ac_header_preproc"
11233 ac_res=`eval echo '${'$as_ac_Header'}'`
11234 { echo "$as_me:$LINENO: result: $ac_res" >&5
11235 echo "${ECHO_T}$ac_res" >&6; }
11238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11239 cat >>confdefs.h <<_ACEOF
11240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11249 for ac_header in string.h strings.h
11251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 ac_res=`eval echo '${'$as_ac_Header'}'`
11259 { echo "$as_me:$LINENO: result: $ac_res" >&5
11260 echo "${ECHO_T}$ac_res" >&6; }
11262 # Is the header compilable?
11263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11265 cat >conftest.$ac_ext <<_ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11271 $ac_includes_default
11272 #include <$ac_header>
11274 rm -f conftest.$ac_objext
11275 if { (ac_try="$ac_compile"
11276 case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_compile") 2>conftest.er1
11283 grep -v '^ *+' conftest.er1 >conftest.err
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } &&
11288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11289 { (case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294 (eval "$ac_try") 2>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; } &&
11298 { ac_try='test -s conftest.$ac_objext'
11299 { (case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_try") 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }; then
11308 ac_header_compiler=yes
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11313 ac_header_compiler=no
11316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11318 echo "${ECHO_T}$ac_header_compiler" >&6; }
11320 # Is the header present?
11321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11323 cat >conftest.$ac_ext <<_ACEOF
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h. */
11329 #include <$ac_header>
11331 if { (ac_try="$ac_cpp conftest.$ac_ext"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11339 grep -v '^ *+' conftest.er1 >conftest.err
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } >/dev/null; then
11344 if test -s conftest.err; then
11345 ac_cpp_err=$ac_c_preproc_warn_flag
11346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11353 if test -z "$ac_cpp_err"; then
11354 ac_header_preproc=yes
11356 echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11359 ac_header_preproc=no
11362 rm -f conftest.err conftest.$ac_ext
11363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11364 echo "${ECHO_T}$ac_header_preproc" >&6; }
11366 # So? What about this header?
11367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11373 ac_header_preproc=yes
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11389 ## ------------------------------------ ##
11390 ## Report this to http://llvm.org/bugs/ ##
11391 ## ------------------------------------ ##
11393 ) | sed "s/^/$as_me: WARNING: /" >&2
11396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 eval "$as_ac_Header=\$ac_header_preproc"
11403 ac_res=`eval echo '${'$as_ac_Header'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11409 cat >>confdefs.h <<_ACEOF
11410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11420 for ac_func in strchr index
11422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11428 cat >conftest.$ac_ext <<_ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11436 #define $ac_func innocuous_$ac_func
11438 /* System header to define __stub macros and hopefully few prototypes,
11439 which can conflict with char $ac_func (); below.
11440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11441 <limits.h> exists even on freestanding compilers. */
11444 # include <limits.h>
11446 # include <assert.h>
11451 /* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11458 /* The GNU C library defines this for functions which it implements
11459 to always fail with ENOSYS. Some functions are actually named
11460 something starting with __ and the normal name is an alias. */
11461 #if defined __stub_$ac_func || defined __stub___$ac_func
11468 return $ac_func ();
11473 rm -f conftest.$ac_objext conftest$ac_exeext
11474 if { (ac_try="$ac_link"
11475 case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_link") 2>conftest.er1
11482 grep -v '^ *+' conftest.er1 >conftest.err
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try='test -s conftest$ac_exeext'
11498 { (case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_try") 2>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 eval "$as_ac_var=yes"
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11512 eval "$as_ac_var=no"
11515 rm -f core conftest.err conftest.$ac_objext \
11516 conftest$ac_exeext conftest.$ac_ext
11518 ac_res=`eval echo '${'$as_ac_var'}'`
11519 { echo "$as_me:$LINENO: result: $ac_res" >&5
11520 echo "${ECHO_T}$ac_res" >&6; }
11521 if test `eval echo '${'$as_ac_var'}'` = yes; then
11522 cat >>confdefs.h <<_ACEOF
11523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11531 for ac_func in strrchr rindex
11533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 cat >conftest.$ac_ext <<_ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11547 #define $ac_func innocuous_$ac_func
11549 /* System header to define __stub macros and hopefully few prototypes,
11550 which can conflict with char $ac_func (); below.
11551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11552 <limits.h> exists even on freestanding compilers. */
11555 # include <limits.h>
11557 # include <assert.h>
11562 /* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11569 /* The GNU C library defines this for functions which it implements
11570 to always fail with ENOSYS. Some functions are actually named
11571 something starting with __ and the normal name is an alias. */
11572 #if defined __stub_$ac_func || defined __stub___$ac_func
11579 return $ac_func ();
11584 rm -f conftest.$ac_objext conftest$ac_exeext
11585 if { (ac_try="$ac_link"
11586 case "(($ac_try" in
11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588 *) ac_try_echo=$ac_try;;
11590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591 (eval "$ac_link") 2>conftest.er1
11593 grep -v '^ *+' conftest.er1 >conftest.err
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11599 { (case "(($ac_try" in
11600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_try") 2>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; } &&
11608 { ac_try='test -s conftest$ac_exeext'
11609 { (case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_try") 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 eval "$as_ac_var=yes"
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11623 eval "$as_ac_var=no"
11626 rm -f core conftest.err conftest.$ac_objext \
11627 conftest$ac_exeext conftest.$ac_ext
11629 ac_res=`eval echo '${'$as_ac_var'}'`
11630 { echo "$as_me:$LINENO: result: $ac_res" >&5
11631 echo "${ECHO_T}$ac_res" >&6; }
11632 if test `eval echo '${'$as_ac_var'}'` = yes; then
11633 cat >>confdefs.h <<_ACEOF
11634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11642 for ac_func in memcpy bcopy
11644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 cat >conftest.$ac_ext <<_ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11658 #define $ac_func innocuous_$ac_func
11660 /* System header to define __stub macros and hopefully few prototypes,
11661 which can conflict with char $ac_func (); below.
11662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663 <limits.h> exists even on freestanding compilers. */
11666 # include <limits.h>
11668 # include <assert.h>
11673 /* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11680 /* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683 #if defined __stub_$ac_func || defined __stub___$ac_func
11690 return $ac_func ();
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (ac_try="$ac_link"
11697 case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_link") 2>conftest.er1
11704 grep -v '^ *+' conftest.er1 >conftest.err
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } &&
11709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11710 { (case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_try") 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; } &&
11719 { ac_try='test -s conftest$ac_exeext'
11720 { (case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_try") 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 eval "$as_ac_var=yes"
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 eval "$as_ac_var=no"
11737 rm -f core conftest.err conftest.$ac_objext \
11738 conftest$ac_exeext conftest.$ac_ext
11740 ac_res=`eval echo '${'$as_ac_var'}'`
11741 { echo "$as_me:$LINENO: result: $ac_res" >&5
11742 echo "${ECHO_T}$ac_res" >&6; }
11743 if test `eval echo '${'$as_ac_var'}'` = yes; then
11744 cat >>confdefs.h <<_ACEOF
11745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11753 for ac_func in memmove strcmp
11755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 cat >conftest.$ac_ext <<_ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11769 #define $ac_func innocuous_$ac_func
11771 /* System header to define __stub macros and hopefully few prototypes,
11772 which can conflict with char $ac_func (); below.
11773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774 <limits.h> exists even on freestanding compilers. */
11777 # include <limits.h>
11779 # include <assert.h>
11784 /* Override any GCC internal prototype to avoid an error.
11785 Use char because int might match the return type of a GCC
11786 builtin and then its argument prototype would still apply. */
11791 /* The GNU C library defines this for functions which it implements
11792 to always fail with ENOSYS. Some functions are actually named
11793 something starting with __ and the normal name is an alias. */
11794 #if defined __stub_$ac_func || defined __stub___$ac_func
11801 return $ac_func ();
11806 rm -f conftest.$ac_objext conftest$ac_exeext
11807 if { (ac_try="$ac_link"
11808 case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_link") 2>conftest.er1
11815 grep -v '^ *+' conftest.er1 >conftest.err
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11821 { (case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_try") 2>&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest$ac_exeext'
11831 { (case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_try") 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 eval "$as_ac_var=yes"
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 eval "$as_ac_var=no"
11848 rm -f core conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11851 ac_res=`eval echo '${'$as_ac_var'}'`
11852 { echo "$as_me:$LINENO: result: $ac_res" >&5
11853 echo "${ECHO_T}$ac_res" >&6; }
11854 if test `eval echo '${'$as_ac_var'}'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11865 for ac_func in closedir opendir readdir
11867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 cat >conftest.$ac_ext <<_ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11881 #define $ac_func innocuous_$ac_func
11883 /* System header to define __stub macros and hopefully few prototypes,
11884 which can conflict with char $ac_func (); below.
11885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886 <limits.h> exists even on freestanding compilers. */
11889 # include <limits.h>
11891 # include <assert.h>
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11903 /* The GNU C library defines this for functions which it implements
11904 to always fail with ENOSYS. Some functions are actually named
11905 something starting with __ and the normal name is an alias. */
11906 #if defined __stub_$ac_func || defined __stub___$ac_func
11913 return $ac_func ();
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_link") 2>conftest.er1
11927 grep -v '^ *+' conftest.er1 >conftest.err
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest$ac_exeext'
11943 { (case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_try") 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 eval "$as_ac_var=yes"
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 eval "$as_ac_var=no"
11960 rm -f core conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11963 ac_res=`eval echo '${'$as_ac_var'}'`
11964 { echo "$as_me:$LINENO: result: $ac_res" >&5
11965 echo "${ECHO_T}$ac_res" >&6; }
11966 if test `eval echo '${'$as_ac_var'}'` = yes; then
11967 cat >>confdefs.h <<_ACEOF
11968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11976 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11977 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11990 if test "$GCC" != "yes" && test "$ICC" != "yes"
11992 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11993 echo "$as_me: error: gcc|icc required but not found" >&2;}
11994 { (exit 1); exit 1; }; }
11997 if test "$GXX" != "yes" && test "$IXX" != "yes"
11999 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12000 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12001 { (exit 1); exit 1; }; }
12004 if test "$GCC" = "yes"
12006 cat >conftest.$ac_ext <<_ACEOF
12007 #if !defined(__GNUC__) || __GNUC__ < 3
12008 #error Unsupported GCC version
12012 rm -f conftest.$ac_objext
12013 if { (ac_try="$ac_compile"
12014 case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019 (eval "$ac_compile") 2>conftest.er1
12021 grep -v '^ *+' conftest.er1 >conftest.err
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12027 { (case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_try") 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest.$ac_objext'
12037 { (case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_try") 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12052 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12053 { (exit 1); exit 1; }; }
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12059 if test -z "$llvm_cv_gnu_make_command"
12061 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12062 echo "$as_me: error: GNU Make required but not found" >&2;}
12063 { (exit 1); exit 1; }; }
12066 { echo "$as_me:$LINENO: result: ok" >&5
12067 echo "${ECHO_T}ok" >&6; }
12069 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12070 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12071 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12073 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12075 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12077 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12078 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12082 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12083 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12084 if test "${ac_cv_lib_m_sin+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 ac_check_lib_save_LIBS=$LIBS
12089 cat >conftest.$ac_ext <<_ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12096 /* Override any GCC internal prototype to avoid an error.
12097 Use char because int might match the return type of a GCC
12098 builtin and then its argument prototype would still apply. */
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (ac_try="$ac_link"
12113 case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_link") 2>conftest.er1
12120 grep -v '^ *+' conftest.er1 >conftest.err
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } &&
12125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12126 { (case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_try") 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; } &&
12135 { ac_try='test -s conftest$ac_exeext'
12136 { (case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_try") 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_cv_lib_m_sin=yes
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12153 rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12157 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12158 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12159 if test $ac_cv_lib_m_sin = yes; then
12160 cat >>confdefs.h <<_ACEOF
12161 #define HAVE_LIBM 1
12168 if test "$llvm_cv_os_type" = "MingW" ; then
12170 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12171 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12172 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-limagehlp $LIBS"
12177 cat >conftest.$ac_ext <<_ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (ac_try="$ac_link"
12195 case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_link") 2>conftest.er1
12202 grep -v '^ *+' conftest.er1 >conftest.err
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208 { (case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_try") 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; } &&
12217 { ac_try='test -s conftest$ac_exeext'
12218 { (case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_try") 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_cv_lib_imagehlp_main=yes
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 ac_cv_lib_imagehlp_main=no
12235 rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12239 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12240 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12241 if test $ac_cv_lib_imagehlp_main = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243 #define HAVE_LIBIMAGEHLP 1
12246 LIBS="-limagehlp $LIBS"
12251 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12252 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12253 if test "${ac_cv_lib_psapi_main+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 ac_check_lib_save_LIBS=$LIBS
12257 LIBS="-lpsapi $LIBS"
12258 cat >conftest.$ac_ext <<_ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_link") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289 { (case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_try") 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest$ac_exeext'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 ac_cv_lib_psapi_main=yes
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ac_cv_lib_psapi_main=no
12316 rm -f core conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12320 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12321 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12322 if test $ac_cv_lib_psapi_main = yes; then
12323 cat >>confdefs.h <<_ACEOF
12324 #define HAVE_LIBPSAPI 1
12327 LIBS="-lpsapi $LIBS"
12333 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12334 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12335 if test "${ac_cv_search_dlopen+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 ac_func_search_save_LIBS=$LIBS
12339 cat >conftest.$ac_ext <<_ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12346 /* Override any GCC internal prototype to avoid an error.
12347 Use char because int might match the return type of a GCC
12348 builtin and then its argument prototype would still apply. */
12361 for ac_lib in '' dl; do
12362 if test -z "$ac_lib"; then
12363 ac_res="none required"
12366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12368 rm -f conftest.$ac_objext conftest$ac_exeext
12369 if { (ac_try="$ac_link"
12370 case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_link") 2>conftest.er1
12377 grep -v '^ *+' conftest.er1 >conftest.err
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } &&
12382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12383 { (case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_try") 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest$ac_exeext'
12393 { (case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_try") 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 ac_cv_search_dlopen=$ac_res
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12410 rm -f core conftest.err conftest.$ac_objext \
12412 if test "${ac_cv_search_dlopen+set}" = set; then
12416 if test "${ac_cv_search_dlopen+set}" = set; then
12419 ac_cv_search_dlopen=no
12421 rm conftest.$ac_ext
12422 LIBS=$ac_func_search_save_LIBS
12424 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12425 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12426 ac_res=$ac_cv_search_dlopen
12427 if test "$ac_res" != no; then
12428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12430 cat >>confdefs.h <<\_ACEOF
12431 #define HAVE_DLOPEN 1
12435 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12436 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12440 if test "$llvm_cv_enable_libffi" = "yes" ; then
12441 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12442 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12443 if test "${ac_cv_search_ffi_call+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 ac_func_search_save_LIBS=$LIBS
12447 cat >conftest.$ac_ext <<_ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12454 /* Override any GCC internal prototype to avoid an error.
12455 Use char because int might match the return type of a GCC
12456 builtin and then its argument prototype would still apply. */
12464 return ffi_call ();
12469 for ac_lib in '' ffi; do
12470 if test -z "$ac_lib"; then
12471 ac_res="none required"
12474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12476 rm -f conftest.$ac_objext conftest$ac_exeext
12477 if { (ac_try="$ac_link"
12478 case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_link") 2>conftest.er1
12485 grep -v '^ *+' conftest.er1 >conftest.err
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12491 { (case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_try") 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; } &&
12500 { ac_try='test -s conftest$ac_exeext'
12501 { (case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 (eval "$ac_try") 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_cv_search_ffi_call=$ac_res
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12518 rm -f core conftest.err conftest.$ac_objext \
12520 if test "${ac_cv_search_ffi_call+set}" = set; then
12524 if test "${ac_cv_search_ffi_call+set}" = set; then
12527 ac_cv_search_ffi_call=no
12529 rm conftest.$ac_ext
12530 LIBS=$ac_func_search_save_LIBS
12532 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12533 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12534 ac_res=$ac_cv_search_ffi_call
12535 if test "$ac_res" != no; then
12536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12538 cat >>confdefs.h <<\_ACEOF
12539 #define HAVE_FFI_CALL 1
12543 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12544 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12545 { (exit 1); exit 1; }; }
12550 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12551 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12552 if test "${ac_cv_search_mallinfo+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 ac_func_search_save_LIBS=$LIBS
12556 cat >conftest.$ac_ext <<_ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12563 /* Override any GCC internal prototype to avoid an error.
12564 Use char because int might match the return type of a GCC
12565 builtin and then its argument prototype would still apply. */
12573 return mallinfo ();
12578 for ac_lib in '' malloc; do
12579 if test -z "$ac_lib"; then
12580 ac_res="none required"
12583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_link") 2>conftest.er1
12594 grep -v '^ *+' conftest.er1 >conftest.err
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12600 { (case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_try") 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; } &&
12609 { ac_try='test -s conftest$ac_exeext'
12610 { (case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615 (eval "$ac_try") 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 ac_cv_search_mallinfo=$ac_res
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12627 rm -f core conftest.err conftest.$ac_objext \
12629 if test "${ac_cv_search_mallinfo+set}" = set; then
12633 if test "${ac_cv_search_mallinfo+set}" = set; then
12636 ac_cv_search_mallinfo=no
12638 rm conftest.$ac_ext
12639 LIBS=$ac_func_search_save_LIBS
12641 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12642 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12643 ac_res=$ac_cv_search_mallinfo
12644 if test "$ac_res" != no; then
12645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12647 cat >>confdefs.h <<\_ACEOF
12648 #define HAVE_MALLINFO 1
12654 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12656 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12657 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12658 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 ac_check_lib_save_LIBS=$LIBS
12662 LIBS="-lpthread $LIBS"
12663 cat >conftest.$ac_ext <<_ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h. */
12670 /* Override any GCC internal prototype to avoid an error.
12671 Use char because int might match the return type of a GCC
12672 builtin and then its argument prototype would still apply. */
12676 char pthread_mutex_init ();
12680 return pthread_mutex_init ();
12685 rm -f conftest.$ac_objext conftest$ac_exeext
12686 if { (ac_try="$ac_link"
12687 case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_link") 2>conftest.er1
12694 grep -v '^ *+' conftest.er1 >conftest.err
12696 cat conftest.err >&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12700 { (case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_try") 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; } &&
12709 { ac_try='test -s conftest$ac_exeext'
12710 { (case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_try") 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_cv_lib_pthread_pthread_mutex_init=yes
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12724 ac_cv_lib_pthread_pthread_mutex_init=no
12727 rm -f core conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext conftest.$ac_ext
12729 LIBS=$ac_check_lib_save_LIBS
12731 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12732 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12733 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12734 cat >>confdefs.h <<_ACEOF
12735 #define HAVE_LIBPTHREAD 1
12738 LIBS="-lpthread $LIBS"
12742 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12743 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12744 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 ac_func_search_save_LIBS=$LIBS
12748 cat >conftest.$ac_ext <<_ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12755 /* Override any GCC internal prototype to avoid an error.
12756 Use char because int might match the return type of a GCC
12757 builtin and then its argument prototype would still apply. */
12761 char pthread_mutex_lock ();
12765 return pthread_mutex_lock ();
12770 for ac_lib in '' pthread; do
12771 if test -z "$ac_lib"; then
12772 ac_res="none required"
12775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12777 rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (ac_try="$ac_link"
12779 case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_link") 2>conftest.er1
12786 grep -v '^ *+' conftest.er1 >conftest.err
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } &&
12791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12792 { (case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_try") 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_try") 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 ac_cv_search_pthread_mutex_lock=$ac_res
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12819 rm -f core conftest.err conftest.$ac_objext \
12821 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12825 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12828 ac_cv_search_pthread_mutex_lock=no
12830 rm conftest.$ac_ext
12831 LIBS=$ac_func_search_save_LIBS
12833 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12834 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12835 ac_res=$ac_cv_search_pthread_mutex_lock
12836 if test "$ac_res" != no; then
12837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12839 cat >>confdefs.h <<\_ACEOF
12840 #define HAVE_PTHREAD_MUTEX_LOCK 1
12845 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12846 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12847 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 ac_func_search_save_LIBS=$LIBS
12851 cat >conftest.$ac_ext <<_ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12858 /* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12864 char pthread_rwlock_init ();
12868 return pthread_rwlock_init ();
12873 for ac_lib in '' pthread; do
12874 if test -z "$ac_lib"; then
12875 ac_res="none required"
12878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12880 rm -f conftest.$ac_objext conftest$ac_exeext
12881 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12889 grep -v '^ *+' conftest.er1 >conftest.err
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try='test -s conftest$ac_exeext'
12905 { (case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910 (eval "$ac_try") 2>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 ac_cv_search_pthread_rwlock_init=$ac_res
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12922 rm -f core conftest.err conftest.$ac_objext \
12924 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12928 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12931 ac_cv_search_pthread_rwlock_init=no
12933 rm conftest.$ac_ext
12934 LIBS=$ac_func_search_save_LIBS
12936 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12937 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12938 ac_res=$ac_cv_search_pthread_rwlock_init
12939 if test "$ac_res" != no; then
12940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_PTHREAD_RWLOCK_INIT 1
12948 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12949 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12950 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 ac_func_search_save_LIBS=$LIBS
12954 cat >conftest.$ac_ext <<_ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12961 /* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12967 char pthread_getspecific ();
12971 return pthread_getspecific ();
12976 for ac_lib in '' pthread; do
12977 if test -z "$ac_lib"; then
12978 ac_res="none required"
12981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12992 grep -v '^ *+' conftest.er1 >conftest.err
12994 cat conftest.err >&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } &&
12997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12998 { (case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_try") 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest$ac_exeext'
13008 { (case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_try") 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 ac_cv_search_pthread_getspecific=$ac_res
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13025 rm -f core conftest.err conftest.$ac_objext \
13027 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13031 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13034 ac_cv_search_pthread_getspecific=no
13036 rm conftest.$ac_ext
13037 LIBS=$ac_func_search_save_LIBS
13039 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13040 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13041 ac_res=$ac_cv_search_pthread_getspecific
13042 if test "$ac_res" != no; then
13043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13045 cat >>confdefs.h <<\_ACEOF
13046 #define HAVE_PTHREAD_GETSPECIFIC 1
13054 # Check whether --with-udis86 was given.
13055 if test "${with_udis86+set}" = set; then
13056 withval=$with_udis86;
13061 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13064 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13065 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13066 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 ac_check_lib_save_LIBS=$LIBS
13070 LIBS="-ludis86 $LIBS"
13071 cat >conftest.$ac_ext <<_ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13078 /* Override any GCC internal prototype to avoid an error.
13079 Use char because int might match the return type of a GCC
13080 builtin and then its argument prototype would still apply. */
13093 rm -f conftest.$ac_objext conftest$ac_exeext
13094 if { (ac_try="$ac_link"
13095 case "(($ac_try" in
13096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097 *) ac_try_echo=$ac_try;;
13099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100 (eval "$ac_link") 2>conftest.er1
13102 grep -v '^ *+' conftest.er1 >conftest.err
13104 cat conftest.err >&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } &&
13107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13108 { (case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_try") 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; } &&
13117 { ac_try='test -s conftest$ac_exeext'
13118 { (case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_try") 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_cv_lib_udis86_ud_init=yes
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.$ac_ext >&5
13132 ac_cv_lib_udis86_ud_init=no
13135 rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137 LIBS=$ac_check_lib_save_LIBS
13139 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13140 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13141 if test $ac_cv_lib_udis86_ud_init = yes; then
13142 cat >>confdefs.h <<_ACEOF
13143 #define HAVE_LIBUDIS86 1
13146 LIBS="-ludis86 $LIBS"
13150 echo "Error! You need to have libudis86 around."
13162 cat >>confdefs.h <<_ACEOF
13163 #define USE_UDIS86 $USE_UDIS86
13168 # Check whether --with-oprofile was given.
13169 if test "${with_oprofile+set}" = set; then
13170 withval=$with_oprofile;
13174 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13175 no) llvm_cv_oppath=
13178 *) llvm_cv_oppath="${withval}/lib/oprofile"
13179 CPPFLAGS="-I${withval}/include";;
13181 case $llvm_cv_os_type in
13183 if test -n "$llvm_cv_oppath" ; then
13184 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13185 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13186 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13187 if test "${ac_cv_search_bfd_init+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 ac_func_search_save_LIBS=$LIBS
13191 cat >conftest.$ac_ext <<_ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13198 /* Override any GCC internal prototype to avoid an error.
13199 Use char because int might match the return type of a GCC
13200 builtin and then its argument prototype would still apply. */
13208 return bfd_init ();
13213 for ac_lib in '' bfd; do
13214 if test -z "$ac_lib"; then
13215 ac_res="none required"
13218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13220 rm -f conftest.$ac_objext conftest$ac_exeext
13221 if { (ac_try="$ac_link"
13222 case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_link") 2>conftest.er1
13229 grep -v '^ *+' conftest.er1 >conftest.err
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } &&
13234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13235 { (case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_try") 2>&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; } &&
13244 { ac_try='test -s conftest$ac_exeext'
13245 { (case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_try") 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_cv_search_bfd_init=$ac_res
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13262 rm -f core conftest.err conftest.$ac_objext \
13264 if test "${ac_cv_search_bfd_init+set}" = set; then
13268 if test "${ac_cv_search_bfd_init+set}" = set; then
13271 ac_cv_search_bfd_init=no
13273 rm conftest.$ac_ext
13274 LIBS=$ac_func_search_save_LIBS
13276 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13277 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13278 ac_res=$ac_cv_search_bfd_init
13279 if test "$ac_res" != no; then
13280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13284 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13285 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13286 if test "${ac_cv_search_op_open_agent+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 ac_func_search_save_LIBS=$LIBS
13290 cat >conftest.$ac_ext <<_ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13297 /* Override any GCC internal prototype to avoid an error.
13298 Use char because int might match the return type of a GCC
13299 builtin and then its argument prototype would still apply. */
13303 char op_open_agent ();
13307 return op_open_agent ();
13312 for ac_lib in '' opagent; do
13313 if test -z "$ac_lib"; then
13314 ac_res="none required"
13317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13319 rm -f conftest.$ac_objext conftest$ac_exeext
13320 if { (ac_try="$ac_link"
13321 case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_link") 2>conftest.er1
13328 grep -v '^ *+' conftest.er1 >conftest.err
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13334 { (case "(($ac_try" in
13335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336 *) ac_try_echo=$ac_try;;
13338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339 (eval "$ac_try") 2>&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); }; } &&
13343 { ac_try='test -s conftest$ac_exeext'
13344 { (case "(($ac_try" in
13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346 *) ac_try_echo=$ac_try;;
13348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349 (eval "$ac_try") 2>&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; }; then
13353 ac_cv_search_op_open_agent=$ac_res
13355 echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13361 rm -f core conftest.err conftest.$ac_objext \
13363 if test "${ac_cv_search_op_open_agent+set}" = set; then
13367 if test "${ac_cv_search_op_open_agent+set}" = set; then
13370 ac_cv_search_op_open_agent=no
13372 rm conftest.$ac_ext
13373 LIBS=$ac_func_search_save_LIBS
13375 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13376 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13377 ac_res=$ac_cv_search_op_open_agent
13378 if test "$ac_res" != no; then
13379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13383 echo "Error! You need to have libopagent around."
13388 if test "${ac_cv_header_opagent_h+set}" = set; then
13389 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13390 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13391 if test "${ac_cv_header_opagent_h+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13394 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13395 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13397 # Is the header compilable?
13398 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13399 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13400 cat >conftest.$ac_ext <<_ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13406 $ac_includes_default
13407 #include <opagent.h>
13409 rm -f conftest.$ac_objext
13410 if { (ac_try="$ac_compile"
13411 case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_compile") 2>conftest.er1
13418 grep -v '^ *+' conftest.er1 >conftest.err
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
13423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13433 { ac_try='test -s conftest.$ac_objext'
13434 { (case "(($ac_try" in
13435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13436 *) ac_try_echo=$ac_try;;
13438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13439 (eval "$ac_try") 2>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13443 ac_header_compiler=yes
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13448 ac_header_compiler=no
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13453 echo "${ECHO_T}$ac_header_compiler" >&6; }
13455 # Is the header present?
13456 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13457 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13458 cat >conftest.$ac_ext <<_ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h. */
13464 #include <opagent.h>
13466 if { (ac_try="$ac_cpp conftest.$ac_ext"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13474 grep -v '^ *+' conftest.er1 >conftest.err
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } >/dev/null; then
13479 if test -s conftest.err; then
13480 ac_cpp_err=$ac_c_preproc_warn_flag
13481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13488 if test -z "$ac_cpp_err"; then
13489 ac_header_preproc=yes
13491 echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13494 ac_header_preproc=no
13497 rm -f conftest.err conftest.$ac_ext
13498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13499 echo "${ECHO_T}$ac_header_preproc" >&6; }
13501 # So? What about this header?
13502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13504 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13505 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13507 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13508 ac_header_preproc=yes
13511 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13512 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13514 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13516 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13518 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13520 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13522 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13524 ## ------------------------------------ ##
13525 ## Report this to http://llvm.org/bugs/ ##
13526 ## ------------------------------------ ##
13528 ) | sed "s/^/$as_me: WARNING: /" >&2
13531 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13532 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13533 if test "${ac_cv_header_opagent_h+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 ac_cv_header_opagent_h=$ac_header_preproc
13538 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13539 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13542 if test $ac_cv_header_opagent_h = yes; then
13546 echo "Error! You need to have opagent.h around."
13554 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13555 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13556 { (exit 1); exit 1; }; } ;;
13567 cat >>confdefs.h <<_ACEOF
13568 #define LLVM_USE_OPROFILE $USE_OPROFILE
13573 # Check whether --with-intel-jitevents was given.
13574 if test "${with_intel_jitevents+set}" = set; then
13575 withval=$with_intel_jitevents;
13577 yes) USE_INTEL_JITEVENTS=1
13579 no) USE_INTEL_JITEVENTS=0
13581 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13582 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13583 { (exit 1); exit 1; }; };;
13586 case $llvm_cv_os_type in
13587 Linux|Win32|Cygwin|MingW) ;;
13588 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13589 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13590 { (exit 1); exit 1; }; };;
13593 case "$llvm_cv_target_arch" in
13595 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13596 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13597 { (exit 1); exit 1; }; };;
13602 USE_INTEL_JITEVENTS=0
13608 cat >>confdefs.h <<_ACEOF
13609 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13613 for ac_prog in xml2-config
13615 # Extract the first word of "$ac_prog", so it can be a program name with args.
13616 set dummy $ac_prog; ac_word=$2
13617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13619 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 if test -n "$XML2CONFIG"; then
13623 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626 for as_dir in $PATH
13629 test -z "$as_dir" && as_dir=.
13630 for ac_exec_ext in '' $ac_executable_extensions; do
13631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13632 ac_cv_prog_XML2CONFIG="$ac_prog"
13633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13642 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13643 if test -n "$XML2CONFIG"; then
13644 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13645 echo "${ECHO_T}$XML2CONFIG" >&6; }
13647 { echo "$as_me:$LINENO: result: no" >&5
13648 echo "${ECHO_T}no" >&6; }
13652 test -n "$XML2CONFIG" && break
13656 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13657 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13658 if test "x$XML2CONFIG" = "x"; then
13659 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13660 echo "${ECHO_T}xml2-config not found" >&6; }
13662 LIBXML2_INC=`$XML2CONFIG --cflags`
13663 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13664 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13665 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13666 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13667 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 ac_check_lib_save_LIBS=$LIBS
13671 LIBS="-lxml2 $LIBS"
13672 cat >conftest.$ac_ext <<_ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13679 /* Override any GCC internal prototype to avoid an error.
13680 Use char because int might match the return type of a GCC
13681 builtin and then its argument prototype would still apply. */
13685 char xmlReadFile ();
13689 return xmlReadFile ();
13694 rm -f conftest.$ac_objext conftest$ac_exeext
13695 if { (ac_try="$ac_link"
13696 case "(($ac_try" in
13697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701 (eval "$ac_link") 2>conftest.er1
13703 grep -v '^ *+' conftest.er1 >conftest.err
13705 cat conftest.err >&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13709 { (case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_try") 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; } &&
13718 { ac_try='test -s conftest$ac_exeext'
13719 { (case "(($ac_try" in
13720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721 *) ac_try_echo=$ac_try;;
13723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724 (eval "$ac_try") 2>&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
13728 ac_cv_lib_xml2_xmlReadFile=yes
13730 echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13733 ac_cv_lib_xml2_xmlReadFile=no
13736 rm -f core conftest.err conftest.$ac_objext \
13737 conftest$ac_exeext conftest.$ac_ext
13738 LIBS=$ac_check_lib_save_LIBS
13740 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13741 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13742 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13744 cat >>confdefs.h <<\_ACEOF
13745 #define CLANG_HAVE_LIBXML 1
13748 LIBXML2_LIBS="-lxml2"
13761 ac_header_dirent=no
13762 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13763 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13764 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13765 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 cat >conftest.$ac_ext <<_ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 #include <sys/types.h>
13787 rm -f conftest.$ac_objext
13788 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13796 grep -v '^ *+' conftest.er1 >conftest.err
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13802 { (case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_try") 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try='test -s conftest.$ac_objext'
13812 { (case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_try") 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 eval "$as_ac_Header=yes"
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13826 eval "$as_ac_Header=no"
13829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13831 ac_res=`eval echo '${'$as_ac_Header'}'`
13832 { echo "$as_me:$LINENO: result: $ac_res" >&5
13833 echo "${ECHO_T}$ac_res" >&6; }
13834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13835 cat >>confdefs.h <<_ACEOF
13836 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13839 ac_header_dirent=$ac_hdr; break
13843 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13844 if test $ac_header_dirent = dirent.h; then
13845 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13846 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13847 if test "${ac_cv_search_opendir+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 ac_func_search_save_LIBS=$LIBS
13851 cat >conftest.$ac_ext <<_ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h. */
13858 /* Override any GCC internal prototype to avoid an error.
13859 Use char because int might match the return type of a GCC
13860 builtin and then its argument prototype would still apply. */
13873 for ac_lib in '' dir; do
13874 if test -z "$ac_lib"; then
13875 ac_res="none required"
13878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13880 rm -f conftest.$ac_objext conftest$ac_exeext
13881 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13889 grep -v '^ *+' conftest.er1 >conftest.err
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13895 { (case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_try") 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } &&
13904 { ac_try='test -s conftest$ac_exeext'
13905 { (case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_try") 2>&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 ac_cv_search_opendir=$ac_res
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13922 rm -f core conftest.err conftest.$ac_objext \
13924 if test "${ac_cv_search_opendir+set}" = set; then
13928 if test "${ac_cv_search_opendir+set}" = set; then
13931 ac_cv_search_opendir=no
13933 rm conftest.$ac_ext
13934 LIBS=$ac_func_search_save_LIBS
13936 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13937 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13938 ac_res=$ac_cv_search_opendir
13939 if test "$ac_res" != no; then
13940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13945 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13946 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13947 if test "${ac_cv_search_opendir+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 ac_func_search_save_LIBS=$LIBS
13951 cat >conftest.$ac_ext <<_ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13958 /* Override any GCC internal prototype to avoid an error.
13959 Use char because int might match the return type of a GCC
13960 builtin and then its argument prototype would still apply. */
13973 for ac_lib in '' x; do
13974 if test -z "$ac_lib"; then
13975 ac_res="none required"
13978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13980 rm -f conftest.$ac_objext conftest$ac_exeext
13981 if { (ac_try="$ac_link"
13982 case "(($ac_try" in
13983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984 *) ac_try_echo=$ac_try;;
13986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987 (eval "$ac_link") 2>conftest.er1
13989 grep -v '^ *+' conftest.er1 >conftest.err
13991 cat conftest.err >&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
13994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13995 { (case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_try") 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; } &&
14004 { ac_try='test -s conftest$ac_exeext'
14005 { (case "(($ac_try" in
14006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010 (eval "$ac_try") 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 ac_cv_search_opendir=$ac_res
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14022 rm -f core conftest.err conftest.$ac_objext \
14024 if test "${ac_cv_search_opendir+set}" = set; then
14028 if test "${ac_cv_search_opendir+set}" = set; then
14031 ac_cv_search_opendir=no
14033 rm conftest.$ac_ext
14034 LIBS=$ac_func_search_save_LIBS
14036 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14037 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14038 ac_res=$ac_cv_search_opendir
14039 if test "$ac_res" != no; then
14040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14046 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14047 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14048 if test "${ac_cv_header_mmap_anon+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14052 ac_cpp='$CPP $CPPFLAGS'
14053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14057 cat >conftest.$ac_ext <<_ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 #include <sys/mman.h>
14064 #include <unistd.h>
14069 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14074 rm -f conftest.$ac_objext
14075 if { (ac_try="$ac_compile"
14076 case "(($ac_try" in
14077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14078 *) ac_try_echo=$ac_try;;
14080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14081 (eval "$ac_compile") 2>conftest.er1
14083 grep -v '^ *+' conftest.er1 >conftest.err
14085 cat conftest.err >&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); } &&
14088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14089 { (case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_try") 2>&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; } &&
14098 { ac_try='test -s conftest.$ac_objext'
14099 { (case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_try") 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 ac_cv_header_mmap_anon=yes
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_cv_header_mmap_anon=no
14116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14118 ac_cpp='$CPP $CPPFLAGS'
14119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14125 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14126 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14127 if test "$ac_cv_header_mmap_anon" = yes; then
14129 cat >>confdefs.h <<\_ACEOF
14130 #define HAVE_MMAP_ANONYMOUS 1
14135 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14136 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14137 if test "${ac_cv_header_stat_broken+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 cat >conftest.$ac_ext <<_ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 #include <sys/types.h>
14147 #include <sys/stat.h>
14149 #if defined S_ISBLK && defined S_IFDIR
14150 # if S_ISBLK (S_IFDIR)
14155 #if defined S_ISBLK && defined S_IFCHR
14156 # if S_ISBLK (S_IFCHR)
14161 #if defined S_ISLNK && defined S_IFREG
14162 # if S_ISLNK (S_IFREG)
14167 #if defined S_ISSOCK && defined S_IFREG
14168 # if S_ISSOCK (S_IFREG)
14174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14175 $EGREP "You lose" >/dev/null 2>&1; then
14176 ac_cv_header_stat_broken=yes
14178 ac_cv_header_stat_broken=no
14183 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14184 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14185 if test $ac_cv_header_stat_broken = yes; then
14187 cat >>confdefs.h <<\_ACEOF
14188 #define STAT_MACROS_BROKEN 1
14193 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14194 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14195 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 cat >conftest.$ac_ext <<_ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14204 #include <sys/types.h>
14205 #include <sys/wait.h>
14206 #ifndef WEXITSTATUS
14207 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14210 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14218 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14223 rm -f conftest.$ac_objext
14224 if { (ac_try="$ac_compile"
14225 case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_compile") 2>conftest.er1
14232 grep -v '^ *+' conftest.er1 >conftest.err
14234 cat conftest.err >&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14238 { (case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243 (eval "$ac_try") 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; } &&
14247 { ac_try='test -s conftest.$ac_objext'
14248 { (case "(($ac_try" in
14249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250 *) ac_try_echo=$ac_try;;
14252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253 (eval "$ac_try") 2>&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); }; }; then
14257 ac_cv_header_sys_wait_h=yes
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14262 ac_cv_header_sys_wait_h=no
14265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14267 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14268 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14269 if test $ac_cv_header_sys_wait_h = yes; then
14271 cat >>confdefs.h <<\_ACEOF
14272 #define HAVE_SYS_WAIT_H 1
14277 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14278 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14279 if test "${ac_cv_header_time+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 cat >conftest.$ac_ext <<_ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h. */
14288 #include <sys/types.h>
14289 #include <sys/time.h>
14295 if ((struct tm *) 0)
14301 rm -f conftest.$ac_objext
14302 if { (ac_try="$ac_compile"
14303 case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308 (eval "$ac_compile") 2>conftest.er1
14310 grep -v '^ *+' conftest.er1 >conftest.err
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14316 { (case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_try") 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try='test -s conftest.$ac_objext'
14326 { (case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331 (eval "$ac_try") 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_cv_header_time=yes
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14340 ac_cv_header_time=no
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14346 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14347 if test $ac_cv_header_time = yes; then
14349 cat >>confdefs.h <<\_ACEOF
14350 #define TIME_WITH_SYS_TIME 1
14362 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 ac_res=`eval echo '${'$as_ac_Header'}'`
14372 { echo "$as_me:$LINENO: result: $ac_res" >&5
14373 echo "${ECHO_T}$ac_res" >&6; }
14375 # Is the header compilable?
14376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14378 cat >conftest.$ac_ext <<_ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 $ac_includes_default
14385 #include <$ac_header>
14387 rm -f conftest.$ac_objext
14388 if { (ac_try="$ac_compile"
14389 case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394 (eval "$ac_compile") 2>conftest.er1
14396 grep -v '^ *+' conftest.er1 >conftest.err
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } &&
14401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14402 { (case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_try") 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; } &&
14411 { ac_try='test -s conftest.$ac_objext'
14412 { (case "(($ac_try" in
14413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414 *) ac_try_echo=$ac_try;;
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417 (eval "$ac_try") 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 ac_header_compiler=yes
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ac_header_compiler=no
14429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14431 echo "${ECHO_T}$ac_header_compiler" >&6; }
14433 # Is the header present?
14434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14436 cat >conftest.$ac_ext <<_ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h. */
14442 #include <$ac_header>
14444 if { (ac_try="$ac_cpp conftest.$ac_ext"
14445 case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14452 grep -v '^ *+' conftest.er1 >conftest.err
14454 cat conftest.err >&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); } >/dev/null; then
14457 if test -s conftest.err; then
14458 ac_cpp_err=$ac_c_preproc_warn_flag
14459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14466 if test -z "$ac_cpp_err"; then
14467 ac_header_preproc=yes
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14472 ac_header_preproc=no
14475 rm -f conftest.err conftest.$ac_ext
14476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14477 echo "${ECHO_T}$ac_header_preproc" >&6; }
14479 # So? What about this header?
14480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14486 ac_header_preproc=yes
14489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14502 ## ------------------------------------ ##
14503 ## Report this to http://llvm.org/bugs/ ##
14504 ## ------------------------------------ ##
14506 ) | sed "s/^/$as_me: WARNING: /" >&2
14509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 eval "$as_ac_Header=\$ac_header_preproc"
14516 ac_res=`eval echo '${'$as_ac_Header'}'`
14517 { echo "$as_me:$LINENO: result: $ac_res" >&5
14518 echo "${ECHO_T}$ac_res" >&6; }
14521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14522 cat >>confdefs.h <<_ACEOF
14523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14536 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14543 echo $ECHO_N "(cached) $ECHO_C" >&6
14545 ac_res=`eval echo '${'$as_ac_Header'}'`
14546 { echo "$as_me:$LINENO: result: $ac_res" >&5
14547 echo "${ECHO_T}$ac_res" >&6; }
14549 # Is the header compilable?
14550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14552 cat >conftest.$ac_ext <<_ACEOF
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h. */
14558 $ac_includes_default
14559 #include <$ac_header>
14561 rm -f conftest.$ac_objext
14562 if { (ac_try="$ac_compile"
14563 case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_compile") 2>conftest.er1
14570 grep -v '^ *+' conftest.er1 >conftest.err
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14576 { (case "(($ac_try" in
14577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578 *) ac_try_echo=$ac_try;;
14580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581 (eval "$ac_try") 2>&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; } &&
14585 { ac_try='test -s conftest.$ac_objext'
14586 { (case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_try") 2>&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; }; then
14595 ac_header_compiler=yes
14597 echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14600 ac_header_compiler=no
14603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14605 echo "${ECHO_T}$ac_header_compiler" >&6; }
14607 # Is the header present?
14608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14610 cat >conftest.$ac_ext <<_ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14616 #include <$ac_header>
14618 if { (ac_try="$ac_cpp conftest.$ac_ext"
14619 case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14626 grep -v '^ *+' conftest.er1 >conftest.err
14628 cat conftest.err >&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } >/dev/null; then
14631 if test -s conftest.err; then
14632 ac_cpp_err=$ac_c_preproc_warn_flag
14633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14640 if test -z "$ac_cpp_err"; then
14641 ac_header_preproc=yes
14643 echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14646 ac_header_preproc=no
14649 rm -f conftest.err conftest.$ac_ext
14650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14651 echo "${ECHO_T}$ac_header_preproc" >&6; }
14653 # So? What about this header?
14654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14660 ac_header_preproc=yes
14663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14676 ## ------------------------------------ ##
14677 ## Report this to http://llvm.org/bugs/ ##
14678 ## ------------------------------------ ##
14680 ) | sed "s/^/$as_me: WARNING: /" >&2
14683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14688 eval "$as_ac_Header=\$ac_header_preproc"
14690 ac_res=`eval echo '${'$as_ac_Header'}'`
14691 { echo "$as_me:$LINENO: result: $ac_res" >&5
14692 echo "${ECHO_T}$ac_res" >&6; }
14695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14696 cat >>confdefs.h <<_ACEOF
14697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14706 for ac_header in utime.h windows.h
14708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 ac_res=`eval echo '${'$as_ac_Header'}'`
14716 { echo "$as_me:$LINENO: result: $ac_res" >&5
14717 echo "${ECHO_T}$ac_res" >&6; }
14719 # Is the header compilable?
14720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14722 cat >conftest.$ac_ext <<_ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14728 $ac_includes_default
14729 #include <$ac_header>
14731 rm -f conftest.$ac_objext
14732 if { (ac_try="$ac_compile"
14733 case "(($ac_try" in
14734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14735 *) ac_try_echo=$ac_try;;
14737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14738 (eval "$ac_compile") 2>conftest.er1
14740 grep -v '^ *+' conftest.er1 >conftest.err
14742 cat conftest.err >&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14746 { (case "(($ac_try" in
14747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748 *) ac_try_echo=$ac_try;;
14750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751 (eval "$ac_try") 2>&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; } &&
14755 { ac_try='test -s conftest.$ac_objext'
14756 { (case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_try") 2>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; }; then
14765 ac_header_compiler=yes
14767 echo "$as_me: failed program was:" >&5
14768 sed 's/^/| /' conftest.$ac_ext >&5
14770 ac_header_compiler=no
14773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14775 echo "${ECHO_T}$ac_header_compiler" >&6; }
14777 # Is the header present?
14778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14780 cat >conftest.$ac_ext <<_ACEOF
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h. */
14786 #include <$ac_header>
14788 if { (ac_try="$ac_cpp conftest.$ac_ext"
14789 case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14796 grep -v '^ *+' conftest.er1 >conftest.err
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } >/dev/null; then
14801 if test -s conftest.err; then
14802 ac_cpp_err=$ac_c_preproc_warn_flag
14803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14810 if test -z "$ac_cpp_err"; then
14811 ac_header_preproc=yes
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_header_preproc=no
14819 rm -f conftest.err conftest.$ac_ext
14820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14821 echo "${ECHO_T}$ac_header_preproc" >&6; }
14823 # So? What about this header?
14824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14830 ac_header_preproc=yes
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14846 ## ------------------------------------ ##
14847 ## Report this to http://llvm.org/bugs/ ##
14848 ## ------------------------------------ ##
14850 ) | sed "s/^/$as_me: WARNING: /" >&2
14853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14856 echo $ECHO_N "(cached) $ECHO_C" >&6
14858 eval "$as_ac_Header=\$ac_header_preproc"
14860 ac_res=`eval echo '${'$as_ac_Header'}'`
14861 { echo "$as_me:$LINENO: result: $ac_res" >&5
14862 echo "${ECHO_T}$ac_res" >&6; }
14865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14866 cat >>confdefs.h <<_ACEOF
14867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14879 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 ac_res=`eval echo '${'$as_ac_Header'}'`
14889 { echo "$as_me:$LINENO: result: $ac_res" >&5
14890 echo "${ECHO_T}$ac_res" >&6; }
14892 # Is the header compilable?
14893 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14895 cat >conftest.$ac_ext <<_ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 $ac_includes_default
14902 #include <$ac_header>
14904 rm -f conftest.$ac_objext
14905 if { (ac_try="$ac_compile"
14906 case "(($ac_try" in
14907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14908 *) ac_try_echo=$ac_try;;
14910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14911 (eval "$ac_compile") 2>conftest.er1
14913 grep -v '^ *+' conftest.er1 >conftest.err
14915 cat conftest.err >&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); } &&
14918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14919 { (case "(($ac_try" in
14920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921 *) ac_try_echo=$ac_try;;
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_try") 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; } &&
14928 { ac_try='test -s conftest.$ac_objext'
14929 { (case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_try") 2>&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; }; then
14938 ac_header_compiler=yes
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14943 ac_header_compiler=no
14946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14948 echo "${ECHO_T}$ac_header_compiler" >&6; }
14950 # Is the header present?
14951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14953 cat >conftest.$ac_ext <<_ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14959 #include <$ac_header>
14961 if { (ac_try="$ac_cpp conftest.$ac_ext"
14962 case "(($ac_try" in
14963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964 *) ac_try_echo=$ac_try;;
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14969 grep -v '^ *+' conftest.er1 >conftest.err
14971 cat conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } >/dev/null; then
14974 if test -s conftest.err; then
14975 ac_cpp_err=$ac_c_preproc_warn_flag
14976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14983 if test -z "$ac_cpp_err"; then
14984 ac_header_preproc=yes
14986 echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14989 ac_header_preproc=no
14992 rm -f conftest.err conftest.$ac_ext
14993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14994 echo "${ECHO_T}$ac_header_preproc" >&6; }
14996 # So? What about this header?
14997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15003 ac_header_preproc=yes
15006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15019 ## ------------------------------------ ##
15020 ## Report this to http://llvm.org/bugs/ ##
15021 ## ------------------------------------ ##
15023 ) | sed "s/^/$as_me: WARNING: /" >&2
15026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15031 eval "$as_ac_Header=\$ac_header_preproc"
15033 ac_res=`eval echo '${'$as_ac_Header'}'`
15034 { echo "$as_me:$LINENO: result: $ac_res" >&5
15035 echo "${ECHO_T}$ac_res" >&6; }
15038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15039 cat >>confdefs.h <<_ACEOF
15040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15051 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15060 ac_res=`eval echo '${'$as_ac_Header'}'`
15061 { echo "$as_me:$LINENO: result: $ac_res" >&5
15062 echo "${ECHO_T}$ac_res" >&6; }
15064 # Is the header compilable?
15065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15067 cat >conftest.$ac_ext <<_ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 $ac_includes_default
15074 #include <$ac_header>
15076 rm -f conftest.$ac_objext
15077 if { (ac_try="$ac_compile"
15078 case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_compile") 2>conftest.er1
15085 grep -v '^ *+' conftest.er1 >conftest.err
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; } &&
15100 { ac_try='test -s conftest.$ac_objext'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 ac_header_compiler=yes
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 ac_header_compiler=no
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15120 echo "${ECHO_T}$ac_header_compiler" >&6; }
15122 # Is the header present?
15123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15125 cat >conftest.$ac_ext <<_ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15131 #include <$ac_header>
15133 if { (ac_try="$ac_cpp conftest.$ac_ext"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } >/dev/null; then
15146 if test -s conftest.err; then
15147 ac_cpp_err=$ac_c_preproc_warn_flag
15148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15155 if test -z "$ac_cpp_err"; then
15156 ac_header_preproc=yes
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15161 ac_header_preproc=no
15164 rm -f conftest.err conftest.$ac_ext
15165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15166 echo "${ECHO_T}$ac_header_preproc" >&6; }
15168 # So? What about this header?
15169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15175 ac_header_preproc=yes
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15191 ## ------------------------------------ ##
15192 ## Report this to http://llvm.org/bugs/ ##
15193 ## ------------------------------------ ##
15195 ) | sed "s/^/$as_me: WARNING: /" >&2
15198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15203 eval "$as_ac_Header=\$ac_header_preproc"
15205 ac_res=`eval echo '${'$as_ac_Header'}'`
15206 { echo "$as_me:$LINENO: result: $ac_res" >&5
15207 echo "${ECHO_T}$ac_res" >&6; }
15210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15211 cat >>confdefs.h <<_ACEOF
15212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15220 for ac_header in valgrind/valgrind.h
15222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15229 ac_res=`eval echo '${'$as_ac_Header'}'`
15230 { echo "$as_me:$LINENO: result: $ac_res" >&5
15231 echo "${ECHO_T}$ac_res" >&6; }
15233 # Is the header compilable?
15234 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15236 cat >conftest.$ac_ext <<_ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h. */
15242 $ac_includes_default
15243 #include <$ac_header>
15245 rm -f conftest.$ac_objext
15246 if { (ac_try="$ac_compile"
15247 case "(($ac_try" in
15248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249 *) ac_try_echo=$ac_try;;
15251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252 (eval "$ac_compile") 2>conftest.er1
15254 grep -v '^ *+' conftest.er1 >conftest.err
15256 cat conftest.err >&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } &&
15259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15260 { (case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_try") 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; } &&
15269 { ac_try='test -s conftest.$ac_objext'
15270 { (case "(($ac_try" in
15271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15272 *) ac_try_echo=$ac_try;;
15274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15275 (eval "$ac_try") 2>&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
15279 ac_header_compiler=yes
15281 echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15284 ac_header_compiler=no
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15289 echo "${ECHO_T}$ac_header_compiler" >&6; }
15291 # Is the header present?
15292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15294 cat >conftest.$ac_ext <<_ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15300 #include <$ac_header>
15302 if { (ac_try="$ac_cpp conftest.$ac_ext"
15303 case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15310 grep -v '^ *+' conftest.er1 >conftest.err
15312 cat conftest.err >&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); } >/dev/null; then
15315 if test -s conftest.err; then
15316 ac_cpp_err=$ac_c_preproc_warn_flag
15317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15324 if test -z "$ac_cpp_err"; then
15325 ac_header_preproc=yes
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15330 ac_header_preproc=no
15333 rm -f conftest.err conftest.$ac_ext
15334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15335 echo "${ECHO_T}$ac_header_preproc" >&6; }
15337 # So? What about this header?
15338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15344 ac_header_preproc=yes
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15360 ## ------------------------------------ ##
15361 ## Report this to http://llvm.org/bugs/ ##
15362 ## ------------------------------------ ##
15364 ) | sed "s/^/$as_me: WARNING: /" >&2
15367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 eval "$as_ac_Header=\$ac_header_preproc"
15374 ac_res=`eval echo '${'$as_ac_Header'}'`
15375 { echo "$as_me:$LINENO: result: $ac_res" >&5
15376 echo "${ECHO_T}$ac_res" >&6; }
15379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15380 cat >>confdefs.h <<_ACEOF
15381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15389 for ac_header in fenv.h
15391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 ac_res=`eval echo '${'$as_ac_Header'}'`
15399 { echo "$as_me:$LINENO: result: $ac_res" >&5
15400 echo "${ECHO_T}$ac_res" >&6; }
15402 # Is the header compilable?
15403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 $ac_includes_default
15412 #include <$ac_header>
15414 rm -f conftest.$ac_objext
15415 if { (ac_try="$ac_compile"
15416 case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_compile") 2>conftest.er1
15423 grep -v '^ *+' conftest.er1 >conftest.err
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
15428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15429 { (case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_try") 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try='test -s conftest.$ac_objext'
15439 { (case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_try") 2>&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448 ac_header_compiler=yes
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15453 ac_header_compiler=no
15456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15458 echo "${ECHO_T}$ac_header_compiler" >&6; }
15460 # Is the header present?
15461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15463 cat >conftest.$ac_ext <<_ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 #include <$ac_header>
15471 if { (ac_try="$ac_cpp conftest.$ac_ext"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15479 grep -v '^ *+' conftest.er1 >conftest.err
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } >/dev/null; then
15484 if test -s conftest.err; then
15485 ac_cpp_err=$ac_c_preproc_warn_flag
15486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15493 if test -z "$ac_cpp_err"; then
15494 ac_header_preproc=yes
15496 echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15499 ac_header_preproc=no
15502 rm -f conftest.err conftest.$ac_ext
15503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15504 echo "${ECHO_T}$ac_header_preproc" >&6; }
15506 # So? What about this header?
15507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15513 ac_header_preproc=yes
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15529 ## ------------------------------------ ##
15530 ## Report this to http://llvm.org/bugs/ ##
15531 ## ------------------------------------ ##
15533 ) | sed "s/^/$as_me: WARNING: /" >&2
15536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15541 eval "$as_ac_Header=\$ac_header_preproc"
15543 ac_res=`eval echo '${'$as_ac_Header'}'`
15544 { echo "$as_me:$LINENO: result: $ac_res" >&5
15545 echo "${ECHO_T}$ac_res" >&6; }
15548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15549 cat >>confdefs.h <<_ACEOF
15550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15557 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15559 for ac_header in pthread.h
15561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15568 ac_res=`eval echo '${'$as_ac_Header'}'`
15569 { echo "$as_me:$LINENO: result: $ac_res" >&5
15570 echo "${ECHO_T}$ac_res" >&6; }
15572 # Is the header compilable?
15573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15575 cat >conftest.$ac_ext <<_ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15581 $ac_includes_default
15582 #include <$ac_header>
15584 rm -f conftest.$ac_objext
15585 if { (ac_try="$ac_compile"
15586 case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_compile") 2>conftest.er1
15593 grep -v '^ *+' conftest.er1 >conftest.err
15595 cat conftest.err >&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
15598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15599 { (case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_try") 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; } &&
15608 { ac_try='test -s conftest.$ac_objext'
15609 { (case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_try") 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_header_compiler=yes
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15623 ac_header_compiler=no
15626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15628 echo "${ECHO_T}$ac_header_compiler" >&6; }
15630 # Is the header present?
15631 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15633 cat >conftest.$ac_ext <<_ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15639 #include <$ac_header>
15641 if { (ac_try="$ac_cpp conftest.$ac_ext"
15642 case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15649 grep -v '^ *+' conftest.er1 >conftest.err
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } >/dev/null; then
15654 if test -s conftest.err; then
15655 ac_cpp_err=$ac_c_preproc_warn_flag
15656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15663 if test -z "$ac_cpp_err"; then
15664 ac_header_preproc=yes
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15669 ac_header_preproc=no
15672 rm -f conftest.err conftest.$ac_ext
15673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15674 echo "${ECHO_T}$ac_header_preproc" >&6; }
15676 # So? What about this header?
15677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15683 ac_header_preproc=yes
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15699 ## ------------------------------------ ##
15700 ## Report this to http://llvm.org/bugs/ ##
15701 ## ------------------------------------ ##
15703 ) | sed "s/^/$as_me: WARNING: /" >&2
15706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 eval "$as_ac_Header=\$ac_header_preproc"
15713 ac_res=`eval echo '${'$as_ac_Header'}'`
15714 { echo "$as_me:$LINENO: result: $ac_res" >&5
15715 echo "${ECHO_T}$ac_res" >&6; }
15718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15719 cat >>confdefs.h <<_ACEOF
15720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15736 if test "$llvm_cv_enable_libffi" = "yes" ; then
15739 for ac_header in ffi.h ffi/ffi.h
15741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 ac_res=`eval echo '${'$as_ac_Header'}'`
15749 { echo "$as_me:$LINENO: result: $ac_res" >&5
15750 echo "${ECHO_T}$ac_res" >&6; }
15752 # Is the header compilable?
15753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15755 cat >conftest.$ac_ext <<_ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 $ac_includes_default
15762 #include <$ac_header>
15764 rm -f conftest.$ac_objext
15765 if { (ac_try="$ac_compile"
15766 case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_compile") 2>conftest.er1
15773 grep -v '^ *+' conftest.er1 >conftest.err
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
15778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15779 { (case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_try") 2>&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; } &&
15788 { ac_try='test -s conftest.$ac_objext'
15789 { (case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_try") 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798 ac_header_compiler=yes
15800 echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15803 ac_header_compiler=no
15806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15808 echo "${ECHO_T}$ac_header_compiler" >&6; }
15810 # Is the header present?
15811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15813 cat >conftest.$ac_ext <<_ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h. */
15819 #include <$ac_header>
15821 if { (ac_try="$ac_cpp conftest.$ac_ext"
15822 case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15829 grep -v '^ *+' conftest.er1 >conftest.err
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } >/dev/null; then
15834 if test -s conftest.err; then
15835 ac_cpp_err=$ac_c_preproc_warn_flag
15836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15843 if test -z "$ac_cpp_err"; then
15844 ac_header_preproc=yes
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15849 ac_header_preproc=no
15852 rm -f conftest.err conftest.$ac_ext
15853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15854 echo "${ECHO_T}$ac_header_preproc" >&6; }
15856 # So? What about this header?
15857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15863 ac_header_preproc=yes
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15879 ## ------------------------------------ ##
15880 ## Report this to http://llvm.org/bugs/ ##
15881 ## ------------------------------------ ##
15883 ) | sed "s/^/$as_me: WARNING: /" >&2
15886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 eval "$as_ac_Header=\$ac_header_preproc"
15893 ac_res=`eval echo '${'$as_ac_Header'}'`
15894 { echo "$as_me:$LINENO: result: $ac_res" >&5
15895 echo "${ECHO_T}$ac_res" >&6; }
15898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15899 cat >>confdefs.h <<_ACEOF
15900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15910 for ac_header in CrashReporterClient.h
15912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 ac_res=`eval echo '${'$as_ac_Header'}'`
15920 { echo "$as_me:$LINENO: result: $ac_res" >&5
15921 echo "${ECHO_T}$ac_res" >&6; }
15923 # Is the header compilable?
15924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15926 cat >conftest.$ac_ext <<_ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h. */
15932 $ac_includes_default
15933 #include <$ac_header>
15935 rm -f conftest.$ac_objext
15936 if { (ac_try="$ac_compile"
15937 case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_compile") 2>conftest.er1
15944 grep -v '^ *+' conftest.er1 >conftest.err
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15950 { (case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_try") 2>&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; } &&
15959 { ac_try='test -s conftest.$ac_objext'
15960 { (case "(($ac_try" in
15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962 *) ac_try_echo=$ac_try;;
15964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965 (eval "$ac_try") 2>&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 ac_header_compiler=yes
15971 echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15974 ac_header_compiler=no
15977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15979 echo "${ECHO_T}$ac_header_compiler" >&6; }
15981 # Is the header present?
15982 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15984 cat >conftest.$ac_ext <<_ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 #include <$ac_header>
15992 if { (ac_try="$ac_cpp conftest.$ac_ext"
15993 case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16000 grep -v '^ *+' conftest.er1 >conftest.err
16002 cat conftest.err >&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } >/dev/null; then
16005 if test -s conftest.err; then
16006 ac_cpp_err=$ac_c_preproc_warn_flag
16007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16014 if test -z "$ac_cpp_err"; then
16015 ac_header_preproc=yes
16017 echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 ac_header_preproc=no
16023 rm -f conftest.err conftest.$ac_ext
16024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16025 echo "${ECHO_T}$ac_header_preproc" >&6; }
16027 # So? What about this header?
16028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16034 ac_header_preproc=yes
16037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16050 ## ------------------------------------ ##
16051 ## Report this to http://llvm.org/bugs/ ##
16052 ## ------------------------------------ ##
16054 ) | sed "s/^/$as_me: WARNING: /" >&2
16057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16062 eval "$as_ac_Header=\$ac_header_preproc"
16064 ac_res=`eval echo '${'$as_ac_Header'}'`
16065 { echo "$as_me:$LINENO: result: $ac_res" >&5
16066 echo "${ECHO_T}$ac_res" >&6; }
16069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16070 cat >>confdefs.h <<_ACEOF
16071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16079 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16080 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16081 cat >conftest.$ac_ext <<_ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 extern const char *__crashreporter_info__;
16089 __crashreporter_info__ = "test";
16094 rm -f conftest.$ac_objext conftest$ac_exeext
16095 if { (ac_try="$ac_link"
16096 case "(($ac_try" in
16097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098 *) ac_try_echo=$ac_try;;
16100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101 (eval "$ac_link") 2>conftest.er1
16103 grep -v '^ *+' conftest.er1 >conftest.err
16105 cat conftest.err >&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } &&
16108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16109 { (case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_try") 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; } &&
16118 { ac_try='test -s conftest$ac_exeext'
16119 { (case "(($ac_try" in
16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124 (eval "$ac_try") 2>&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 { echo "$as_me:$LINENO: result: yes" >&5
16129 echo "${ECHO_T}yes" >&6; }
16131 cat >>confdefs.h <<\_ACEOF
16132 #define HAVE_CRASHREPORTER_INFO 1
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16139 { echo "$as_me:$LINENO: result: no" >&5
16140 echo "${ECHO_T}no" >&6; }
16142 cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_CRASHREPORTER_INFO 0
16148 rm -f core conftest.err conftest.$ac_objext \
16149 conftest$ac_exeext conftest.$ac_ext
16154 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16155 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16156 if test "${ac_cv_huge_val_sanity+set}" = set; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16161 ac_cpp='$CXXCPP $CPPFLAGS'
16162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16166 ac_save_CXXFLAGS=$CXXFLAGS
16167 CXXFLAGS="$CXXFLAGS -pedantic"
16168 if test "$cross_compiling" = yes; then
16169 ac_cv_huge_val_sanity=yes
16171 cat >conftest.$ac_ext <<_ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16181 double x = HUGE_VAL; return x != x;
16186 rm -f conftest$ac_exeext
16187 if { (ac_try="$ac_link"
16188 case "(($ac_try" in
16189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193 (eval "$ac_link") 2>&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16197 { (case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_try") 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; }; then
16206 ac_cv_huge_val_sanity=yes
16208 echo "$as_me: program exited with status $ac_status" >&5
16209 echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16212 ( exit $ac_status )
16213 ac_cv_huge_val_sanity=no
16215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16219 CXXFLAGS=$ac_save_CXXFLAGS
16221 ac_cpp='$CPP $CPPFLAGS'
16222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16228 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16229 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16230 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16233 { echo "$as_me:$LINENO: checking for pid_t" >&5
16234 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16235 if test "${ac_cv_type_pid_t+set}" = set; then
16236 echo $ECHO_N "(cached) $ECHO_C" >&6
16238 cat >conftest.$ac_ext <<_ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244 $ac_includes_default
16245 typedef pid_t ac__type_new_;
16249 if ((ac__type_new_ *) 0)
16251 if (sizeof (ac__type_new_))
16257 rm -f conftest.$ac_objext
16258 if { (ac_try="$ac_compile"
16259 case "(($ac_try" in
16260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261 *) ac_try_echo=$ac_try;;
16263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16264 (eval "$ac_compile") 2>conftest.er1
16266 grep -v '^ *+' conftest.er1 >conftest.err
16268 cat conftest.err >&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16272 { (case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_try") 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; } &&
16281 { ac_try='test -s conftest.$ac_objext'
16282 { (case "(($ac_try" in
16283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284 *) ac_try_echo=$ac_try;;
16286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16287 (eval "$ac_try") 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 ac_cv_type_pid_t=yes
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16296 ac_cv_type_pid_t=no
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16302 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16303 if test $ac_cv_type_pid_t = yes; then
16307 cat >>confdefs.h <<_ACEOF
16313 { echo "$as_me:$LINENO: checking for size_t" >&5
16314 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16315 if test "${ac_cv_type_size_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 size_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_size_t=yes
16373 echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16376 ac_cv_type_size_t=no
16379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16382 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16383 if test $ac_cv_type_size_t = yes; then
16387 cat >>confdefs.h <<_ACEOF
16388 #define size_t unsigned int
16394 cat >>confdefs.h <<_ACEOF
16395 #define RETSIGTYPE void
16398 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16399 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16400 if test "${ac_cv_struct_tm+set}" = set; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16403 cat >conftest.$ac_ext <<_ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16409 #include <sys/types.h>
16415 struct tm *tp; tp->tm_sec;
16420 rm -f conftest.$ac_objext
16421 if { (ac_try="$ac_compile"
16422 case "(($ac_try" in
16423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424 *) ac_try_echo=$ac_try;;
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427 (eval "$ac_compile") 2>conftest.er1
16429 grep -v '^ *+' conftest.er1 >conftest.err
16431 cat conftest.err >&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16435 { (case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_try") 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } &&
16444 { ac_try='test -s conftest.$ac_objext'
16445 { (case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_try") 2>&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; }; then
16454 ac_cv_struct_tm=time.h
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16459 ac_cv_struct_tm=sys/time.h
16462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16465 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16466 if test $ac_cv_struct_tm = sys/time.h; then
16468 cat >>confdefs.h <<\_ACEOF
16469 #define TM_IN_SYS_TIME 1
16474 { echo "$as_me:$LINENO: checking for int64_t" >&5
16475 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16476 if test "${ac_cv_type_int64_t+set}" = set; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16479 cat >conftest.$ac_ext <<_ACEOF
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h. */
16485 $ac_includes_default
16486 typedef int64_t ac__type_new_;
16490 if ((ac__type_new_ *) 0)
16492 if (sizeof (ac__type_new_))
16498 rm -f conftest.$ac_objext
16499 if { (ac_try="$ac_compile"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_compile") 2>conftest.er1
16507 grep -v '^ *+' conftest.er1 >conftest.err
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } &&
16512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16513 { (case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_try") 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest.$ac_objext'
16523 { (case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_try") 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 ac_cv_type_int64_t=yes
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 ac_cv_type_int64_t=no
16540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16542 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16543 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16544 if test $ac_cv_type_int64_t = yes; then
16546 cat >>confdefs.h <<_ACEOF
16547 #define HAVE_INT64_T 1
16552 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16553 echo "$as_me: error: Type int64_t required but not found" >&2;}
16554 { (exit 1); exit 1; }; }
16557 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16558 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16559 if test "${ac_cv_type_uint64_t+set}" = set; then
16560 echo $ECHO_N "(cached) $ECHO_C" >&6
16562 cat >conftest.$ac_ext <<_ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h. */
16568 $ac_includes_default
16569 typedef uint64_t ac__type_new_;
16573 if ((ac__type_new_ *) 0)
16575 if (sizeof (ac__type_new_))
16581 rm -f conftest.$ac_objext
16582 if { (ac_try="$ac_compile"
16583 case "(($ac_try" in
16584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585 *) ac_try_echo=$ac_try;;
16587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588 (eval "$ac_compile") 2>conftest.er1
16590 grep -v '^ *+' conftest.er1 >conftest.err
16592 cat conftest.err >&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
16595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16596 { (case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_try") 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; } &&
16605 { ac_try='test -s conftest.$ac_objext'
16606 { (case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_try") 2>&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 ac_cv_type_uint64_t=yes
16617 echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16620 ac_cv_type_uint64_t=no
16623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16625 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16626 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16627 if test $ac_cv_type_uint64_t = yes; then
16629 cat >>confdefs.h <<_ACEOF
16630 #define HAVE_UINT64_T 1
16635 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16636 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16637 if test "${ac_cv_type_u_int64_t+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 $ac_includes_default
16647 typedef u_int64_t ac__type_new_;
16651 if ((ac__type_new_ *) 0)
16653 if (sizeof (ac__type_new_))
16659 rm -f conftest.$ac_objext
16660 if { (ac_try="$ac_compile"
16661 case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_compile") 2>conftest.er1
16668 grep -v '^ *+' conftest.er1 >conftest.err
16670 cat conftest.err >&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } &&
16673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16674 { (case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_try") 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; } &&
16683 { ac_try='test -s conftest.$ac_objext'
16684 { (case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_try") 2>&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; }; then
16693 ac_cv_type_u_int64_t=yes
16695 echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16698 ac_cv_type_u_int64_t=no
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16704 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16705 if test $ac_cv_type_u_int64_t = yes; then
16707 cat >>confdefs.h <<_ACEOF
16708 #define HAVE_U_INT64_T 1
16713 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16714 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16715 { (exit 1); exit 1; }; }
16729 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16737 cat >conftest.$ac_ext <<_ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h. */
16743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16745 #define $ac_func innocuous_$ac_func
16747 /* System header to define __stub macros and hopefully few prototypes,
16748 which can conflict with char $ac_func (); below.
16749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16750 <limits.h> exists even on freestanding compilers. */
16753 # include <limits.h>
16755 # include <assert.h>
16760 /* Override any GCC internal prototype to avoid an error.
16761 Use char because int might match the return type of a GCC
16762 builtin and then its argument prototype would still apply. */
16767 /* The GNU C library defines this for functions which it implements
16768 to always fail with ENOSYS. Some functions are actually named
16769 something starting with __ and the normal name is an alias. */
16770 #if defined __stub_$ac_func || defined __stub___$ac_func
16777 return $ac_func ();
16782 rm -f conftest.$ac_objext conftest$ac_exeext
16783 if { (ac_try="$ac_link"
16784 case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789 (eval "$ac_link") 2>conftest.er1
16791 grep -v '^ *+' conftest.er1 >conftest.err
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } &&
16796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16797 { (case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_try") 2>&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; } &&
16806 { ac_try='test -s conftest$ac_exeext'
16807 { (case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_try") 2>&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; }; then
16816 eval "$as_ac_var=yes"
16818 echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16821 eval "$as_ac_var=no"
16824 rm -f core conftest.err conftest.$ac_objext \
16825 conftest$ac_exeext conftest.$ac_ext
16827 ac_res=`eval echo '${'$as_ac_var'}'`
16828 { echo "$as_me:$LINENO: result: $ac_res" >&5
16829 echo "${ECHO_T}$ac_res" >&6; }
16830 if test `eval echo '${'$as_ac_var'}'` = yes; then
16831 cat >>confdefs.h <<_ACEOF
16832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16842 for ac_func in powf fmodf strtof round
16844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 cat >conftest.$ac_ext <<_ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16858 #define $ac_func innocuous_$ac_func
16860 /* System header to define __stub macros and hopefully few prototypes,
16861 which can conflict with char $ac_func (); below.
16862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16863 <limits.h> exists even on freestanding compilers. */
16866 # include <limits.h>
16868 # include <assert.h>
16873 /* Override any GCC internal prototype to avoid an error.
16874 Use char because int might match the return type of a GCC
16875 builtin and then its argument prototype would still apply. */
16880 /* The GNU C library defines this for functions which it implements
16881 to always fail with ENOSYS. Some functions are actually named
16882 something starting with __ and the normal name is an alias. */
16883 #if defined __stub_$ac_func || defined __stub___$ac_func
16890 return $ac_func ();
16895 rm -f conftest.$ac_objext conftest$ac_exeext
16896 if { (ac_try="$ac_link"
16897 case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_link") 2>conftest.er1
16904 grep -v '^ *+' conftest.er1 >conftest.err
16906 cat conftest.err >&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } &&
16909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16910 { (case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_try") 2>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; } &&
16919 { ac_try='test -s conftest$ac_exeext'
16920 { (case "(($ac_try" in
16921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922 *) ac_try_echo=$ac_try;;
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925 (eval "$ac_try") 2>&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 eval "$as_ac_var=yes"
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16934 eval "$as_ac_var=no"
16937 rm -f core conftest.err conftest.$ac_objext \
16938 conftest$ac_exeext conftest.$ac_ext
16940 ac_res=`eval echo '${'$as_ac_var'}'`
16941 { echo "$as_me:$LINENO: result: $ac_res" >&5
16942 echo "${ECHO_T}$ac_res" >&6; }
16943 if test `eval echo '${'$as_ac_var'}'` = yes; then
16944 cat >>confdefs.h <<_ACEOF
16945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16956 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16964 cat >conftest.$ac_ext <<_ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h. */
16970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16972 #define $ac_func innocuous_$ac_func
16974 /* System header to define __stub macros and hopefully few prototypes,
16975 which can conflict with char $ac_func (); below.
16976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16977 <limits.h> exists even on freestanding compilers. */
16980 # include <limits.h>
16982 # include <assert.h>
16987 /* Override any GCC internal prototype to avoid an error.
16988 Use char because int might match the return type of a GCC
16989 builtin and then its argument prototype would still apply. */
16994 /* The GNU C library defines this for functions which it implements
16995 to always fail with ENOSYS. Some functions are actually named
16996 something starting with __ and the normal name is an alias. */
16997 #if defined __stub_$ac_func || defined __stub___$ac_func
17004 return $ac_func ();
17009 rm -f conftest.$ac_objext conftest$ac_exeext
17010 if { (ac_try="$ac_link"
17011 case "(($ac_try" in
17012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013 *) ac_try_echo=$ac_try;;
17015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17016 (eval "$ac_link") 2>conftest.er1
17018 grep -v '^ *+' conftest.er1 >conftest.err
17020 cat conftest.err >&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
17023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17024 { (case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_try") 2>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; } &&
17033 { ac_try='test -s conftest$ac_exeext'
17034 { (case "(($ac_try" in
17035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 *) ac_try_echo=$ac_try;;
17038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039 (eval "$ac_try") 2>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; }; then
17043 eval "$as_ac_var=yes"
17045 echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17048 eval "$as_ac_var=no"
17051 rm -f core conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext conftest.$ac_ext
17054 ac_res=`eval echo '${'$as_ac_var'}'`
17055 { echo "$as_me:$LINENO: result: $ac_res" >&5
17056 echo "${ECHO_T}$ac_res" >&6; }
17057 if test `eval echo '${'$as_ac_var'}'` = yes; then
17058 cat >>confdefs.h <<_ACEOF
17059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17068 for ac_func in isatty mkdtemp mkstemp
17070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17074 echo $ECHO_N "(cached) $ECHO_C" >&6
17076 cat >conftest.$ac_ext <<_ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17084 #define $ac_func innocuous_$ac_func
17086 /* System header to define __stub macros and hopefully few prototypes,
17087 which can conflict with char $ac_func (); below.
17088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17089 <limits.h> exists even on freestanding compilers. */
17092 # include <limits.h>
17094 # include <assert.h>
17099 /* Override any GCC internal prototype to avoid an error.
17100 Use char because int might match the return type of a GCC
17101 builtin and then its argument prototype would still apply. */
17106 /* The GNU C library defines this for functions which it implements
17107 to always fail with ENOSYS. Some functions are actually named
17108 something starting with __ and the normal name is an alias. */
17109 #if defined __stub_$ac_func || defined __stub___$ac_func
17116 return $ac_func ();
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (ac_try="$ac_link"
17123 case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_link") 2>conftest.er1
17130 grep -v '^ *+' conftest.er1 >conftest.err
17132 cat conftest.err >&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); } &&
17135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17136 { (case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_try") 2>&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; } &&
17145 { ac_try='test -s conftest$ac_exeext'
17146 { (case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151 (eval "$ac_try") 2>&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); }; }; then
17155 eval "$as_ac_var=yes"
17157 echo "$as_me: failed program was:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17160 eval "$as_ac_var=no"
17163 rm -f core conftest.err conftest.$ac_objext \
17164 conftest$ac_exeext conftest.$ac_ext
17166 ac_res=`eval echo '${'$as_ac_var'}'`
17167 { echo "$as_me:$LINENO: result: $ac_res" >&5
17168 echo "${ECHO_T}$ac_res" >&6; }
17169 if test `eval echo '${'$as_ac_var'}'` = yes; then
17170 cat >>confdefs.h <<_ACEOF
17171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17184 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17190 echo $ECHO_N "(cached) $ECHO_C" >&6
17192 cat >conftest.$ac_ext <<_ACEOF
17195 cat confdefs.h >>conftest.$ac_ext
17196 cat >>conftest.$ac_ext <<_ACEOF
17197 /* end confdefs.h. */
17198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17200 #define $ac_func innocuous_$ac_func
17202 /* System header to define __stub macros and hopefully few prototypes,
17203 which can conflict with char $ac_func (); below.
17204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17205 <limits.h> exists even on freestanding compilers. */
17208 # include <limits.h>
17210 # include <assert.h>
17215 /* Override any GCC internal prototype to avoid an error.
17216 Use char because int might match the return type of a GCC
17217 builtin and then its argument prototype would still apply. */
17222 /* The GNU C library defines this for functions which it implements
17223 to always fail with ENOSYS. Some functions are actually named
17224 something starting with __ and the normal name is an alias. */
17225 #if defined __stub_$ac_func || defined __stub___$ac_func
17232 return $ac_func ();
17237 rm -f conftest.$ac_objext conftest$ac_exeext
17238 if { (ac_try="$ac_link"
17239 case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_link") 2>conftest.er1
17246 grep -v '^ *+' conftest.er1 >conftest.err
17248 cat conftest.err >&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } &&
17251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17252 { (case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_try") 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try='test -s conftest$ac_exeext'
17262 { (case "(($ac_try" in
17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264 *) ac_try_echo=$ac_try;;
17266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267 (eval "$ac_try") 2>&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 eval "$as_ac_var=yes"
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17276 eval "$as_ac_var=no"
17279 rm -f core conftest.err conftest.$ac_objext \
17280 conftest$ac_exeext conftest.$ac_ext
17282 ac_res=`eval echo '${'$as_ac_var'}'`
17283 { echo "$as_me:$LINENO: result: $ac_res" >&5
17284 echo "${ECHO_T}$ac_res" >&6; }
17285 if test `eval echo '${'$as_ac_var'}'` = yes; then
17286 cat >>confdefs.h <<_ACEOF
17287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17297 for ac_func in strerror strerror_r setenv arc4random
17299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 cat >conftest.$ac_ext <<_ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17313 #define $ac_func innocuous_$ac_func
17315 /* System header to define __stub macros and hopefully few prototypes,
17316 which can conflict with char $ac_func (); below.
17317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17318 <limits.h> exists even on freestanding compilers. */
17321 # include <limits.h>
17323 # include <assert.h>
17328 /* Override any GCC internal prototype to avoid an error.
17329 Use char because int might match the return type of a GCC
17330 builtin and then its argument prototype would still apply. */
17335 /* The GNU C library defines this for functions which it implements
17336 to always fail with ENOSYS. Some functions are actually named
17337 something starting with __ and the normal name is an alias. */
17338 #if defined __stub_$ac_func || defined __stub___$ac_func
17345 return $ac_func ();
17350 rm -f conftest.$ac_objext conftest$ac_exeext
17351 if { (ac_try="$ac_link"
17352 case "(($ac_try" in
17353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354 *) ac_try_echo=$ac_try;;
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357 (eval "$ac_link") 2>conftest.er1
17359 grep -v '^ *+' conftest.er1 >conftest.err
17361 cat conftest.err >&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } &&
17364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17365 { (case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_try") 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; } &&
17374 { ac_try='test -s conftest$ac_exeext'
17375 { (case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_try") 2>&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
17384 eval "$as_ac_var=yes"
17386 echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17389 eval "$as_ac_var=no"
17392 rm -f core conftest.err conftest.$ac_objext \
17393 conftest$ac_exeext conftest.$ac_ext
17395 ac_res=`eval echo '${'$as_ac_var'}'`
17396 { echo "$as_me:$LINENO: result: $ac_res" >&5
17397 echo "${ECHO_T}$ac_res" >&6; }
17398 if test `eval echo '${'$as_ac_var'}'` = yes; then
17399 cat >>confdefs.h <<_ACEOF
17400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17410 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17416 echo $ECHO_N "(cached) $ECHO_C" >&6
17418 cat >conftest.$ac_ext <<_ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17426 #define $ac_func innocuous_$ac_func
17428 /* System header to define __stub macros and hopefully few prototypes,
17429 which can conflict with char $ac_func (); below.
17430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17431 <limits.h> exists even on freestanding compilers. */
17434 # include <limits.h>
17436 # include <assert.h>
17441 /* Override any GCC internal prototype to avoid an error.
17442 Use char because int might match the return type of a GCC
17443 builtin and then its argument prototype would still apply. */
17448 /* The GNU C library defines this for functions which it implements
17449 to always fail with ENOSYS. Some functions are actually named
17450 something starting with __ and the normal name is an alias. */
17451 #if defined __stub_$ac_func || defined __stub___$ac_func
17458 return $ac_func ();
17463 rm -f conftest.$ac_objext conftest$ac_exeext
17464 if { (ac_try="$ac_link"
17465 case "(($ac_try" in
17466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467 *) ac_try_echo=$ac_try;;
17469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470 (eval "$ac_link") 2>conftest.er1
17472 grep -v '^ *+' conftest.er1 >conftest.err
17474 cat conftest.err >&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } &&
17477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17478 { (case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_try") 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s conftest$ac_exeext'
17488 { (case "(($ac_try" in
17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490 *) ac_try_echo=$ac_try;;
17492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493 (eval "$ac_try") 2>&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; }; then
17497 eval "$as_ac_var=yes"
17499 echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17502 eval "$as_ac_var=no"
17505 rm -f core conftest.err conftest.$ac_objext \
17506 conftest$ac_exeext conftest.$ac_ext
17508 ac_res=`eval echo '${'$as_ac_var'}'`
17509 { echo "$as_me:$LINENO: result: $ac_res" >&5
17510 echo "${ECHO_T}$ac_res" >&6; }
17511 if test `eval echo '${'$as_ac_var'}'` = yes; then
17512 cat >>confdefs.h <<_ACEOF
17513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17524 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17530 echo $ECHO_N "(cached) $ECHO_C" >&6
17532 cat >conftest.$ac_ext <<_ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17540 #define $ac_func innocuous_$ac_func
17542 /* System header to define __stub macros and hopefully few prototypes,
17543 which can conflict with char $ac_func (); below.
17544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17545 <limits.h> exists even on freestanding compilers. */
17548 # include <limits.h>
17550 # include <assert.h>
17555 /* Override any GCC internal prototype to avoid an error.
17556 Use char because int might match the return type of a GCC
17557 builtin and then its argument prototype would still apply. */
17562 /* The GNU C library defines this for functions which it implements
17563 to always fail with ENOSYS. Some functions are actually named
17564 something starting with __ and the normal name is an alias. */
17565 #if defined __stub_$ac_func || defined __stub___$ac_func
17572 return $ac_func ();
17577 rm -f conftest.$ac_objext conftest$ac_exeext
17578 if { (ac_try="$ac_link"
17579 case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_link") 2>conftest.er1
17586 grep -v '^ *+' conftest.er1 >conftest.err
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } &&
17591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17592 { (case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_try") 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; } &&
17601 { ac_try='test -s conftest$ac_exeext'
17602 { (case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_try") 2>&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; }; then
17611 eval "$as_ac_var=yes"
17613 echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17616 eval "$as_ac_var=no"
17619 rm -f core conftest.err conftest.$ac_objext \
17620 conftest$ac_exeext conftest.$ac_ext
17622 ac_res=`eval echo '${'$as_ac_var'}'`
17623 { echo "$as_me:$LINENO: result: $ac_res" >&5
17624 echo "${ECHO_T}$ac_res" >&6; }
17625 if test `eval echo '${'$as_ac_var'}'` = yes; then
17626 cat >>confdefs.h <<_ACEOF
17627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17633 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17634 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17635 if test "${llvm_cv_c_printf_a+set}" = set; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 ac_cpp='$CPP $CPPFLAGS'
17640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17644 if test "$cross_compiling" = yes; then
17645 llvmac_cv_c_printf_a=no
17647 cat >conftest.$ac_ext <<_ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h. */
17656 #include <stdlib.h>
17662 volatile double A, B;
17666 sprintf(Buffer, "%a", A);
17670 if (A != 0x1.999999999999ap-4)
17677 rm -f conftest$ac_exeext
17678 if { (ac_try="$ac_link"
17679 case "(($ac_try" in
17680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681 *) ac_try_echo=$ac_try;;
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684 (eval "$ac_link") 2>&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17688 { (case "(($ac_try" in
17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_try") 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 llvm_cv_c_printf_a=yes
17699 echo "$as_me: program exited with status $ac_status" >&5
17700 echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17703 ( exit $ac_status )
17704 llvmac_cv_c_printf_a=no
17706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17711 ac_cpp='$CPP $CPPFLAGS'
17712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17717 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17718 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17719 if test "$llvm_cv_c_printf_a" = "yes"; then
17721 cat >>confdefs.h <<\_ACEOF
17722 #define HAVE_PRINTF_A 1
17728 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17729 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17730 if test "${ac_cv_func_rand48+set}" = set; then
17731 echo $ECHO_N "(cached) $ECHO_C" >&6
17734 ac_cpp='$CXXCPP $CPPFLAGS'
17735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17739 cat >conftest.$ac_ext <<_ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17745 #include <stdlib.h>
17749 srand48(0);lrand48();drand48();
17754 rm -f conftest.$ac_objext
17755 if { (ac_try="$ac_compile"
17756 case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_compile") 2>conftest.er1
17763 grep -v '^ *+' conftest.er1 >conftest.err
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
17768 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17769 { (case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774 (eval "$ac_try") 2>&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; } &&
17778 { ac_try='test -s conftest.$ac_objext'
17779 { (case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784 (eval "$ac_try") 2>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
17788 ac_cv_func_rand48=yes
17790 echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17793 ac_cv_func_rand48=no
17796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17798 ac_cpp='$CPP $CPPFLAGS'
17799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17804 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17805 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17807 if test "$ac_cv_func_rand48" = "yes" ; then
17809 cat >>confdefs.h <<\_ACEOF
17810 #define HAVE_RAND48 1
17816 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17817 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17818 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17819 echo $ECHO_N "(cached) $ECHO_C" >&6
17821 cat >conftest.$ac_ext <<_ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h. */
17827 $ac_includes_default
17832 char *p = (char *) strerror_s;
17840 rm -f conftest.$ac_objext
17841 if { (ac_try="$ac_compile"
17842 case "(($ac_try" in
17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844 *) ac_try_echo=$ac_try;;
17846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847 (eval "$ac_compile") 2>conftest.er1
17849 grep -v '^ *+' conftest.er1 >conftest.err
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } &&
17854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17855 { (case "(($ac_try" in
17856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857 *) ac_try_echo=$ac_try;;
17859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17860 (eval "$ac_try") 2>&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; } &&
17864 { ac_try='test -s conftest.$ac_objext'
17865 { (case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_try") 2>&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); }; }; then
17874 ac_cv_have_decl_strerror_s=yes
17876 echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17879 ac_cv_have_decl_strerror_s=no
17882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17884 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17885 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17886 if test $ac_cv_have_decl_strerror_s = yes; then
17888 cat >>confdefs.h <<_ACEOF
17889 #define HAVE_DECL_STRERROR_S 1
17894 cat >>confdefs.h <<_ACEOF
17895 #define HAVE_DECL_STRERROR_S 0
17903 if test "$llvm_cv_os_type" = "MingW" ; then
17904 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17905 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17906 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17909 ac_check_lib_save_LIBS=$LIBS
17911 cat >conftest.$ac_ext <<_ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17918 /* Override any GCC internal prototype to avoid an error.
17919 Use char because int might match the return type of a GCC
17920 builtin and then its argument prototype would still apply. */
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17942 grep -v '^ *+' conftest.er1 >conftest.err
17944 cat conftest.err >&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } &&
17947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17948 { (case "(($ac_try" in
17949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950 *) ac_try_echo=$ac_try;;
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_try") 2>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try='test -s conftest$ac_exeext'
17958 { (case "(($ac_try" in
17959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960 *) ac_try_echo=$ac_try;;
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963 (eval "$ac_try") 2>&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; }; then
17967 ac_cv_lib_gcc__alloca=yes
17969 echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17972 ac_cv_lib_gcc__alloca=no
17975 rm -f core conftest.err conftest.$ac_objext \
17976 conftest$ac_exeext conftest.$ac_ext
17977 LIBS=$ac_check_lib_save_LIBS
17979 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17980 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17981 if test $ac_cv_lib_gcc__alloca = yes; then
17983 cat >>confdefs.h <<\_ACEOF
17984 #define HAVE__ALLOCA 1
17989 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17990 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17991 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 ac_check_lib_save_LIBS=$LIBS
17996 cat >conftest.$ac_ext <<_ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18003 /* Override any GCC internal prototype to avoid an error.
18004 Use char because int might match the return type of a GCC
18005 builtin and then its argument prototype would still apply. */
18013 return __alloca ();
18018 rm -f conftest.$ac_objext conftest$ac_exeext
18019 if { (ac_try="$ac_link"
18020 case "(($ac_try" in
18021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18022 *) ac_try_echo=$ac_try;;
18024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18025 (eval "$ac_link") 2>conftest.er1
18027 grep -v '^ *+' conftest.er1 >conftest.err
18029 cat conftest.err >&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } &&
18032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18033 { (case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_try") 2>&5
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; } &&
18042 { ac_try='test -s conftest$ac_exeext'
18043 { (case "(($ac_try" in
18044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045 *) ac_try_echo=$ac_try;;
18047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18048 (eval "$ac_try") 2>&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 ac_cv_lib_gcc___alloca=yes
18054 echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18057 ac_cv_lib_gcc___alloca=no
18060 rm -f core conftest.err conftest.$ac_objext \
18061 conftest$ac_exeext conftest.$ac_ext
18062 LIBS=$ac_check_lib_save_LIBS
18064 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18065 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18066 if test $ac_cv_lib_gcc___alloca = yes; then
18068 cat >>confdefs.h <<\_ACEOF
18069 #define HAVE___ALLOCA 1
18074 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18075 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18076 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 ac_check_lib_save_LIBS=$LIBS
18081 cat >conftest.$ac_ext <<_ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h. */
18088 /* Override any GCC internal prototype to avoid an error.
18089 Use char because int might match the return type of a GCC
18090 builtin and then its argument prototype would still apply. */
18098 return __chkstk ();
18103 rm -f conftest.$ac_objext conftest$ac_exeext
18104 if { (ac_try="$ac_link"
18105 case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_link") 2>conftest.er1
18112 grep -v '^ *+' conftest.er1 >conftest.err
18114 cat conftest.err >&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } &&
18117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18118 { (case "(($ac_try" in
18119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120 *) ac_try_echo=$ac_try;;
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123 (eval "$ac_try") 2>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; } &&
18127 { ac_try='test -s conftest$ac_exeext'
18128 { (case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_try") 2>&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; }; then
18137 ac_cv_lib_gcc___chkstk=yes
18139 echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18142 ac_cv_lib_gcc___chkstk=no
18145 rm -f core conftest.err conftest.$ac_objext \
18146 conftest$ac_exeext conftest.$ac_ext
18147 LIBS=$ac_check_lib_save_LIBS
18149 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18150 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18151 if test $ac_cv_lib_gcc___chkstk = yes; then
18153 cat >>confdefs.h <<\_ACEOF
18154 #define HAVE___CHKSTK 1
18159 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18160 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18161 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18162 echo $ECHO_N "(cached) $ECHO_C" >&6
18164 ac_check_lib_save_LIBS=$LIBS
18166 cat >conftest.$ac_ext <<_ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18173 /* Override any GCC internal prototype to avoid an error.
18174 Use char because int might match the return type of a GCC
18175 builtin and then its argument prototype would still apply. */
18183 return ___chkstk ();
18188 rm -f conftest.$ac_objext conftest$ac_exeext
18189 if { (ac_try="$ac_link"
18190 case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_link") 2>conftest.er1
18197 grep -v '^ *+' conftest.er1 >conftest.err
18199 cat conftest.err >&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } &&
18202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18203 { (case "(($ac_try" in
18204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205 *) ac_try_echo=$ac_try;;
18207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208 (eval "$ac_try") 2>&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; } &&
18212 { ac_try='test -s conftest$ac_exeext'
18213 { (case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_try") 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222 ac_cv_lib_gcc____chkstk=yes
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18227 ac_cv_lib_gcc____chkstk=no
18230 rm -f core conftest.err conftest.$ac_objext \
18231 conftest$ac_exeext conftest.$ac_ext
18232 LIBS=$ac_check_lib_save_LIBS
18234 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18235 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18236 if test $ac_cv_lib_gcc____chkstk = yes; then
18238 cat >>confdefs.h <<\_ACEOF
18239 #define HAVE____CHKSTK 1
18245 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18246 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18247 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 ac_check_lib_save_LIBS=$LIBS
18252 cat >conftest.$ac_ext <<_ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18259 /* Override any GCC internal prototype to avoid an error.
18260 Use char because int might match the return type of a GCC
18261 builtin and then its argument prototype would still apply. */
18269 return __ashldi3 ();
18274 rm -f conftest.$ac_objext conftest$ac_exeext
18275 if { (ac_try="$ac_link"
18276 case "(($ac_try" in
18277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278 *) ac_try_echo=$ac_try;;
18280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281 (eval "$ac_link") 2>conftest.er1
18283 grep -v '^ *+' conftest.er1 >conftest.err
18285 cat conftest.err >&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } &&
18288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18289 { (case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294 (eval "$ac_try") 2>&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; } &&
18298 { ac_try='test -s conftest$ac_exeext'
18299 { (case "(($ac_try" in
18300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301 *) ac_try_echo=$ac_try;;
18303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18304 (eval "$ac_try") 2>&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; }; then
18308 ac_cv_lib_gcc___ashldi3=yes
18310 echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18313 ac_cv_lib_gcc___ashldi3=no
18316 rm -f core conftest.err conftest.$ac_objext \
18317 conftest$ac_exeext conftest.$ac_ext
18318 LIBS=$ac_check_lib_save_LIBS
18320 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18321 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18322 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18324 cat >>confdefs.h <<\_ACEOF
18325 #define HAVE___ASHLDI3 1
18330 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18331 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18332 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 ac_check_lib_save_LIBS=$LIBS
18337 cat >conftest.$ac_ext <<_ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18344 /* Override any GCC internal prototype to avoid an error.
18345 Use char because int might match the return type of a GCC
18346 builtin and then its argument prototype would still apply. */
18354 return __ashrdi3 ();
18359 rm -f conftest.$ac_objext conftest$ac_exeext
18360 if { (ac_try="$ac_link"
18361 case "(($ac_try" in
18362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363 *) ac_try_echo=$ac_try;;
18365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18366 (eval "$ac_link") 2>conftest.er1
18368 grep -v '^ *+' conftest.er1 >conftest.err
18370 cat conftest.err >&5
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); } &&
18373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18374 { (case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_try") 2>&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; } &&
18383 { ac_try='test -s conftest$ac_exeext'
18384 { (case "(($ac_try" in
18385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18386 *) ac_try_echo=$ac_try;;
18388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18389 (eval "$ac_try") 2>&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; }; then
18393 ac_cv_lib_gcc___ashrdi3=yes
18395 echo "$as_me: failed program was:" >&5
18396 sed 's/^/| /' conftest.$ac_ext >&5
18398 ac_cv_lib_gcc___ashrdi3=no
18401 rm -f core conftest.err conftest.$ac_objext \
18402 conftest$ac_exeext conftest.$ac_ext
18403 LIBS=$ac_check_lib_save_LIBS
18405 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18406 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18407 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18409 cat >>confdefs.h <<\_ACEOF
18410 #define HAVE___ASHRDI3 1
18415 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18416 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18417 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18420 ac_check_lib_save_LIBS=$LIBS
18422 cat >conftest.$ac_ext <<_ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18429 /* Override any GCC internal prototype to avoid an error.
18430 Use char because int might match the return type of a GCC
18431 builtin and then its argument prototype would still apply. */
18439 return __divdi3 ();
18444 rm -f conftest.$ac_objext conftest$ac_exeext
18445 if { (ac_try="$ac_link"
18446 case "(($ac_try" in
18447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18448 *) ac_try_echo=$ac_try;;
18450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18451 (eval "$ac_link") 2>conftest.er1
18453 grep -v '^ *+' conftest.er1 >conftest.err
18455 cat conftest.err >&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } &&
18458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18459 { (case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464 (eval "$ac_try") 2>&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; } &&
18468 { ac_try='test -s conftest$ac_exeext'
18469 { (case "(($ac_try" in
18470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471 *) ac_try_echo=$ac_try;;
18473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18474 (eval "$ac_try") 2>&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; }; then
18478 ac_cv_lib_gcc___divdi3=yes
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 ac_cv_lib_gcc___divdi3=no
18486 rm -f core conftest.err conftest.$ac_objext \
18487 conftest$ac_exeext conftest.$ac_ext
18488 LIBS=$ac_check_lib_save_LIBS
18490 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18491 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18492 if test $ac_cv_lib_gcc___divdi3 = yes; then
18494 cat >>confdefs.h <<\_ACEOF
18495 #define HAVE___DIVDI3 1
18500 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18501 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18502 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 ac_check_lib_save_LIBS=$LIBS
18507 cat >conftest.$ac_ext <<_ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18514 /* Override any GCC internal prototype to avoid an error.
18515 Use char because int might match the return type of a GCC
18516 builtin and then its argument prototype would still apply. */
18524 return __fixdfdi ();
18529 rm -f conftest.$ac_objext conftest$ac_exeext
18530 if { (ac_try="$ac_link"
18531 case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_link") 2>conftest.er1
18538 grep -v '^ *+' conftest.er1 >conftest.err
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18544 { (case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_try") 2>&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; } &&
18553 { ac_try='test -s conftest$ac_exeext'
18554 { (case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_try") 2>&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 ac_cv_lib_gcc___fixdfdi=yes
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18568 ac_cv_lib_gcc___fixdfdi=no
18571 rm -f core conftest.err conftest.$ac_objext \
18572 conftest$ac_exeext conftest.$ac_ext
18573 LIBS=$ac_check_lib_save_LIBS
18575 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18576 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18577 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18579 cat >>confdefs.h <<\_ACEOF
18580 #define HAVE___FIXDFDI 1
18585 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18586 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18587 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18590 ac_check_lib_save_LIBS=$LIBS
18592 cat >conftest.$ac_ext <<_ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h. */
18599 /* Override any GCC internal prototype to avoid an error.
18600 Use char because int might match the return type of a GCC
18601 builtin and then its argument prototype would still apply. */
18609 return __fixsfdi ();
18614 rm -f conftest.$ac_objext conftest$ac_exeext
18615 if { (ac_try="$ac_link"
18616 case "(($ac_try" in
18617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18618 *) ac_try_echo=$ac_try;;
18620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18621 (eval "$ac_link") 2>conftest.er1
18623 grep -v '^ *+' conftest.er1 >conftest.err
18625 cat conftest.err >&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } &&
18628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18629 { (case "(($ac_try" in
18630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18631 *) ac_try_echo=$ac_try;;
18633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18634 (eval "$ac_try") 2>&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); }; } &&
18638 { ac_try='test -s conftest$ac_exeext'
18639 { (case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_try") 2>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; }; then
18648 ac_cv_lib_gcc___fixsfdi=yes
18650 echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18653 ac_cv_lib_gcc___fixsfdi=no
18656 rm -f core conftest.err conftest.$ac_objext \
18657 conftest$ac_exeext conftest.$ac_ext
18658 LIBS=$ac_check_lib_save_LIBS
18660 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18661 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18662 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18664 cat >>confdefs.h <<\_ACEOF
18665 #define HAVE___FIXSFDI 1
18670 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18671 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18672 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18675 ac_check_lib_save_LIBS=$LIBS
18677 cat >conftest.$ac_ext <<_ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18684 /* Override any GCC internal prototype to avoid an error.
18685 Use char because int might match the return type of a GCC
18686 builtin and then its argument prototype would still apply. */
18690 char __floatdidf ();
18694 return __floatdidf ();
18699 rm -f conftest.$ac_objext conftest$ac_exeext
18700 if { (ac_try="$ac_link"
18701 case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706 (eval "$ac_link") 2>conftest.er1
18708 grep -v '^ *+' conftest.er1 >conftest.err
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } &&
18713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18714 { (case "(($ac_try" in
18715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716 *) ac_try_echo=$ac_try;;
18718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719 (eval "$ac_try") 2>&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; } &&
18723 { ac_try='test -s conftest$ac_exeext'
18724 { (case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729 (eval "$ac_try") 2>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733 ac_cv_lib_gcc___floatdidf=yes
18735 echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18738 ac_cv_lib_gcc___floatdidf=no
18741 rm -f core conftest.err conftest.$ac_objext \
18742 conftest$ac_exeext conftest.$ac_ext
18743 LIBS=$ac_check_lib_save_LIBS
18745 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18746 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18747 if test $ac_cv_lib_gcc___floatdidf = yes; then
18749 cat >>confdefs.h <<\_ACEOF
18750 #define HAVE___FLOATDIDF 1
18755 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18756 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18757 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18758 echo $ECHO_N "(cached) $ECHO_C" >&6
18760 ac_check_lib_save_LIBS=$LIBS
18762 cat >conftest.$ac_ext <<_ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18769 /* Override any GCC internal prototype to avoid an error.
18770 Use char because int might match the return type of a GCC
18771 builtin and then its argument prototype would still apply. */
18779 return __lshrdi3 ();
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (ac_try="$ac_link"
18786 case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_link") 2>conftest.er1
18793 grep -v '^ *+' conftest.er1 >conftest.err
18795 cat conftest.err >&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } &&
18798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18799 { (case "(($ac_try" in
18800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804 (eval "$ac_try") 2>&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; } &&
18808 { ac_try='test -s conftest$ac_exeext'
18809 { (case "(($ac_try" in
18810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811 *) ac_try_echo=$ac_try;;
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_try") 2>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; }; then
18818 ac_cv_lib_gcc___lshrdi3=yes
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 ac_cv_lib_gcc___lshrdi3=no
18826 rm -f core conftest.err conftest.$ac_objext \
18827 conftest$ac_exeext conftest.$ac_ext
18828 LIBS=$ac_check_lib_save_LIBS
18830 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18831 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18832 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18834 cat >>confdefs.h <<\_ACEOF
18835 #define HAVE___LSHRDI3 1
18840 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18841 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18842 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 ac_check_lib_save_LIBS=$LIBS
18847 cat >conftest.$ac_ext <<_ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18854 /* Override any GCC internal prototype to avoid an error.
18855 Use char because int might match the return type of a GCC
18856 builtin and then its argument prototype would still apply. */
18864 return __moddi3 ();
18869 rm -f conftest.$ac_objext conftest$ac_exeext
18870 if { (ac_try="$ac_link"
18871 case "(($ac_try" in
18872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_link") 2>conftest.er1
18878 grep -v '^ *+' conftest.er1 >conftest.err
18880 cat conftest.err >&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } &&
18883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18884 { (case "(($ac_try" in
18885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886 *) ac_try_echo=$ac_try;;
18888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889 (eval "$ac_try") 2>&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try='test -s conftest$ac_exeext'
18894 { (case "(($ac_try" in
18895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896 *) ac_try_echo=$ac_try;;
18898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899 (eval "$ac_try") 2>&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; }; then
18903 ac_cv_lib_gcc___moddi3=yes
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18908 ac_cv_lib_gcc___moddi3=no
18911 rm -f core conftest.err conftest.$ac_objext \
18912 conftest$ac_exeext conftest.$ac_ext
18913 LIBS=$ac_check_lib_save_LIBS
18915 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18916 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18917 if test $ac_cv_lib_gcc___moddi3 = yes; then
18919 cat >>confdefs.h <<\_ACEOF
18920 #define HAVE___MODDI3 1
18925 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18926 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18927 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18928 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 ac_check_lib_save_LIBS=$LIBS
18932 cat >conftest.$ac_ext <<_ACEOF
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h. */
18939 /* Override any GCC internal prototype to avoid an error.
18940 Use char because int might match the return type of a GCC
18941 builtin and then its argument prototype would still apply. */
18949 return __udivdi3 ();
18954 rm -f conftest.$ac_objext conftest$ac_exeext
18955 if { (ac_try="$ac_link"
18956 case "(($ac_try" in
18957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958 *) ac_try_echo=$ac_try;;
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961 (eval "$ac_link") 2>conftest.er1
18963 grep -v '^ *+' conftest.er1 >conftest.err
18965 cat conftest.err >&5
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); } &&
18968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18969 { (case "(($ac_try" in
18970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971 *) ac_try_echo=$ac_try;;
18973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18974 (eval "$ac_try") 2>&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; } &&
18978 { ac_try='test -s conftest$ac_exeext'
18979 { (case "(($ac_try" in
18980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981 *) ac_try_echo=$ac_try;;
18983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984 (eval "$ac_try") 2>&5
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); }; }; then
18988 ac_cv_lib_gcc___udivdi3=yes
18990 echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18993 ac_cv_lib_gcc___udivdi3=no
18996 rm -f core conftest.err conftest.$ac_objext \
18997 conftest$ac_exeext conftest.$ac_ext
18998 LIBS=$ac_check_lib_save_LIBS
19000 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19001 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19002 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19004 cat >>confdefs.h <<\_ACEOF
19005 #define HAVE___UDIVDI3 1
19010 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19011 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19012 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19015 ac_check_lib_save_LIBS=$LIBS
19017 cat >conftest.$ac_ext <<_ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19024 /* Override any GCC internal prototype to avoid an error.
19025 Use char because int might match the return type of a GCC
19026 builtin and then its argument prototype would still apply. */
19034 return __umoddi3 ();
19039 rm -f conftest.$ac_objext conftest$ac_exeext
19040 if { (ac_try="$ac_link"
19041 case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046 (eval "$ac_link") 2>conftest.er1
19048 grep -v '^ *+' conftest.er1 >conftest.err
19050 cat conftest.err >&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); } &&
19053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19054 { (case "(($ac_try" in
19055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056 *) ac_try_echo=$ac_try;;
19058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19059 (eval "$ac_try") 2>&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; } &&
19063 { ac_try='test -s conftest$ac_exeext'
19064 { (case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069 (eval "$ac_try") 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19073 ac_cv_lib_gcc___umoddi3=yes
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 ac_cv_lib_gcc___umoddi3=no
19081 rm -f core conftest.err conftest.$ac_objext \
19082 conftest$ac_exeext conftest.$ac_ext
19083 LIBS=$ac_check_lib_save_LIBS
19085 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19086 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19087 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19089 cat >>confdefs.h <<\_ACEOF
19090 #define HAVE___UMODDI3 1
19096 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19097 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19098 if test "${ac_cv_lib_gcc___main+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19101 ac_check_lib_save_LIBS=$LIBS
19103 cat >conftest.$ac_ext <<_ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19110 /* Override any GCC internal prototype to avoid an error.
19111 Use char because int might match the return type of a GCC
19112 builtin and then its argument prototype would still apply. */
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (ac_try="$ac_link"
19127 case "(($ac_try" in
19128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129 *) ac_try_echo=$ac_try;;
19131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19132 (eval "$ac_link") 2>conftest.er1
19134 grep -v '^ *+' conftest.er1 >conftest.err
19136 cat conftest.err >&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
19139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19140 { (case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_try") 2>&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; } &&
19149 { ac_try='test -s conftest$ac_exeext'
19150 { (case "(($ac_try" in
19151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152 *) ac_try_echo=$ac_try;;
19154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155 (eval "$ac_try") 2>&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
19159 ac_cv_lib_gcc___main=yes
19161 echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19164 ac_cv_lib_gcc___main=no
19167 rm -f core conftest.err conftest.$ac_objext \
19168 conftest$ac_exeext conftest.$ac_ext
19169 LIBS=$ac_check_lib_save_LIBS
19171 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19172 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19173 if test $ac_cv_lib_gcc___main = yes; then
19175 cat >>confdefs.h <<\_ACEOF
19176 #define HAVE___MAIN 1
19181 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19182 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19183 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 ac_check_lib_save_LIBS=$LIBS
19188 cat >conftest.$ac_ext <<_ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h. */
19195 /* Override any GCC internal prototype to avoid an error.
19196 Use char because int might match the return type of a GCC
19197 builtin and then its argument prototype would still apply. */
19205 return __cmpdi2 ();
19210 rm -f conftest.$ac_objext conftest$ac_exeext
19211 if { (ac_try="$ac_link"
19212 case "(($ac_try" in
19213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19214 *) ac_try_echo=$ac_try;;
19216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19217 (eval "$ac_link") 2>conftest.er1
19219 grep -v '^ *+' conftest.er1 >conftest.err
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
19224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19225 { (case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_try") 2>&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; } &&
19234 { ac_try='test -s conftest$ac_exeext'
19235 { (case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_try") 2>&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; }; then
19244 ac_cv_lib_gcc___cmpdi2=yes
19246 echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19249 ac_cv_lib_gcc___cmpdi2=no
19252 rm -f core conftest.err conftest.$ac_objext \
19253 conftest$ac_exeext conftest.$ac_ext
19254 LIBS=$ac_check_lib_save_LIBS
19256 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19257 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19258 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19260 cat >>confdefs.h <<\_ACEOF
19261 #define HAVE___CMPDI2 1
19268 if test "$llvm_cv_os_type" = "MingW" ; then
19269 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19270 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19271 cat >conftest.$ac_ext <<_ACEOF
19272 #include <windows.h>
19273 #include <imagehlp.h>
19274 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19275 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19277 rm -f conftest.$ac_objext
19278 if { (ac_try="$ac_compile"
19279 case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_compile") 2>conftest.er1
19286 grep -v '^ *+' conftest.er1 >conftest.err
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } &&
19291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; } &&
19301 { ac_try='test -s conftest.$ac_objext'
19302 { (case "(($ac_try" in
19303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304 *) ac_try_echo=$ac_try;;
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307 (eval "$ac_try") 2>&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; }; then
19312 { echo "$as_me:$LINENO: result: yes" >&5
19313 echo "${ECHO_T}yes" >&6; }
19314 llvm_cv_win32_elmcb_pcstr="PCSTR"
19317 echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19321 { echo "$as_me:$LINENO: result: no" >&5
19322 echo "${ECHO_T}no" >&6; }
19323 llvm_cv_win32_elmcb_pcstr="PSTR"
19327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19329 cat >>confdefs.h <<_ACEOF
19330 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19336 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19337 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19338 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19342 ac_cpp='$CXXCPP $CPPFLAGS'
19343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19347 cat >conftest.$ac_ext <<_ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19362 rm -f conftest.$ac_objext
19363 if { (ac_try="$ac_compile"
19364 case "(($ac_try" in
19365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366 *) ac_try_echo=$ac_try;;
19368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369 (eval "$ac_compile") 2>conftest.er1
19371 grep -v '^ *+' conftest.er1 >conftest.err
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19377 { (case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382 (eval "$ac_try") 2>&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; } &&
19386 { ac_try='test -s conftest.$ac_objext'
19387 { (case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392 (eval "$ac_try") 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_cv_func_isnan_in_math_h=yes
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19401 ac_cv_func_isnan_in_math_h=no
19404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19406 ac_cpp='$CPP $CPPFLAGS'
19407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19412 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19413 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19416 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19418 cat >>confdefs.h <<\_ACEOF
19419 #define HAVE_ISNAN_IN_MATH_H 1
19424 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19425 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19426 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19427 echo $ECHO_N "(cached) $ECHO_C" >&6
19430 ac_cpp='$CXXCPP $CPPFLAGS'
19431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19435 cat >conftest.$ac_ext <<_ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19450 rm -f conftest.$ac_objext
19451 if { (ac_try="$ac_compile"
19452 case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_compile") 2>conftest.er1
19459 grep -v '^ *+' conftest.er1 >conftest.err
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } &&
19464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19465 { (case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_try") 2>&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; } &&
19474 { ac_try='test -s conftest.$ac_objext'
19475 { (case "(($ac_try" in
19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477 *) ac_try_echo=$ac_try;;
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480 (eval "$ac_try") 2>&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
19484 ac_cv_func_isnan_in_cmath=yes
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19489 ac_cv_func_isnan_in_cmath=no
19492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19494 ac_cpp='$CPP $CPPFLAGS'
19495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19500 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19501 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19503 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19505 cat >>confdefs.h <<\_ACEOF
19506 #define HAVE_ISNAN_IN_CMATH 1
19511 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19512 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19513 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19517 ac_cpp='$CXXCPP $CPPFLAGS'
19518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19522 cat >conftest.$ac_ext <<_ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h. */
19532 float f; std::isnan(f);
19537 rm -f conftest.$ac_objext
19538 if { (ac_try="$ac_compile"
19539 case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_compile") 2>conftest.er1
19546 grep -v '^ *+' conftest.er1 >conftest.err
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
19551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19552 { (case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_try") 2>&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; } &&
19561 { ac_try='test -s conftest.$ac_objext'
19562 { (case "(($ac_try" in
19563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564 *) ac_try_echo=$ac_try;;
19566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567 (eval "$ac_try") 2>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_cv_func_std_isnan_in_cmath=yes
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19576 ac_cv_func_std_isnan_in_cmath=no
19579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19581 ac_cpp='$CPP $CPPFLAGS'
19582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19587 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19588 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19590 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19592 cat >>confdefs.h <<\_ACEOF
19593 #define HAVE_STD_ISNAN_IN_CMATH 1
19599 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19600 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19601 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19605 ac_cpp='$CXXCPP $CPPFLAGS'
19606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19610 cat >conftest.$ac_ext <<_ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h. */
19625 rm -f conftest.$ac_objext
19626 if { (ac_try="$ac_compile"
19627 case "(($ac_try" in
19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_compile") 2>conftest.er1
19634 grep -v '^ *+' conftest.er1 >conftest.err
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
19639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19640 { (case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_try") 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; } &&
19649 { ac_try='test -s conftest.$ac_objext'
19650 { (case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655 (eval "$ac_try") 2>&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; }; then
19659 ac_cv_func_isinf_in_math_h=yes
19661 echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19664 ac_cv_func_isinf_in_math_h=no
19667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19669 ac_cpp='$CPP $CPPFLAGS'
19670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19675 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19676 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19678 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE_ISINF_IN_MATH_H 1
19686 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19687 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19688 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 ac_cpp='$CXXCPP $CPPFLAGS'
19693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19697 cat >conftest.$ac_ext <<_ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19712 rm -f conftest.$ac_objext
19713 if { (ac_try="$ac_compile"
19714 case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_compile") 2>conftest.er1
19721 grep -v '^ *+' conftest.er1 >conftest.err
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } &&
19726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19727 { (case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_try") 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest.$ac_objext'
19737 { (case "(($ac_try" in
19738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739 *) ac_try_echo=$ac_try;;
19741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742 (eval "$ac_try") 2>&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 ac_cv_func_isinf_in_cmath=yes
19748 echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19751 ac_cv_func_isinf_in_cmath=no
19754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19756 ac_cpp='$CPP $CPPFLAGS'
19757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19762 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19763 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19765 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19767 cat >>confdefs.h <<\_ACEOF
19768 #define HAVE_ISINF_IN_CMATH 1
19773 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19774 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19775 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 ac_cpp='$CXXCPP $CPPFLAGS'
19780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19784 cat >conftest.$ac_ext <<_ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19794 float f; std::isinf(f);
19799 rm -f conftest.$ac_objext
19800 if { (ac_try="$ac_compile"
19801 case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_compile") 2>conftest.er1
19808 grep -v '^ *+' conftest.er1 >conftest.err
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } &&
19813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19814 { (case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_try") 2>&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; } &&
19823 { ac_try='test -s conftest.$ac_objext'
19824 { (case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_try") 2>&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19833 ac_cv_func_std_isinf_in_cmath=yes
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19838 ac_cv_func_std_isinf_in_cmath=no
19841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19843 ac_cpp='$CPP $CPPFLAGS'
19844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19849 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19850 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19852 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19854 cat >>confdefs.h <<\_ACEOF
19855 #define HAVE_STD_ISINF_IN_CMATH 1
19860 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19861 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19862 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19866 ac_cpp='$CXXCPP $CPPFLAGS'
19867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19871 cat >conftest.$ac_ext <<_ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19877 #include <ieeefp.h>
19881 float f; finite(f);
19886 rm -f conftest.$ac_objext
19887 if { (ac_try="$ac_compile"
19888 case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_compile") 2>conftest.er1
19895 grep -v '^ *+' conftest.er1 >conftest.err
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } &&
19900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19901 { (case "(($ac_try" in
19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903 *) ac_try_echo=$ac_try;;
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_try") 2>&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; } &&
19910 { ac_try='test -s conftest.$ac_objext'
19911 { (case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_try") 2>&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 ac_cv_func_finite_in_ieeefp_h=yes
19922 echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19925 ac_cv_func_finite_in_ieeefp_h=no
19928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19930 ac_cpp='$CPP $CPPFLAGS'
19931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19936 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19937 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19939 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19941 cat >>confdefs.h <<\_ACEOF
19942 #define HAVE_FINITE_IN_IEEEFP_H 1
19949 if test "$llvm_cv_platform_type" = "Unix" ; then
19952 for ac_header in stdlib.h unistd.h
19954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19959 echo $ECHO_N "(cached) $ECHO_C" >&6
19961 ac_res=`eval echo '${'$as_ac_Header'}'`
19962 { echo "$as_me:$LINENO: result: $ac_res" >&5
19963 echo "${ECHO_T}$ac_res" >&6; }
19965 # Is the header compilable?
19966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19968 cat >conftest.$ac_ext <<_ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 $ac_includes_default
19975 #include <$ac_header>
19977 rm -f conftest.$ac_objext
19978 if { (ac_try="$ac_compile"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_compile") 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
19991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19992 { (case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_try") 2>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest.$ac_objext'
20002 { (case "(($ac_try" in
20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004 *) ac_try_echo=$ac_try;;
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_try") 2>&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; }; then
20011 ac_header_compiler=yes
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 ac_header_compiler=no
20019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20021 echo "${ECHO_T}$ac_header_compiler" >&6; }
20023 # Is the header present?
20024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 #include <$ac_header>
20034 if { (ac_try="$ac_cpp conftest.$ac_ext"
20035 case "(($ac_try" in
20036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037 *) ac_try_echo=$ac_try;;
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20042 grep -v '^ *+' conftest.er1 >conftest.err
20044 cat conftest.err >&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } >/dev/null; then
20047 if test -s conftest.err; then
20048 ac_cpp_err=$ac_c_preproc_warn_flag
20049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20056 if test -z "$ac_cpp_err"; then
20057 ac_header_preproc=yes
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 ac_header_preproc=no
20065 rm -f conftest.err conftest.$ac_ext
20066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20067 echo "${ECHO_T}$ac_header_preproc" >&6; }
20069 # So? What about this header?
20070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20076 ac_header_preproc=yes
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20092 ## ------------------------------------ ##
20093 ## Report this to http://llvm.org/bugs/ ##
20094 ## ------------------------------------ ##
20096 ) | sed "s/^/$as_me: WARNING: /" >&2
20099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20104 eval "$as_ac_Header=\$ac_header_preproc"
20106 ac_res=`eval echo '${'$as_ac_Header'}'`
20107 { echo "$as_me:$LINENO: result: $ac_res" >&5
20108 echo "${ECHO_T}$ac_res" >&6; }
20111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20112 cat >>confdefs.h <<_ACEOF
20113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20121 for ac_func in getpagesize
20123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 cat >conftest.$ac_ext <<_ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20137 #define $ac_func innocuous_$ac_func
20139 /* System header to define __stub macros and hopefully few prototypes,
20140 which can conflict with char $ac_func (); below.
20141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20142 <limits.h> exists even on freestanding compilers. */
20145 # include <limits.h>
20147 # include <assert.h>
20152 /* Override any GCC internal prototype to avoid an error.
20153 Use char because int might match the return type of a GCC
20154 builtin and then its argument prototype would still apply. */
20159 /* The GNU C library defines this for functions which it implements
20160 to always fail with ENOSYS. Some functions are actually named
20161 something starting with __ and the normal name is an alias. */
20162 #if defined __stub_$ac_func || defined __stub___$ac_func
20169 return $ac_func ();
20174 rm -f conftest.$ac_objext conftest$ac_exeext
20175 if { (ac_try="$ac_link"
20176 case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181 (eval "$ac_link") 2>conftest.er1
20183 grep -v '^ *+' conftest.er1 >conftest.err
20185 cat conftest.err >&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } &&
20188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20189 { (case "(($ac_try" in
20190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191 *) ac_try_echo=$ac_try;;
20193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194 (eval "$ac_try") 2>&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; } &&
20198 { ac_try='test -s conftest$ac_exeext'
20199 { (case "(($ac_try" in
20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201 *) ac_try_echo=$ac_try;;
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204 (eval "$ac_try") 2>&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 eval "$as_ac_var=yes"
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20213 eval "$as_ac_var=no"
20216 rm -f core conftest.err conftest.$ac_objext \
20217 conftest$ac_exeext conftest.$ac_ext
20219 ac_res=`eval echo '${'$as_ac_var'}'`
20220 { echo "$as_me:$LINENO: result: $ac_res" >&5
20221 echo "${ECHO_T}$ac_res" >&6; }
20222 if test `eval echo '${'$as_ac_var'}'` = yes; then
20223 cat >>confdefs.h <<_ACEOF
20224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20230 { echo "$as_me:$LINENO: checking for working mmap" >&5
20231 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20232 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 if test "$cross_compiling" = yes; then
20236 ac_cv_func_mmap_fixed_mapped=no
20238 cat >conftest.$ac_ext <<_ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 $ac_includes_default
20245 /* malloc might have been renamed as rpl_malloc. */
20248 /* Thanks to Mike Haertel and Jim Avera for this test.
20249 Here is a matrix of mmap possibilities:
20250 mmap private not fixed
20251 mmap private fixed at somewhere currently unmapped
20252 mmap private fixed at somewhere already mapped
20253 mmap shared not fixed
20254 mmap shared fixed at somewhere currently unmapped
20255 mmap shared fixed at somewhere already mapped
20256 For private mappings, we should verify that changes cannot be read()
20257 back from the file, nor mmap's back from the file at a different
20258 address. (There have been systems where private was not correctly
20259 implemented like the infamous i386 svr4.0, and systems where the
20260 VM page cache was not coherent with the file system buffer cache
20261 like early versions of FreeBSD and possibly contemporary NetBSD.)
20262 For shared mappings, we should conversely verify that changes get
20263 propagated back to all the places they're supposed to be.
20265 Grep wants private fixed already mapped.
20266 The main things grep needs to know about mmap are:
20267 * does it exist and is it safe to write into the mmap'd area
20268 * how to use it (BSD variants) */
20271 #include <sys/mman.h>
20273 #if !STDC_HEADERS && !HAVE_STDLIB_H
20277 /* This mess was copied from the GNU getpagesize.h. */
20278 #if !HAVE_GETPAGESIZE
20279 /* Assume that all systems that can run configure have sys/param.h. */
20280 # if !HAVE_SYS_PARAM_H
20281 # define HAVE_SYS_PARAM_H 1
20284 # ifdef _SC_PAGESIZE
20285 # define getpagesize() sysconf(_SC_PAGESIZE)
20286 # else /* no _SC_PAGESIZE */
20287 # if HAVE_SYS_PARAM_H
20288 # include <sys/param.h>
20289 # ifdef EXEC_PAGESIZE
20290 # define getpagesize() EXEC_PAGESIZE
20291 # else /* no EXEC_PAGESIZE */
20293 # define getpagesize() NBPG * CLSIZE
20296 # endif /* no CLSIZE */
20297 # else /* no NBPG */
20299 # define getpagesize() NBPC
20300 # else /* no NBPC */
20302 # define getpagesize() PAGESIZE
20303 # endif /* PAGESIZE */
20304 # endif /* no NBPC */
20305 # endif /* no NBPG */
20306 # endif /* no EXEC_PAGESIZE */
20307 # else /* no HAVE_SYS_PARAM_H */
20308 # define getpagesize() 8192 /* punt totally */
20309 # endif /* no HAVE_SYS_PARAM_H */
20310 # endif /* no _SC_PAGESIZE */
20312 #endif /* no HAVE_GETPAGESIZE */
20317 char *data, *data2, *data3;
20321 pagesize = getpagesize ();
20323 /* First, make a file with some known garbage in it. */
20324 data = (char *) malloc (pagesize);
20327 for (i = 0; i < pagesize; ++i)
20328 *(data + i) = rand ();
20330 fd = creat ("conftest.mmap", 0600);
20333 if (write (fd, data, pagesize) != pagesize)
20337 /* Next, try to mmap the file at a fixed address which already has
20338 something else allocated at it. If we can, also make sure that
20339 we see the same garbage. */
20340 fd = open ("conftest.mmap", O_RDWR);
20343 data2 = (char *) malloc (2 * pagesize);
20346 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20347 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20348 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20350 for (i = 0; i < pagesize; ++i)
20351 if (*(data + i) != *(data2 + i))
20354 /* Finally, make sure that changes to the mapped area do not
20355 percolate back to the file as seen by read(). (This is a bug on
20356 some variants of i386 svr4.0.) */
20357 for (i = 0; i < pagesize; ++i)
20358 *(data2 + i) = *(data2 + i) + 1;
20359 data3 = (char *) malloc (pagesize);
20362 if (read (fd, data3, pagesize) != pagesize)
20364 for (i = 0; i < pagesize; ++i)
20365 if (*(data + i) != *(data3 + i))
20371 rm -f conftest$ac_exeext
20372 if { (ac_try="$ac_link"
20373 case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_link") 2>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20382 { (case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_try") 2>&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; }; then
20391 ac_cv_func_mmap_fixed_mapped=yes
20393 echo "$as_me: program exited with status $ac_status" >&5
20394 echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20397 ( exit $ac_status )
20398 ac_cv_func_mmap_fixed_mapped=no
20400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20405 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20406 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20407 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20409 cat >>confdefs.h <<\_ACEOF
20410 #define HAVE_MMAP 1
20414 rm -f conftest.mmap
20416 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20417 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20418 if test "${ac_cv_func_mmap_file+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20422 ac_cpp='$CPP $CPPFLAGS'
20423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20427 if test "$cross_compiling" = yes; then
20428 ac_cv_func_mmap_file=no
20430 cat >conftest.$ac_ext <<_ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20438 #include <sys/types.h>
20439 #include <sys/mman.h>
20447 fd = creat ("foo",0777);
20448 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20450 return (fd != (int) MAP_FAILED);
20455 rm -f conftest$ac_exeext
20456 if { (ac_try="$ac_link"
20457 case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462 (eval "$ac_link") 2>&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20466 { (case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_try") 2>&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; }; then
20475 ac_cv_func_mmap_file=yes
20477 echo "$as_me: program exited with status $ac_status" >&5
20478 echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20481 ( exit $ac_status )
20482 ac_cv_func_mmap_file=no
20484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20489 ac_cpp='$CPP $CPPFLAGS'
20490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20496 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20497 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20498 if test "$ac_cv_func_mmap_file" = yes; then
20500 cat >>confdefs.h <<\_ACEOF
20501 #define HAVE_MMAP_FILE
20508 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20509 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20510 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 if test "$llvm_cv_os_type" = "Interix" ; then
20514 ac_cv_need_dev_zero_for_mmap=yes
20516 ac_cv_need_dev_zero_for_mmap=no
20520 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20521 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20522 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20524 cat >>confdefs.h <<\_ACEOF
20525 #define NEED_DEV_ZERO_FOR_MMAP 1
20530 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20532 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20533 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20535 if test "$ac_cv_func_mmap_file" = "no"
20537 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20538 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20542 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20543 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20545 ac_cpp='$CXXCPP $CPPFLAGS'
20546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20550 cat >conftest.$ac_ext <<_ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h. */
20557 volatile unsigned long val = 1;
20558 __sync_synchronize();
20559 __sync_val_compare_and_swap(&val, 1, 0);
20560 __sync_add_and_fetch(&val, 1);
20561 __sync_sub_and_fetch(&val, 1);
20566 rm -f conftest.$ac_objext conftest$ac_exeext
20567 if { (ac_try="$ac_link"
20568 case "(($ac_try" in
20569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570 *) ac_try_echo=$ac_try;;
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573 (eval "$ac_link") 2>conftest.er1
20575 grep -v '^ *+' conftest.er1 >conftest.err
20577 cat conftest.err >&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } &&
20580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20581 { (case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_try") 2>&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); }; } &&
20590 { ac_try='test -s conftest$ac_exeext'
20591 { (case "(($ac_try" in
20592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20593 *) ac_try_echo=$ac_try;;
20595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20596 (eval "$ac_try") 2>&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; }; then
20601 ac_cpp='$CPP $CPPFLAGS'
20602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20606 { echo "$as_me:$LINENO: result: yes" >&5
20607 echo "${ECHO_T}yes" >&6; }
20609 cat >>confdefs.h <<\_ACEOF
20610 #define LLVM_HAS_ATOMICS 1
20614 echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20617 { echo "$as_me:$LINENO: result: no" >&5
20618 echo "${ECHO_T}no" >&6; }
20620 cat >>confdefs.h <<\_ACEOF
20621 #define LLVM_HAS_ATOMICS 0
20624 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20625 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20628 rm -f core conftest.err conftest.$ac_objext \
20629 conftest$ac_exeext conftest.$ac_ext
20632 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20633 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20634 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20635 if test "${llvm_cv_linux_mixed+set}" = set; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20639 ac_cpp='$CPP $CPPFLAGS'
20640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20644 cat >conftest.$ac_ext <<_ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20651 error: Not x86-64 even if uname says so!
20662 rm -f conftest.$ac_objext
20663 if { (ac_try="$ac_compile"
20664 case "(($ac_try" in
20665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666 *) ac_try_echo=$ac_try;;
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669 (eval "$ac_compile") 2>conftest.er1
20671 grep -v '^ *+' conftest.er1 >conftest.err
20673 cat conftest.err >&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } &&
20676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20677 { (case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_try") 2>&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); }; } &&
20686 { ac_try='test -s conftest.$ac_objext'
20687 { (case "(($ac_try" in
20688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689 *) ac_try_echo=$ac_try;;
20691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692 (eval "$ac_try") 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 llvm_cv_linux_mixed=no
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20701 llvm_cv_linux_mixed=yes
20704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20706 ac_cpp='$CPP $CPPFLAGS'
20707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20713 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20714 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20716 if test "$llvm_cv_linux_mixed" = "yes"; then
20717 llvm_cv_target_arch="x86"
20723 for ac_func in __dso_handle
20725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20729 echo $ECHO_N "(cached) $ECHO_C" >&6
20731 cat >conftest.$ac_ext <<_ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h. */
20737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20739 #define $ac_func innocuous_$ac_func
20741 /* System header to define __stub macros and hopefully few prototypes,
20742 which can conflict with char $ac_func (); below.
20743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20744 <limits.h> exists even on freestanding compilers. */
20747 # include <limits.h>
20749 # include <assert.h>
20754 /* Override any GCC internal prototype to avoid an error.
20755 Use char because int might match the return type of a GCC
20756 builtin and then its argument prototype would still apply. */
20761 /* The GNU C library defines this for functions which it implements
20762 to always fail with ENOSYS. Some functions are actually named
20763 something starting with __ and the normal name is an alias. */
20764 #if defined __stub_$ac_func || defined __stub___$ac_func
20771 return $ac_func ();
20776 rm -f conftest.$ac_objext conftest$ac_exeext
20777 if { (ac_try="$ac_link"
20778 case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783 (eval "$ac_link") 2>conftest.er1
20785 grep -v '^ *+' conftest.er1 >conftest.err
20787 cat conftest.err >&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } &&
20790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20791 { (case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_try") 2>&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; } &&
20800 { ac_try='test -s conftest$ac_exeext'
20801 { (case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_try") 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 eval "$as_ac_var=yes"
20812 echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20815 eval "$as_ac_var=no"
20818 rm -f core conftest.err conftest.$ac_objext \
20819 conftest$ac_exeext conftest.$ac_ext
20821 ac_res=`eval echo '${'$as_ac_var'}'`
20822 { echo "$as_me:$LINENO: result: $ac_res" >&5
20823 echo "${ECHO_T}$ac_res" >&6; }
20824 if test `eval echo '${'$as_ac_var'}'` = yes; then
20825 cat >>confdefs.h <<_ACEOF
20826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20833 SHLIBEXT=$libltdl_cv_shlibext
20836 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20839 if test "${prefix}" = "NONE" ; then
20840 prefix="/usr/local"
20842 eval LLVM_PREFIX="${prefix}";
20843 eval LLVM_BINDIR="${prefix}/bin";
20844 eval LLVM_LIBDIR="${prefix}/lib";
20845 eval LLVM_DATADIR="${prefix}/share/llvm";
20846 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20847 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20848 eval LLVM_INCLUDEDIR="${prefix}/include";
20849 eval LLVM_INFODIR="${prefix}/info";
20850 eval LLVM_MANDIR="${prefix}/man";
20851 LLVM_CONFIGTIME=`date`
20863 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20864 LLVM_CONFIGTIME="(timestamp not enabled)"
20868 cat >>confdefs.h <<_ACEOF
20869 #define LLVM_PREFIX "$LLVM_PREFIX"
20873 cat >>confdefs.h <<_ACEOF
20874 #define LLVM_BINDIR "$LLVM_BINDIR"
20878 cat >>confdefs.h <<_ACEOF
20879 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20883 cat >>confdefs.h <<_ACEOF
20884 #define LLVM_DATADIR "$LLVM_DATADIR"
20888 cat >>confdefs.h <<_ACEOF
20889 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20893 cat >>confdefs.h <<_ACEOF
20894 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20898 cat >>confdefs.h <<_ACEOF
20899 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20903 cat >>confdefs.h <<_ACEOF
20904 #define LLVM_INFODIR "$LLVM_INFODIR"
20908 cat >>confdefs.h <<_ACEOF
20909 #define LLVM_MANDIR "$LLVM_MANDIR"
20913 cat >>confdefs.h <<_ACEOF
20914 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20918 cat >>confdefs.h <<_ACEOF
20919 #define LLVM_HOSTTRIPLE "$host"
20923 cat >>confdefs.h <<_ACEOF
20924 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20928 if test "$BINDINGS_TO_BUILD" = auto ; then
20929 BINDINGS_TO_BUILD=""
20930 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20931 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20934 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20940 binding_prereqs_failed=0
20941 for a_binding in $BINDINGS_TO_BUILD ; do
20942 case "$a_binding" in
20944 if test "x$OCAMLC" = x ; then
20945 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20946 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20947 binding_prereqs_failed=1
20949 if test "x$OCAMLDEP" = x ; then
20950 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20951 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20952 binding_prereqs_failed=1
20954 if test "x$OCAMLOPT" = x ; then
20955 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20956 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20958 if test "x$with_ocaml_libdir" != xauto ; then
20959 OCAML_LIBDIR=$with_ocaml_libdir
20962 ocaml_stdlib="`"$OCAMLC" -where`"
20963 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20965 # ocaml stdlib is beneath our prefix; use stdlib
20966 OCAML_LIBDIR=$ocaml_stdlib
20969 # ocaml stdlib is outside our prefix; use libdir/ocaml
20970 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20977 if test "$binding_prereqs_failed" = 1 ; then
20978 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20979 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20980 { (exit 1); exit 1; }; }
20983 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20984 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20985 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20989 ac_cpp='$CXXCPP $CPPFLAGS'
20990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20994 oldcxxflags="$CXXFLAGS"
20995 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20996 cat >conftest.$ac_ext <<_ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21002 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21011 rm -f conftest.$ac_objext
21012 if { (ac_try="$ac_compile"
21013 case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_compile") 2>conftest.er1
21020 grep -v '^ *+' conftest.er1 >conftest.err
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } &&
21025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21026 { (case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_try") 2>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; } &&
21035 { ac_try='test -s conftest.$ac_objext'
21036 { (case "(($ac_try" in
21037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038 *) ac_try_echo=$ac_try;;
21040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041 (eval "$ac_try") 2>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 llvm_cv_cxx_visibility_inlines_hidden=yes
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 llvm_cv_cxx_visibility_inlines_hidden=no
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054 CXXFLAGS="$oldcxxflags"
21056 ac_cpp='$CPP $CPPFLAGS'
21057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21063 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21064 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21065 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21066 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21069 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21074 if test "$llvm_cv_link_use_r" = "yes" ; then
21081 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21082 RDYNAMIC="-Wl,-export-dynamic"
21089 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21096 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21098 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21100 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21102 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21104 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21107 ac_config_files="$ac_config_files Makefile.config"
21110 ac_config_files="$ac_config_files llvm.spec"
21113 ac_config_files="$ac_config_files docs/doxygen.cfg"
21116 if test "${clang_src_root}" = ""; then
21117 clang_src_root="$srcdir/tools/clang"
21119 if test -f ${clang_src_root}/README.txt; then
21120 configh="include/clang/Config/config.h"
21121 doxy="docs/doxygen.cfg"
21122 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21124 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21128 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21131 test "x$program_prefix" = "xNONE" && program_prefix=""
21135 ac_config_commands="$ac_config_commands setup"
21137 ac_config_commands="$ac_config_commands Makefile"
21140 ac_config_commands="$ac_config_commands Makefile.common"
21143 ac_config_commands="$ac_config_commands examples/Makefile"
21146 ac_config_commands="$ac_config_commands lib/Makefile"
21149 ac_config_commands="$ac_config_commands runtime/Makefile"
21152 ac_config_commands="$ac_config_commands test/Makefile"
21155 ac_config_commands="$ac_config_commands test/Makefile.tests"
21158 ac_config_commands="$ac_config_commands unittests/Makefile"
21161 ac_config_commands="$ac_config_commands tools/Makefile"
21164 ac_config_commands="$ac_config_commands utils/Makefile"
21167 ac_config_commands="$ac_config_commands projects/Makefile"
21170 ac_config_commands="$ac_config_commands bindings/Makefile"
21173 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21177 cat >confcache <<\_ACEOF
21178 # This file is a shell script that caches the results of configure
21179 # tests run on this system so they can be shared between configure
21180 # scripts and configure runs, see configure's option --config-cache.
21181 # It is not useful on other systems. If it contains results you don't
21182 # want to keep, you may remove or edit it.
21184 # config.status only pays attention to the cache file if you give it
21185 # the --recheck option to rerun configure.
21187 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21188 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21189 # following values.
21193 # The following way of writing the cache mishandles newlines in values,
21194 # but we know of no workaround that is simple, portable, and efficient.
21195 # So, we kill variables containing newlines.
21196 # Ultrix sh set writes to stderr and can't be redirected directly,
21197 # and sets the high bit in the cache file unless we assign to the vars.
21199 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21200 eval ac_val=\$$ac_var
21204 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21205 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21208 _ | IFS | as_nl) ;; #(
21209 *) $as_unset $ac_var ;;
21215 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21216 *${as_nl}ac_space=\ *)
21217 # `set' does not quote correctly, so add quotes (double-quote
21218 # substitution turns \\\\ into \\, and sed turns \\ into \).
21221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21224 # `set' quotes correctly as required by POSIX, so do not add quotes.
21225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21236 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21238 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21239 if test -w "$cache_file"; then
21240 test "x$cache_file" != "x/dev/null" &&
21241 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21242 echo "$as_me: updating cache $cache_file" >&6;}
21243 cat confcache >$cache_file
21245 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21246 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21252 # Let make expand exec_prefix.
21253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21255 DEFS=-DHAVE_CONFIG_H
21259 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21260 # 1. Remove the extension, and $U if already installed.
21261 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21262 ac_i=`echo "$ac_i" | sed "$ac_script"`
21263 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21264 # will be set to the directory where LIBOBJS objects are built.
21265 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21266 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21268 LIBOBJS=$ac_libobjs
21270 LTLIBOBJS=$ac_ltlibobjs
21273 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21274 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21275 Usually this means the macro was only invoked conditionally." >&5
21276 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21277 Usually this means the macro was only invoked conditionally." >&2;}
21278 { (exit 1); exit 1; }; }
21280 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21281 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21282 Usually this means the macro was only invoked conditionally." >&5
21283 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21284 Usually this means the macro was only invoked conditionally." >&2;}
21285 { (exit 1); exit 1; }; }
21288 : ${CONFIG_STATUS=./config.status}
21289 ac_clean_files_save=$ac_clean_files
21290 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21291 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21292 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21293 cat >$CONFIG_STATUS <<_ACEOF
21295 # Generated by $as_me.
21296 # Run this file to recreate the current configuration.
21297 # Compiler output produced by configure, useful for debugging
21298 # configure, is in config.log if it exists.
21301 ac_cs_recheck=false
21303 SHELL=\${CONFIG_SHELL-$SHELL}
21306 cat >>$CONFIG_STATUS <<\_ACEOF
21307 ## --------------------- ##
21308 ## M4sh Initialization. ##
21309 ## --------------------- ##
21311 # Be Bourne compatible
21312 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21315 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21316 # is contrary to our usage. Disable this feature.
21317 alias -g '${1+"$@"}'='"$@"'
21318 setopt NO_GLOB_SUBST
21320 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21322 BIN_SH=xpg4; export BIN_SH # for Tru64
21323 DUALCASE=1; export DUALCASE # for MKS sh
21327 # Avoid depending upon Character Ranges.
21328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21331 as_cr_digits='0123456789'
21332 as_cr_alnum=$as_cr_Letters$as_cr_digits
21334 # The user is always right.
21335 if test "${PATH_SEPARATOR+set}" != set; then
21336 echo "#! /bin/sh" >conf$$.sh
21337 echo "exit 0" >>conf$$.sh
21339 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21347 # Support unset when possible.
21348 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21356 # We need space, tab and new line, in precisely that order. Quoting is
21357 # there to prevent editors from complaining about space-tab.
21358 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21359 # splitting by setting IFS to empty value.)
21364 # Find who we are. Look in the path if we contain no directory separator.
21366 *[\\/]* ) as_myself=$0 ;;
21367 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21368 for as_dir in $PATH
21371 test -z "$as_dir" && as_dir=.
21372 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21378 # We did not find ourselves, most probably we were run as `sh COMMAND'
21379 # in which case we are not to be found in the path.
21380 if test "x$as_myself" = x; then
21383 if test ! -f "$as_myself"; then
21384 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21385 { (exit 1); exit 1; }
21388 # Work around bugs in pre-3.0 UWIN ksh.
21389 for as_var in ENV MAIL MAILPATH
21390 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21398 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21399 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21400 LC_TELEPHONE LC_TIME
21402 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21403 eval $as_var=C; export $as_var
21405 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21409 # Required to use basename.
21410 if expr a : '\(a\)' >/dev/null 2>&1 &&
21411 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21417 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21418 as_basename=basename
21424 # Name of the executable.
21425 as_me=`$as_basename -- "$0" ||
21426 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21427 X"$0" : 'X\(//\)$' \| \
21428 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21430 sed '/^.*\/\([^/][^/]*\)\/*$/{
21449 as_lineno_1=$LINENO
21450 as_lineno_2=$LINENO
21451 test "x$as_lineno_1" != "x$as_lineno_2" &&
21452 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21454 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21455 # uniformly replaced by the line number. The first 'sed' inserts a
21456 # line-number line after each line using $LINENO; the second 'sed'
21457 # does the real work. The second script uses 'N' to pair each
21458 # line-number line with the line containing $LINENO, and appends
21459 # trailing '-' during substitution so that $LINENO is not a special
21460 # case at line end.
21461 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21462 # scripts with optimization help from Paolo Bonzini. Blame Lee
21463 # E. McMahon (1931-1989) for sed's syntax. :-)
21475 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21478 ' >$as_me.lineno &&
21479 chmod +x "$as_me.lineno" ||
21480 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21481 { (exit 1); exit 1; }; }
21483 # Don't try to exec as it changes $[0], causing all sort of problems
21484 # (the dirname of $[0] is not the place where we might find the
21485 # original and so on. Autoconf is especially sensitive to this).
21486 . "./$as_me.lineno"
21487 # Exit status is that of the last command.
21492 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21498 ECHO_C= ECHO_N= ECHO_T=
21499 case `echo -n x` in
21501 case `echo 'x\c'` in
21502 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21509 if expr a : '\(a\)' >/dev/null 2>&1 &&
21510 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21516 rm -f conf$$ conf$$.exe conf$$.file
21517 if test -d conf$$.dir; then
21518 rm -f conf$$.dir/conf$$.file
21524 if ln -s conf$$.file conf$$ 2>/dev/null; then
21526 # ... but there are two gotchas:
21527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21529 # In both cases, we have to default to `cp -p'.
21530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21532 elif ln conf$$.file conf$$ 2>/dev/null; then
21537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21538 rmdir conf$$.dir 2>/dev/null
21540 if mkdir -p . 2>/dev/null; then
21543 test -d ./-p && rmdir ./-p
21547 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21548 # systems may use methods other than mode bits to determine executability.
21549 cat >conf$$.file <<_ASEOF
21553 chmod +x conf$$.file
21554 if test -x conf$$.file >/dev/null 2>&1; then
21555 as_executable_p="test -x"
21561 # Sed expression to map a string onto a valid CPP name.
21562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21564 # Sed expression to map a string onto a valid variable name.
21565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21570 # Save the log message, to keep $[0] and so on meaningful, and to
21571 # report actual input values of CONFIG_FILES etc. instead of their
21572 # values after options handling.
21574 This file was extended by LLVM $as_me 3.2svn, which was
21575 generated by GNU Autoconf 2.60. Invocation command line was
21577 CONFIG_FILES = $CONFIG_FILES
21578 CONFIG_HEADERS = $CONFIG_HEADERS
21579 CONFIG_LINKS = $CONFIG_LINKS
21580 CONFIG_COMMANDS = $CONFIG_COMMANDS
21583 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21588 cat >>$CONFIG_STATUS <<_ACEOF
21589 # Files that config.status was made for.
21590 config_files="$ac_config_files"
21591 config_headers="$ac_config_headers"
21592 config_commands="$ac_config_commands"
21596 cat >>$CONFIG_STATUS <<\_ACEOF
21598 \`$as_me' instantiates files from templates according to the
21599 current configuration.
21601 Usage: $0 [OPTIONS] [FILE]...
21603 -h, --help print this help, then exit
21604 -V, --version print version number, then exit
21605 -q, --quiet do not print progress messages
21606 -d, --debug don't remove temporary files
21607 --recheck update $as_me by reconfiguring in the same conditions
21608 --file=FILE[:TEMPLATE]
21609 instantiate the configuration file FILE
21610 --header=FILE[:TEMPLATE]
21611 instantiate the configuration header FILE
21613 Configuration files:
21616 Configuration headers:
21619 Configuration commands:
21622 Report bugs to <bug-autoconf@gnu.org>."
21625 cat >>$CONFIG_STATUS <<_ACEOF
21627 LLVM config.status 3.2svn
21628 configured by $0, generated by GNU Autoconf 2.60,
21629 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21631 Copyright (C) 2006 Free Software Foundation, Inc.
21632 This config.status script is free software; the Free Software Foundation
21633 gives unlimited permission to copy, distribute and modify it."
21640 cat >>$CONFIG_STATUS <<\_ACEOF
21641 # If no file are specified by the user, then we need to provide default
21642 # value. By we need to know if files were specified by the user.
21648 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21649 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21660 # Handling of the options.
21661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21663 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21664 echo "$ac_cs_version"; exit ;;
21665 --debug | --debu | --deb | --de | --d | -d )
21667 --file | --fil | --fi | --f )
21669 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21670 ac_need_defaults=false;;
21671 --header | --heade | --head | --hea )
21673 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21674 ac_need_defaults=false;;
21676 # Conflict between --help and --header
21677 { echo "$as_me: error: ambiguous option: $1
21678 Try \`$0 --help' for more information." >&2
21679 { (exit 1); exit 1; }; };;
21680 --help | --hel | -h )
21681 echo "$ac_cs_usage"; exit ;;
21682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21683 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21686 # This is an error.
21687 -*) { echo "$as_me: error: unrecognized option: $1
21688 Try \`$0 --help' for more information." >&2
21689 { (exit 1); exit 1; }; } ;;
21691 *) ac_config_targets="$ac_config_targets $1"
21692 ac_need_defaults=false ;;
21698 ac_configure_extra_args=
21700 if $ac_cs_silent; then
21702 ac_configure_extra_args="$ac_configure_extra_args --silent"
21706 cat >>$CONFIG_STATUS <<_ACEOF
21707 if \$ac_cs_recheck; then
21708 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21709 CONFIG_SHELL=$SHELL
21710 export CONFIG_SHELL
21711 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21715 cat >>$CONFIG_STATUS <<\_ACEOF
21719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21720 ## Running $as_me. ##
21726 cat >>$CONFIG_STATUS <<_ACEOF
21730 llvm_src="${srcdir}"
21734 cat >>$CONFIG_STATUS <<\_ACEOF
21736 # Handling of arguments.
21737 for ac_config_target in $ac_config_targets
21739 case $ac_config_target in
21740 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21741 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21742 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21743 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21744 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21745 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21746 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21747 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21748 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21749 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21750 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21751 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21752 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21753 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21754 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21755 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21756 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21757 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21758 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21759 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21760 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21761 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21762 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21763 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21764 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21765 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21766 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21770 { (exit 1); exit 1; }; };;
21775 # If the user did not use the arguments to specify the items to instantiate,
21776 # then the envvar interface is used. Set only those that are not.
21777 # We use the long form for the default assignment because of an extremely
21778 # bizarre bug on SunOS 4.1.3.
21779 if $ac_need_defaults; then
21780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21785 # Have a temporary directory for convenience. Make it in the build tree
21786 # simply because there is no reason against having it here, and in addition,
21787 # creating and moving files from /tmp can sometimes cause problems.
21788 # Hook for its removal unless debugging.
21789 # Note that there is a small window in which the directory will not be cleaned:
21790 # after its creation but before its name has been assigned to `$tmp'.
21794 trap 'exit_status=$?
21795 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21797 trap '{ (exit 1); exit 1; }' 1 2 13 15
21799 # Create a (secure) tmp directory for tmp files.
21802 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21803 test -n "$tmp" && test -d "$tmp"
21806 tmp=./conf$$-$RANDOM
21807 (umask 077 && mkdir "$tmp")
21810 echo "$me: cannot create a temporary directory in ." >&2
21811 { (exit 1); exit 1; }
21815 # Set up the sed scripts for CONFIG_FILES section.
21818 # No need to generate the scripts if there are no CONFIG_FILES.
21819 # This happens for instance when ./config.status config.h
21820 if test -n "$CONFIG_FILES"; then
21827 for ac_last_try in false false false false false :; do
21828 cat >conf$$subs.sed <<_ACEOF
21829 SHELL!$SHELL$ac_delim
21830 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21831 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21832 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21833 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21834 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21835 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21836 exec_prefix!$exec_prefix$ac_delim
21837 prefix!$prefix$ac_delim
21838 program_transform_name!$program_transform_name$ac_delim
21839 bindir!$bindir$ac_delim
21840 sbindir!$sbindir$ac_delim
21841 libexecdir!$libexecdir$ac_delim
21842 datarootdir!$datarootdir$ac_delim
21843 datadir!$datadir$ac_delim
21844 sysconfdir!$sysconfdir$ac_delim
21845 sharedstatedir!$sharedstatedir$ac_delim
21846 localstatedir!$localstatedir$ac_delim
21847 includedir!$includedir$ac_delim
21848 oldincludedir!$oldincludedir$ac_delim
21849 docdir!$docdir$ac_delim
21850 infodir!$infodir$ac_delim
21851 htmldir!$htmldir$ac_delim
21852 dvidir!$dvidir$ac_delim
21853 pdfdir!$pdfdir$ac_delim
21854 psdir!$psdir$ac_delim
21855 libdir!$libdir$ac_delim
21856 localedir!$localedir$ac_delim
21857 mandir!$mandir$ac_delim
21858 DEFS!$DEFS$ac_delim
21859 ECHO_C!$ECHO_C$ac_delim
21860 ECHO_N!$ECHO_N$ac_delim
21861 ECHO_T!$ECHO_T$ac_delim
21862 LIBS!$LIBS$ac_delim
21863 build_alias!$build_alias$ac_delim
21864 host_alias!$host_alias$ac_delim
21865 target_alias!$target_alias$ac_delim
21866 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21868 CFLAGS!$CFLAGS$ac_delim
21869 LDFLAGS!$LDFLAGS$ac_delim
21870 CPPFLAGS!$CPPFLAGS$ac_delim
21871 ac_ct_CC!$ac_ct_CC$ac_delim
21872 EXEEXT!$EXEEXT$ac_delim
21873 OBJEXT!$OBJEXT$ac_delim
21875 CXXFLAGS!$CXXFLAGS$ac_delim
21876 ac_ct_CXX!$ac_ct_CXX$ac_delim
21878 subdirs!$subdirs$ac_delim
21879 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21880 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21881 build!$build$ac_delim
21882 build_cpu!$build_cpu$ac_delim
21883 build_vendor!$build_vendor$ac_delim
21884 build_os!$build_os$ac_delim
21885 host!$host$ac_delim
21886 host_cpu!$host_cpu$ac_delim
21887 host_vendor!$host_vendor$ac_delim
21888 host_os!$host_os$ac_delim
21889 target!$target$ac_delim
21890 target_cpu!$target_cpu$ac_delim
21891 target_vendor!$target_vendor$ac_delim
21892 target_os!$target_os$ac_delim
21894 HOST_OS!$HOST_OS$ac_delim
21895 TARGET_OS!$TARGET_OS$ac_delim
21896 LINKALL!$LINKALL$ac_delim
21897 NOLINKALL!$NOLINKALL$ac_delim
21898 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21899 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21900 ARCH!$ARCH$ac_delim
21901 HOST_ARCH!$HOST_ARCH$ac_delim
21902 ENDIAN!$ENDIAN$ac_delim
21903 GREP!$GREP$ac_delim
21904 EGREP!$EGREP$ac_delim
21905 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21906 BUILD_CC!$BUILD_CC$ac_delim
21907 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21908 BUILD_CXX!$BUILD_CXX$ac_delim
21909 CVSBUILD!$CVSBUILD$ac_delim
21910 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21911 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21912 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21913 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21914 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21915 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21916 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21917 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21918 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21919 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21920 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
21922 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21923 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21924 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21925 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21928 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21930 elif $ac_last_try; then
21931 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21932 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21933 { (exit 1); exit 1; }; }
21935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21939 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21940 if test -n "$ac_eof"; then
21941 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21942 ac_eof=`expr $ac_eof + 1`
21945 cat >>$CONFIG_STATUS <<_ACEOF
21946 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21950 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21951 s/^/s,@/; s/!/@,|#_!!_#|/
21954 s/'"$ac_delim"'$/,g/; t
21956 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21957 ' >>$CONFIG_STATUS <conf$$subs.sed
21958 rm -f conf$$subs.sed
21959 cat >>$CONFIG_STATUS <<_ACEOF
21965 for ac_last_try in false false false false false :; do
21966 cat >conf$$subs.sed <<_ACEOF
21967 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21968 ENABLE_PIC!$ENABLE_PIC$ac_delim
21969 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21970 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21971 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21972 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21973 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21974 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21975 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21976 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21977 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21978 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21979 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21980 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21981 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21982 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21984 ifGNUmake!$ifGNUmake$ac_delim
21985 LN_S!$LN_S$ac_delim
21988 DATE!$DATE$ac_delim
21989 FIND!$FIND$ac_delim
21990 MKDIR!$MKDIR$ac_delim
21992 RANLIB!$RANLIB$ac_delim
21997 BINPWD!$BINPWD$ac_delim
21998 GRAPHVIZ!$GRAPHVIZ$ac_delim
22001 NEATO!$NEATO$ac_delim
22002 TWOPI!$TWOPI$ac_delim
22003 CIRCO!$CIRCO$ac_delim
22005 DOTTY!$DOTTY$ac_delim
22006 XDOT_PY!$XDOT_PY$ac_delim
22007 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22008 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22009 INSTALL_DATA!$INSTALL_DATA$ac_delim
22010 BZIP2!$BZIP2$ac_delim
22012 DOXYGEN!$DOXYGEN$ac_delim
22013 GROFF!$GROFF$ac_delim
22014 GZIPBIN!$GZIPBIN$ac_delim
22015 PDFROFF!$PDFROFF$ac_delim
22017 OCAMLC!$OCAMLC$ac_delim
22018 OCAMLOPT!$OCAMLOPT$ac_delim
22019 OCAMLDEP!$OCAMLDEP$ac_delim
22020 OCAMLDOC!$OCAMLDOC$ac_delim
22022 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22023 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22024 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22025 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22026 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22027 LIBADD_DL!$LIBADD_DL$ac_delim
22028 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22029 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22030 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22031 USE_UDIS86!$USE_UDIS86$ac_delim
22032 USE_OPROFILE!$USE_OPROFILE$ac_delim
22033 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22034 XML2CONFIG!$XML2CONFIG$ac_delim
22035 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22036 LIBXML2_INC!$LIBXML2_INC$ac_delim
22037 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22038 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22039 MMAP_FILE!$MMAP_FILE$ac_delim
22040 SHLIBEXT!$SHLIBEXT$ac_delim
22041 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22042 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22043 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22044 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22045 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22046 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22047 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22048 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22049 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22050 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22051 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22052 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22053 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22054 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22055 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22056 RPATH!$RPATH$ac_delim
22057 RDYNAMIC!$RDYNAMIC$ac_delim
22058 program_prefix!$program_prefix$ac_delim
22059 LIBOBJS!$LIBOBJS$ac_delim
22060 LTLIBOBJS!$LTLIBOBJS$ac_delim
22063 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
22065 elif $ac_last_try; then
22066 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22067 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22068 { (exit 1); exit 1; }; }
22070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22074 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22075 if test -n "$ac_eof"; then
22076 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22077 ac_eof=`expr $ac_eof + 1`
22080 cat >>$CONFIG_STATUS <<_ACEOF
22081 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22085 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22086 s/^/s,@/; s/!/@,|#_!!_#|/
22089 s/'"$ac_delim"'$/,g/; t
22091 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22092 ' >>$CONFIG_STATUS <conf$$subs.sed
22093 rm -f conf$$subs.sed
22094 cat >>$CONFIG_STATUS <<_ACEOF
22101 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22102 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22103 # trailing colons and then remove the whole line if VPATH becomes empty
22104 # (actually we leave an empty line to preserve line numbers).
22105 if test "x$srcdir" = x.; then
22106 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22107 s/:*\$(srcdir):*/:/
22108 s/:*\${srcdir}:*/:/
22110 s/^\([^=]*=[ ]*\):*/\1/
22116 cat >>$CONFIG_STATUS <<\_ACEOF
22117 fi # test -n "$CONFIG_FILES"
22120 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22123 :[FHLC]) ac_mode=$ac_tag; continue;;
22125 case $ac_mode$ac_tag in
22127 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22128 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22129 { (exit 1); exit 1; }; };;
22130 :[FH]-) ac_tag=-:-;;
22131 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22148 -) ac_f="$tmp/stdin";;
22149 *) # Look for the file first in the build tree, then in the source tree
22150 # (if the path is not absolute). The absolute path cannot be DOS-style,
22151 # because $ac_f cannot contain `:'.
22155 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22157 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22158 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22159 { (exit 1); exit 1; }; };;
22161 ac_file_inputs="$ac_file_inputs $ac_f"
22164 # Let's still pretend it is `configure' which instantiates (i.e., don't
22165 # use $as_me), people would be surprised to read:
22166 # /* config.h. Generated by config.status. */
22167 configure_input="Generated from "`IFS=:
22168 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22169 if test x"$ac_file" != x-; then
22170 configure_input="$ac_file. $configure_input"
22171 { echo "$as_me:$LINENO: creating $ac_file" >&5
22172 echo "$as_me: creating $ac_file" >&6;}
22176 *:-:* | *:-) cat >"$tmp/stdin";;
22181 ac_dir=`$as_dirname -- "$ac_file" ||
22182 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22183 X"$ac_file" : 'X\(//\)[^/]' \| \
22184 X"$ac_file" : 'X\(//\)$' \| \
22185 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22191 /^X\(\/\/\)[^/].*/{
22206 -*) as_dir=./$as_dir;;
22208 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22212 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22213 *) as_qdir=$as_dir;;
22215 as_dirs="'$as_qdir' $as_dirs"
22216 as_dir=`$as_dirname -- "$as_dir" ||
22217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22218 X"$as_dir" : 'X\(//\)[^/]' \| \
22219 X"$as_dir" : 'X\(//\)$' \| \
22220 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22226 /^X\(\/\/\)[^/].*/{
22239 test -d "$as_dir" && break
22241 test -z "$as_dirs" || eval "mkdir $as_dirs"
22242 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22243 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22244 { (exit 1); exit 1; }; }; }
22248 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22250 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22251 # A ".." for each directory in $ac_dir_suffix.
22252 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22253 case $ac_top_builddir_sub in
22254 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22255 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22258 ac_abs_top_builddir=$ac_pwd
22259 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22260 # for backward compatibility:
22261 ac_top_builddir=$ac_top_build_prefix
22264 .) # We are building in place.
22266 ac_top_srcdir=$ac_top_builddir_sub
22267 ac_abs_top_srcdir=$ac_pwd ;;
22268 [\\/]* | ?:[\\/]* ) # Absolute name.
22269 ac_srcdir=$srcdir$ac_dir_suffix;
22270 ac_top_srcdir=$srcdir
22271 ac_abs_top_srcdir=$srcdir ;;
22272 *) # Relative name.
22273 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22274 ac_top_srcdir=$ac_top_build_prefix$srcdir
22275 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22277 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22287 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22288 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22292 cat >>$CONFIG_STATUS <<\_ACEOF
22293 # If the template does not know about datarootdir, expand it.
22294 # FIXME: This hack should be removed a few years after 2.60.
22295 ac_datarootdir_hack=; ac_datarootdir_seen=
22297 case `sed -n '/datarootdir/ {
22306 ' $ac_file_inputs` in
22307 *datarootdir*) ac_datarootdir_seen=yes;;
22308 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22309 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22310 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22312 cat >>$CONFIG_STATUS <<_ACEOF
22313 ac_datarootdir_hack='
22314 s&@datadir@&$datadir&g
22315 s&@docdir@&$docdir&g
22316 s&@infodir@&$infodir&g
22317 s&@localedir@&$localedir&g
22318 s&@mandir@&$mandir&g
22319 s&\\\${datarootdir}&$datarootdir&g' ;;
22323 # Neutralize VPATH when `$srcdir' = `.'.
22324 # Shell code in configure.ac might set extrasub.
22325 # FIXME: do we really want to maintain this feature?
22326 cat >>$CONFIG_STATUS <<_ACEOF
22330 cat >>$CONFIG_STATUS <<\_ACEOF
22332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22333 s&@configure_input@&$configure_input&;t t
22334 s&@top_builddir@&$ac_top_builddir_sub&;t t
22335 s&@srcdir@&$ac_srcdir&;t t
22336 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22337 s&@top_srcdir@&$ac_top_srcdir&;t t
22338 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22339 s&@builddir@&$ac_builddir&;t t
22340 s&@abs_builddir@&$ac_abs_builddir&;t t
22341 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22342 s&@INSTALL@&$ac_INSTALL&;t t
22343 $ac_datarootdir_hack
22344 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22346 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22347 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22348 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22349 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22350 which seems to be undefined. Please make sure it is defined." >&5
22351 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22352 which seems to be undefined. Please make sure it is defined." >&2;}
22356 -) cat "$tmp/out"; rm -f "$tmp/out";;
22357 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22366 # Transform confdefs.h into a sed script `conftest.defines', that
22367 # substitutes the proper values into config.h.in to produce config.h.
22368 rm -f conftest.defines conftest.tail
22369 # First, append a space to every undef/define line, to ease matching.
22370 echo 's/$/ /' >conftest.defines
22371 # Then, protect against being on the right side of a sed subst, or in
22372 # an unquoted here document, in config.status. If some macros were
22373 # called several times there might be several #defines for the same
22374 # symbol, which is useless. But do not sort them, since the last
22375 # AC_DEFINE must be honored.
22376 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22377 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22378 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22379 # PARAMS is the parameter list in the macro definition--in most cases, it's
22380 # just an empty string.
22381 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22382 ac_dB='\\)[ (].*,\\1define\\2'
22390 s/^[ ]*#[ ]*define[ ][ ]*//
22395 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22396 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22397 ' >>conftest.defines
22399 # Remove the space that was appended to ease matching.
22400 # Then replace #undef with comments. This is necessary, for
22401 # example, in the case of _POSIX_SOURCE, which is predefined and required
22402 # on some systems where configure will not decide to define it.
22403 # (The regexp can be short, since the line contains either #define or #undef.)
22405 s,^[ #]*u.*,/* & */,' >>conftest.defines
22407 # Break up conftest.defines:
22408 ac_max_sed_lines=50
22410 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22411 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22412 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22414 ac_in='$ac_file_inputs'
22415 ac_out='"$tmp/out1"'
22416 ac_nxt='"$tmp/out2"'
22420 # Write a here document:
22421 cat >>$CONFIG_STATUS <<_ACEOF
22422 # First, check the format of the line:
22423 cat >"\$tmp/defines.sed" <<\\CEOF
22424 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22425 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22429 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22431 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22432 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22433 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22434 grep . conftest.tail >/dev/null || break
22435 rm -f conftest.defines
22436 mv conftest.tail conftest.defines
22438 rm -f conftest.defines conftest.tail
22440 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22441 cat >>$CONFIG_STATUS <<\_ACEOF
22442 if test x"$ac_file" != x-; then
22443 echo "/* $configure_input */" >"$tmp/config.h"
22444 cat "$ac_result" >>"$tmp/config.h"
22445 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22446 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22447 echo "$as_me: $ac_file is unchanged" >&6;}
22450 mv "$tmp/config.h" $ac_file
22453 echo "/* $configure_input */"
22459 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22460 echo "$as_me: executing $ac_file commands" >&6;}
22465 case $ac_file$ac_mode in
22466 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22467 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22468 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22469 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22470 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22471 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22472 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22473 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22474 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22475 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22476 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22477 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22478 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22479 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22480 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22481 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22482 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22483 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22484 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22485 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22486 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22487 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22488 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22489 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22490 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22491 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22497 { (exit 0); exit 0; }
22499 chmod +x $CONFIG_STATUS
22500 ac_clean_files=$ac_clean_files_save
22503 # configure is writing to config.log, and then calls config.status.
22504 # config.status does its own redirection, appending to config.log.
22505 # Unfortunately, on DOS this fails, as config.log is still kept open
22506 # by configure, so config.status won't be able to write to it; its
22507 # output is simply discarded. So we exec the FD to /dev/null,
22508 # effectively closing config.log, so it can be properly (re)opened and
22509 # appended to by config.status. When coming back to configure, we
22510 # need to make the FD available again.
22511 if test "$no_create" != yes; then
22513 ac_config_status_args=
22514 test "$silent" = yes &&
22515 ac_config_status_args="$ac_config_status_args --quiet"
22517 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22519 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22520 # would make configure fail if this is the last instruction.
22521 $ac_cs_success || { (exit 1); exit 1; }
22525 # CONFIG_SUBDIRS section.
22527 if test "$no_recursion" != yes; then
22529 # Remove --cache-file and --srcdir arguments so they do not pile up.
22530 ac_sub_configure_args=
22532 eval "set x $ac_configure_args"
22536 if test -n "$ac_prev"; then
22541 -cache-file | --cache-file | --cache-fil | --cache-fi \
22542 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22543 ac_prev=cache_file ;;
22544 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22545 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22548 --config-cache | -C)
22550 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22552 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22554 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22556 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22560 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22562 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22566 # Always prepend --prefix to ensure using the same prefix
22567 # in subdir configurations.
22568 ac_arg="--prefix=$prefix"
22570 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22572 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22575 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22577 # Do not complain, so a configure script can configure whichever
22578 # parts of a large source tree are present.
22579 test -d "$srcdir/$ac_dir" || continue
22581 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22582 echo "$as_me:$LINENO: $ac_msg" >&5
22586 -*) as_dir=./$as_dir;;
22588 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22592 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22593 *) as_qdir=$as_dir;;
22595 as_dirs="'$as_qdir' $as_dirs"
22596 as_dir=`$as_dirname -- "$as_dir" ||
22597 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22598 X"$as_dir" : 'X\(//\)[^/]' \| \
22599 X"$as_dir" : 'X\(//\)$' \| \
22600 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22606 /^X\(\/\/\)[^/].*/{
22619 test -d "$as_dir" && break
22621 test -z "$as_dirs" || eval "mkdir $as_dirs"
22622 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22623 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22624 { (exit 1); exit 1; }; }; }
22628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22630 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22631 # A ".." for each directory in $ac_dir_suffix.
22632 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22633 case $ac_top_builddir_sub in
22634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22638 ac_abs_top_builddir=$ac_pwd
22639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22640 # for backward compatibility:
22641 ac_top_builddir=$ac_top_build_prefix
22644 .) # We are building in place.
22646 ac_top_srcdir=$ac_top_builddir_sub
22647 ac_abs_top_srcdir=$ac_pwd ;;
22648 [\\/]* | ?:[\\/]* ) # Absolute name.
22649 ac_srcdir=$srcdir$ac_dir_suffix;
22650 ac_top_srcdir=$srcdir
22651 ac_abs_top_srcdir=$srcdir ;;
22652 *) # Relative name.
22653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22654 ac_top_srcdir=$ac_top_build_prefix$srcdir
22655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22662 # Check for guested configure; otherwise get Cygnus style configure.
22663 if test -f "$ac_srcdir/configure.gnu"; then
22664 ac_sub_configure=$ac_srcdir/configure.gnu
22665 elif test -f "$ac_srcdir/configure"; then
22666 ac_sub_configure=$ac_srcdir/configure
22667 elif test -f "$ac_srcdir/configure.in"; then
22668 # This should be Cygnus configure.
22669 ac_sub_configure=$ac_aux_dir/configure
22671 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22672 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22676 # The recursion is here.
22677 if test -n "$ac_sub_configure"; then
22678 # Make the cache file name correct relative to the subdirectory.
22679 case $cache_file in
22680 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22681 *) # Relative name.
22682 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22685 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22686 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22687 # The eval makes quoting arguments work.
22688 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22689 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22690 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22691 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22692 { (exit 1); exit 1; }; }