2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
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.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
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
689 ENABLE_EXPENSIVE_CHECKS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
765 NO_MISSING_FIELD_INITIALIZERS
766 COVERED_SWITCH_DEFAULT
787 ENABLE_VISIBILITY_INLINES_HIDDEN
793 ac_precious_vars='build_alias
804 ac_subdirs_all='projects/llvm-gcc
808 projects/llvm-poolalloc
811 projects/llvm-stacker
819 # Initialize some variables set by options.
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
831 program_transform_name=s,x,x,
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 -enable-* | --enable-*)
939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
960 -help | --help | --hel | --he | -h)
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1109 -site=* | --site=* | --sit=*)
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
1202 # Be sure to have absolute directory names.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-polly Use polly if available (default is YES)
1393 --enable-libcpp Use libc++ if available (default is NO)
1394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1398 --enable-expensive-checks
1399 Compile with expensive debug checks enabled (default
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
1405 --enable-jit Enable Just In Time Compiling (default is YES)
1406 --enable-docs Build documents (default is YES)
1407 --enable-doxygen Build doxygen documentation (default is NO)
1408 --enable-threads Use threads if available (default is YES)
1409 --enable-pthreads Use pthreads if available (default is YES)
1410 --enable-pic Build LLVM with Position Independent Code (default
1412 --enable-shared Build a shared library and link tools against it
1414 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1415 Win32 DLL (default is NO)
1416 --enable-timestamps Enable embedding timestamp information in build
1418 --enable-targets Build specific host targets: all or
1419 target1,target2,... Valid targets are: host, x86,
1420 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1421 xcore, msp430, ptx, cbe, and cpp (default=all)
1422 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1424 --enable-bindings Build specific language bindings:
1425 all,auto,none,{binding-name} (default=auto)
1426 --enable-libffi Check for the presence of libffi (default is NO)
1427 --enable-ltdl-install install libltdl
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-optimize-option Select the compiler options to use for optimized
1434 --with-extra-options Specify additional options to compile LLVM with
1435 --with-extra-ld-options Specify additional options to link LLVM with
1436 --with-ocaml-libdir Specify install location for ocaml bindings (default
1438 --with-clang-srcdir Directory to the out-of-tree Clang source
1439 --with-clang-resource-dir
1440 Relative directory from the Clang binary for
1442 --with-c-include-dirs Colon separated list of directories clang will
1444 --with-gcc-toolchain Directory where gcc is installed.
1445 --with-binutils-include Specify path to binutils/include/ containing
1446 plugin-api.h file for gold plugin.
1447 --with-bug-report-url Specify the URL where bug reports should be
1448 submitted (default=http://llvm.org/bugs/)
1449 --with-internal-prefix Installation directory for internal files
1450 --with-tclinclude directory where tcl headers are
1451 --with-udis86=<path> Use udis86 external x86 disassembler library
1452 --with-oprofile=<prefix>
1453 Tell OProfile >= 0.9.4 how to symbolize JIT output
1455 Some influential environment variables:
1456 CC C compiler command
1457 CFLAGS C compiler flags
1458 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1459 nonstandard directory <lib dir>
1460 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 CXX C++ compiler command
1463 CXXFLAGS C++ compiler flags
1466 Use these variables to override the choices made by `configure' or to help
1467 it to find libraries and programs with nonstandard names/locations.
1469 Report bugs to <http://llvm.org/bugs/>.
1474 if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477 test -d "$ac_dir" || continue
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1497 .) # We are building in place.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1519 $SHELL "$ac_srcdir/configure" --help=recursive
1521 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523 cd "$ac_pwd" || { ac_status=$?; break; }
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1530 LLVM configure 3.1svn
1531 generated by GNU Autoconf 2.60
1533 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1534 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1538 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1542 cat >config.log <<_ACEOF
1543 This file contains any messages produced by compilers while
1544 running configure, to aid debugging if configure makes a mistake.
1546 It was created by LLVM $as_me 3.1svn, which was
1547 generated by GNU Autoconf 2.60. Invocation command line was
1559 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1560 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1561 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1562 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1563 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1565 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1566 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1568 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1569 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1570 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1571 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1572 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1573 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1574 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 test -z "$as_dir" && as_dir=.
1583 echo "PATH: $as_dir"
1599 # Keep a trace of the command line.
1600 # Strip out --no-create and --no-recursion so they do not pile up.
1601 # Strip out --silent because we don't want to record it for future runs.
1602 # Also quote any args containing shell meta-characters.
1603 # Make two passes to allow for proper duplicate-argument suppression.
1607 ac_must_keep_next=false
1613 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1615 | -silent | --silent | --silen | --sile | --sil)
1618 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1621 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1623 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1624 if test $ac_must_keep_next = true; then
1625 ac_must_keep_next=false # Got value, back to normal.
1628 *=* | --config-cache | -C | -disable-* | --disable-* \
1629 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1630 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1631 | -with-* | --with-* | -without-* | --without-* | --x)
1632 case "$ac_configure_args0 " in
1633 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1636 -* ) ac_must_keep_next=true ;;
1639 ac_configure_args="$ac_configure_args '$ac_arg'"
1644 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1645 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1647 # When interrupted or exit'd, cleanup temporary files, and complete
1648 # config.log. We remove comments because anyway the quotes in there
1649 # would cause problems or look ugly.
1650 # WARNING: Use '\'' to represent an apostrophe within the trap.
1651 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1652 trap 'exit_status=$?
1653 # Save into config.log some information that might help in debugging.
1658 ## ---------------- ##
1659 ## Cache variables. ##
1660 ## ---------------- ##
1663 # The following way of writing the cache mishandles newlines in values,
1665 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1666 eval ac_val=\$$ac_var
1670 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1671 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1674 _ | IFS | as_nl) ;; #(
1675 *) $as_unset $ac_var ;;
1680 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1681 *${as_nl}ac_space=\ *)
1683 "s/'\''/'\''\\\\'\'''\''/g;
1684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695 ## ----------------- ##
1696 ## Output variables. ##
1697 ## ----------------- ##
1700 for ac_var in $ac_subst_vars
1702 eval ac_val=\$$ac_var
1704 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706 echo "$ac_var='\''$ac_val'\''"
1710 if test -n "$ac_subst_files"; then
1712 ## ------------------- ##
1713 ## File substitutions. ##
1714 ## ------------------- ##
1717 for ac_var in $ac_subst_files
1719 eval ac_val=\$$ac_var
1721 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1723 echo "$ac_var='\''$ac_val'\''"
1728 if test -s confdefs.h; then
1738 test "$ac_signal" != 0 &&
1739 echo "$as_me: caught signal $ac_signal"
1740 echo "$as_me: exit $exit_status"
1742 rm -f core *.core core.conftest.* &&
1743 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1746 for ac_signal in 1 2 13 15; do
1747 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1751 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1752 rm -f -r conftest* confdefs.h
1754 # Predefined preprocessor variables.
1756 cat >>confdefs.h <<_ACEOF
1757 #define PACKAGE_NAME "$PACKAGE_NAME"
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_STRING "$PACKAGE_STRING"
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781 # Let the site file select an alternate cache file if it wants to.
1782 # Prefer explicitly selected file to automatically selected ones.
1783 if test -n "$CONFIG_SITE"; then
1784 set x "$CONFIG_SITE"
1785 elif test "x$prefix" != xNONE; then
1786 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1788 set x "$ac_default_prefix/share/config.site" \
1789 "$ac_default_prefix/etc/config.site"
1794 if test -r "$ac_site_file"; then
1795 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1796 echo "$as_me: loading site script $ac_site_file" >&6;}
1797 sed 's/^/| /' "$ac_site_file" >&5
1802 if test -r "$cache_file"; then
1803 # Some versions of bash will fail to source /dev/null (special
1804 # files actually), so we avoid doing that.
1805 if test -f "$cache_file"; then
1806 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1807 echo "$as_me: loading cache $cache_file" >&6;}
1809 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1810 *) . "./$cache_file";;
1814 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1815 echo "$as_me: creating cache $cache_file" >&6;}
1819 # Check that the precious variables saved in the cache have kept the same
1821 ac_cache_corrupted=false
1822 for ac_var in $ac_precious_vars; do
1823 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1824 eval ac_new_set=\$ac_env_${ac_var}_set
1825 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1826 eval ac_new_val=\$ac_env_${ac_var}_value
1827 case $ac_old_set,$ac_new_set in
1829 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1830 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1831 ac_cache_corrupted=: ;;
1833 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1835 ac_cache_corrupted=: ;;
1838 if test "x$ac_old_val" != "x$ac_new_val"; then
1839 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1840 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1841 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1842 echo "$as_me: former value: $ac_old_val" >&2;}
1843 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1844 echo "$as_me: current value: $ac_new_val" >&2;}
1845 ac_cache_corrupted=:
1848 # Pass precious variables to config.status.
1849 if test "$ac_new_set" = set; then
1851 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1852 *) ac_arg=$ac_var=$ac_new_val ;;
1854 case " $ac_configure_args " in
1855 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1856 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1860 if $ac_cache_corrupted; then
1861 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1862 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1863 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1864 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1865 { (exit 1); exit 1; }; }
1893 ac_cpp='$CPP $CPPFLAGS'
1894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900 cat >>confdefs.h <<\_ACEOF
1901 #define LLVM_VERSION_MAJOR 3
1905 cat >>confdefs.h <<\_ACEOF
1906 #define LLVM_VERSION_MINOR 1
1910 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1919 for ac_dir in autoconf "$srcdir"/autoconf; do
1920 if test -f "$ac_dir/install-sh"; then
1922 ac_install_sh="$ac_aux_dir/install-sh -c"
1924 elif test -f "$ac_dir/install.sh"; then
1926 ac_install_sh="$ac_aux_dir/install.sh -c"
1928 elif test -f "$ac_dir/shtool"; then
1930 ac_install_sh="$ac_aux_dir/shtool install -c"
1934 if test -z "$ac_aux_dir"; then
1935 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1936 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1937 { (exit 1); exit 1; }; }
1940 # These three variables are undocumented and unsupported,
1941 # and are intended to be withdrawn in a future Autoconf release.
1942 # They can cause serious problems if a builder's source tree is in a directory
1943 # whose full name contains unusual characters.
1944 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1945 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1946 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1950 if test ${srcdir} != "." ; then
1951 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1952 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1953 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1954 { (exit 1); exit 1; }; }
1959 ac_cpp='$CPP $CPPFLAGS'
1960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963 if test -n "$ac_tool_prefix"; then
1964 for ac_prog in clang llvm-gcc gcc
1966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1967 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1970 if test "${ac_cv_prog_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1983 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 if test -n "$CC"; then
1995 { echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6; }
1998 { echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6; }
2003 test -n "$CC" && break
2006 if test -z "$CC"; then
2008 for ac_prog in clang llvm-gcc gcc
2010 # Extract the first word of "$ac_prog", so it can be a program name with args.
2011 set dummy $ac_prog; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$ac_ct_CC"; then
2018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2027 ac_cv_prog_ac_ct_CC="$ac_prog"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2038 if test -n "$ac_ct_CC"; then
2039 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2040 echo "${ECHO_T}$ac_ct_CC" >&6; }
2042 { echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6; }
2047 test -n "$ac_ct_CC" && break
2050 if test "x$ac_ct_CC" = x; then
2053 case $cross_compiling:$ac_tool_warned in
2055 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2056 whose name does not start with the host triplet. If you think this
2057 configuration is useful to you, please write to autoconf@gnu.org." >&5
2058 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2059 whose name does not start with the host triplet. If you think this
2060 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2061 ac_tool_warned=yes ;;
2068 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2069 See \`config.log' for more details." >&5
2070 echo "$as_me: error: no acceptable C compiler found in \$PATH
2071 See \`config.log' for more details." >&2;}
2072 { (exit 1); exit 1; }; }
2074 # Provide some information about the compiler.
2075 echo "$as_me:$LINENO: checking for C compiler version" >&5
2076 ac_compiler=`set X $ac_compile; echo $2`
2077 { (ac_try="$ac_compiler --version >&5"
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2083 (eval "$ac_compiler --version >&5") 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087 { (ac_try="$ac_compiler -v >&5"
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2093 (eval "$ac_compiler -v >&5") 2>&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097 { (ac_try="$ac_compiler -V >&5"
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2103 (eval "$ac_compiler -V >&5") 2>&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }
2108 cat >conftest.$ac_ext <<_ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2123 ac_clean_files_save=$ac_clean_files
2124 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2125 # Try to create an executable without -o first, disregard a.out.
2126 # It will help us diagnose broken compilers, and finding out an intuition
2128 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2129 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2130 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2132 # List of possible output files, starting from the most likely.
2133 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2134 # only as a last resort. b.out is created by i960 compilers.
2135 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2137 # The IRIX 6 linker writes into existing files which may not be
2138 # executable, retaining their permissions. Remove them first so a
2139 # subsequent execution test works.
2141 for ac_file in $ac_files
2144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2145 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2150 if { (ac_try="$ac_link_default"
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2156 (eval "$ac_link_default") 2>&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; then
2160 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2161 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2162 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2163 # so that the user can short-circuit this test for compilers unknown to
2165 for ac_file in $ac_files
2167 test -f "$ac_file" || continue
2169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2172 # We found the default executable, but exeext='' is most
2176 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2178 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2180 # We set ac_cv_exeext here because the later test for it is not
2181 # safe: cross compilers may not add the suffix if given an `-o'
2182 # argument, so we may need to know it at that point already.
2183 # Even if this section looks crufty: it has the advantage of
2190 test "$ac_cv_exeext" = no && ac_cv_exeext=
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2196 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: C compiler cannot create executables
2199 See \`config.log' for more details." >&2;}
2200 { (exit 77); exit 77; }; }
2203 ac_exeext=$ac_cv_exeext
2204 { echo "$as_me:$LINENO: result: $ac_file" >&5
2205 echo "${ECHO_T}$ac_file" >&6; }
2207 # Check that the compiler produces executables we can run. If not, either
2208 # the compiler is broken, or we cross compile.
2209 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2210 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2211 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2212 # If not cross compiling, check that we can run a simple program.
2213 if test "$cross_compiling" != yes; then
2214 if { ac_try='./$ac_file'
2215 { (case "(($ac_try" in
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2220 (eval "$ac_try") 2>&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2226 if test "$cross_compiling" = maybe; then
2229 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&5
2232 echo "$as_me: error: cannot run C compiled programs.
2233 If you meant to cross compile, use \`--host'.
2234 See \`config.log' for more details." >&2;}
2235 { (exit 1); exit 1; }; }
2239 { echo "$as_me:$LINENO: result: yes" >&5
2240 echo "${ECHO_T}yes" >&6; }
2242 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2243 ac_clean_files=$ac_clean_files_save
2244 # Check that the compiler produces executables we can run. If not, either
2245 # the compiler is broken, or we cross compile.
2246 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2247 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2248 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2249 echo "${ECHO_T}$cross_compiling" >&6; }
2251 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2252 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2253 if { (ac_try="$ac_link"
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2259 (eval "$ac_link") 2>&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; then
2263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2264 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2265 # work properly (i.e., refer to `conftest.exe'), while it won't with
2267 for ac_file in conftest.exe conftest conftest.*; do
2268 test -f "$ac_file" || continue
2270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2280 See \`config.log' for more details." >&2;}
2281 { (exit 1); exit 1; }; }
2284 rm -f conftest$ac_cv_exeext
2285 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2286 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2288 rm -f conftest.$ac_ext
2289 EXEEXT=$ac_cv_exeext
2291 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2292 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2293 if test "${ac_cv_objext+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 cat >conftest.$ac_ext <<_ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2311 rm -f conftest.o conftest.obj
2312 if { (ac_try="$ac_compile"
2314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315 *) ac_try_echo=$ac_try;;
2317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2318 (eval "$ac_compile") 2>&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; then
2322 for ac_file in conftest.o conftest.obj conftest.*; do
2323 test -f "$ac_file" || continue;
2325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2326 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2337 See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
2341 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2343 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2344 echo "${ECHO_T}$ac_cv_objext" >&6; }
2345 OBJEXT=$ac_cv_objext
2347 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2348 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2349 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 cat >conftest.$ac_ext <<_ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h. */
2370 rm -f conftest.$ac_objext
2371 if { (ac_try="$ac_compile"
2373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2374 *) ac_try_echo=$ac_try;;
2376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2377 (eval "$ac_compile") 2>conftest.er1
2379 grep -v '^ *+' conftest.er1 >conftest.err
2381 cat conftest.err >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2385 { (case "(($ac_try" in
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390 (eval "$ac_try") 2>&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400 (eval "$ac_try") 2>&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2416 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2417 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2418 GCC=`test $ac_compiler_gnu = yes && echo yes`
2419 ac_test_CFLAGS=${CFLAGS+set}
2420 ac_save_CFLAGS=$CFLAGS
2421 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2422 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2423 if test "${ac_cv_prog_cc_g+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 ac_save_c_werror_flag=$ac_c_werror_flag
2427 ac_c_werror_flag=yes
2430 cat >conftest.$ac_ext <<_ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2445 rm -f conftest.$ac_objext
2446 if { (ac_try="$ac_compile"
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_compile") 2>conftest.er1
2454 grep -v '^ *+' conftest.er1 >conftest.err
2456 cat conftest.err >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } &&
2459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2460 { (case "(($ac_try" in
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_try") 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (case "(($ac_try" in
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_try") 2>&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2485 cat >conftest.$ac_ext <<_ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2500 rm -f conftest.$ac_objext
2501 if { (ac_try="$ac_compile"
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507 (eval "$ac_compile") 2>conftest.er1
2509 grep -v '^ *+' conftest.er1 >conftest.err
2511 cat conftest.err >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } &&
2514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2515 { (case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_try") 2>&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; } &&
2524 { ac_try='test -s conftest.$ac_objext'
2525 { (case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_try") 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2539 ac_c_werror_flag=$ac_save_c_werror_flag
2541 cat >conftest.$ac_ext <<_ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2556 rm -f conftest.$ac_objext
2557 if { (ac_try="$ac_compile"
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563 (eval "$ac_compile") 2>conftest.er1
2565 grep -v '^ *+' conftest.er1 >conftest.err
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2571 { (case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_try") 2>&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_try") 2>&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 ac_c_werror_flag=$ac_save_c_werror_flag
2607 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2608 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2609 if test "$ac_test_CFLAGS" = set; then
2610 CFLAGS=$ac_save_CFLAGS
2611 elif test $ac_cv_prog_cc_g = yes; then
2612 if test "$GCC" = yes; then
2618 if test "$GCC" = yes; then
2624 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2625 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2626 if test "${ac_cv_prog_cc_c89+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 ac_cv_prog_cc_c89=no
2631 cat >conftest.$ac_ext <<_ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2639 #include <sys/types.h>
2640 #include <sys/stat.h>
2641 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2642 struct buf { int x; };
2643 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2644 static char *e (p, i)
2650 static char *f (char * (*g) (char **, int), char **p, ...)
2655 s = g (p, va_arg (v,int));
2660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2661 function prototypes and stuff, but not '\xHH' hex character constants.
2662 These don't provoke an error unfortunately, instead are silently treated
2663 as 'x'. The following induces an error, until -std is added to get
2664 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2665 array size at least. It's necessary to write '\x00'==0 to get something
2666 that's true only with -std. */
2667 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2669 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2670 inside strings and character constants. */
2672 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2674 int test (int i, double x);
2675 struct s1 {int (*f) (int a);};
2676 struct s2 {int (*f) (double a);};
2677 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2683 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2688 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2689 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2691 CC="$ac_save_CC $ac_arg"
2692 rm -f conftest.$ac_objext
2693 if { (ac_try="$ac_compile"
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699 (eval "$ac_compile") 2>conftest.er1
2701 grep -v '^ *+' conftest.er1 >conftest.err
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
2706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2707 { (case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_try") 2>&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_try") 2>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2726 ac_cv_prog_cc_c89=$ac_arg
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2734 rm -f core conftest.err conftest.$ac_objext
2735 test "x$ac_cv_prog_cc_c89" != "xno" && break
2737 rm -f conftest.$ac_ext
2742 case "x$ac_cv_prog_cc_c89" in
2744 { echo "$as_me:$LINENO: result: none needed" >&5
2745 echo "${ECHO_T}none needed" >&6; } ;;
2747 { echo "$as_me:$LINENO: result: unsupported" >&5
2748 echo "${ECHO_T}unsupported" >&6; } ;;
2750 CC="$CC $ac_cv_prog_cc_c89"
2751 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2752 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763 ac_cpp='$CXXCPP $CPPFLAGS'
2764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2767 if test -z "$CXX"; then
2768 if test -n "$CCC"; then
2771 if test -n "$ac_tool_prefix"; then
2772 for ac_prog in clang++ llvm-g++ g++
2774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2778 if test "${ac_cv_prog_CXX+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 if test -n "$CXX"; then
2782 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2791 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 if test -n "$CXX"; then
2803 { echo "$as_me:$LINENO: result: $CXX" >&5
2804 echo "${ECHO_T}$CXX" >&6; }
2806 { echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6; }
2811 test -n "$CXX" && break
2814 if test -z "$CXX"; then
2816 for ac_prog in clang++ llvm-g++ g++
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2822 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 if test -n "$ac_ct_CXX"; then
2826 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_ac_ct_CXX="$ac_prog"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2846 if test -n "$ac_ct_CXX"; then
2847 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2848 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2850 { echo "$as_me:$LINENO: result: no" >&5
2851 echo "${ECHO_T}no" >&6; }
2855 test -n "$ac_ct_CXX" && break
2858 if test "x$ac_ct_CXX" = x; then
2861 case $cross_compiling:$ac_tool_warned in
2863 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2864 whose name does not start with the host triplet. If you think this
2865 configuration is useful to you, please write to autoconf@gnu.org." >&5
2866 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2867 whose name does not start with the host triplet. If you think this
2868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2869 ac_tool_warned=yes ;;
2877 # Provide some information about the compiler.
2878 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2879 ac_compiler=`set X $ac_compile; echo $2`
2880 { (ac_try="$ac_compiler --version >&5"
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_compiler --version >&5") 2>&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }
2890 { (ac_try="$ac_compiler -v >&5"
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_compiler -v >&5") 2>&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }
2900 { (ac_try="$ac_compiler -V >&5"
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compiler -V >&5") 2>&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }
2911 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2912 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2913 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2934 rm -f conftest.$ac_objext
2935 if { (ac_try="$ac_compile"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compile") 2>conftest.er1
2943 grep -v '^ *+' conftest.er1 >conftest.err
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2949 { (case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_try") 2>&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; } &&
2958 { ac_try='test -s conftest.$ac_objext'
2959 { (case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_try") 2>&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2980 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2981 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2982 GXX=`test $ac_compiler_gnu = yes && echo yes`
2983 ac_test_CXXFLAGS=${CXXFLAGS+set}
2984 ac_save_CXXFLAGS=$CXXFLAGS
2985 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2986 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_cxx_g+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2991 ac_cxx_werror_flag=yes
2994 cat >conftest.$ac_ext <<_ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3009 rm -f conftest.$ac_objext
3010 if { (ac_try="$ac_compile"
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_compile") 2>conftest.er1
3018 grep -v '^ *+' conftest.er1 >conftest.err
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } &&
3023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3024 { (case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_try") 2>&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; } &&
3033 { ac_try='test -s conftest.$ac_objext'
3034 { (case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_try") 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3043 ac_cv_prog_cxx_g=yes
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3049 cat >conftest.$ac_ext <<_ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
3073 grep -v '^ *+' conftest.er1 >conftest.err
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
3078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3079 { (case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_try") 2>&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; } &&
3088 { ac_try='test -s conftest.$ac_objext'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3105 cat >conftest.$ac_ext <<_ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h. */
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_compile") 2>conftest.er1
3129 grep -v '^ *+' conftest.er1 >conftest.err
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } &&
3134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_try") 2>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3154 ac_cv_prog_cxx_g=yes
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3171 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3172 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3173 if test "$ac_test_CXXFLAGS" = set; then
3174 CXXFLAGS=$ac_save_CXXFLAGS
3175 elif test $ac_cv_prog_cxx_g = yes; then
3176 if test "$GXX" = yes; then
3182 if test "$GXX" = yes; then
3189 ac_cpp='$CPP $CPPFLAGS'
3190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 ac_cpp='$CPP $CPPFLAGS'
3196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3200 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3201 # On Suns, sometimes $CPP names a directory.
3202 if test -n "$CPP" && test -d "$CPP"; then
3205 if test -z "$CPP"; then
3206 if test "${ac_cv_prog_CPP+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 # Double quotes because CPP needs to be expanded
3210 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3213 for ac_c_preproc_warn_flag in '' yes
3215 # Use a header file that comes with gcc, so configuring glibc
3216 # with a fresh cross-compiler works.
3217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3218 # <limits.h> exists even on freestanding compilers.
3219 # On the NeXT, cc -E runs the code through the compiler's parser,
3220 # not just through cpp. "Syntax error" is here to catch this case.
3221 cat >conftest.$ac_ext <<_ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3228 # include <limits.h>
3230 # include <assert.h>
3234 if { (ac_try="$ac_cpp conftest.$ac_ext"
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242 grep -v '^ *+' conftest.er1 >conftest.err
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3256 if test -z "$ac_cpp_err"; then
3259 echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3262 # Broken: fails on valid input.
3266 rm -f conftest.err conftest.$ac_ext
3268 # OK, works on sane cases. Now check whether nonexistent headers
3269 # can be detected and how.
3270 cat >conftest.$ac_ext <<_ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3276 #include <ac_nonexistent.h>
3278 if { (ac_try="$ac_cpp conftest.$ac_ext"
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286 grep -v '^ *+' conftest.er1 >conftest.err
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } >/dev/null; then
3291 if test -s conftest.err; then
3292 ac_cpp_err=$ac_c_preproc_warn_flag
3293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3300 if test -z "$ac_cpp_err"; then
3301 # Broken: success on invalid input.
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 # Passes both tests.
3312 rm -f conftest.err conftest.$ac_ext
3315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3316 rm -f conftest.err conftest.$ac_ext
3317 if $ac_preproc_ok; then
3329 { echo "$as_me:$LINENO: result: $CPP" >&5
3330 echo "${ECHO_T}$CPP" >&6; }
3332 for ac_c_preproc_warn_flag in '' yes
3334 # Use a header file that comes with gcc, so configuring glibc
3335 # with a fresh cross-compiler works.
3336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3337 # <limits.h> exists even on freestanding compilers.
3338 # On the NeXT, cc -E runs the code through the compiler's parser,
3339 # not just through cpp. "Syntax error" is here to catch this case.
3340 cat >conftest.$ac_ext <<_ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3347 # include <limits.h>
3349 # include <assert.h>
3353 if { (ac_try="$ac_cpp conftest.$ac_ext"
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
3368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3375 if test -z "$ac_cpp_err"; then
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 # Broken: fails on valid input.
3385 rm -f conftest.err conftest.$ac_ext
3387 # OK, works on sane cases. Now check whether nonexistent headers
3388 # can be detected and how.
3389 cat >conftest.$ac_ext <<_ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3395 #include <ac_nonexistent.h>
3397 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405 grep -v '^ *+' conftest.er1 >conftest.err
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null; then
3410 if test -s conftest.err; then
3411 ac_cpp_err=$ac_c_preproc_warn_flag
3412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3419 if test -z "$ac_cpp_err"; then
3420 # Broken: success on invalid input.
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 # Passes both tests.
3431 rm -f conftest.err conftest.$ac_ext
3434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3435 rm -f conftest.err conftest.$ac_ext
3436 if $ac_preproc_ok; then
3439 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3440 See \`config.log' for more details." >&5
3441 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3442 See \`config.log' for more details." >&2;}
3443 { (exit 1); exit 1; }; }
3447 ac_cpp='$CPP $CPPFLAGS'
3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455 if test -d ${srcdir}/projects/llvm-gcc ; then
3456 subdirs="$subdirs projects/llvm-gcc"
3460 if test -d ${srcdir}/projects/test-suite ; then
3461 subdirs="$subdirs projects/test-suite"
3465 if test -d ${srcdir}/projects/llvm-test ; then
3466 subdirs="$subdirs projects/llvm-test"
3470 if test -d ${srcdir}/projects/poolalloc ; then
3471 subdirs="$subdirs projects/poolalloc"
3475 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3476 subdirs="$subdirs projects/llvm-poolalloc"
3480 for i in `ls ${srcdir}/projects`
3482 if test -d ${srcdir}/projects/${i} ; then
3484 sample) subdirs="$subdirs projects/sample"
3486 privbracket) subdirs="$subdirs projects/privbracket"
3488 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3490 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3492 llvm-java) subdirs="$subdirs projects/llvm-java"
3494 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3496 safecode) subdirs="$subdirs projects/safecode"
3498 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3507 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3508 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3514 # Check whether --enable-polly was given.
3515 if test "${enable_polly+set}" = set; then
3516 enableval=$enable_polly;
3521 case "$enableval" in
3526 default) ENABLE_POLLY=1
3528 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3529 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3530 { (exit 1); exit 1; }; } ;;
3534 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3537 subdirs="$subdirs tools/polly"
3542 # Make sure we can run config.sub.
3543 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3544 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3545 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3546 { (exit 1); exit 1; }; }
3548 { echo "$as_me:$LINENO: checking build system type" >&5
3549 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3550 if test "${ac_cv_build+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 ac_build_alias=$build_alias
3554 test "x$ac_build_alias" = x &&
3555 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3556 test "x$ac_build_alias" = x &&
3557 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3558 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3559 { (exit 1); exit 1; }; }
3560 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3561 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3562 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3563 { (exit 1); exit 1; }; }
3566 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3567 echo "${ECHO_T}$ac_cv_build" >&6; }
3568 case $ac_cv_build in
3570 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3571 echo "$as_me: error: invalid value of canonical build" >&2;}
3572 { (exit 1); exit 1; }; };;
3575 ac_save_IFS=$IFS; IFS='-'
3581 # Remember, the first character of IFS is used to create $*,
3582 # except with old shells:
3585 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3588 { echo "$as_me:$LINENO: checking host system type" >&5
3589 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3590 if test "${ac_cv_host+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 if test "x$host_alias" = x; then
3594 ac_cv_host=$ac_cv_build
3596 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3597 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3598 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3599 { (exit 1); exit 1; }; }
3603 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3604 echo "${ECHO_T}$ac_cv_host" >&6; }
3607 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3608 echo "$as_me: error: invalid value of canonical host" >&2;}
3609 { (exit 1); exit 1; }; };;
3612 ac_save_IFS=$IFS; IFS='-'
3618 # Remember, the first character of IFS is used to create $*,
3619 # except with old shells:
3622 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3625 { echo "$as_me:$LINENO: checking target system type" >&5
3626 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3627 if test "${ac_cv_target+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 if test "x$target_alias" = x; then
3631 ac_cv_target=$ac_cv_host
3633 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3634 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3635 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3636 { (exit 1); exit 1; }; }
3640 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3641 echo "${ECHO_T}$ac_cv_target" >&6; }
3642 case $ac_cv_target in
3644 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3645 echo "$as_me: error: invalid value of canonical target" >&2;}
3646 { (exit 1); exit 1; }; };;
3648 target=$ac_cv_target
3649 ac_save_IFS=$IFS; IFS='-'
3655 # Remember, the first character of IFS is used to create $*,
3656 # except with old shells:
3659 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3662 # The aliases save the names the user supplied, while $host etc.
3663 # will get canonicalized.
3664 test -n "$target_alias" &&
3665 test "$program_prefix$program_suffix$program_transform_name" = \
3667 program_prefix=${target_alias}-
3669 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3670 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3671 if test "${llvm_cv_os_type+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 llvm_cv_link_all_option="-Wl,--whole-archive"
3677 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678 llvm_cv_os_type="AIX"
3679 llvm_cv_platform_type="Unix" ;;
3681 llvm_cv_link_all_option="-Wl,--whole-archive"
3682 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683 llvm_cv_os_type="IRIX"
3684 llvm_cv_platform_type="Unix" ;;
3686 llvm_cv_link_all_option="-Wl,--whole-archive"
3687 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688 llvm_cv_os_type="Cygwin"
3689 llvm_cv_platform_type="Unix" ;;
3691 llvm_cv_link_all_option="-Wl,-all_load"
3692 llvm_cv_no_link_all_option="-Wl,-noall_load"
3693 llvm_cv_os_type="Darwin"
3694 llvm_cv_platform_type="Unix" ;;
3696 llvm_cv_link_all_option="-Wl,-all_load"
3697 llvm_cv_no_link_all_option="-Wl,-noall_load"
3698 llvm_cv_os_type="Minix"
3699 llvm_cv_platform_type="Unix" ;;
3700 *-*-freebsd* | *-*-kfreebsd-gnu)
3701 llvm_cv_link_all_option="-Wl,--whole-archive"
3702 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703 llvm_cv_os_type="FreeBSD"
3704 llvm_cv_platform_type="Unix" ;;
3706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="OpenBSD"
3709 llvm_cv_platform_type="Unix" ;;
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="NetBSD"
3714 llvm_cv_platform_type="Unix" ;;
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="DragonFly"
3719 llvm_cv_platform_type="Unix" ;;
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="HP-UX"
3724 llvm_cv_platform_type="Unix" ;;
3726 llvm_cv_link_all_option="-Wl,--whole-archive"
3727 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728 llvm_cv_os_type="Interix"
3729 llvm_cv_platform_type="Unix" ;;
3731 llvm_cv_link_all_option="-Wl,--whole-archive"
3732 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3733 llvm_cv_os_type="Linux"
3734 llvm_cv_platform_type="Unix" ;;
3736 llvm_cv_link_all_option="-Wl,--whole-archive"
3737 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3738 llvm_cv_os_type="GNU"
3739 llvm_cv_platform_type="Unix" ;;
3741 llvm_cv_link_all_option="-Wl,-z,allextract"
3742 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3743 llvm_cv_os_type="SunOS"
3744 llvm_cv_platform_type="Unix" ;;
3746 llvm_cv_link_all_option="-Wl,-z,allextract"
3747 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3748 llvm_cv_os_type="AuroraUX"
3749 llvm_cv_platform_type="Unix" ;;
3751 llvm_cv_link_all_option="-Wl,--whole-archive"
3752 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753 llvm_cv_os_type="Win32"
3754 llvm_cv_platform_type="Win32" ;;
3756 llvm_cv_link_all_option="-Wl,--whole-archive"
3757 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758 llvm_cv_os_type="MingW"
3759 llvm_cv_platform_type="Win32" ;;
3761 llvm_cv_link_all_option="-Wl,--whole-archive"
3762 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763 llvm_cv_os_type="Haiku"
3764 llvm_cv_platform_type="Unix" ;;
3766 llvm_cv_link_all_option="-Wl,--whole-archive"
3767 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3768 llvm_cv_os_type="Freestanding"
3769 llvm_cv_platform_type="Unix" ;;
3771 llvm_cv_link_all_option="-Wl,--whole-archive"
3772 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3773 llvm_cv_os_type="Freestanding"
3774 llvm_cv_platform_type="Unix" ;;
3776 llvm_cv_link_all_option=""
3777 llvm_cv_no_link_all_option=""
3778 llvm_cv_os_type="Unknown"
3779 llvm_cv_platform_type="Unknown" ;;
3782 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3783 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3785 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3786 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3787 if test "${llvm_cv_target_os_type+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 llvm_cv_target_os_type="AIX" ;;
3794 llvm_cv_target_os_type="IRIX" ;;
3796 llvm_cv_target_os_type="Cygwin" ;;
3798 llvm_cv_target_os_type="Darwin" ;;
3800 llvm_cv_target_os_type="Minix" ;;
3802 llvm_cv_target_os_type="FreeBSD" ;;
3804 llvm_cv_target_os_type="OpenBSD" ;;
3806 llvm_cv_target_os_type="NetBSD" ;;
3808 llvm_cv_target_os_type="DragonFly" ;;
3810 llvm_cv_target_os_type="HP-UX" ;;
3812 llvm_cv_target_os_type="Interix" ;;
3814 llvm_cv_target_os_type="Linux" ;;
3816 llvm_cv_target_os_type="SunOS" ;;
3818 llvm_cv_target_os_type="AuroraUX" ;;
3820 llvm_cv_target_os_type="Win32" ;;
3822 llvm_cv_target_os_type="MingW" ;;
3824 llvm_cv_target_os_type="Haiku" ;;
3826 llvm_cv_target_os_type="RTEMS" ;;
3828 llvm_cv_target_os_type="NativeClient" ;;
3830 llvm_cv_target_os_type="Freestanding" ;;
3832 llvm_cv_target_os_type="Unknown" ;;
3835 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3836 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3838 if test "$llvm_cv_os_type" = "Unknown" ; then
3839 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3840 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3841 { (exit 1); exit 1; }; }
3846 HOST_OS=$llvm_cv_os_type
3848 TARGET_OS=$llvm_cv_target_os_type
3851 LINKALL=$llvm_cv_link_all_option
3853 NOLINKALL=$llvm_cv_no_link_all_option
3856 case $llvm_cv_platform_type in
3859 cat >>confdefs.h <<\_ACEOF
3860 #define LLVM_ON_UNIX 1
3870 cat >>confdefs.h <<\_ACEOF
3871 #define LLVM_ON_WIN32 1
3881 { echo "$as_me:$LINENO: checking target architecture" >&5
3882 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3883 if test "${llvm_cv_target_arch+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 i?86-*) llvm_cv_target_arch="x86" ;;
3888 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3889 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3890 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3891 arm*-*) llvm_cv_target_arch="ARM" ;;
3892 mips-*) llvm_cv_target_arch="Mips" ;;
3893 mipsel-*) llvm_cv_target_arch="Mips" ;;
3894 xcore-*) llvm_cv_target_arch="XCore" ;;
3895 msp430-*) llvm_cv_target_arch="MSP430" ;;
3896 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3897 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3898 ptx-*) llvm_cv_target_arch="PTX" ;;
3899 *) llvm_cv_target_arch="Unknown" ;;
3902 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3903 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3905 if test "$llvm_cv_target_arch" = "Unknown" ; then
3906 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3907 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3910 case "$llvm_cv_target_arch" in
3911 x86) LLVM_NATIVE_ARCH="X86" ;;
3912 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3913 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3916 ARCH=$llvm_cv_target_arch
3921 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3922 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3923 if test "${ac_cv_path_GREP+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 # Extract the first word of "grep ggrep" to use in msg output
3927 if test -z "$GREP"; then
3928 set dummy grep ggrep; ac_prog_name=$2
3929 if test "${ac_cv_path_GREP+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 ac_path_GREP_found=false
3933 # Loop through the user's path and test for each of PROGNAME-LIST
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3938 test -z "$as_dir" && as_dir=.
3939 for ac_prog in grep ggrep; do
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3942 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3943 # Check for GNU ac_path_GREP and select it if it is found.
3944 # Check for GNU $ac_path_GREP
3945 case `"$ac_path_GREP" --version 2>&1` in
3947 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3950 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3953 cat "conftest.in" "conftest.in" >"conftest.tmp"
3954 mv "conftest.tmp" "conftest.in"
3955 cp "conftest.in" "conftest.nl"
3956 echo 'GREP' >> "conftest.nl"
3957 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3959 ac_count=`expr $ac_count + 1`
3960 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3961 # Best one so far, save it but keep looking for a better one
3962 ac_cv_path_GREP="$ac_path_GREP"
3963 ac_path_GREP_max=$ac_count
3965 # 10*(2^10) chars as input seems more than enough
3966 test $ac_count -gt 10 && break
3968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3972 $ac_path_GREP_found && break 3
3982 GREP="$ac_cv_path_GREP"
3983 if test -z "$GREP"; then
3984 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3985 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3986 { (exit 1); exit 1; }; }
3990 ac_cv_path_GREP=$GREP
3995 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3996 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3997 GREP="$ac_cv_path_GREP"
4000 { echo "$as_me:$LINENO: checking for egrep" >&5
4001 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4002 if test "${ac_cv_path_EGREP+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4006 then ac_cv_path_EGREP="$GREP -E"
4008 # Extract the first word of "egrep" to use in msg output
4009 if test -z "$EGREP"; then
4010 set dummy egrep; ac_prog_name=$2
4011 if test "${ac_cv_path_EGREP+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 ac_path_EGREP_found=false
4015 # Loop through the user's path and test for each of PROGNAME-LIST
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4020 test -z "$as_dir" && as_dir=.
4021 for ac_prog in egrep; do
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4024 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4025 # Check for GNU ac_path_EGREP and select it if it is found.
4026 # Check for GNU $ac_path_EGREP
4027 case `"$ac_path_EGREP" --version 2>&1` in
4029 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4032 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4035 cat "conftest.in" "conftest.in" >"conftest.tmp"
4036 mv "conftest.tmp" "conftest.in"
4037 cp "conftest.in" "conftest.nl"
4038 echo 'EGREP' >> "conftest.nl"
4039 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4041 ac_count=`expr $ac_count + 1`
4042 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4043 # Best one so far, save it but keep looking for a better one
4044 ac_cv_path_EGREP="$ac_path_EGREP"
4045 ac_path_EGREP_max=$ac_count
4047 # 10*(2^10) chars as input seems more than enough
4048 test $ac_count -gt 10 && break
4050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4054 $ac_path_EGREP_found && break 3
4064 EGREP="$ac_cv_path_EGREP"
4065 if test -z "$EGREP"; then
4066 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4067 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4068 { (exit 1); exit 1; }; }
4072 ac_cv_path_EGREP=$EGREP
4078 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4079 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4080 EGREP="$ac_cv_path_EGREP"
4083 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4084 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4085 if test "${ac_cv_header_stdc+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 cat >conftest.$ac_ext <<_ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4107 rm -f conftest.$ac_objext
4108 if { (ac_try="$ac_compile"
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_compile") 2>conftest.er1
4116 grep -v '^ *+' conftest.er1 >conftest.err
4118 cat conftest.err >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4122 { (case "(($ac_try" in
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4127 (eval "$ac_try") 2>&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_try") 2>&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; }; then
4141 ac_cv_header_stdc=yes
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4146 ac_cv_header_stdc=no
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 if test $ac_cv_header_stdc = yes; then
4152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4153 cat >conftest.$ac_ext <<_ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4163 $EGREP "memchr" >/dev/null 2>&1; then
4166 ac_cv_header_stdc=no
4172 if test $ac_cv_header_stdc = yes; then
4173 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4174 cat >conftest.$ac_ext <<_ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184 $EGREP "free" >/dev/null 2>&1; then
4187 ac_cv_header_stdc=no
4193 if test $ac_cv_header_stdc = yes; then
4194 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4195 if test "$cross_compiling" = yes; then
4198 cat >conftest.$ac_ext <<_ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4206 #if ((' ' & 0x0FF) == 0x020)
4207 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4208 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4210 # define ISLOWER(c) \
4211 (('a' <= (c) && (c) <= 'i') \
4212 || ('j' <= (c) && (c) <= 'r') \
4213 || ('s' <= (c) && (c) <= 'z'))
4214 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4217 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4222 for (i = 0; i < 256; i++)
4223 if (XOR (islower (i), ISLOWER (i))
4224 || toupper (i) != TOUPPER (i))
4229 rm -f conftest$ac_exeext
4230 if { (ac_try="$ac_link"
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_link") 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4240 { (case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_try") 2>&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4251 echo "$as_me: program exited with status $ac_status" >&5
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4256 ac_cv_header_stdc=no
4258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4264 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4265 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4266 if test $ac_cv_header_stdc = yes; then
4268 cat >>confdefs.h <<\_ACEOF
4269 #define STDC_HEADERS 1
4274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4284 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4285 inttypes.h stdint.h unistd.h
4287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 cat >conftest.$ac_ext <<_ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 $ac_includes_default
4301 #include <$ac_header>
4303 rm -f conftest.$ac_objext
4304 if { (ac_try="$ac_compile"
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_compile") 2>conftest.er1
4312 grep -v '^ *+' conftest.er1 >conftest.err
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } &&
4317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4318 { (case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_try") 2>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; } &&
4327 { ac_try='test -s conftest.$ac_objext'
4328 { (case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_try") 2>&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 eval "$as_ac_Header=yes"
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 eval "$as_ac_Header=no"
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 ac_res=`eval echo '${'$as_ac_Header'}'`
4348 { echo "$as_me:$LINENO: result: $ac_res" >&5
4349 echo "${ECHO_T}$ac_res" >&6; }
4350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4351 cat >>confdefs.h <<_ACEOF
4352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4360 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4361 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4362 if test "${ac_cv_c_bigendian+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 # See if sys/param.h defines the BYTE_ORDER macro.
4366 cat >conftest.$ac_ext <<_ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 #include <sys/types.h>
4373 #include <sys/param.h>
4378 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4386 rm -f conftest.$ac_objext
4387 if { (ac_try="$ac_compile"
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_compile") 2>conftest.er1
4395 grep -v '^ *+' conftest.er1 >conftest.err
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4401 { (case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_try") 2>&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; } &&
4410 { ac_try='test -s conftest.$ac_objext'
4411 { (case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416 (eval "$ac_try") 2>&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 # It does; now see whether it defined to BIG_ENDIAN or not.
4421 cat >conftest.$ac_ext <<_ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 #include <sys/types.h>
4428 #include <sys/param.h>
4433 #if BYTE_ORDER != BIG_ENDIAN
4441 rm -f conftest.$ac_objext
4442 if { (ac_try="$ac_compile"
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_compile") 2>conftest.er1
4450 grep -v '^ *+' conftest.er1 >conftest.err
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4456 { (case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_try") 2>&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; } &&
4465 { ac_try='test -s conftest.$ac_objext'
4466 { (case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_try") 2>&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 ac_cv_c_bigendian=yes
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 ac_cv_c_bigendian=no
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4488 # It does not; compile a test program.
4489 if test "$cross_compiling" = yes; then
4490 # try to guess the endianness by grepping values into an object file
4491 ac_cv_c_bigendian=unknown
4492 cat >conftest.$ac_ext <<_ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4499 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4500 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4501 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4502 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4503 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4507 _ascii (); _ebcdic ();
4512 rm -f conftest.$ac_objext
4513 if { (ac_try="$ac_compile"
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_compile") 2>conftest.er1
4521 grep -v '^ *+' conftest.er1 >conftest.err
4523 cat conftest.err >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } &&
4526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4527 { (case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4532 (eval "$ac_try") 2>&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; } &&
4536 { ac_try='test -s conftest.$ac_objext'
4537 { (case "(($ac_try" in
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_try") 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4547 ac_cv_c_bigendian=yes
4549 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4550 if test "$ac_cv_c_bigendian" = unknown; then
4551 ac_cv_c_bigendian=no
4553 # finding both strings is unlikely to happen, but who knows?
4554 ac_cv_c_bigendian=unknown
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 cat >conftest.$ac_ext <<_ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 $ac_includes_default
4577 /* Are we little or big endian? From Harbison&Steele. */
4581 char c[sizeof (long int)];
4584 return u.c[sizeof (long int) - 1] == 1;
4590 rm -f conftest$ac_exeext
4591 if { (ac_try="$ac_link"
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_link") 2>&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4601 { (case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_try") 2>&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ac_cv_c_bigendian=no
4612 echo "$as_me: program exited with status $ac_status" >&5
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4617 ac_cv_c_bigendian=yes
4619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4628 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4629 case $ac_cv_c_bigendian in
4637 { { echo "$as_me:$LINENO: error: unknown endianness
4638 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4639 echo "$as_me: error: unknown endianness
4640 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4641 { (exit 1); exit 1; }; } ;;
4645 if test "$cross_compiling" = yes; then
4646 LLVM_CROSS_COMPILING=1
4649 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4650 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4651 if test "${ac_cv_build_exeext+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4655 ac_cv_build_exeext=.exe
4657 ac_build_prefix=${build_alias}-
4659 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4660 set dummy ${ac_build_prefix}gcc; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 if test -n "$BUILD_CC"; then
4667 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 BUILD_CC=$ac_cv_prog_BUILD_CC
4687 if test -n "$BUILD_CC"; then
4688 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4689 echo "${ECHO_T}$BUILD_CC" >&6; }
4691 { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4696 if test -z "$BUILD_CC"; then
4697 # Extract the first word of "gcc", so it can be a program name with args.
4698 set dummy gcc; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 if test -n "$BUILD_CC"; then
4705 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_BUILD_CC="gcc"
4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 BUILD_CC=$ac_cv_prog_BUILD_CC
4725 if test -n "$BUILD_CC"; then
4726 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4727 echo "${ECHO_T}$BUILD_CC" >&6; }
4729 { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4734 if test -z "$BUILD_CC"; then
4735 # Extract the first word of "cc", so it can be a program name with args.
4736 set dummy cc; ac_word=$2
4737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 if test -n "$BUILD_CC"; then
4743 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4754 ac_prog_rejected=yes
4757 ac_cv_prog_BUILD_CC="cc"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 if test $ac_prog_rejected = yes; then
4766 # We found a bogon in the path, so make sure we never use it.
4767 set dummy $ac_cv_prog_BUILD_CC
4769 if test $# != 0; then
4770 # We chose a different compiler from the bogus one.
4771 # However, it has the same basename, so the bogon will be chosen
4772 # first if we set BUILD_CC to just the basename; use the full file name.
4774 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4779 BUILD_CC=$ac_cv_prog_BUILD_CC
4780 if test -n "$BUILD_CC"; then
4781 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4782 echo "${ECHO_T}$BUILD_CC" >&6; }
4784 { echo "$as_me:$LINENO: result: no" >&5
4785 echo "${ECHO_T}no" >&6; }
4791 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4792 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4793 { (exit 1); exit 1; }; }
4794 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4796 echo 'int main () { return 0; }' > conftest.$ac_ext
4798 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4799 (eval $ac_build_link) 2>&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; then
4803 for file in conftest.*; do
4805 *.c | *.o | *.obj | *.dSYM) ;;
4806 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4810 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4811 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4812 { (exit 1); exit 1; }; }
4815 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4820 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4821 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4822 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4823 ac_build_exeext=$BUILD_EXEEXT
4825 ac_build_prefix=${build_alias}-
4826 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4827 set dummy ${ac_build_prefix}g++; ac_word=$2
4828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4830 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 if test -n "$BUILD_CXX"; then
4834 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4854 if test -n "$BUILD_CXX"; then
4855 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4856 echo "${ECHO_T}$BUILD_CXX" >&6; }
4858 { echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6; }
4863 if test -z "$BUILD_CXX"; then
4864 # Extract the first word of "g++", so it can be a program name with args.
4865 set dummy g++; ac_word=$2
4866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 if test -n "$BUILD_CXX"; then
4872 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_BUILD_CXX="g++"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4892 if test -n "$BUILD_CXX"; then
4893 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4894 echo "${ECHO_T}$BUILD_CXX" >&6; }
4896 { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4901 if test -z "$BUILD_CXX"; then
4902 # Extract the first word of "c++", so it can be a program name with args.
4903 set dummy c++; ac_word=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 if test -n "$BUILD_CXX"; then
4910 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4921 ac_prog_rejected=yes
4924 ac_cv_prog_BUILD_CXX="c++"
4925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 if test $ac_prog_rejected = yes; then
4933 # We found a bogon in the path, so make sure we never use it.
4934 set dummy $ac_cv_prog_BUILD_CXX
4936 if test $# != 0; then
4937 # We chose a different compiler from the bogus one.
4938 # However, it has the same basename, so the bogon will be chosen
4939 # first if we set BUILD_CXX to just the basename; use the full file name.
4941 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4946 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4947 if test -n "$BUILD_CXX"; then
4948 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4949 echo "${ECHO_T}$BUILD_CXX" >&6; }
4951 { echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6; }
4959 LLVM_CROSS_COMPILING=0
4963 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4974 # Check whether --enable-libcpp was given.
4975 if test "${enable_libcpp+set}" = set; then
4976 enableval=$enable_libcpp;
4981 case "$enableval" in
4982 yes) ENABLE_LIBCPP=1
4986 default) ENABLE_LIBCPP=0
4988 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4989 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4990 { (exit 1); exit 1; }; } ;;
4993 # Check whether --enable-optimized was given.
4994 if test "${enable_optimized+set}" = set; then
4995 enableval=$enable_optimized;
5000 if test ${enableval} = "no" ; then
5004 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5008 # Check whether --enable-profiling was given.
5009 if test "${enable_profiling+set}" = set; then
5010 enableval=$enable_profiling;
5015 if test ${enableval} = "no" ; then
5019 ENABLE_PROFILING=ENABLE_PROFILING=1
5023 # Check whether --enable-assertions was given.
5024 if test "${enable_assertions+set}" = set; then
5025 enableval=$enable_assertions;
5030 if test ${enableval} = "yes" ; then
5034 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5038 # Check whether --enable-expensive-checks was given.
5039 if test "${enable_expensive_checks+set}" = set; then
5040 enableval=$enable_expensive_checks;
5045 if test ${enableval} = "yes" ; then
5046 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5048 EXPENSIVE_CHECKS=yes
5051 ENABLE_EXPENSIVE_CHECKS=
5057 # Check whether --enable-debug-runtime was given.
5058 if test "${enable_debug_runtime+set}" = set; then
5059 enableval=$enable_debug_runtime;
5064 if test ${enableval} = "no" ; then
5068 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5072 # Check whether --enable-debug-symbols was given.
5073 if test "${enable_debug_symbols+set}" = set; then
5074 enableval=$enable_debug_symbols;
5079 if test ${enableval} = "no" ; then
5083 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5087 # Check whether --enable-jit was given.
5088 if test "${enable_jit+set}" = set; then
5089 enableval=$enable_jit;
5094 if test ${enableval} = "no"
5099 case "$llvm_cv_target_arch" in
5100 x86) TARGET_HAS_JIT=1
5102 Sparc) TARGET_HAS_JIT=0
5104 PowerPC) TARGET_HAS_JIT=1
5106 x86_64) TARGET_HAS_JIT=1
5108 ARM) TARGET_HAS_JIT=1
5110 Mips) TARGET_HAS_JIT=1
5112 XCore) TARGET_HAS_JIT=0
5114 MSP430) TARGET_HAS_JIT=0
5116 Hexagon) TARGET_HAS_JIT=0
5118 MBlaze) TARGET_HAS_JIT=0
5120 PTX) TARGET_HAS_JIT=0
5127 # Check whether --enable-docs was given.
5128 if test "${enable_docs+set}" = set; then
5129 enableval=$enable_docs;
5134 case "$enableval" in
5139 default) ENABLE_DOCS=1
5141 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5142 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5143 { (exit 1); exit 1; }; } ;;
5146 # Check whether --enable-doxygen was given.
5147 if test "${enable_doxygen+set}" = set; then
5148 enableval=$enable_doxygen;
5153 case "$enableval" in
5154 yes) ENABLE_DOXYGEN=1
5156 no) ENABLE_DOXYGEN=0
5158 default) ENABLE_DOXYGEN=0
5160 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5162 { (exit 1); exit 1; }; } ;;
5165 # Check whether --enable-threads was given.
5166 if test "${enable_threads+set}" = set; then
5167 enableval=$enable_threads;
5172 case "$enableval" in
5173 yes) LLVM_ENABLE_THREADS=1
5175 no) LLVM_ENABLE_THREADS=0
5177 default) LLVM_ENABLE_THREADS=1
5179 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5181 { (exit 1); exit 1; }; } ;;
5184 cat >>confdefs.h <<_ACEOF
5185 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5189 # Check whether --enable-pthreads was given.
5190 if test "${enable_pthreads+set}" = set; then
5191 enableval=$enable_pthreads;
5196 case "$enableval" in
5197 yes) ENABLE_PTHREADS=1
5199 no) ENABLE_PTHREADS=0
5201 default) ENABLE_PTHREADS=1
5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
5208 # Check whether --enable-pic was given.
5209 if test "${enable_pic+set}" = set; then
5210 enableval=$enable_pic;
5215 case "$enableval" in
5220 default) ENABLE_PIC=1
5222 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5227 cat >>confdefs.h <<_ACEOF
5228 #define ENABLE_PIC $ENABLE_PIC
5232 # Check whether --enable-shared was given.
5233 if test "${enable_shared+set}" = set; then
5234 enableval=$enable_shared;
5239 case "$enableval" in
5240 yes) ENABLE_SHARED=1
5244 default) ENABLE_SHARED=0
5246 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5248 { (exit 1); exit 1; }; } ;;
5251 # Check whether --enable-embed-stdcxx was given.
5252 if test "${enable_embed_stdcxx+set}" = set; then
5253 enableval=$enable_embed_stdcxx;
5258 case "$enableval" in
5259 yes) ENABLE_EMBED_STDCXX=1
5261 no) ENABLE_EMBED_STDCXX=0
5263 default) ENABLE_EMBED_STDCXX=0
5265 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5266 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5267 { (exit 1); exit 1; }; } ;;
5270 # Check whether --enable-timestamps was given.
5271 if test "${enable_timestamps+set}" = set; then
5272 enableval=$enable_timestamps;
5277 case "$enableval" in
5278 yes) ENABLE_TIMESTAMPS=1
5280 no) ENABLE_TIMESTAMPS=0
5282 default) ENABLE_TIMESTAMPS=1
5284 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5286 { (exit 1); exit 1; }; } ;;
5289 cat >>confdefs.h <<_ACEOF
5290 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5295 # Check whether --enable-targets was given.
5296 if test "${enable_targets+set}" = set; then
5297 enableval=$enable_targets;
5302 if test "$enableval" = host-only ; then
5305 case "$enableval" in
5306 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5307 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5309 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5312 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5313 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5315 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5317 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5318 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5319 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5320 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5321 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5322 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5323 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5324 host) case "$llvm_cv_target_arch" in
5325 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5326 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5328 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5329 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5330 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5331 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5332 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5333 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5334 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5335 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5336 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5337 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5338 echo "$as_me: error: Can not set target to build" >&2;}
5339 { (exit 1); exit 1; }; } ;;
5341 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5342 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5343 { (exit 1); exit 1; }; } ;;
5348 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5351 for a_target in $TARGETS_TO_BUILD; do
5352 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5354 cat >>confdefs.h <<_ACEOF
5355 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5358 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5359 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5360 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5361 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5362 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5363 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5366 cat >>confdefs.h <<_ACEOF
5367 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5371 cat >>confdefs.h <<_ACEOF
5372 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5376 cat >>confdefs.h <<_ACEOF
5377 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5381 cat >>confdefs.h <<_ACEOF
5382 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5385 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5387 cat >>confdefs.h <<_ACEOF
5388 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5395 LLVM_ENUM_TARGETS=""
5396 LLVM_ENUM_ASM_PRINTERS=""
5397 LLVM_ENUM_ASM_PARSERS=""
5398 LLVM_ENUM_DISASSEMBLERS=""
5399 for target_to_build in $TARGETS_TO_BUILD; do
5400 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5401 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5402 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5404 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5405 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5407 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5408 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5416 # Check whether --enable-cbe-printf-a was given.
5417 if test "${enable_cbe_printf_a+set}" = set; then
5418 enableval=$enable_cbe_printf_a;
5423 case "$enableval" in
5424 yes) ENABLE_CBE_PRINTF_A=1
5426 no) ENABLE_CBE_PRINTF_A=0
5428 default) ENABLE_CBE_PRINTF_A=1
5430 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5431 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5432 { (exit 1); exit 1; }; } ;;
5435 cat >>confdefs.h <<_ACEOF
5436 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5441 # Check whether --with-optimize-option was given.
5442 if test "${with_optimize_option+set}" = set; then
5443 withval=$with_optimize_option;
5448 { echo "$as_me:$LINENO: checking optimization flags" >&5
5449 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5452 case "$llvm_cv_os_type" in
5453 FreeBSD) optimize_option=-O2 ;;
5454 MingW) optimize_option=-O2 ;;
5455 *) optimize_option=-O3 ;;
5457 *) optimize_option="$withval" ;;
5459 OPTIMIZE_OPTION=$optimize_option
5461 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5462 echo "${ECHO_T}$optimize_option" >&6; }
5465 # Check whether --with-extra-options was given.
5466 if test "${with_extra_options+set}" = set; then
5467 withval=$with_extra_options;
5473 default) EXTRA_OPTIONS= ;;
5474 *) EXTRA_OPTIONS=$withval ;;
5476 EXTRA_OPTIONS=$EXTRA_OPTIONS
5480 # Check whether --with-extra-ld-options was given.
5481 if test "${with_extra_ld_options+set}" = set; then
5482 withval=$with_extra_ld_options;
5488 default) EXTRA_LD_OPTIONS= ;;
5489 *) EXTRA_LD_OPTIONS=$withval ;;
5491 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5494 # Check whether --enable-bindings was given.
5495 if test "${enable_bindings+set}" = set; then
5496 enableval=$enable_bindings;
5501 BINDINGS_TO_BUILD=""
5502 case "$enableval" in
5503 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5504 all ) BINDINGS_TO_BUILD="ocaml" ;;
5505 none | no) BINDINGS_TO_BUILD="" ;;
5506 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5507 case "$a_binding" in
5508 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5509 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5510 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5511 { (exit 1); exit 1; }; } ;;
5518 # Check whether --with-ocaml-libdir was given.
5519 if test "${with_ocaml_libdir+set}" = set; then
5520 withval=$with_ocaml_libdir;
5526 auto) with_ocaml_libdir="$withval" ;;
5527 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5528 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5529 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5530 { (exit 1); exit 1; }; } ;;
5534 # Check whether --with-clang-srcdir was given.
5535 if test "${with_clang_srcdir+set}" = set; then
5536 withval=$with_clang_srcdir;
5542 -) clang_src_root="" ;;
5543 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5544 *) clang_src_root="$ac_pwd/$withval" ;;
5546 CLANG_SRC_ROOT=$clang_src_root
5550 # Check whether --with-clang-resource-dir was given.
5551 if test "${with_clang_resource_dir+set}" = set; then
5552 withval=$with_clang_resource_dir;
5558 cat >>confdefs.h <<_ACEOF
5559 #define CLANG_RESOURCE_DIR "$withval"
5564 # Check whether --with-c-include-dirs was given.
5565 if test "${with_c_include_dirs+set}" = set; then
5566 withval=$with_c_include_dirs;
5572 cat >>confdefs.h <<_ACEOF
5573 #define C_INCLUDE_DIRS "$withval"
5577 # Clang normally uses the system c++ headers and libraries. With this option,
5578 # clang will use the ones provided by a gcc installation instead. This option should
5579 # be passed the same value that was used with --prefix when configuring gcc.
5581 # Check whether --with-gcc-toolchain was given.
5582 if test "${with_gcc_toolchain+set}" = set; then
5583 withval=$with_gcc_toolchain;
5589 cat >>confdefs.h <<_ACEOF
5590 #define GCC_INSTALL_PREFIX "$withval"
5595 # Check whether --with-binutils-include was given.
5596 if test "${with_binutils_include+set}" = set; then
5597 withval=$with_binutils_include;
5603 default) WITH_BINUTILS_INCDIR=default ;;
5604 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5605 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5606 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5607 { (exit 1); exit 1; }; } ;;
5609 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5610 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5612 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5613 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5614 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5615 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5616 { (exit 1); exit 1; }; };
5621 # Check whether --with-bug-report-url was given.
5622 if test "${with_bug_report_url+set}" = set; then
5623 withval=$with_bug_report_url;
5625 withval="http://llvm.org/bugs/"
5629 cat >>confdefs.h <<_ACEOF
5630 #define BUG_REPORT_URL "$withval"
5634 # Check whether --enable-libffi was given.
5635 if test "${enable_libffi+set}" = set; then
5636 enableval=$enable_libffi; case "$enableval" in
5637 yes) llvm_cv_enable_libffi="yes" ;;
5638 no) llvm_cv_enable_libffi="no" ;;
5639 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5640 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5641 { (exit 1); exit 1; }; } ;;
5644 llvm_cv_enable_libffi=no
5649 # Check whether --with-internal-prefix was given.
5650 if test "${with_internal_prefix+set}" = set; then
5651 withval=$with_internal_prefix;
5656 INTERNAL_PREFIX=$withval
5660 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5661 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5662 if test "${lt_cv_path_NM+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 if test -n "$NM"; then
5666 # Let the user override the test.
5669 lt_nm_to_check="${ac_tool_prefix}nm"
5670 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5671 lt_nm_to_check="$lt_nm_to_check nm"
5673 for lt_tmp_nm in $lt_nm_to_check; do
5674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5675 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5677 test -z "$ac_dir" && ac_dir=.
5678 tmp_nm="$ac_dir/$lt_tmp_nm"
5679 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5680 # Check to see if the nm accepts a BSD-compat flag.
5681 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5682 # nm: unknown option "B" ignored
5683 # Tru64's nm complains that /dev/null is an invalid object file
5684 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5685 */dev/null* | *'Invalid file or object type'*)
5686 lt_cv_path_NM="$tmp_nm -B"
5690 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5692 lt_cv_path_NM="$tmp_nm -p"
5696 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5697 continue # so that we can try to find one that supports BSD flags
5706 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5709 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5710 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5715 { echo "$as_me:$LINENO: checking for GNU make" >&5
5716 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5717 if test "${llvm_cv_gnu_make_command+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 llvm_cv_gnu_make_command=''
5721 for a in "$MAKE" make gmake gnumake ; do
5722 if test -z "$a" ; then continue ; fi ;
5723 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5725 llvm_cv_gnu_make_command=$a ;
5730 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5731 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5732 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5736 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5737 echo "${ECHO_T}\"Not found\"" >&6; };
5741 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5742 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5744 if test "$LN_S" = "ln -s"; then
5745 { echo "$as_me:$LINENO: result: yes" >&5
5746 echo "${ECHO_T}yes" >&6; }
5748 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5749 echo "${ECHO_T}no, using $LN_S" >&6; }
5752 # Extract the first word of "cmp", so it can be a program name with args.
5753 set dummy cmp; ac_word=$2
5754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756 if test "${ac_cv_path_CMP+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5771 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5784 if test -n "$CMP"; then
5785 { echo "$as_me:$LINENO: result: $CMP" >&5
5786 echo "${ECHO_T}$CMP" >&6; }
5788 { echo "$as_me:$LINENO: result: no" >&5
5789 echo "${ECHO_T}no" >&6; }
5793 # Extract the first word of "cp", so it can be a program name with args.
5794 set dummy cp; ac_word=$2
5795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5797 if test "${ac_cv_path_CP+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5825 if test -n "$CP"; then
5826 { echo "$as_me:$LINENO: result: $CP" >&5
5827 echo "${ECHO_T}$CP" >&6; }
5829 { echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6; }
5834 # Extract the first word of "date", so it can be a program name with args.
5835 set dummy date; ac_word=$2
5836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5838 if test "${ac_cv_path_DATE+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5853 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5865 DATE=$ac_cv_path_DATE
5866 if test -n "$DATE"; then
5867 { echo "$as_me:$LINENO: result: $DATE" >&5
5868 echo "${ECHO_T}$DATE" >&6; }
5870 { echo "$as_me:$LINENO: result: no" >&5
5871 echo "${ECHO_T}no" >&6; }
5875 # Extract the first word of "find", so it can be a program name with args.
5876 set dummy find; ac_word=$2
5877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5879 if test "${ac_cv_path_FIND+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5906 FIND=$ac_cv_path_FIND
5907 if test -n "$FIND"; then
5908 { echo "$as_me:$LINENO: result: $FIND" >&5
5909 echo "${ECHO_T}$FIND" >&6; }
5911 { echo "$as_me:$LINENO: result: no" >&5
5912 echo "${ECHO_T}no" >&6; }
5916 # Extract the first word of "grep", so it can be a program name with args.
5917 set dummy grep; ac_word=$2
5918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5920 if test "${ac_cv_path_GREP+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5947 GREP=$ac_cv_path_GREP
5948 if test -n "$GREP"; then
5949 { echo "$as_me:$LINENO: result: $GREP" >&5
5950 echo "${ECHO_T}$GREP" >&6; }
5952 { echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6; }
5957 # Extract the first word of "mkdir", so it can be a program name with args.
5958 set dummy mkdir; ac_word=$2
5959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5961 if test "${ac_cv_path_MKDIR+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5988 MKDIR=$ac_cv_path_MKDIR
5989 if test -n "$MKDIR"; then
5990 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5991 echo "${ECHO_T}$MKDIR" >&6; }
5993 { echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6; }
5998 # Extract the first word of "mv", so it can be a program name with args.
5999 set dummy mv; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_path_MV+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6030 if test -n "$MV"; then
6031 { echo "$as_me:$LINENO: result: $MV" >&5
6032 echo "${ECHO_T}$MV" >&6; }
6034 { echo "$as_me:$LINENO: result: no" >&5
6035 echo "${ECHO_T}no" >&6; }
6039 if test -n "$ac_tool_prefix"; then
6040 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6041 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_RANLIB+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 if test -n "$RANLIB"; then
6048 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6057 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 RANLIB=$ac_cv_prog_RANLIB
6068 if test -n "$RANLIB"; then
6069 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6070 echo "${ECHO_T}$RANLIB" >&6; }
6072 { echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6; }
6078 if test -z "$ac_cv_prog_RANLIB"; then
6079 ac_ct_RANLIB=$RANLIB
6080 # Extract the first word of "ranlib", so it can be a program name with args.
6081 set dummy ranlib; ac_word=$2
6082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 if test -n "$ac_ct_RANLIB"; then
6088 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6097 ac_cv_prog_ac_ct_RANLIB="ranlib"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6108 if test -n "$ac_ct_RANLIB"; then
6109 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6110 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6112 { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6116 if test "x$ac_ct_RANLIB" = x; then
6119 case $cross_compiling:$ac_tool_warned in
6121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6122 whose name does not start with the host triplet. If you think this
6123 configuration is useful to you, please write to autoconf@gnu.org." >&5
6124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6125 whose name does not start with the host triplet. If you think this
6126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6127 ac_tool_warned=yes ;;
6129 RANLIB=$ac_ct_RANLIB
6132 RANLIB="$ac_cv_prog_RANLIB"
6135 if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}ar; ac_word=$2
6138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6140 if test "${ac_cv_prog_AR+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 if test -n "$AR"; then
6144 ac_cv_prog_AR="$AR" # Let the user override the test.
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_prog_AR="${ac_tool_prefix}ar"
6154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 if test -n "$AR"; then
6165 { echo "$as_me:$LINENO: result: $AR" >&5
6166 echo "${ECHO_T}$AR" >&6; }
6168 { echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6; }
6174 if test -z "$ac_cv_prog_AR"; then
6176 # Extract the first word of "ar", so it can be a program name with args.
6177 set dummy ar; ac_word=$2
6178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 if test -n "$ac_ct_AR"; then
6184 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_ac_ct_AR="ar"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6204 if test -n "$ac_ct_AR"; then
6205 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6206 echo "${ECHO_T}$ac_ct_AR" >&6; }
6208 { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6212 if test "x$ac_ct_AR" = x; then
6215 case $cross_compiling:$ac_tool_warned in
6217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6218 whose name does not start with the host triplet. If you think this
6219 configuration is useful to you, please write to autoconf@gnu.org." >&5
6220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6221 whose name does not start with the host triplet. If you think this
6222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6223 ac_tool_warned=yes ;;
6231 # Extract the first word of "rm", so it can be a program name with args.
6232 set dummy rm; ac_word=$2
6233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235 if test "${ac_cv_path_RM+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6263 if test -n "$RM"; then
6264 { echo "$as_me:$LINENO: result: $RM" >&5
6265 echo "${ECHO_T}$RM" >&6; }
6267 { echo "$as_me:$LINENO: result: no" >&5
6268 echo "${ECHO_T}no" >&6; }
6272 # Extract the first word of "sed", so it can be a program name with args.
6273 set dummy sed; ac_word=$2
6274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276 if test "${ac_cv_path_SED+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6304 if test -n "$SED"; then
6305 { echo "$as_me:$LINENO: result: $SED" >&5
6306 echo "${ECHO_T}$SED" >&6; }
6308 { echo "$as_me:$LINENO: result: no" >&5
6309 echo "${ECHO_T}no" >&6; }
6313 # Extract the first word of "tar", so it can be a program name with args.
6314 set dummy tar; ac_word=$2
6315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6317 if test "${ac_cv_path_TAR+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6332 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6345 if test -n "$TAR"; then
6346 { echo "$as_me:$LINENO: result: $TAR" >&5
6347 echo "${ECHO_T}$TAR" >&6; }
6349 { echo "$as_me:$LINENO: result: no" >&5
6350 echo "${ECHO_T}no" >&6; }
6354 # Extract the first word of "pwd", so it can be a program name with args.
6355 set dummy pwd; ac_word=$2
6356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358 if test "${ac_cv_path_BINPWD+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6385 BINPWD=$ac_cv_path_BINPWD
6386 if test -n "$BINPWD"; then
6387 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6388 echo "${ECHO_T}$BINPWD" >&6; }
6390 { echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6; }
6396 # Extract the first word of "Graphviz", so it can be a program name with args.
6397 set dummy Graphviz; ac_word=$2
6398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6400 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6415 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6427 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6428 if test -n "$GRAPHVIZ"; then
6429 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6430 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6432 { echo "$as_me:$LINENO: result: no" >&5
6433 echo "${ECHO_T}no" >&6; }
6437 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6439 cat >>confdefs.h <<\_ACEOF
6440 #define HAVE_GRAPHVIZ 1
6443 if test "$llvm_cv_os_type" = "MingW" ; then
6444 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6447 cat >>confdefs.h <<_ACEOF
6448 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6452 # Extract the first word of "dot", so it can be a program name with args.
6453 set dummy dot; ac_word=$2
6454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6456 if test "${ac_cv_path_DOT+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6484 if test -n "$DOT"; then
6485 { echo "$as_me:$LINENO: result: $DOT" >&5
6486 echo "${ECHO_T}$DOT" >&6; }
6488 { echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6; }
6493 if test "$DOT" != "echo dot" ; then
6495 cat >>confdefs.h <<\_ACEOF
6499 if test "$llvm_cv_os_type" = "MingW" ; then
6500 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6503 cat >>confdefs.h <<_ACEOF
6504 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6508 # Extract the first word of "fdp", so it can be a program name with args.
6509 set dummy fdp; ac_word=$2
6510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6512 if test "${ac_cv_path_FDP+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6527 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6540 if test -n "$FDP"; then
6541 { echo "$as_me:$LINENO: result: $FDP" >&5
6542 echo "${ECHO_T}$FDP" >&6; }
6544 { echo "$as_me:$LINENO: result: no" >&5
6545 echo "${ECHO_T}no" >&6; }
6549 if test "$FDP" != "echo fdp" ; then
6551 cat >>confdefs.h <<\_ACEOF
6555 if test "$llvm_cv_os_type" = "MingW" ; then
6556 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6559 cat >>confdefs.h <<_ACEOF
6560 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6564 # Extract the first word of "neato", so it can be a program name with args.
6565 set dummy neato; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_path_NEATO+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 test -z "$as_dir" && as_dir=.
6581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6583 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6595 NEATO=$ac_cv_path_NEATO
6596 if test -n "$NEATO"; then
6597 { echo "$as_me:$LINENO: result: $NEATO" >&5
6598 echo "${ECHO_T}$NEATO" >&6; }
6600 { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6605 if test "$NEATO" != "echo neato" ; then
6607 cat >>confdefs.h <<\_ACEOF
6608 #define HAVE_NEATO 1
6611 if test "$llvm_cv_os_type" = "MingW" ; then
6612 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6615 cat >>confdefs.h <<_ACEOF
6616 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6620 # Extract the first word of "twopi", so it can be a program name with args.
6621 set dummy twopi; ac_word=$2
6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624 if test "${ac_cv_path_TWOPI+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6651 TWOPI=$ac_cv_path_TWOPI
6652 if test -n "$TWOPI"; then
6653 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6654 echo "${ECHO_T}$TWOPI" >&6; }
6656 { echo "$as_me:$LINENO: result: no" >&5
6657 echo "${ECHO_T}no" >&6; }
6661 if test "$TWOPI" != "echo twopi" ; then
6663 cat >>confdefs.h <<\_ACEOF
6664 #define HAVE_TWOPI 1
6667 if test "$llvm_cv_os_type" = "MingW" ; then
6668 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6671 cat >>confdefs.h <<_ACEOF
6672 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6676 # Extract the first word of "circo", so it can be a program name with args.
6677 set dummy circo; ac_word=$2
6678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680 if test "${ac_cv_path_CIRCO+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6695 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6707 CIRCO=$ac_cv_path_CIRCO
6708 if test -n "$CIRCO"; then
6709 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6710 echo "${ECHO_T}$CIRCO" >&6; }
6712 { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6717 if test "$CIRCO" != "echo circo" ; then
6719 cat >>confdefs.h <<\_ACEOF
6720 #define HAVE_CIRCO 1
6723 if test "$llvm_cv_os_type" = "MingW" ; then
6724 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6727 cat >>confdefs.h <<_ACEOF
6728 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6732 for ac_prog in gv gsview32
6734 # Extract the first word of "$ac_prog", so it can be a program name with args.
6735 set dummy $ac_prog; ac_word=$2
6736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738 if test "${ac_cv_path_GV+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 if test -n "$GV"; then
6766 { echo "$as_me:$LINENO: result: $GV" >&5
6767 echo "${ECHO_T}$GV" >&6; }
6769 { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6774 test -n "$GV" && break
6776 test -n "$GV" || GV="echo gv"
6778 if test "$GV" != "echo gv" ; then
6780 cat >>confdefs.h <<\_ACEOF
6784 if test "$llvm_cv_os_type" = "MingW" ; then
6785 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6788 cat >>confdefs.h <<_ACEOF
6789 #define LLVM_PATH_GV "$GV${EXEEXT}"
6793 # Extract the first word of "dotty", so it can be a program name with args.
6794 set dummy dotty; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_path_DOTTY+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6812 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6824 DOTTY=$ac_cv_path_DOTTY
6825 if test -n "$DOTTY"; then
6826 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6827 echo "${ECHO_T}$DOTTY" >&6; }
6829 { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6834 if test "$DOTTY" != "echo dotty" ; then
6836 cat >>confdefs.h <<\_ACEOF
6837 #define HAVE_DOTTY 1
6840 if test "$llvm_cv_os_type" = "MingW" ; then
6841 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6844 cat >>confdefs.h <<_ACEOF
6845 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6849 # Extract the first word of "xdot.py", so it can be a program name with args.
6850 set dummy xdot.py; ac_word=$2
6851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6880 XDOT_PY=$ac_cv_path_XDOT_PY
6881 if test -n "$XDOT_PY"; then
6882 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6883 echo "${ECHO_T}$XDOT_PY" >&6; }
6885 { echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6; }
6890 if test "$XDOT_PY" != "echo xdot.py" ; then
6892 cat >>confdefs.h <<\_ACEOF
6893 #define HAVE_XDOT_PY 1
6896 if test "$llvm_cv_os_type" = "MingW" ; then
6897 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6900 cat >>confdefs.h <<_ACEOF
6901 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6906 # Find a good install program. We prefer a C program (faster),
6907 # so one script is as good as another. But avoid the broken or
6908 # incompatible versions:
6909 # SysV /etc/install, /usr/sbin/install
6910 # SunOS /usr/etc/install
6911 # IRIX /sbin/install
6913 # AmigaOS /C/install, which installs bootblocks on floppy discs
6914 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6915 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6916 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6917 # OS/2's system install, which has a completely different semantic
6918 # ./install, which can be erroneously created by make from ./install.sh.
6919 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6920 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6921 if test -z "$INSTALL"; then
6922 if test "${ac_cv_path_install+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 test -z "$as_dir" && as_dir=.
6930 # Account for people who put trailing slashes in PATH elements.
6932 ./ | .// | /cC/* | \
6933 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6934 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6937 # OSF1 and SCO ODT 3.0 have their own names for install.
6938 # Don't use installbsd from OSF since it installs stuff as root
6940 for ac_prog in ginstall scoinst install; do
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6943 if test $ac_prog = install &&
6944 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6945 # AIX install. It has an incompatible calling convention.
6947 elif test $ac_prog = install &&
6948 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6949 # program-specific install script used by HP pwplus--don't use.
6952 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6965 if test "${ac_cv_path_install+set}" = set; then
6966 INSTALL=$ac_cv_path_install
6968 # As a last resort, use the slow shell script. Don't cache a
6969 # value for INSTALL within a source directory, because that will
6970 # break other packages using the cache if that directory is
6971 # removed, or if the value is a relative name.
6972 INSTALL=$ac_install_sh
6975 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6976 echo "${ECHO_T}$INSTALL" >&6; }
6978 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6979 # It thinks the first close brace ends the variable substitution.
6980 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6982 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6984 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6987 [\\/$]* | ?:[\\/]* ) ;;
6988 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6991 # Extract the first word of "bzip2", so it can be a program name with args.
6992 set dummy bzip2; ac_word=$2
6993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995 if test "${ac_cv_path_BZIP2+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7010 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 BZIP2=$ac_cv_path_BZIP2
7022 if test -n "$BZIP2"; then
7023 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7024 echo "${ECHO_T}$BZIP2" >&6; }
7026 { echo "$as_me:$LINENO: result: no" >&5
7027 echo "${ECHO_T}no" >&6; }
7031 # Extract the first word of "cat", so it can be a program name with args.
7032 set dummy cat; ac_word=$2
7033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035 if test "${ac_cv_path_CAT+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 if test -n "$CAT"; then
7063 { echo "$as_me:$LINENO: result: $CAT" >&5
7064 echo "${ECHO_T}$CAT" >&6; }
7066 { echo "$as_me:$LINENO: result: no" >&5
7067 echo "${ECHO_T}no" >&6; }
7071 # Extract the first word of "doxygen", so it can be a program name with args.
7072 set dummy doxygen; ac_word=$2
7073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7075 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7090 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 DOXYGEN=$ac_cv_path_DOXYGEN
7102 if test -n "$DOXYGEN"; then
7103 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7104 echo "${ECHO_T}$DOXYGEN" >&6; }
7106 { echo "$as_me:$LINENO: result: no" >&5
7107 echo "${ECHO_T}no" >&6; }
7111 # Extract the first word of "groff", so it can be a program name with args.
7112 set dummy groff; ac_word=$2
7113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7115 if test "${ac_cv_path_GROFF+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7130 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 GROFF=$ac_cv_path_GROFF
7142 if test -n "$GROFF"; then
7143 { echo "$as_me:$LINENO: result: $GROFF" >&5
7144 echo "${ECHO_T}$GROFF" >&6; }
7146 { echo "$as_me:$LINENO: result: no" >&5
7147 echo "${ECHO_T}no" >&6; }
7151 # Extract the first word of "gzip", so it can be a program name with args.
7152 set dummy gzip; ac_word=$2
7153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7170 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 GZIPBIN=$ac_cv_path_GZIPBIN
7182 if test -n "$GZIPBIN"; then
7183 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7184 echo "${ECHO_T}$GZIPBIN" >&6; }
7186 { echo "$as_me:$LINENO: result: no" >&5
7187 echo "${ECHO_T}no" >&6; }
7191 # Extract the first word of "pod2html", so it can be a program name with args.
7192 set dummy pod2html; ac_word=$2
7193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7195 if test "${ac_cv_path_POD2HTML+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7210 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 POD2HTML=$ac_cv_path_POD2HTML
7222 if test -n "$POD2HTML"; then
7223 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7224 echo "${ECHO_T}$POD2HTML" >&6; }
7226 { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7231 # Extract the first word of "pod2man", so it can be a program name with args.
7232 set dummy pod2man; ac_word=$2
7233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235 if test "${ac_cv_path_POD2MAN+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 POD2MAN=$ac_cv_path_POD2MAN
7262 if test -n "$POD2MAN"; then
7263 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7264 echo "${ECHO_T}$POD2MAN" >&6; }
7266 { echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6; }
7271 # Extract the first word of "pdfroff", so it can be a program name with args.
7272 set dummy pdfroff; ac_word=$2
7273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275 if test "${ac_cv_path_PDFROFF+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 PDFROFF=$ac_cv_path_PDFROFF
7302 if test -n "$PDFROFF"; then
7303 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7304 echo "${ECHO_T}$PDFROFF" >&6; }
7306 { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7311 # Extract the first word of "runtest", so it can be a program name with args.
7312 set dummy runtest; ac_word=$2
7313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315 if test "${ac_cv_path_RUNTEST+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7330 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 RUNTEST=$ac_cv_path_RUNTEST
7342 if test -n "$RUNTEST"; then
7343 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7344 echo "${ECHO_T}$RUNTEST" >&6; }
7346 { echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6; }
7353 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7354 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7356 # Check whether --with-tclinclude was given.
7357 if test "${with_tclinclude+set}" = set; then
7358 withval=$with_tclinclude; with_tclinclude=${withval}
7363 if test "${ac_cv_path_tclsh+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 if test x"${with_tclinclude}" != x ; then
7368 if test -f ${with_tclinclude}/tclsh ; then
7369 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7370 elif test -f ${with_tclinclude}/src/tclsh ; then
7371 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7373 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7374 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7375 { (exit 1); exit 1; }; }
7381 if test x"${ac_cv_path_tclsh}" = x ; then
7382 { echo "$as_me:$LINENO: result: none" >&5
7383 echo "${ECHO_T}none" >&6; }
7384 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7386 # Extract the first word of "$ac_prog", so it can be a program name with args.
7387 set dummy $ac_prog; ac_word=$2
7388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7390 if test "${ac_cv_path_TCLSH+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7405 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 TCLSH=$ac_cv_path_TCLSH
7417 if test -n "$TCLSH"; then
7418 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7419 echo "${ECHO_T}$TCLSH" >&6; }
7421 { echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6; }
7426 test -n "$TCLSH" && break
7429 if test x"${TCLSH}" = x ; then
7430 ac_cv_path_tclsh='';
7432 ac_cv_path_tclsh="${TCLSH}";
7435 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7436 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7437 TCLSH="${ac_cv_path_tclsh}"
7441 # Extract the first word of "zip", so it can be a program name with args.
7442 set dummy zip; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_path_ZIP+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 if test -n "$ZIP"; then
7473 { echo "$as_me:$LINENO: result: $ZIP" >&5
7474 echo "${ECHO_T}$ZIP" >&6; }
7476 { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7481 for ac_prog in ocamlc
7483 # Extract the first word of "$ac_prog", so it can be a program name with args.
7484 set dummy $ac_prog; ac_word=$2
7485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7487 if test "${ac_cv_path_OCAMLC+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7502 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 OCAMLC=$ac_cv_path_OCAMLC
7514 if test -n "$OCAMLC"; then
7515 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7516 echo "${ECHO_T}$OCAMLC" >&6; }
7518 { echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6; }
7523 test -n "$OCAMLC" && break
7526 for ac_prog in ocamlopt
7528 # Extract the first word of "$ac_prog", so it can be a program name with args.
7529 set dummy $ac_prog; ac_word=$2
7530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7547 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 OCAMLOPT=$ac_cv_path_OCAMLOPT
7559 if test -n "$OCAMLOPT"; then
7560 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7561 echo "${ECHO_T}$OCAMLOPT" >&6; }
7563 { echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6; }
7568 test -n "$OCAMLOPT" && break
7571 for ac_prog in ocamldep
7573 # Extract the first word of "$ac_prog", so it can be a program name with args.
7574 set dummy $ac_prog; ac_word=$2
7575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7577 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 OCAMLDEP=$ac_cv_path_OCAMLDEP
7604 if test -n "$OCAMLDEP"; then
7605 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7606 echo "${ECHO_T}$OCAMLDEP" >&6; }
7608 { echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6; }
7613 test -n "$OCAMLDEP" && break
7616 for ac_prog in ocamldoc
7618 # Extract the first word of "$ac_prog", so it can be a program name with args.
7619 set dummy $ac_prog; ac_word=$2
7620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7622 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7637 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 OCAMLDOC=$ac_cv_path_OCAMLDOC
7649 if test -n "$OCAMLDOC"; then
7650 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7651 echo "${ECHO_T}$OCAMLDOC" >&6; }
7653 { echo "$as_me:$LINENO: result: no" >&5
7654 echo "${ECHO_T}no" >&6; }
7658 test -n "$OCAMLDOC" && break
7661 for ac_prog in gas as
7663 # Extract the first word of "$ac_prog", so it can be a program name with args.
7664 set dummy $ac_prog; ac_word=$2
7665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_GAS+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 if test -n "$GAS"; then
7695 { echo "$as_me:$LINENO: result: $GAS" >&5
7696 echo "${ECHO_T}$GAS" >&6; }
7698 { echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6; }
7703 test -n "$GAS" && break
7707 { echo "$as_me:$LINENO: checking for linker version" >&5
7708 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7709 if test "${llvm_cv_link_version+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 version_string="$(ld -v 2>&1 | head -1)"
7716 if (echo "$version_string" | grep -q "ld64"); then
7717 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7719 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7723 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7724 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7726 cat >>confdefs.h <<_ACEOF
7727 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7732 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7733 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7734 if test "${llvm_cv_link_use_r+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 ac_cpp='$CPP $CPPFLAGS'
7739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7744 CFLAGS="$CFLAGS -Wl,-R."
7745 cat >conftest.$ac_ext <<_ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7760 rm -f conftest.$ac_objext conftest$ac_exeext
7761 if { (ac_try="$ac_link"
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_link") 2>conftest.er1
7769 grep -v '^ *+' conftest.er1 >conftest.err
7771 cat conftest.err >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } &&
7774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7775 { (case "(($ac_try" in
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_try") 2>&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; } &&
7784 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7794 llvm_cv_link_use_r=yes
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7799 llvm_cv_link_use_r=no
7802 rm -f core conftest.err conftest.$ac_objext \
7803 conftest$ac_exeext conftest.$ac_ext
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7813 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7814 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7815 if test "$llvm_cv_link_use_r" = yes ; then
7817 cat >>confdefs.h <<\_ACEOF
7818 #define HAVE_LINK_R 1
7824 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7825 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7826 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 ac_cpp='$CPP $CPPFLAGS'
7831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7836 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7837 cat >conftest.$ac_ext <<_ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (ac_try="$ac_link"
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_link") 2>conftest.er1
7861 grep -v '^ *+' conftest.er1 >conftest.err
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } &&
7866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7867 { (case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_try") 2>&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; } &&
7876 { ac_try='test -s conftest$ac_exeext'
7877 { (case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_try") 2>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 llvm_cv_link_use_export_dynamic=yes
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 llvm_cv_link_use_export_dynamic=no
7894 rm -f core conftest.err conftest.$ac_objext \
7895 conftest$ac_exeext conftest.$ac_ext
7898 ac_cpp='$CPP $CPPFLAGS'
7899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7906 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7907 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7909 cat >>confdefs.h <<\_ACEOF
7910 #define HAVE_LINK_EXPORT_DYNAMIC 1
7916 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7917 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7918 if test "${llvm_cv_link_use_version_script+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 ac_cpp='$CPP $CPPFLAGS'
7923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7929 # The following code is from the autoconf manual,
7930 # "11.13: Limitations of Usual Tools".
7931 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7932 # Use mktemp if possible; otherwise fall back on mkdir,
7933 # with $RANDOM to make collisions less likely.
7937 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7939 test -n "$tmp" && test -d "$tmp"
7941 tmp=$TMPDIR/foo$$-$RANDOM
7942 (umask 077 && mkdir "$tmp")
7945 echo "{" > "$tmp/export.map"
7946 echo " global: main;" >> "$tmp/export.map"
7947 echo " local: *;" >> "$tmp/export.map"
7948 echo "};" >> "$tmp/export.map"
7950 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7951 cat >conftest.$ac_ext <<_ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7966 rm -f conftest.$ac_objext conftest$ac_exeext
7967 if { (ac_try="$ac_link"
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_link") 2>conftest.er1
7975 grep -v '^ *+' conftest.er1 >conftest.err
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
7980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7981 { (case "(($ac_try" in
7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983 *) ac_try_echo=$ac_try;;
7985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7986 (eval "$ac_try") 2>&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; } &&
7990 { ac_try='test -s conftest$ac_exeext'
7991 { (case "(($ac_try" in
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996 (eval "$ac_try") 2>&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; }; then
8000 llvm_cv_link_use_version_script=yes
8002 echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8005 llvm_cv_link_use_version_script=no
8008 rm -f core conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
8010 rm "$tmp/export.map"
8014 ac_cpp='$CPP $CPPFLAGS'
8015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8021 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8022 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8023 if test "$llvm_cv_link_use_version_script" = yes ; then
8024 HAVE_LINK_VERSION_SCRIPT=1
8031 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8032 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8033 if test "${ac_cv_c_const+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 cat >conftest.$ac_ext <<_ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8046 /* FIXME: Include the comments suggested by Paul. */
8048 /* Ultrix mips cc rejects this. */
8049 typedef int charset[2];
8051 /* SunOS 4.1.1 cc rejects this. */
8052 char const *const *ccp;
8054 /* NEC SVR4.0.2 mips cc rejects this. */
8055 struct point {int x, y;};
8056 static struct point const zero = {0,0};
8057 /* AIX XL C 1.02.0.0 rejects this.
8058 It does not let you subtract one const X* pointer from another in
8059 an arm of an if-expression whose if-part is not a constant
8061 const char *g = "string";
8062 ccp = &g + (g ? g-g : 0);
8063 /* HPUX 7.0 cc rejects these. */
8066 ccp = (char const *const *) p;
8067 { /* SCO 3.2v4 cc rejects this. */
8069 char const *s = 0 ? (char *) 0 : (char const *) 0;
8074 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8076 const int *foo = &x[0];
8079 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8080 typedef const int *iptr;
8084 { /* AIX XL C 1.02.0.0 rejects this saying
8085 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8086 struct s { int j; const int *ap[3]; };
8087 struct s *b; b->j = 5;
8089 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8093 return !x[0] && !zero.x;
8100 rm -f conftest.$ac_objext
8101 if { (ac_try="$ac_compile"
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_compile") 2>conftest.er1
8109 grep -v '^ *+' conftest.er1 >conftest.err
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8115 { (case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_try") 2>&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; } &&
8124 { ac_try='test -s conftest.$ac_objext'
8125 { (case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_try") 2>&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8145 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8146 if test $ac_cv_c_const = no; then
8148 cat >>confdefs.h <<\_ACEOF
8160 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8161 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8162 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8163 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 cat >conftest.$ac_ext <<_ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8173 #include <sys/types.h>
8185 rm -f conftest.$ac_objext
8186 if { (ac_try="$ac_compile"
8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189 *) ac_try_echo=$ac_try;;
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192 (eval "$ac_compile") 2>conftest.er1
8194 grep -v '^ *+' conftest.er1 >conftest.err
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8200 { (case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_try") 2>&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; } &&
8209 { ac_try='test -s conftest.$ac_objext'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; }; then
8219 eval "$as_ac_Header=yes"
8221 echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8224 eval "$as_ac_Header=no"
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8229 ac_res=`eval echo '${'$as_ac_Header'}'`
8230 { echo "$as_me:$LINENO: result: $ac_res" >&5
8231 echo "${ECHO_T}$ac_res" >&6; }
8232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8233 cat >>confdefs.h <<_ACEOF
8234 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8237 ac_header_dirent=$ac_hdr; break
8241 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8242 if test $ac_header_dirent = dirent.h; then
8243 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8244 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8245 if test "${ac_cv_search_opendir+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 ac_func_search_save_LIBS=$LIBS
8249 cat >conftest.$ac_ext <<_ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8256 /* Override any GCC internal prototype to avoid an error.
8257 Use char because int might match the return type of a GCC
8258 builtin and then its argument prototype would still apply. */
8271 for ac_lib in '' dir; do
8272 if test -z "$ac_lib"; then
8273 ac_res="none required"
8276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (ac_try="$ac_link"
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_link") 2>conftest.er1
8287 grep -v '^ *+' conftest.er1 >conftest.err
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8293 { (case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298 (eval "$ac_try") 2>&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; } &&
8302 { ac_try='test -s conftest$ac_exeext'
8303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; }; then
8312 ac_cv_search_opendir=$ac_res
8314 echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8320 rm -f core conftest.err conftest.$ac_objext \
8322 if test "${ac_cv_search_opendir+set}" = set; then
8326 if test "${ac_cv_search_opendir+set}" = set; then
8329 ac_cv_search_opendir=no
8332 LIBS=$ac_func_search_save_LIBS
8334 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8335 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8336 ac_res=$ac_cv_search_opendir
8337 if test "$ac_res" != no; then
8338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8343 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8344 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8345 if test "${ac_cv_search_opendir+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 ac_func_search_save_LIBS=$LIBS
8349 cat >conftest.$ac_ext <<_ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8356 /* Override any GCC internal prototype to avoid an error.
8357 Use char because int might match the return type of a GCC
8358 builtin and then its argument prototype would still apply. */
8371 for ac_lib in '' x; do
8372 if test -z "$ac_lib"; then
8373 ac_res="none required"
8376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8378 rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (ac_try="$ac_link"
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_link") 2>conftest.er1
8387 grep -v '^ *+' conftest.er1 >conftest.err
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8393 { (case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_try") 2>&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; } &&
8402 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8412 ac_cv_search_opendir=$ac_res
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8420 rm -f core conftest.err conftest.$ac_objext \
8422 if test "${ac_cv_search_opendir+set}" = set; then
8426 if test "${ac_cv_search_opendir+set}" = set; then
8429 ac_cv_search_opendir=no
8432 LIBS=$ac_func_search_save_LIBS
8434 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8435 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8436 ac_res=$ac_cv_search_opendir
8437 if test "$ac_res" != no; then
8438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8445 for ac_header in dlfcn.h
8447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 ac_res=`eval echo '${'$as_ac_Header'}'`
8455 { echo "$as_me:$LINENO: result: $ac_res" >&5
8456 echo "${ECHO_T}$ac_res" >&6; }
8458 # Is the header compilable?
8459 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8461 cat >conftest.$ac_ext <<_ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 $ac_includes_default
8468 #include <$ac_header>
8470 rm -f conftest.$ac_objext
8471 if { (ac_try="$ac_compile"
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_compile") 2>conftest.er1
8479 grep -v '^ *+' conftest.er1 >conftest.err
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
8484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8485 { (case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_try") 2>&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try='test -s conftest.$ac_objext'
8495 { (case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_try") 2>&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_header_compiler=yes
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_header_compiler=no
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8514 echo "${ECHO_T}$ac_header_compiler" >&6; }
8516 # Is the header present?
8517 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8519 cat >conftest.$ac_ext <<_ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8525 #include <$ac_header>
8527 if { (ac_try="$ac_cpp conftest.$ac_ext"
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8535 grep -v '^ *+' conftest.er1 >conftest.err
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } >/dev/null; then
8540 if test -s conftest.err; then
8541 ac_cpp_err=$ac_c_preproc_warn_flag
8542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8549 if test -z "$ac_cpp_err"; then
8550 ac_header_preproc=yes
8552 echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8555 ac_header_preproc=no
8558 rm -f conftest.err conftest.$ac_ext
8559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8560 echo "${ECHO_T}$ac_header_preproc" >&6; }
8562 # So? What about this header?
8563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8569 ac_header_preproc=yes
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8585 ## ------------------------------------ ##
8586 ## Report this to http://llvm.org/bugs/ ##
8587 ## ------------------------------------ ##
8589 ) | sed "s/^/$as_me: WARNING: /" >&2
8592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 eval "$as_ac_Header=\$ac_header_preproc"
8599 ac_res=`eval echo '${'$as_ac_Header'}'`
8600 { echo "$as_me:$LINENO: result: $ac_res" >&5
8601 echo "${ECHO_T}$ac_res" >&6; }
8604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8605 cat >>confdefs.h <<_ACEOF
8606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8613 # Check whether --enable-ltdl-install was given.
8614 if test "${enable_ltdl_install+set}" = set; then
8615 enableval=$enable_ltdl_install;
8621 if test x"${enable_ltdl_install-no}" != xno; then
8623 INSTALL_LTDL_FALSE='#'
8625 INSTALL_LTDL_TRUE='#'
8631 if test x"${enable_ltdl_convenience-no}" != xno; then
8632 CONVENIENCE_LTDL_TRUE=
8633 CONVENIENCE_LTDL_FALSE='#'
8635 CONVENIENCE_LTDL_TRUE='#'
8636 CONVENIENCE_LTDL_FALSE=
8640 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8641 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8643 libname_spec='lib$name'
8651 shlibpath_overrides_runpath=unknown
8653 dynamic_linker="$host_os ld.so"
8654 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8655 if test "$GCC" = yes; then
8656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8657 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8658 # if the path contains ";" then we assume it to be the separator
8659 # otherwise default to the standard path separator (i.e. ":") - it is
8660 # assumed that no part of a normal pathname contains ";" but that should
8661 # okay in the real world where ";" in dirpaths is itself problematic.
8662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8667 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8669 need_lib_prefix=unknown
8670 hardcode_into_libs=no
8672 # when you set need_version to no, make sure it does not cause -set_version
8673 # flags to be left without arguments
8674 need_version=unknown
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8680 shlibpath_var=LIBPATH
8682 # AIX 3 has no versioning support, so we append a major version to the name.
8683 soname_spec='${libname}${release}${shared_ext}$major'
8690 hardcode_into_libs=yes
8691 if test "$host_cpu" = ia64; then
8692 # AIX 5 supports IA64
8693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8694 shlibpath_var=LD_LIBRARY_PATH
8696 # With GCC up to 2.95.x, collect2 would create an import file
8697 # for dependence libraries. The import file would start with
8698 # the line `#! .'. This would cause the generated library to
8699 # depend on `.', always an invalid library. This was fixed in
8700 # development snapshots of GCC prior to 3.0.
8702 aix4 | aix4.[01] | aix4.[01].*)
8703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8705 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8713 # soname into executable. Probably we can add versioning support to
8714 # collect2, so additional links can be useful in future.
8715 if test "$aix_use_runtimelinking" = yes; then
8716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8717 # instead of lib<name>.a to let people know that these are not
8718 # typical AIX shared libraries.
8719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8721 # We preserve .a as extension for shared libraries through AIX4.2
8722 # and later when we are not doing run time linking.
8723 library_names_spec='${libname}${release}.a $libname.a'
8724 soname_spec='${libname}${release}${shared_ext}$major'
8726 shlibpath_var=LIBPATH
8731 library_names_spec='$libname.ixlibrary $libname.a'
8732 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8733 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'
8737 library_names_spec='${libname}${shared_ext}'
8738 dynamic_linker="$host_os ld.so"
8739 shlibpath_var=LIBRARY_PATH
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8748 shlibpath_var=LD_LIBRARY_PATH
8749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8751 # the default ld.so.conf also contains /usr/contrib/lib and
8752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8753 # libtool to hard-code these into programs
8756 cygwin* | mingw* | pw32*)
8757 version_type=windows
8762 case $GCC,$host_os in
8763 yes,cygwin* | yes,mingw* | yes,pw32*)
8764 library_names_spec='$libname.dll.a'
8765 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8766 postinstall_cmds='base_file=`basename \${file}`~
8767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8768 dldir=$destdir/`dirname \$dlpath`~
8769 test -d \$dldir || mkdir -p \$dldir~
8770 $install_prog $dir/$dlname \$dldir/$dlname~
8771 chmod a+x \$dldir/$dlname'
8772 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8773 dlpath=$dir/\$dldll~
8775 shlibpath_overrides_runpath=yes
8779 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8780 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8781 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8784 # MinGW DLLs use traditional 'lib' prefix
8785 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8786 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8787 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8788 # It is most probably a Windows format PATH printed by
8789 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8790 # path with ; separators, and with drive letters. We can handle the
8791 # drive letters (cygwin fileutils understands them), so leave them,
8792 # especially as we might pass files found there to a mingw objdump,
8793 # which wouldn't understand a cygwinified path. Ahh.
8794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8800 # pw32 DLLs use 'pw' prefix rather than 'lib'
8801 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8807 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8810 dynamic_linker='Win32 ld.exe'
8811 # FIXME: first we should search . and the directory the executable is in
8815 darwin* | rhapsody*)
8816 dynamic_linker="$host_os dyld"
8820 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8821 soname_spec='${libname}${release}${major}$shared_ext'
8822 shlibpath_overrides_runpath=yes
8823 shlibpath_var=DYLD_LIBRARY_PATH
8824 shrext_cmds='.dylib'
8825 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8826 if test "$GCC" = yes; then
8827 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"`
8829 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8831 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8839 soname_spec='${libname}${release}${shared_ext}$major'
8840 shlibpath_var=LD_LIBRARY_PATH
8851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8852 soname_spec='${libname}${release}${shared_ext}$major'
8853 shlibpath_var=LD_LIBRARY_PATH
8854 shlibpath_overrides_runpath=no
8855 hardcode_into_libs=yes
8856 dynamic_linker='GNU ld.so'
8859 freebsd* | dragonfly*)
8860 # DragonFly does not have aout. When/if they implement a new
8861 # versioning mechanism, adjust this.
8862 if test -x /usr/bin/objformat; then
8863 objformat=`/usr/bin/objformat`
8866 freebsd[123].*) objformat=aout ;;
8870 version_type=freebsd-$objformat
8871 case $version_type in
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8882 shlibpath_var=LD_LIBRARY_PATH
8885 shlibpath_overrides_runpath=yes
8887 freebsd3.[01]* | freebsdelf3.[01]*)
8888 shlibpath_overrides_runpath=yes
8889 hardcode_into_libs=yes
8891 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8892 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8893 shlibpath_overrides_runpath=no
8894 hardcode_into_libs=yes
8896 freebsd*) # from 4.6 on
8897 shlibpath_overrides_runpath=yes
8898 hardcode_into_libs=yes
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 shlibpath_var=LD_LIBRARY_PATH
8910 hardcode_into_libs=yes
8913 hpux9* | hpux10* | hpux11*)
8914 # Give a soname corresponding to the major version so that dld.sl refuses to
8915 # link against other versions.
8922 hardcode_into_libs=yes
8923 dynamic_linker="$host_os dld.so"
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 if test "X$HPUX_IA64_MODE" = X32; then
8929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8937 hardcode_into_libs=yes
8938 dynamic_linker="$host_os dld.sl"
8939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8948 dynamic_linker="$host_os dld.sl"
8949 shlibpath_var=SHLIB_PATH
8950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8955 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8956 postinstall_cmds='chmod 555 $lib'
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8964 soname_spec='${libname}${release}${shared_ext}$major'
8965 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8966 shlibpath_var=LD_LIBRARY_PATH
8967 shlibpath_overrides_runpath=no
8968 hardcode_into_libs=yes
8971 irix5* | irix6* | nonstopux*)
8973 nonstopux*) version_type=nonstopux ;;
8975 if test "$lt_cv_prog_gnu_ld" = yes; then
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8986 irix5* | nonstopux*)
8990 case $LD in # libtool.m4 will add one of these switches to LD
8991 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8992 libsuff= shlibsuff= libmagic=32-bit;;
8993 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8994 libsuff=32 shlibsuff=N32 libmagic=N32;;
8995 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8996 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8997 *) libsuff= shlibsuff= libmagic=never-match;;
9001 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9002 shlibpath_overrides_runpath=no
9003 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9004 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9005 hardcode_into_libs=yes
9008 # No shared lib support for Linux oldld, aout, or coff.
9009 linux*oldld* | linux*aout* | linux*coff*)
9013 # This must be Linux ELF.
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=no
9023 # This implies no fast_install, which is unacceptable.
9024 # Some rework will be needed to allow for fast_install
9025 # before this can be enabled.
9026 hardcode_into_libs=yes
9028 # Append ld.so.conf contents to the search path
9029 if test -f /etc/ld.so.conf; then
9030 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' ' '`
9031 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9034 # We used to test for /lib/ld.so.1 and disable shared libraries on
9035 # powerpc, because MkLinux only supported shared libraries with the
9036 # GNU dynamic linker. Since this was broken with cross compilers,
9037 # most powerpc-linux boxes support dynamic linking these days and
9038 # people can always --disable-shared, the test was removed, and we
9039 # assume the GNU/Linux dynamic linker is in use.
9040 dynamic_linker='GNU/Linux ld.so'
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 shlibpath_overrides_runpath=no
9051 hardcode_into_libs=yes
9052 dynamic_linker='GNU ld.so'
9059 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9062 dynamic_linker='NetBSD (a.out) ld.so'
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9065 soname_spec='${libname}${release}${shared_ext}$major'
9066 dynamic_linker='NetBSD ld.elf_so'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=yes
9070 hardcode_into_libs=yes
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=yes
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 shlibpath_overrides_runpath=yes
9092 sys_lib_dlsearch_path_spec="/usr/lib"
9094 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9096 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9097 *) need_version=no ;;
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9104 openbsd2.[89] | openbsd2.[89].*)
9105 shlibpath_overrides_runpath=no
9108 shlibpath_overrides_runpath=yes
9112 shlibpath_overrides_runpath=yes
9117 libname_spec='$name'
9120 library_names_spec='$libname${shared_ext} $libname.a'
9121 dynamic_linker='OS/2 ld.exe'
9122 shlibpath_var=LIBPATH
9125 osf3* | osf4* | osf5*)
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9133 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes
9144 hardcode_into_libs=yes
9145 # ldd complains unless libraries are executable
9146 postinstall_cmds='chmod +x $lib'
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 shlibpath_overrides_runpath=yes
9155 if test "$with_gnu_ld" = yes; then
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 shlibpath_var=LD_LIBRARY_PATH
9166 case $host_vendor in
9168 shlibpath_overrides_runpath=no
9170 export_dynamic_flag_spec='${wl}-Blargedynsym'
9171 runpath_var=LD_RUN_PATH
9179 shlibpath_overrides_runpath=no
9180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9186 if test -d /usr/nec ;then
9188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9189 soname_spec='$libname${shared_ext}.$major'
9190 shlibpath_var=LD_LIBRARY_PATH
9194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9195 version_type=freebsd-elf
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 hardcode_into_libs=yes
9202 if test "$with_gnu_ld" = yes; then
9203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9204 shlibpath_overrides_runpath=no
9206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9207 shlibpath_overrides_runpath=yes
9210 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9214 sys_lib_dlsearch_path_spec='/usr/lib'
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220 soname_spec='${libname}${release}${shared_ext}$major'
9221 shlibpath_var=LD_LIBRARY_PATH
9228 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9229 echo "${ECHO_T}$dynamic_linker" >&6; }
9230 test "$dynamic_linker" = no && can_build_shared=no
9232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9233 if test "$GCC" = yes; then
9234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9238 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9239 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9240 if test "${libltdl_cv_shlibext+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 eval libltdl_cv_shlibext=$shrext_cmds
9248 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9249 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9250 if test -n "$libltdl_cv_shlibext"; then
9252 cat >>confdefs.h <<_ACEOF
9253 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9259 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9260 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9261 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 libltdl_cv_shlibpath_var="$shlibpath_var"
9266 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9267 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9268 if test -n "$libltdl_cv_shlibpath_var"; then
9270 cat >>confdefs.h <<_ACEOF
9271 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9277 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9278 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9279 if test "${libltdl_cv_sys_search_path+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9284 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9285 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9286 if test -n "$libltdl_cv_sys_search_path"; then
9288 for dir in $libltdl_cv_sys_search_path; do
9289 if test -z "$sys_search_path"; then
9290 sys_search_path="$dir"
9292 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9296 cat >>confdefs.h <<_ACEOF
9297 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9302 { echo "$as_me:$LINENO: checking for objdir" >&5
9303 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9304 if test "${libltdl_cv_objdir+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 libltdl_cv_objdir="$objdir"
9308 if test -n "$objdir"; then
9311 rm -f .libs 2>/dev/null
9312 mkdir .libs 2>/dev/null
9313 if test -d .libs; then
9314 libltdl_cv_objdir=.libs
9316 # MS-DOS does not allow filenames that begin with a dot.
9317 libltdl_cv_objdir=_libs
9319 rmdir .libs 2>/dev/null
9323 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9324 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9326 cat >>confdefs.h <<_ACEOF
9327 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9335 # Check for command to grab the raw symbol name followed by C symbol from nm.
9336 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9337 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9338 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 # These are sane defaults that work on at least a few old systems.
9343 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9345 # Character class describing NM global symbol codes.
9346 symcode='[BCDEGRST]'
9348 # Regexp to match symbols that can be accessed directly from C.
9349 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9351 # Transform an extracted symbol line into a proper C declaration
9352 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9354 # Transform an extracted symbol line into symbol name and symbol address
9355 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'"
9357 # Define system-specific variables.
9362 cygwin* | mingw* | pw32*)
9363 symcode='[ABCDGISTW]'
9365 hpux*) # Its linker distinguishes data from code symbols
9366 if test "$host_cpu" = ia64; then
9367 symcode='[ABCDEGRST]'
9369 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9370 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'"
9373 if test "$host_cpu" = ia64; then
9374 symcode='[ABCDGIRSTW]'
9375 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9376 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'"
9380 symcode='[BCDEGRST]'
9383 symcode='[BCDEGQRST]'
9394 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9402 # Handle CRLF in mingw tool chain
9406 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9410 # If we're using GNU nm, then use its standard symbol codes.
9411 case `$NM -V 2>&1` in
9412 *GNU* | *'with BFD'*)
9413 symcode='[ABCDGIRSTW]' ;;
9416 # Try without a prefix undercore, then with it.
9417 for ac_symprfx in "" "_"; do
9419 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9420 symxfrm="\\1 $ac_symprfx\\2 \\2"
9422 # Write the raw and C identifiers.
9423 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9425 # Check to see that the pipe works correctly.
9429 cat > conftest.$ac_ext <<EOF
9434 void nm_test_func(){}
9438 int main(){nm_test_var='a';nm_test_func();return(0);}
9441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9442 (eval $ac_compile) 2>&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; then
9446 # Now try to grab the symbols.
9448 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9449 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } && test -s "$nlist"; then
9453 # Try sorting and uniquifying the output.
9454 if sort "$nlist" | uniq > "$nlist"T; then
9455 mv -f "$nlist"T "$nlist"
9460 # Make sure that we snagged all the symbols we need.
9461 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9462 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9463 cat <<EOF > conftest.$ac_ext
9469 # Now generate the symbol file.
9470 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9472 cat <<EOF >> conftest.$ac_ext
9473 #if defined (__STDC__) && __STDC__
9474 # define lt_ptr_t void *
9476 # define lt_ptr_t char *
9480 /* The mapping between symbol names and symbols. */
9485 lt_preloaded_symbols[] =
9488 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9489 cat <<\EOF >> conftest.$ac_ext
9497 # Now try linking the two files.
9498 mv conftest.$ac_objext conftstm.$ac_objext
9499 lt_save_LIBS="$LIBS"
9500 lt_save_CFLAGS="$CFLAGS"
9501 LIBS="conftstm.$ac_objext"
9502 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504 (eval $ac_link) 2>&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9510 LIBS="$lt_save_LIBS"
9511 CFLAGS="$lt_save_CFLAGS"
9513 echo "cannot find nm_test_func in $nlist" >&5
9516 echo "cannot find nm_test_var in $nlist" >&5
9519 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9522 echo "$progname: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9525 rm -f conftest* conftst*
9527 # Do not use the global_symbol_pipe unless it works.
9528 if test "$pipe_works" = yes; then
9531 lt_cv_sys_global_symbol_pipe=
9537 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9538 lt_cv_sys_global_symbol_to_cdecl=
9540 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9541 { echo "$as_me:$LINENO: result: failed" >&5
9542 echo "${ECHO_T}failed" >&6; }
9544 { echo "$as_me:$LINENO: result: ok" >&5
9545 echo "${ECHO_T}ok" >&6; }
9549 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9550 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9551 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9555 libltdl_cv_preloaded_symbols=yes
9557 libltdl_cv_preloaded_symbols=no
9561 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9562 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9563 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9565 cat >>confdefs.h <<\_ACEOF
9566 #define HAVE_PRELOADED_SYMBOLS 1
9574 ac_cpp='$CPP $CPPFLAGS'
9575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9580 { echo "$as_me:$LINENO: checking for shl_load" >&5
9581 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9582 if test "${ac_cv_func_shl_load+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 cat >conftest.$ac_ext <<_ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9591 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9593 #define shl_load innocuous_shl_load
9595 /* System header to define __stub macros and hopefully few prototypes,
9596 which can conflict with char shl_load (); below.
9597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9598 <limits.h> exists even on freestanding compilers. */
9601 # include <limits.h>
9603 # include <assert.h>
9608 /* Override any GCC internal prototype to avoid an error.
9609 Use char because int might match the return type of a GCC
9610 builtin and then its argument prototype would still apply. */
9615 /* The GNU C library defines this for functions which it implements
9616 to always fail with ENOSYS. Some functions are actually named
9617 something starting with __ and the normal name is an alias. */
9618 #if defined __stub_shl_load || defined __stub___shl_load
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (ac_try="$ac_link"
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_link") 2>conftest.er1
9639 grep -v '^ *+' conftest.er1 >conftest.err
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9645 { (case "(($ac_try" in
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_try") 2>&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; } &&
9654 { ac_try='test -s conftest$ac_exeext'
9655 { (case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_try") 2>&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9664 ac_cv_func_shl_load=yes
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 ac_cv_func_shl_load=no
9672 rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9675 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9676 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9677 if test $ac_cv_func_shl_load = yes; then
9679 cat >>confdefs.h <<\_ACEOF
9680 #define HAVE_SHL_LOAD 1
9684 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9685 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9686 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 ac_check_lib_save_LIBS=$LIBS
9691 cat >conftest.$ac_ext <<_ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9698 /* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (ac_try="$ac_link"
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_link") 2>conftest.er1
9722 grep -v '^ *+' conftest.er1 >conftest.err
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9728 { (case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_try") 2>&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest$ac_exeext'
9738 { (case "(($ac_try" in
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743 (eval "$ac_try") 2>&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_lib_dld_shl_load=yes
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 ac_cv_lib_dld_shl_load=no
9755 rm -f core conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757 LIBS=$ac_check_lib_save_LIBS
9759 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9760 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9761 if test $ac_cv_lib_dld_shl_load = yes; then
9763 cat >>confdefs.h <<\_ACEOF
9764 #define HAVE_SHL_LOAD 1
9767 LIBADD_DL="$LIBADD_DL -ldld"
9769 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9770 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9771 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 ac_check_lib_save_LIBS=$LIBS
9776 cat >conftest.$ac_ext <<_ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9783 /* Override any GCC internal prototype to avoid an error.
9784 Use char because int might match the return type of a GCC
9785 builtin and then its argument prototype would still apply. */
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (ac_try="$ac_link"
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_link") 2>conftest.er1
9807 grep -v '^ *+' conftest.er1 >conftest.err
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9813 { (case "(($ac_try" in
9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_try") 2>&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; } &&
9822 { ac_try='test -s conftest$ac_exeext'
9823 { (case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_try") 2>&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 ac_cv_lib_dl_dlopen=yes
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9837 ac_cv_lib_dl_dlopen=no
9840 rm -f core conftest.err conftest.$ac_objext \
9841 conftest$ac_exeext conftest.$ac_ext
9842 LIBS=$ac_check_lib_save_LIBS
9844 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9845 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9846 if test $ac_cv_lib_dl_dlopen = yes; then
9848 cat >>confdefs.h <<\_ACEOF
9849 #define HAVE_LIBDL 1
9852 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9854 cat >conftest.$ac_ext <<_ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9872 rm -f conftest.$ac_objext conftest$ac_exeext
9873 if { (ac_try="$ac_link"
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_link") 2>conftest.er1
9881 grep -v '^ *+' conftest.er1 >conftest.err
9883 cat conftest.err >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9896 { ac_try='test -s conftest$ac_exeext'
9897 { (case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_try") 2>&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9907 cat >>confdefs.h <<\_ACEOF
9908 #define HAVE_LIBDL 1
9910 libltdl_cv_func_dlopen="yes"
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9915 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9916 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9917 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 ac_check_lib_save_LIBS=$LIBS
9922 cat >conftest.$ac_ext <<_ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9929 /* Override any GCC internal prototype to avoid an error.
9930 Use char because int might match the return type of a GCC
9931 builtin and then its argument prototype would still apply. */
9944 rm -f conftest.$ac_objext conftest$ac_exeext
9945 if { (ac_try="$ac_link"
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_link") 2>conftest.er1
9953 grep -v '^ *+' conftest.er1 >conftest.err
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9959 { (case "(($ac_try" in
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_try") 2>&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; } &&
9968 { ac_try='test -s conftest$ac_exeext'
9969 { (case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_try") 2>&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_cv_lib_svld_dlopen=yes
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_cv_lib_svld_dlopen=no
9986 rm -f core conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9988 LIBS=$ac_check_lib_save_LIBS
9990 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9991 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9992 if test $ac_cv_lib_svld_dlopen = yes; then
9994 cat >>confdefs.h <<\_ACEOF
9995 #define HAVE_LIBDL 1
9998 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10000 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10001 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10002 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 ac_check_lib_save_LIBS=$LIBS
10007 cat >conftest.$ac_ext <<_ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10014 /* Override any GCC internal prototype to avoid an error.
10015 Use char because int might match the return type of a GCC
10016 builtin and then its argument prototype would still apply. */
10024 return dld_link ();
10029 rm -f conftest.$ac_objext conftest$ac_exeext
10030 if { (ac_try="$ac_link"
10031 case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_link") 2>conftest.er1
10038 grep -v '^ *+' conftest.er1 >conftest.err
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10044 { (case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_try") 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; } &&
10053 { ac_try='test -s conftest$ac_exeext'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_cv_lib_dld_dld_link=yes
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ac_cv_lib_dld_dld_link=no
10071 rm -f core conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10073 LIBS=$ac_check_lib_save_LIBS
10075 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10076 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10077 if test $ac_cv_lib_dld_dld_link = yes; then
10079 cat >>confdefs.h <<\_ACEOF
10083 LIBADD_DL="$LIBADD_DL -ldld"
10085 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10086 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10087 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 cat >conftest.$ac_ext <<_ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10096 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10098 #define _dyld_func_lookup innocuous__dyld_func_lookup
10100 /* System header to define __stub macros and hopefully few prototypes,
10101 which can conflict with char _dyld_func_lookup (); below.
10102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10103 <limits.h> exists even on freestanding compilers. */
10106 # include <limits.h>
10108 # include <assert.h>
10111 #undef _dyld_func_lookup
10113 /* Override any GCC internal prototype to avoid an error.
10114 Use char because int might match the return type of a GCC
10115 builtin and then its argument prototype would still apply. */
10119 char _dyld_func_lookup ();
10120 /* The GNU C library defines this for functions which it implements
10121 to always fail with ENOSYS. Some functions are actually named
10122 something starting with __ and the normal name is an alias. */
10123 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10130 return _dyld_func_lookup ();
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (ac_try="$ac_link"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_link") 2>conftest.er1
10144 grep -v '^ *+' conftest.er1 >conftest.err
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10150 { (case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_try") 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; } &&
10159 { ac_try='test -s conftest$ac_exeext'
10160 { (case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_try") 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_func__dyld_func_lookup=yes
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ac_cv_func__dyld_func_lookup=no
10177 rm -f core conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10180 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10181 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10182 if test $ac_cv_func__dyld_func_lookup = yes; then
10184 cat >>confdefs.h <<\_ACEOF
10185 #define HAVE_DYLD 1
10199 rm -f core conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
10211 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10213 lt_save_LIBS="$LIBS"
10214 LIBS="$LIBS $LIBADD_DL"
10216 for ac_func in dlerror
10218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 cat >conftest.$ac_ext <<_ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10232 #define $ac_func innocuous_$ac_func
10234 /* System header to define __stub macros and hopefully few prototypes,
10235 which can conflict with char $ac_func (); below.
10236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10237 <limits.h> exists even on freestanding compilers. */
10240 # include <limits.h>
10242 # include <assert.h>
10247 /* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10254 /* The GNU C library defines this for functions which it implements
10255 to always fail with ENOSYS. Some functions are actually named
10256 something starting with __ and the normal name is an alias. */
10257 #if defined __stub_$ac_func || defined __stub___$ac_func
10264 return $ac_func ();
10269 rm -f conftest.$ac_objext conftest$ac_exeext
10270 if { (ac_try="$ac_link"
10271 case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276 (eval "$ac_link") 2>conftest.er1
10278 grep -v '^ *+' conftest.er1 >conftest.err
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284 { (case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_try") 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try='test -s conftest$ac_exeext'
10294 { (case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_try") 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 eval "$as_ac_var=yes"
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10308 eval "$as_ac_var=no"
10311 rm -f core conftest.err conftest.$ac_objext \
10312 conftest$ac_exeext conftest.$ac_ext
10314 ac_res=`eval echo '${'$as_ac_var'}'`
10315 { echo "$as_me:$LINENO: result: $ac_res" >&5
10316 echo "${ECHO_T}$ac_res" >&6; }
10317 if test `eval echo '${'$as_ac_var'}'` = yes; then
10318 cat >>confdefs.h <<_ACEOF
10319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10325 LIBS="$lt_save_LIBS"
10328 ac_cpp='$CPP $CPPFLAGS'
10329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10335 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10336 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10337 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 ac_cv_sys_symbol_underscore=no
10341 cat > conftest.$ac_ext <<EOF
10342 void nm_test_func(){}
10343 int main(){nm_test_func;return 0;}
10345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10346 (eval $ac_compile) 2>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; then
10350 # Now try to grab the symbols.
10351 ac_nlist=conftest.nm
10352 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10353 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } && test -s "$ac_nlist"; then
10357 # See whether the symbols have a leading underscore.
10358 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10359 ac_cv_sys_symbol_underscore=yes
10361 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10364 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10368 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10371 echo "configure: failed program was:" >&5
10377 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10378 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10381 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10382 if test x"$libltdl_cv_func_dlopen" = xyes ||
10383 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10384 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10385 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10386 if test "${libltdl_cv_need_uscore+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 libltdl_cv_need_uscore=unknown
10391 LIBS="$LIBS $LIBADD_DL"
10392 if test "$cross_compiling" = yes; then :
10393 libltdl_cv_need_uscore=cross
10395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10396 lt_status=$lt_dlunknown
10397 cat > conftest.$ac_ext <<EOF
10398 #line 10398 "configure"
10399 #include "confdefs.h"
10408 # define LT_DLGLOBAL RTLD_GLOBAL
10411 # define LT_DLGLOBAL DL_GLOBAL
10413 # define LT_DLGLOBAL 0
10417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10418 find out it does not work in some platform. */
10419 #ifndef LT_DLLAZY_OR_NOW
10421 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10424 # define LT_DLLAZY_OR_NOW DL_LAZY
10427 # define LT_DLLAZY_OR_NOW RTLD_NOW
10430 # define LT_DLLAZY_OR_NOW DL_NOW
10432 # define LT_DLLAZY_OR_NOW 0
10440 extern "C" void exit (int);
10443 void fnord() { int i=42;}
10446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10447 int status = $lt_dlunknown;
10451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10452 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10453 /* dlclose (self); */
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10466 (./conftest; exit; ) >&5 2>/dev/null
10468 case x$lt_status in
10469 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10470 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10471 x$lt_dlunknown|x*) ;;
10474 # compilation failed
10483 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10484 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10488 if test x"$libltdl_cv_need_uscore" = xyes; then
10490 cat >>confdefs.h <<\_ACEOF
10491 #define NEED_USCORE 1
10497 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10498 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10499 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 # PORTME does your system automatically load deplibs for dlopen?
10503 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10504 # For now, we just catch OSes we know something about -- in the
10505 # future, we'll try test this programmatically.
10506 libltdl_cv_sys_dlopen_deplibs=unknown
10508 aix3*|aix4.1.*|aix4.2.*)
10509 # Unknown whether this is true for these versions of AIX, but
10510 # we want this `case' here to explicitly catch those versions.
10511 libltdl_cv_sys_dlopen_deplibs=unknown
10514 libltdl_cv_sys_dlopen_deplibs=yes
10517 # Assuming the user has installed a libdl from somewhere, this is true
10518 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10519 libltdl_cv_sys_dlopen_deplibs=yes
10521 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10522 # GNU and its variants, using gnu ld.so (Glibc)
10523 libltdl_cv_sys_dlopen_deplibs=yes
10526 libltdl_cv_sys_dlopen_deplibs=yes
10529 libltdl_cv_sys_dlopen_deplibs=yes
10531 irix[12345]*|irix6.[01]*)
10532 # Catch all versions of IRIX before 6.2, and indicate that we don't
10533 # know how it worked for any of those versions.
10534 libltdl_cv_sys_dlopen_deplibs=unknown
10537 # The case above catches anything before 6.2, and it's known that
10538 # at 6.2 and later dlopen does load deplibs.
10539 libltdl_cv_sys_dlopen_deplibs=yes
10542 libltdl_cv_sys_dlopen_deplibs=yes
10545 libltdl_cv_sys_dlopen_deplibs=yes
10548 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10549 # it did *not* use an RPATH in a shared library to find objects the
10550 # library depends on, so we explicitly say `no'.
10551 libltdl_cv_sys_dlopen_deplibs=no
10553 osf5.0|osf5.0a|osf5.1)
10554 # dlopen *does* load deplibs and with the right loader patch applied
10555 # it even uses RPATH in a shared library to search for shared objects
10556 # that the library depends on, but there's no easy way to know if that
10557 # patch is installed. Since this is the case, all we can really
10558 # say is unknown -- it depends on the patch being installed. If
10559 # it is, this changes to `yes'. Without it, it would be `no'.
10560 libltdl_cv_sys_dlopen_deplibs=unknown
10563 # the two cases above should catch all versions of osf <= 5.1. Read
10564 # the comments above for what we know about them.
10565 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10566 # is used to find them so we can finally say `yes'.
10567 libltdl_cv_sys_dlopen_deplibs=yes
10570 libltdl_cv_sys_dlopen_deplibs=yes
10572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10573 libltdl_cv_sys_dlopen_deplibs=yes
10578 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10579 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10580 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10582 cat >>confdefs.h <<\_ACEOF
10583 #define LTDL_DLOPEN_DEPLIBS 1
10589 for ac_header in argz.h
10591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 ac_res=`eval echo '${'$as_ac_Header'}'`
10599 { echo "$as_me:$LINENO: result: $ac_res" >&5
10600 echo "${ECHO_T}$ac_res" >&6; }
10602 # Is the header compilable?
10603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10605 cat >conftest.$ac_ext <<_ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 $ac_includes_default
10612 #include <$ac_header>
10614 rm -f conftest.$ac_objext
10615 if { (ac_try="$ac_compile"
10616 case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_compile") 2>conftest.er1
10623 grep -v '^ *+' conftest.er1 >conftest.err
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } &&
10628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10629 { (case "(($ac_try" in
10630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631 *) ac_try_echo=$ac_try;;
10633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634 (eval "$ac_try") 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; } &&
10638 { ac_try='test -s conftest.$ac_objext'
10639 { (case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_try") 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; }; then
10648 ac_header_compiler=yes
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10653 ac_header_compiler=no
10656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10658 echo "${ECHO_T}$ac_header_compiler" >&6; }
10660 # Is the header present?
10661 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 #include <$ac_header>
10671 if { (ac_try="$ac_cpp conftest.$ac_ext"
10672 case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10679 grep -v '^ *+' conftest.er1 >conftest.err
10681 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } >/dev/null; then
10684 if test -s conftest.err; then
10685 ac_cpp_err=$ac_c_preproc_warn_flag
10686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10693 if test -z "$ac_cpp_err"; then
10694 ac_header_preproc=yes
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10699 ac_header_preproc=no
10702 rm -f conftest.err conftest.$ac_ext
10703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10704 echo "${ECHO_T}$ac_header_preproc" >&6; }
10706 # So? What about this header?
10707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10713 ac_header_preproc=yes
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10729 ## ------------------------------------ ##
10730 ## Report this to http://llvm.org/bugs/ ##
10731 ## ------------------------------------ ##
10733 ) | sed "s/^/$as_me: WARNING: /" >&2
10736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 eval "$as_ac_Header=\$ac_header_preproc"
10743 ac_res=`eval echo '${'$as_ac_Header'}'`
10744 { echo "$as_me:$LINENO: result: $ac_res" >&5
10745 echo "${ECHO_T}$ac_res" >&6; }
10748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10749 cat >>confdefs.h <<_ACEOF
10750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10758 { echo "$as_me:$LINENO: checking for error_t" >&5
10759 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10760 if test "${ac_cv_type_error_t+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 cat >conftest.$ac_ext <<_ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10773 typedef error_t ac__type_new_;
10777 if ((ac__type_new_ *) 0)
10779 if (sizeof (ac__type_new_))
10785 rm -f conftest.$ac_objext
10786 if { (ac_try="$ac_compile"
10787 case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_compile") 2>conftest.er1
10794 grep -v '^ *+' conftest.er1 >conftest.err
10796 cat conftest.err >&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
10799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10800 { (case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_try") 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try='test -s conftest.$ac_objext'
10810 { (case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_try") 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 ac_cv_type_error_t=yes
10821 echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10824 ac_cv_type_error_t=no
10827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10829 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10830 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10831 if test $ac_cv_type_error_t = yes; then
10833 cat >>confdefs.h <<_ACEOF
10834 #define HAVE_ERROR_T 1
10840 cat >>confdefs.h <<\_ACEOF
10841 #define error_t int
10852 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10855 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 cat >conftest.$ac_ext <<_ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10868 #define $ac_func innocuous_$ac_func
10870 /* System header to define __stub macros and hopefully few prototypes,
10871 which can conflict with char $ac_func (); below.
10872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10873 <limits.h> exists even on freestanding compilers. */
10876 # include <limits.h>
10878 # include <assert.h>
10883 /* Override any GCC internal prototype to avoid an error.
10884 Use char because int might match the return type of a GCC
10885 builtin and then its argument prototype would still apply. */
10890 /* The GNU C library defines this for functions which it implements
10891 to always fail with ENOSYS. Some functions are actually named
10892 something starting with __ and the normal name is an alias. */
10893 #if defined __stub_$ac_func || defined __stub___$ac_func
10900 return $ac_func ();
10905 rm -f conftest.$ac_objext conftest$ac_exeext
10906 if { (ac_try="$ac_link"
10907 case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_link") 2>conftest.er1
10914 grep -v '^ *+' conftest.er1 >conftest.err
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } &&
10919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10920 { (case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_try") 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; } &&
10929 { ac_try='test -s conftest$ac_exeext'
10930 { (case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_try") 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939 eval "$as_ac_var=yes"
10941 echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10944 eval "$as_ac_var=no"
10947 rm -f core conftest.err conftest.$ac_objext \
10948 conftest$ac_exeext conftest.$ac_ext
10950 ac_res=`eval echo '${'$as_ac_var'}'`
10951 { echo "$as_me:$LINENO: result: $ac_res" >&5
10952 echo "${ECHO_T}$ac_res" >&6; }
10953 if test `eval echo '${'$as_ac_var'}'` = yes; then
10954 cat >>confdefs.h <<_ACEOF
10955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10988 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 ac_res=`eval echo '${'$as_ac_Header'}'`
10999 { echo "$as_me:$LINENO: result: $ac_res" >&5
11000 echo "${ECHO_T}$ac_res" >&6; }
11002 # Is the header compilable?
11003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11005 cat >conftest.$ac_ext <<_ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11011 $ac_includes_default
11012 #include <$ac_header>
11014 rm -f conftest.$ac_objext
11015 if { (ac_try="$ac_compile"
11016 case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_compile") 2>conftest.er1
11023 grep -v '^ *+' conftest.er1 >conftest.err
11025 cat conftest.err >&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } &&
11028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11029 { (case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_try") 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; } &&
11038 { ac_try='test -s conftest.$ac_objext'
11039 { (case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_try") 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_header_compiler=yes
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 ac_header_compiler=no
11056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11058 echo "${ECHO_T}$ac_header_compiler" >&6; }
11060 # Is the header present?
11061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11063 cat >conftest.$ac_ext <<_ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 #include <$ac_header>
11071 if { (ac_try="$ac_cpp conftest.$ac_ext"
11072 case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11079 grep -v '^ *+' conftest.er1 >conftest.err
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } >/dev/null; then
11084 if test -s conftest.err; then
11085 ac_cpp_err=$ac_c_preproc_warn_flag
11086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11093 if test -z "$ac_cpp_err"; then
11094 ac_header_preproc=yes
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11099 ac_header_preproc=no
11102 rm -f conftest.err conftest.$ac_ext
11103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11104 echo "${ECHO_T}$ac_header_preproc" >&6; }
11106 # So? What about this header?
11107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11113 ac_header_preproc=yes
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11129 ## ------------------------------------ ##
11130 ## Report this to http://llvm.org/bugs/ ##
11131 ## ------------------------------------ ##
11133 ) | sed "s/^/$as_me: WARNING: /" >&2
11136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 eval "$as_ac_Header=\$ac_header_preproc"
11143 ac_res=`eval echo '${'$as_ac_Header'}'`
11144 { echo "$as_me:$LINENO: result: $ac_res" >&5
11145 echo "${ECHO_T}$ac_res" >&6; }
11148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11149 cat >>confdefs.h <<_ACEOF
11150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11161 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11170 ac_res=`eval echo '${'$as_ac_Header'}'`
11171 { echo "$as_me:$LINENO: result: $ac_res" >&5
11172 echo "${ECHO_T}$ac_res" >&6; }
11174 # Is the header compilable?
11175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11177 cat >conftest.$ac_ext <<_ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h. */
11183 $ac_includes_default
11184 #include <$ac_header>
11186 rm -f conftest.$ac_objext
11187 if { (ac_try="$ac_compile"
11188 case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_compile") 2>conftest.er1
11195 grep -v '^ *+' conftest.er1 >conftest.err
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } &&
11200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11201 { (case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_try") 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; } &&
11210 { ac_try='test -s conftest.$ac_objext'
11211 { (case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_try") 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; }; then
11220 ac_header_compiler=yes
11222 echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11225 ac_header_compiler=no
11228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11230 echo "${ECHO_T}$ac_header_compiler" >&6; }
11232 # Is the header present?
11233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11235 cat >conftest.$ac_ext <<_ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11241 #include <$ac_header>
11243 if { (ac_try="$ac_cpp conftest.$ac_ext"
11244 case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11251 grep -v '^ *+' conftest.er1 >conftest.err
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } >/dev/null; then
11256 if test -s conftest.err; then
11257 ac_cpp_err=$ac_c_preproc_warn_flag
11258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11265 if test -z "$ac_cpp_err"; then
11266 ac_header_preproc=yes
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11271 ac_header_preproc=no
11274 rm -f conftest.err conftest.$ac_ext
11275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11276 echo "${ECHO_T}$ac_header_preproc" >&6; }
11278 # So? What about this header?
11279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11285 ac_header_preproc=yes
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11301 ## ------------------------------------ ##
11302 ## Report this to http://llvm.org/bugs/ ##
11303 ## ------------------------------------ ##
11305 ) | sed "s/^/$as_me: WARNING: /" >&2
11308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 eval "$as_ac_Header=\$ac_header_preproc"
11315 ac_res=`eval echo '${'$as_ac_Header'}'`
11316 { echo "$as_me:$LINENO: result: $ac_res" >&5
11317 echo "${ECHO_T}$ac_res" >&6; }
11320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11321 cat >>confdefs.h <<_ACEOF
11322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11331 for ac_header in string.h strings.h
11333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 ac_res=`eval echo '${'$as_ac_Header'}'`
11341 { echo "$as_me:$LINENO: result: $ac_res" >&5
11342 echo "${ECHO_T}$ac_res" >&6; }
11344 # Is the header compilable?
11345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11347 cat >conftest.$ac_ext <<_ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11353 $ac_includes_default
11354 #include <$ac_header>
11356 rm -f conftest.$ac_objext
11357 if { (ac_try="$ac_compile"
11358 case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_compile") 2>conftest.er1
11365 grep -v '^ *+' conftest.er1 >conftest.err
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11371 { (case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376 (eval "$ac_try") 2>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; } &&
11380 { ac_try='test -s conftest.$ac_objext'
11381 { (case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_try") 2>&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; }; then
11390 ac_header_compiler=yes
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11395 ac_header_compiler=no
11398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11400 echo "${ECHO_T}$ac_header_compiler" >&6; }
11402 # Is the header present?
11403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11405 cat >conftest.$ac_ext <<_ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11411 #include <$ac_header>
11413 if { (ac_try="$ac_cpp conftest.$ac_ext"
11414 case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11421 grep -v '^ *+' conftest.er1 >conftest.err
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } >/dev/null; then
11426 if test -s conftest.err; then
11427 ac_cpp_err=$ac_c_preproc_warn_flag
11428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11435 if test -z "$ac_cpp_err"; then
11436 ac_header_preproc=yes
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11441 ac_header_preproc=no
11444 rm -f conftest.err conftest.$ac_ext
11445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11446 echo "${ECHO_T}$ac_header_preproc" >&6; }
11448 # So? What about this header?
11449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11455 ac_header_preproc=yes
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11471 ## ------------------------------------ ##
11472 ## Report this to http://llvm.org/bugs/ ##
11473 ## ------------------------------------ ##
11475 ) | sed "s/^/$as_me: WARNING: /" >&2
11478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 eval "$as_ac_Header=\$ac_header_preproc"
11485 ac_res=`eval echo '${'$as_ac_Header'}'`
11486 { echo "$as_me:$LINENO: result: $ac_res" >&5
11487 echo "${ECHO_T}$ac_res" >&6; }
11490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11502 for ac_func in strchr index
11504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 cat >conftest.$ac_ext <<_ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11518 #define $ac_func innocuous_$ac_func
11520 /* System header to define __stub macros and hopefully few prototypes,
11521 which can conflict with char $ac_func (); below.
11522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11523 <limits.h> exists even on freestanding compilers. */
11526 # include <limits.h>
11528 # include <assert.h>
11533 /* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
11540 /* The GNU C library defines this for functions which it implements
11541 to always fail with ENOSYS. Some functions are actually named
11542 something starting with __ and the normal name is an alias. */
11543 #if defined __stub_$ac_func || defined __stub___$ac_func
11550 return $ac_func ();
11555 rm -f conftest.$ac_objext conftest$ac_exeext
11556 if { (ac_try="$ac_link"
11557 case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_link") 2>conftest.er1
11564 grep -v '^ *+' conftest.er1 >conftest.err
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } &&
11569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11570 { (case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_try") 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; } &&
11579 { ac_try='test -s conftest$ac_exeext'
11580 { (case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_try") 2>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; }; then
11589 eval "$as_ac_var=yes"
11591 echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11594 eval "$as_ac_var=no"
11597 rm -f core conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11600 ac_res=`eval echo '${'$as_ac_var'}'`
11601 { echo "$as_me:$LINENO: result: $ac_res" >&5
11602 echo "${ECHO_T}$ac_res" >&6; }
11603 if test `eval echo '${'$as_ac_var'}'` = yes; then
11604 cat >>confdefs.h <<_ACEOF
11605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11613 for ac_func in strrchr rindex
11615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 cat >conftest.$ac_ext <<_ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11629 #define $ac_func innocuous_$ac_func
11631 /* System header to define __stub macros and hopefully few prototypes,
11632 which can conflict with char $ac_func (); below.
11633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11634 <limits.h> exists even on freestanding compilers. */
11637 # include <limits.h>
11639 # include <assert.h>
11644 /* Override any GCC internal prototype to avoid an error.
11645 Use char because int might match the return type of a GCC
11646 builtin and then its argument prototype would still apply. */
11651 /* The GNU C library defines this for functions which it implements
11652 to always fail with ENOSYS. Some functions are actually named
11653 something starting with __ and the normal name is an alias. */
11654 #if defined __stub_$ac_func || defined __stub___$ac_func
11661 return $ac_func ();
11666 rm -f conftest.$ac_objext conftest$ac_exeext
11667 if { (ac_try="$ac_link"
11668 case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_link") 2>conftest.er1
11675 grep -v '^ *+' conftest.er1 >conftest.err
11677 cat conftest.err >&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } &&
11680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11681 { (case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_try") 2>&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; } &&
11690 { ac_try='test -s conftest$ac_exeext'
11691 { (case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_try") 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 eval "$as_ac_var=yes"
11702 echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11705 eval "$as_ac_var=no"
11708 rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11711 ac_res=`eval echo '${'$as_ac_var'}'`
11712 { echo "$as_me:$LINENO: result: $ac_res" >&5
11713 echo "${ECHO_T}$ac_res" >&6; }
11714 if test `eval echo '${'$as_ac_var'}'` = yes; then
11715 cat >>confdefs.h <<_ACEOF
11716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11724 for ac_func in memcpy bcopy
11726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 cat >conftest.$ac_ext <<_ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h. */
11738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11740 #define $ac_func innocuous_$ac_func
11742 /* System header to define __stub macros and hopefully few prototypes,
11743 which can conflict with char $ac_func (); below.
11744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11745 <limits.h> exists even on freestanding compilers. */
11748 # include <limits.h>
11750 # include <assert.h>
11755 /* Override any GCC internal prototype to avoid an error.
11756 Use char because int might match the return type of a GCC
11757 builtin and then its argument prototype would still apply. */
11762 /* The GNU C library defines this for functions which it implements
11763 to always fail with ENOSYS. Some functions are actually named
11764 something starting with __ and the normal name is an alias. */
11765 #if defined __stub_$ac_func || defined __stub___$ac_func
11772 return $ac_func ();
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (ac_try="$ac_link"
11779 case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_link") 2>conftest.er1
11786 grep -v '^ *+' conftest.er1 >conftest.err
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
11791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11792 { (case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_try") 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try='test -s conftest$ac_exeext'
11802 { (case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807 (eval "$ac_try") 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 eval "$as_ac_var=yes"
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11816 eval "$as_ac_var=no"
11819 rm -f core conftest.err conftest.$ac_objext \
11820 conftest$ac_exeext conftest.$ac_ext
11822 ac_res=`eval echo '${'$as_ac_var'}'`
11823 { echo "$as_me:$LINENO: result: $ac_res" >&5
11824 echo "${ECHO_T}$ac_res" >&6; }
11825 if test `eval echo '${'$as_ac_var'}'` = yes; then
11826 cat >>confdefs.h <<_ACEOF
11827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11835 for ac_func in memmove strcmp
11837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 cat >conftest.$ac_ext <<_ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11851 #define $ac_func innocuous_$ac_func
11853 /* System header to define __stub macros and hopefully few prototypes,
11854 which can conflict with char $ac_func (); below.
11855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11856 <limits.h> exists even on freestanding compilers. */
11859 # include <limits.h>
11861 # include <assert.h>
11866 /* Override any GCC internal prototype to avoid an error.
11867 Use char because int might match the return type of a GCC
11868 builtin and then its argument prototype would still apply. */
11873 /* The GNU C library defines this for functions which it implements
11874 to always fail with ENOSYS. Some functions are actually named
11875 something starting with __ and the normal name is an alias. */
11876 #if defined __stub_$ac_func || defined __stub___$ac_func
11883 return $ac_func ();
11888 rm -f conftest.$ac_objext conftest$ac_exeext
11889 if { (ac_try="$ac_link"
11890 case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_link") 2>conftest.er1
11897 grep -v '^ *+' conftest.er1 >conftest.err
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11903 { (case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_try") 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; } &&
11912 { ac_try='test -s conftest$ac_exeext'
11913 { (case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_try") 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 eval "$as_ac_var=yes"
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 eval "$as_ac_var=no"
11930 rm -f core conftest.err conftest.$ac_objext \
11931 conftest$ac_exeext conftest.$ac_ext
11933 ac_res=`eval echo '${'$as_ac_var'}'`
11934 { echo "$as_me:$LINENO: result: $ac_res" >&5
11935 echo "${ECHO_T}$ac_res" >&6; }
11936 if test `eval echo '${'$as_ac_var'}'` = yes; then
11937 cat >>confdefs.h <<_ACEOF
11938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11947 for ac_func in closedir opendir readdir
11949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 cat >conftest.$ac_ext <<_ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11963 #define $ac_func innocuous_$ac_func
11965 /* System header to define __stub macros and hopefully few prototypes,
11966 which can conflict with char $ac_func (); below.
11967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11968 <limits.h> exists even on freestanding compilers. */
11971 # include <limits.h>
11973 # include <assert.h>
11978 /* Override any GCC internal prototype to avoid an error.
11979 Use char because int might match the return type of a GCC
11980 builtin and then its argument prototype would still apply. */
11985 /* The GNU C library defines this for functions which it implements
11986 to always fail with ENOSYS. Some functions are actually named
11987 something starting with __ and the normal name is an alias. */
11988 #if defined __stub_$ac_func || defined __stub___$ac_func
11995 return $ac_func ();
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (ac_try="$ac_link"
12002 case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_link") 2>conftest.er1
12009 grep -v '^ *+' conftest.er1 >conftest.err
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12015 { (case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_try") 2>&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; } &&
12024 { ac_try='test -s conftest$ac_exeext'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 eval "$as_ac_var=yes"
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12039 eval "$as_ac_var=no"
12042 rm -f core conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext
12045 ac_res=`eval echo '${'$as_ac_var'}'`
12046 { echo "$as_me:$LINENO: result: $ac_res" >&5
12047 echo "${ECHO_T}$ac_res" >&6; }
12048 if test `eval echo '${'$as_ac_var'}'` = yes; then
12049 cat >>confdefs.h <<_ACEOF
12050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12058 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12059 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12072 if test "$GCC" != "yes" && test "$ICC" != "yes"
12074 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12075 echo "$as_me: error: gcc|icc required but not found" >&2;}
12076 { (exit 1); exit 1; }; }
12079 if test "$GXX" != "yes" && test "$IXX" != "yes"
12081 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12082 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12083 { (exit 1); exit 1; }; }
12086 if test "$GCC" = "yes"
12088 cat >conftest.$ac_ext <<_ACEOF
12089 #if !defined(__GNUC__) || __GNUC__ < 3
12090 #error Unsupported GCC version
12094 rm -f conftest.$ac_objext
12095 if { (ac_try="$ac_compile"
12096 case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_compile") 2>conftest.er1
12103 grep -v '^ *+' conftest.er1 >conftest.err
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12109 { (case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_try") 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_try") 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12133 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12134 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12135 { (exit 1); exit 1; }; }
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141 if test -z "$llvm_cv_gnu_make_command"
12143 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12144 echo "$as_me: error: GNU Make required but not found" >&2;}
12145 { (exit 1); exit 1; }; }
12148 { echo "$as_me:$LINENO: result: ok" >&5
12149 echo "${ECHO_T}ok" >&6; }
12151 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12152 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12153 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12155 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12157 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12159 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12160 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12164 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12165 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12166 if test "${ac_cv_lib_m_sin+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 ac_check_lib_save_LIBS=$LIBS
12171 cat >conftest.$ac_ext <<_ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12178 /* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
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_m_sin=yes
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
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_m_sin" >&5
12240 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12241 if test $ac_cv_lib_m_sin = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243 #define HAVE_LIBM 1
12250 if test "$llvm_cv_os_type" = "MingW" ; then
12252 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12253 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12254 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 ac_check_lib_save_LIBS=$LIBS
12258 LIBS="-limagehlp $LIBS"
12259 cat >conftest.$ac_ext <<_ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12275 rm -f conftest.$ac_objext conftest$ac_exeext
12276 if { (ac_try="$ac_link"
12277 case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_link") 2>conftest.er1
12284 grep -v '^ *+' conftest.er1 >conftest.err
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } &&
12289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12290 { (case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_try") 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; } &&
12299 { ac_try='test -s conftest$ac_exeext'
12300 { (case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_try") 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_cv_lib_imagehlp_main=yes
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 ac_cv_lib_imagehlp_main=no
12317 rm -f core conftest.err conftest.$ac_objext \
12318 conftest$ac_exeext conftest.$ac_ext
12319 LIBS=$ac_check_lib_save_LIBS
12321 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12322 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12323 if test $ac_cv_lib_imagehlp_main = yes; then
12324 cat >>confdefs.h <<_ACEOF
12325 #define HAVE_LIBIMAGEHLP 1
12328 LIBS="-limagehlp $LIBS"
12333 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12334 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12335 if test "${ac_cv_lib_psapi_main+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 ac_check_lib_save_LIBS=$LIBS
12339 LIBS="-lpsapi $LIBS"
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12356 rm -f conftest.$ac_objext conftest$ac_exeext
12357 if { (ac_try="$ac_link"
12358 case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_link") 2>conftest.er1
12365 grep -v '^ *+' conftest.er1 >conftest.err
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12371 { (case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_try") 2>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } &&
12380 { ac_try='test -s conftest$ac_exeext'
12381 { (case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_try") 2>&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 ac_cv_lib_psapi_main=yes
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12395 ac_cv_lib_psapi_main=no
12398 rm -f core conftest.err conftest.$ac_objext \
12399 conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS
12402 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12403 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12404 if test $ac_cv_lib_psapi_main = yes; then
12405 cat >>confdefs.h <<_ACEOF
12406 #define HAVE_LIBPSAPI 1
12409 LIBS="-lpsapi $LIBS"
12415 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12416 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12417 if test "${ac_cv_search_dlopen+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 ac_func_search_save_LIBS=$LIBS
12421 cat >conftest.$ac_ext <<_ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12428 /* Override any GCC internal prototype to avoid an error.
12429 Use char because int might match the return type of a GCC
12430 builtin and then its argument prototype would still apply. */
12443 for ac_lib in '' dl; do
12444 if test -z "$ac_lib"; then
12445 ac_res="none required"
12448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12450 rm -f conftest.$ac_objext conftest$ac_exeext
12451 if { (ac_try="$ac_link"
12452 case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_link") 2>conftest.er1
12459 grep -v '^ *+' conftest.er1 >conftest.err
12461 cat conftest.err >&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } &&
12464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12465 { (case "(($ac_try" in
12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_try") 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } &&
12474 { ac_try='test -s conftest$ac_exeext'
12475 { (case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_try") 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 ac_cv_search_dlopen=$ac_res
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12492 rm -f core conftest.err conftest.$ac_objext \
12494 if test "${ac_cv_search_dlopen+set}" = set; then
12498 if test "${ac_cv_search_dlopen+set}" = set; then
12501 ac_cv_search_dlopen=no
12503 rm conftest.$ac_ext
12504 LIBS=$ac_func_search_save_LIBS
12506 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12507 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12508 ac_res=$ac_cv_search_dlopen
12509 if test "$ac_res" != no; then
12510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12512 cat >>confdefs.h <<\_ACEOF
12513 #define HAVE_DLOPEN 1
12517 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12518 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12522 if test "$llvm_cv_enable_libffi" = "yes" ; then
12523 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12524 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12525 if test "${ac_cv_search_ffi_call+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 ac_func_search_save_LIBS=$LIBS
12529 cat >conftest.$ac_ext <<_ACEOF
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h. */
12536 /* Override any GCC internal prototype to avoid an error.
12537 Use char because int might match the return type of a GCC
12538 builtin and then its argument prototype would still apply. */
12546 return ffi_call ();
12551 for ac_lib in '' ffi; do
12552 if test -z "$ac_lib"; then
12553 ac_res="none required"
12556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (ac_try="$ac_link"
12560 case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_link") 2>conftest.er1
12567 grep -v '^ *+' conftest.er1 >conftest.err
12569 cat conftest.err >&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
12572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12573 { (case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_try") 2>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; } &&
12582 { ac_try='test -s conftest$ac_exeext'
12583 { (case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_try") 2>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; }; then
12592 ac_cv_search_ffi_call=$ac_res
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12600 rm -f core conftest.err conftest.$ac_objext \
12602 if test "${ac_cv_search_ffi_call+set}" = set; then
12606 if test "${ac_cv_search_ffi_call+set}" = set; then
12609 ac_cv_search_ffi_call=no
12611 rm conftest.$ac_ext
12612 LIBS=$ac_func_search_save_LIBS
12614 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12615 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12616 ac_res=$ac_cv_search_ffi_call
12617 if test "$ac_res" != no; then
12618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12620 cat >>confdefs.h <<\_ACEOF
12621 #define HAVE_FFI_CALL 1
12625 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12626 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12627 { (exit 1); exit 1; }; }
12632 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12633 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12634 if test "${ac_cv_search_mallinfo+set}" = set; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12637 ac_func_search_save_LIBS=$LIBS
12638 cat >conftest.$ac_ext <<_ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12645 /* Override any GCC internal prototype to avoid an error.
12646 Use char because int might match the return type of a GCC
12647 builtin and then its argument prototype would still apply. */
12655 return mallinfo ();
12660 for ac_lib in '' malloc; do
12661 if test -z "$ac_lib"; then
12662 ac_res="none required"
12665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12667 rm -f conftest.$ac_objext conftest$ac_exeext
12668 if { (ac_try="$ac_link"
12669 case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_link") 2>conftest.er1
12676 grep -v '^ *+' conftest.er1 >conftest.err
12678 cat conftest.err >&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } &&
12681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12682 { (case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_try") 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; } &&
12691 { ac_try='test -s conftest$ac_exeext'
12692 { (case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697 (eval "$ac_try") 2>&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 ac_cv_search_mallinfo=$ac_res
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12709 rm -f core conftest.err conftest.$ac_objext \
12711 if test "${ac_cv_search_mallinfo+set}" = set; then
12715 if test "${ac_cv_search_mallinfo+set}" = set; then
12718 ac_cv_search_mallinfo=no
12720 rm conftest.$ac_ext
12721 LIBS=$ac_func_search_save_LIBS
12723 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12724 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12725 ac_res=$ac_cv_search_mallinfo
12726 if test "$ac_res" != no; then
12727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12729 cat >>confdefs.h <<\_ACEOF
12730 #define HAVE_MALLINFO 1
12736 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12738 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12739 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12740 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12743 ac_check_lib_save_LIBS=$LIBS
12744 LIBS="-lpthread $LIBS"
12745 cat >conftest.$ac_ext <<_ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12752 /* Override any GCC internal prototype to avoid an error.
12753 Use char because int might match the return type of a GCC
12754 builtin and then its argument prototype would still apply. */
12758 char pthread_mutex_init ();
12762 return pthread_mutex_init ();
12767 rm -f conftest.$ac_objext conftest$ac_exeext
12768 if { (ac_try="$ac_link"
12769 case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_link") 2>conftest.er1
12776 grep -v '^ *+' conftest.er1 >conftest.err
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } &&
12781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12782 { (case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_try") 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12801 ac_cv_lib_pthread_pthread_mutex_init=yes
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12806 ac_cv_lib_pthread_pthread_mutex_init=no
12809 rm -f core conftest.err conftest.$ac_objext \
12810 conftest$ac_exeext conftest.$ac_ext
12811 LIBS=$ac_check_lib_save_LIBS
12813 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12814 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12815 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12816 cat >>confdefs.h <<_ACEOF
12817 #define HAVE_LIBPTHREAD 1
12820 LIBS="-lpthread $LIBS"
12824 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12825 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12826 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 ac_func_search_save_LIBS=$LIBS
12830 cat >conftest.$ac_ext <<_ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h. */
12837 /* Override any GCC internal prototype to avoid an error.
12838 Use char because int might match the return type of a GCC
12839 builtin and then its argument prototype would still apply. */
12843 char pthread_mutex_lock ();
12847 return pthread_mutex_lock ();
12852 for ac_lib in '' pthread; do
12853 if test -z "$ac_lib"; then
12854 ac_res="none required"
12857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (ac_try="$ac_link"
12861 case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_link") 2>conftest.er1
12868 grep -v '^ *+' conftest.er1 >conftest.err
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12874 { (case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_try") 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
12883 { ac_try='test -s conftest$ac_exeext'
12884 { (case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_try") 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 ac_cv_search_pthread_mutex_lock=$ac_res
12895 echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.$ac_ext >&5
12901 rm -f core conftest.err conftest.$ac_objext \
12903 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12907 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12910 ac_cv_search_pthread_mutex_lock=no
12912 rm conftest.$ac_ext
12913 LIBS=$ac_func_search_save_LIBS
12915 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12916 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12917 ac_res=$ac_cv_search_pthread_mutex_lock
12918 if test "$ac_res" != no; then
12919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12921 cat >>confdefs.h <<\_ACEOF
12922 #define HAVE_PTHREAD_MUTEX_LOCK 1
12927 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12928 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12929 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12932 ac_func_search_save_LIBS=$LIBS
12933 cat >conftest.$ac_ext <<_ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12940 /* Override any GCC internal prototype to avoid an error.
12941 Use char because int might match the return type of a GCC
12942 builtin and then its argument prototype would still apply. */
12946 char pthread_rwlock_init ();
12950 return pthread_rwlock_init ();
12955 for ac_lib in '' pthread; do
12956 if test -z "$ac_lib"; then
12957 ac_res="none required"
12960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12962 rm -f conftest.$ac_objext conftest$ac_exeext
12963 if { (ac_try="$ac_link"
12964 case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_link") 2>conftest.er1
12971 grep -v '^ *+' conftest.er1 >conftest.err
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977 { (case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_try") 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest$ac_exeext'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 ac_cv_search_pthread_rwlock_init=$ac_res
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13004 rm -f core conftest.err conftest.$ac_objext \
13006 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13010 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13013 ac_cv_search_pthread_rwlock_init=no
13015 rm conftest.$ac_ext
13016 LIBS=$ac_func_search_save_LIBS
13018 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13019 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13020 ac_res=$ac_cv_search_pthread_rwlock_init
13021 if test "$ac_res" != no; then
13022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13024 cat >>confdefs.h <<\_ACEOF
13025 #define HAVE_PTHREAD_RWLOCK_INIT 1
13030 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13031 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13032 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 ac_func_search_save_LIBS=$LIBS
13036 cat >conftest.$ac_ext <<_ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13043 /* Override any GCC internal prototype to avoid an error.
13044 Use char because int might match the return type of a GCC
13045 builtin and then its argument prototype would still apply. */
13049 char pthread_getspecific ();
13053 return pthread_getspecific ();
13058 for ac_lib in '' pthread; do
13059 if test -z "$ac_lib"; then
13060 ac_res="none required"
13063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13065 rm -f conftest.$ac_objext conftest$ac_exeext
13066 if { (ac_try="$ac_link"
13067 case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_link") 2>conftest.er1
13074 grep -v '^ *+' conftest.er1 >conftest.err
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
13079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13080 { (case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_try") 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest$ac_exeext'
13090 { (case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_try") 2>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13099 ac_cv_search_pthread_getspecific=$ac_res
13101 echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13107 rm -f core conftest.err conftest.$ac_objext \
13109 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13113 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13116 ac_cv_search_pthread_getspecific=no
13118 rm conftest.$ac_ext
13119 LIBS=$ac_func_search_save_LIBS
13121 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13122 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13123 ac_res=$ac_cv_search_pthread_getspecific
13124 if test "$ac_res" != no; then
13125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13127 cat >>confdefs.h <<\_ACEOF
13128 #define HAVE_PTHREAD_GETSPECIFIC 1
13136 # Check whether --with-udis86 was given.
13137 if test "${with_udis86+set}" = set; then
13138 withval=$with_udis86;
13143 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13146 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13147 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13148 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 ac_check_lib_save_LIBS=$LIBS
13152 LIBS="-ludis86 $LIBS"
13153 cat >conftest.$ac_ext <<_ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13160 /* Override any GCC internal prototype to avoid an error.
13161 Use char because int might match the return type of a GCC
13162 builtin and then its argument prototype would still apply. */
13175 rm -f conftest.$ac_objext conftest$ac_exeext
13176 if { (ac_try="$ac_link"
13177 case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_link") 2>conftest.er1
13184 grep -v '^ *+' conftest.er1 >conftest.err
13186 cat conftest.err >&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } &&
13189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13190 { (case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_try") 2>&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; } &&
13199 { ac_try='test -s conftest$ac_exeext'
13200 { (case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_try") 2>&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; }; then
13209 ac_cv_lib_udis86_ud_init=yes
13211 echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13214 ac_cv_lib_udis86_ud_init=no
13217 rm -f core conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13219 LIBS=$ac_check_lib_save_LIBS
13221 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13222 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13223 if test $ac_cv_lib_udis86_ud_init = yes; then
13224 cat >>confdefs.h <<_ACEOF
13225 #define HAVE_LIBUDIS86 1
13228 LIBS="-ludis86 $LIBS"
13232 echo "Error! You need to have libudis86 around."
13244 cat >>confdefs.h <<_ACEOF
13245 #define USE_UDIS86 $USE_UDIS86
13250 # Check whether --with-oprofile was given.
13251 if test "${with_oprofile+set}" = set; then
13252 withval=$with_oprofile;
13256 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13257 no) llvm_cv_oppath=
13260 *) llvm_cv_oppath="${withval}/lib/oprofile"
13261 CPPFLAGS="-I${withval}/include";;
13263 if test -n "$llvm_cv_oppath" ; then
13264 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13265 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13266 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13267 if test "${ac_cv_search_bfd_init+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 ac_func_search_save_LIBS=$LIBS
13271 cat >conftest.$ac_ext <<_ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13278 /* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
13288 return bfd_init ();
13293 for ac_lib in '' bfd; do
13294 if test -z "$ac_lib"; then
13295 ac_res="none required"
13298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13300 rm -f conftest.$ac_objext conftest$ac_exeext
13301 if { (ac_try="$ac_link"
13302 case "(($ac_try" in
13303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_link") 2>conftest.er1
13309 grep -v '^ *+' conftest.er1 >conftest.err
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } &&
13314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13315 { (case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_try") 2>&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; } &&
13324 { ac_try='test -s conftest$ac_exeext'
13325 { (case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_try") 2>&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }; then
13334 ac_cv_search_bfd_init=$ac_res
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13342 rm -f core conftest.err conftest.$ac_objext \
13344 if test "${ac_cv_search_bfd_init+set}" = set; then
13348 if test "${ac_cv_search_bfd_init+set}" = set; then
13351 ac_cv_search_bfd_init=no
13353 rm conftest.$ac_ext
13354 LIBS=$ac_func_search_save_LIBS
13356 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13357 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13358 ac_res=$ac_cv_search_bfd_init
13359 if test "$ac_res" != no; then
13360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13364 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13365 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13366 if test "${ac_cv_search_op_open_agent+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 ac_func_search_save_LIBS=$LIBS
13370 cat >conftest.$ac_ext <<_ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13377 /* Override any GCC internal prototype to avoid an error.
13378 Use char because int might match the return type of a GCC
13379 builtin and then its argument prototype would still apply. */
13383 char op_open_agent ();
13387 return op_open_agent ();
13392 for ac_lib in '' opagent; do
13393 if test -z "$ac_lib"; then
13394 ac_res="none required"
13397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13399 rm -f conftest.$ac_objext conftest$ac_exeext
13400 if { (ac_try="$ac_link"
13401 case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_link") 2>conftest.er1
13408 grep -v '^ *+' conftest.er1 >conftest.err
13410 cat conftest.err >&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } &&
13413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13414 { (case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_try") 2>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; } &&
13423 { ac_try='test -s conftest$ac_exeext'
13424 { (case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_try") 2>&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; }; then
13433 ac_cv_search_op_open_agent=$ac_res
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13441 rm -f core conftest.err conftest.$ac_objext \
13443 if test "${ac_cv_search_op_open_agent+set}" = set; then
13447 if test "${ac_cv_search_op_open_agent+set}" = set; then
13450 ac_cv_search_op_open_agent=no
13452 rm conftest.$ac_ext
13453 LIBS=$ac_func_search_save_LIBS
13455 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13456 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13457 ac_res=$ac_cv_search_op_open_agent
13458 if test "$ac_res" != no; then
13459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13463 echo "Error! You need to have libopagent around."
13468 if test "${ac_cv_header_opagent_h+set}" = set; then
13469 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13470 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13471 if test "${ac_cv_header_opagent_h+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13475 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13477 # Is the header compilable?
13478 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13479 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13480 cat >conftest.$ac_ext <<_ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 $ac_includes_default
13487 #include <opagent.h>
13489 rm -f conftest.$ac_objext
13490 if { (ac_try="$ac_compile"
13491 case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_compile") 2>conftest.er1
13498 grep -v '^ *+' conftest.er1 >conftest.err
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13504 { (case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_try") 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; } &&
13513 { ac_try='test -s conftest.$ac_objext'
13514 { (case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_try") 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_header_compiler=yes
13525 echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13528 ac_header_compiler=no
13531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13533 echo "${ECHO_T}$ac_header_compiler" >&6; }
13535 # Is the header present?
13536 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13537 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13538 cat >conftest.$ac_ext <<_ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13544 #include <opagent.h>
13546 if { (ac_try="$ac_cpp conftest.$ac_ext"
13547 case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13554 grep -v '^ *+' conftest.er1 >conftest.err
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } >/dev/null; then
13559 if test -s conftest.err; then
13560 ac_cpp_err=$ac_c_preproc_warn_flag
13561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13568 if test -z "$ac_cpp_err"; then
13569 ac_header_preproc=yes
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13574 ac_header_preproc=no
13577 rm -f conftest.err conftest.$ac_ext
13578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13579 echo "${ECHO_T}$ac_header_preproc" >&6; }
13581 # So? What about this header?
13582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13584 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13585 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13587 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13588 ac_header_preproc=yes
13591 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13592 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13593 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13594 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13595 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13596 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13597 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13598 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13600 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13601 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13602 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13604 ## ------------------------------------ ##
13605 ## Report this to http://llvm.org/bugs/ ##
13606 ## ------------------------------------ ##
13608 ) | sed "s/^/$as_me: WARNING: /" >&2
13611 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13612 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13613 if test "${ac_cv_header_opagent_h+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 ac_cv_header_opagent_h=$ac_header_preproc
13618 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13619 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13622 if test $ac_cv_header_opagent_h = yes; then
13626 echo "Error! You need to have opagent.h around."
13642 cat >>confdefs.h <<_ACEOF
13643 #define USE_OPROFILE $USE_OPROFILE
13653 ac_header_dirent=no
13654 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13655 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13656 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13657 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 cat >conftest.$ac_ext <<_ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667 #include <sys/types.h>
13679 rm -f conftest.$ac_objext
13680 if { (ac_try="$ac_compile"
13681 case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_compile") 2>conftest.er1
13688 grep -v '^ *+' conftest.er1 >conftest.err
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694 { (case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_try") 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest.$ac_objext'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 eval "$as_ac_Header=yes"
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 eval "$as_ac_Header=no"
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13723 ac_res=`eval echo '${'$as_ac_Header'}'`
13724 { echo "$as_me:$LINENO: result: $ac_res" >&5
13725 echo "${ECHO_T}$ac_res" >&6; }
13726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13727 cat >>confdefs.h <<_ACEOF
13728 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13731 ac_header_dirent=$ac_hdr; break
13735 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13736 if test $ac_header_dirent = dirent.h; then
13737 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13738 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13739 if test "${ac_cv_search_opendir+set}" = set; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13742 ac_func_search_save_LIBS=$LIBS
13743 cat >conftest.$ac_ext <<_ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13750 /* Override any GCC internal prototype to avoid an error.
13751 Use char because int might match the return type of a GCC
13752 builtin and then its argument prototype would still apply. */
13765 for ac_lib in '' dir; do
13766 if test -z "$ac_lib"; then
13767 ac_res="none required"
13770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13772 rm -f conftest.$ac_objext conftest$ac_exeext
13773 if { (ac_try="$ac_link"
13774 case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_link") 2>conftest.er1
13781 grep -v '^ *+' conftest.er1 >conftest.err
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13787 { (case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_try") 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; } &&
13796 { ac_try='test -s conftest$ac_exeext'
13797 { (case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_try") 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
13806 ac_cv_search_opendir=$ac_res
13808 echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13814 rm -f core conftest.err conftest.$ac_objext \
13816 if test "${ac_cv_search_opendir+set}" = set; then
13820 if test "${ac_cv_search_opendir+set}" = set; then
13823 ac_cv_search_opendir=no
13825 rm conftest.$ac_ext
13826 LIBS=$ac_func_search_save_LIBS
13828 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13829 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13830 ac_res=$ac_cv_search_opendir
13831 if test "$ac_res" != no; then
13832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13837 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13838 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13839 if test "${ac_cv_search_opendir+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 ac_func_search_save_LIBS=$LIBS
13843 cat >conftest.$ac_ext <<_ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13850 /* Override any GCC internal prototype to avoid an error.
13851 Use char because int might match the return type of a GCC
13852 builtin and then its argument prototype would still apply. */
13865 for ac_lib in '' x; do
13866 if test -z "$ac_lib"; then
13867 ac_res="none required"
13870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13872 rm -f conftest.$ac_objext conftest$ac_exeext
13873 if { (ac_try="$ac_link"
13874 case "(($ac_try" in
13875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876 *) ac_try_echo=$ac_try;;
13878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13879 (eval "$ac_link") 2>conftest.er1
13881 grep -v '^ *+' conftest.er1 >conftest.err
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13887 { (case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_try") 2>&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest$ac_exeext'
13897 { (case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_try") 2>&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }; then
13906 ac_cv_search_opendir=$ac_res
13908 echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13914 rm -f core conftest.err conftest.$ac_objext \
13916 if test "${ac_cv_search_opendir+set}" = set; then
13920 if test "${ac_cv_search_opendir+set}" = set; then
13923 ac_cv_search_opendir=no
13925 rm conftest.$ac_ext
13926 LIBS=$ac_func_search_save_LIBS
13928 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13929 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13930 ac_res=$ac_cv_search_opendir
13931 if test "$ac_res" != no; then
13932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13938 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13939 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13940 if test "${ac_cv_header_mmap_anon+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 ac_cpp='$CPP $CPPFLAGS'
13945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13949 cat >conftest.$ac_ext <<_ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 #include <sys/mman.h>
13956 #include <unistd.h>
13961 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13966 rm -f conftest.$ac_objext
13967 if { (ac_try="$ac_compile"
13968 case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_compile") 2>conftest.er1
13975 grep -v '^ *+' conftest.er1 >conftest.err
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13981 { (case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_try") 2>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest.$ac_objext'
13991 { (case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_try") 2>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_cv_header_mmap_anon=yes
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_cv_header_mmap_anon=no
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 ac_cpp='$CPP $CPPFLAGS'
14011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14017 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14018 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14019 if test "$ac_cv_header_mmap_anon" = yes; then
14021 cat >>confdefs.h <<\_ACEOF
14022 #define HAVE_MMAP_ANONYMOUS 1
14027 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14028 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14029 if test "${ac_cv_header_stat_broken+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14032 cat >conftest.$ac_ext <<_ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14038 #include <sys/types.h>
14039 #include <sys/stat.h>
14041 #if defined S_ISBLK && defined S_IFDIR
14042 # if S_ISBLK (S_IFDIR)
14047 #if defined S_ISBLK && defined S_IFCHR
14048 # if S_ISBLK (S_IFCHR)
14053 #if defined S_ISLNK && defined S_IFREG
14054 # if S_ISLNK (S_IFREG)
14059 #if defined S_ISSOCK && defined S_IFREG
14060 # if S_ISSOCK (S_IFREG)
14066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14067 $EGREP "You lose" >/dev/null 2>&1; then
14068 ac_cv_header_stat_broken=yes
14070 ac_cv_header_stat_broken=no
14075 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14076 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14077 if test $ac_cv_header_stat_broken = yes; then
14079 cat >>confdefs.h <<\_ACEOF
14080 #define STAT_MACROS_BROKEN 1
14085 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14086 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14087 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 cat >conftest.$ac_ext <<_ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14096 #include <sys/types.h>
14097 #include <sys/wait.h>
14098 #ifndef WEXITSTATUS
14099 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14102 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14110 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14115 rm -f conftest.$ac_objext
14116 if { (ac_try="$ac_compile"
14117 case "(($ac_try" in
14118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119 *) ac_try_echo=$ac_try;;
14121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122 (eval "$ac_compile") 2>conftest.er1
14124 grep -v '^ *+' conftest.er1 >conftest.err
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } &&
14129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14130 { (case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_try") 2>&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; } &&
14139 { ac_try='test -s conftest.$ac_objext'
14140 { (case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_try") 2>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }; then
14149 ac_cv_header_sys_wait_h=yes
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 ac_cv_header_sys_wait_h=no
14157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14159 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14160 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14161 if test $ac_cv_header_sys_wait_h = yes; then
14163 cat >>confdefs.h <<\_ACEOF
14164 #define HAVE_SYS_WAIT_H 1
14169 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14170 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14171 if test "${ac_cv_header_time+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 cat >conftest.$ac_ext <<_ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180 #include <sys/types.h>
14181 #include <sys/time.h>
14187 if ((struct tm *) 0)
14193 rm -f conftest.$ac_objext
14194 if { (ac_try="$ac_compile"
14195 case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_compile") 2>conftest.er1
14202 grep -v '^ *+' conftest.er1 >conftest.err
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14208 { (case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_try") 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; } &&
14217 { ac_try='test -s conftest.$ac_objext'
14218 { (case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_try") 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_cv_header_time=yes
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14232 ac_cv_header_time=no
14235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14238 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14239 if test $ac_cv_header_time = yes; then
14241 cat >>confdefs.h <<\_ACEOF
14242 #define TIME_WITH_SYS_TIME 1
14254 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 ac_res=`eval echo '${'$as_ac_Header'}'`
14264 { echo "$as_me:$LINENO: result: $ac_res" >&5
14265 echo "${ECHO_T}$ac_res" >&6; }
14267 # Is the header compilable?
14268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14270 cat >conftest.$ac_ext <<_ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 $ac_includes_default
14277 #include <$ac_header>
14279 rm -f conftest.$ac_objext
14280 if { (ac_try="$ac_compile"
14281 case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_compile") 2>conftest.er1
14288 grep -v '^ *+' conftest.er1 >conftest.err
14290 cat conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14294 { (case "(($ac_try" in
14295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296 *) ac_try_echo=$ac_try;;
14298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299 (eval "$ac_try") 2>&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try='test -s conftest.$ac_objext'
14304 { (case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_try") 2>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 ac_header_compiler=yes
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14318 ac_header_compiler=no
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14323 echo "${ECHO_T}$ac_header_compiler" >&6; }
14325 # Is the header present?
14326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14328 cat >conftest.$ac_ext <<_ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h. */
14334 #include <$ac_header>
14336 if { (ac_try="$ac_cpp conftest.$ac_ext"
14337 case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14344 grep -v '^ *+' conftest.er1 >conftest.err
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } >/dev/null; then
14349 if test -s conftest.err; then
14350 ac_cpp_err=$ac_c_preproc_warn_flag
14351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14358 if test -z "$ac_cpp_err"; then
14359 ac_header_preproc=yes
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 ac_header_preproc=no
14367 rm -f conftest.err conftest.$ac_ext
14368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14369 echo "${ECHO_T}$ac_header_preproc" >&6; }
14371 # So? What about this header?
14372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14378 ac_header_preproc=yes
14381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14394 ## ------------------------------------ ##
14395 ## Report this to http://llvm.org/bugs/ ##
14396 ## ------------------------------------ ##
14398 ) | sed "s/^/$as_me: WARNING: /" >&2
14401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 eval "$as_ac_Header=\$ac_header_preproc"
14408 ac_res=`eval echo '${'$as_ac_Header'}'`
14409 { echo "$as_me:$LINENO: result: $ac_res" >&5
14410 echo "${ECHO_T}$ac_res" >&6; }
14413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14414 cat >>confdefs.h <<_ACEOF
14415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14428 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 ac_res=`eval echo '${'$as_ac_Header'}'`
14438 { echo "$as_me:$LINENO: result: $ac_res" >&5
14439 echo "${ECHO_T}$ac_res" >&6; }
14441 # Is the header compilable?
14442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14444 cat >conftest.$ac_ext <<_ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450 $ac_includes_default
14451 #include <$ac_header>
14453 rm -f conftest.$ac_objext
14454 if { (ac_try="$ac_compile"
14455 case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_compile") 2>conftest.er1
14462 grep -v '^ *+' conftest.er1 >conftest.err
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } &&
14467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14468 { (case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_try") 2>&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; } &&
14477 { ac_try='test -s conftest.$ac_objext'
14478 { (case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_try") 2>&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }; then
14487 ac_header_compiler=yes
14489 echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14492 ac_header_compiler=no
14495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14497 echo "${ECHO_T}$ac_header_compiler" >&6; }
14499 # Is the header present?
14500 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14502 cat >conftest.$ac_ext <<_ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 #include <$ac_header>
14510 if { (ac_try="$ac_cpp conftest.$ac_ext"
14511 case "(($ac_try" in
14512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14513 *) ac_try_echo=$ac_try;;
14515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14518 grep -v '^ *+' conftest.er1 >conftest.err
14520 cat conftest.err >&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } >/dev/null; then
14523 if test -s conftest.err; then
14524 ac_cpp_err=$ac_c_preproc_warn_flag
14525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14532 if test -z "$ac_cpp_err"; then
14533 ac_header_preproc=yes
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14538 ac_header_preproc=no
14541 rm -f conftest.err conftest.$ac_ext
14542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14543 echo "${ECHO_T}$ac_header_preproc" >&6; }
14545 # So? What about this header?
14546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14552 ac_header_preproc=yes
14555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14568 ## ------------------------------------ ##
14569 ## Report this to http://llvm.org/bugs/ ##
14570 ## ------------------------------------ ##
14572 ) | sed "s/^/$as_me: WARNING: /" >&2
14575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 eval "$as_ac_Header=\$ac_header_preproc"
14582 ac_res=`eval echo '${'$as_ac_Header'}'`
14583 { echo "$as_me:$LINENO: result: $ac_res" >&5
14584 echo "${ECHO_T}$ac_res" >&6; }
14587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14588 cat >>confdefs.h <<_ACEOF
14589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14598 for ac_header in utime.h windows.h
14600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14607 ac_res=`eval echo '${'$as_ac_Header'}'`
14608 { echo "$as_me:$LINENO: result: $ac_res" >&5
14609 echo "${ECHO_T}$ac_res" >&6; }
14611 # Is the header compilable?
14612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14614 cat >conftest.$ac_ext <<_ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14620 $ac_includes_default
14621 #include <$ac_header>
14623 rm -f conftest.$ac_objext
14624 if { (ac_try="$ac_compile"
14625 case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_compile") 2>conftest.er1
14632 grep -v '^ *+' conftest.er1 >conftest.err
14634 cat conftest.err >&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } &&
14637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14638 { (case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_try") 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; } &&
14647 { ac_try='test -s conftest.$ac_objext'
14648 { (case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_try") 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_header_compiler=yes
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 ac_header_compiler=no
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14667 echo "${ECHO_T}$ac_header_compiler" >&6; }
14669 # Is the header present?
14670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14672 cat >conftest.$ac_ext <<_ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 #include <$ac_header>
14680 if { (ac_try="$ac_cpp conftest.$ac_ext"
14681 case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14688 grep -v '^ *+' conftest.er1 >conftest.err
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } >/dev/null; then
14693 if test -s conftest.err; then
14694 ac_cpp_err=$ac_c_preproc_warn_flag
14695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14702 if test -z "$ac_cpp_err"; then
14703 ac_header_preproc=yes
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_header_preproc=no
14711 rm -f conftest.err conftest.$ac_ext
14712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14713 echo "${ECHO_T}$ac_header_preproc" >&6; }
14715 # So? What about this header?
14716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14722 ac_header_preproc=yes
14725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14738 ## ------------------------------------ ##
14739 ## Report this to http://llvm.org/bugs/ ##
14740 ## ------------------------------------ ##
14742 ) | sed "s/^/$as_me: WARNING: /" >&2
14745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 eval "$as_ac_Header=\$ac_header_preproc"
14752 ac_res=`eval echo '${'$as_ac_Header'}'`
14753 { echo "$as_me:$LINENO: result: $ac_res" >&5
14754 echo "${ECHO_T}$ac_res" >&6; }
14757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14758 cat >>confdefs.h <<_ACEOF
14759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14771 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14780 ac_res=`eval echo '${'$as_ac_Header'}'`
14781 { echo "$as_me:$LINENO: result: $ac_res" >&5
14782 echo "${ECHO_T}$ac_res" >&6; }
14784 # Is the header compilable?
14785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14787 cat >conftest.$ac_ext <<_ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14793 $ac_includes_default
14794 #include <$ac_header>
14796 rm -f conftest.$ac_objext
14797 if { (ac_try="$ac_compile"
14798 case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_compile") 2>conftest.er1
14805 grep -v '^ *+' conftest.er1 >conftest.err
14807 cat conftest.err >&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } &&
14810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14811 { (case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_try") 2>&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; } &&
14820 { ac_try='test -s conftest.$ac_objext'
14821 { (case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826 (eval "$ac_try") 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 ac_header_compiler=yes
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14835 ac_header_compiler=no
14838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14840 echo "${ECHO_T}$ac_header_compiler" >&6; }
14842 # Is the header present?
14843 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14845 cat >conftest.$ac_ext <<_ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14851 #include <$ac_header>
14853 if { (ac_try="$ac_cpp conftest.$ac_ext"
14854 case "(($ac_try" in
14855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856 *) ac_try_echo=$ac_try;;
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14861 grep -v '^ *+' conftest.er1 >conftest.err
14863 cat conftest.err >&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } >/dev/null; then
14866 if test -s conftest.err; then
14867 ac_cpp_err=$ac_c_preproc_warn_flag
14868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14875 if test -z "$ac_cpp_err"; then
14876 ac_header_preproc=yes
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14881 ac_header_preproc=no
14884 rm -f conftest.err conftest.$ac_ext
14885 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14886 echo "${ECHO_T}$ac_header_preproc" >&6; }
14888 # So? What about this header?
14889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14895 ac_header_preproc=yes
14898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14905 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14911 ## ------------------------------------ ##
14912 ## Report this to http://llvm.org/bugs/ ##
14913 ## ------------------------------------ ##
14915 ) | sed "s/^/$as_me: WARNING: /" >&2
14918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 eval "$as_ac_Header=\$ac_header_preproc"
14925 ac_res=`eval echo '${'$as_ac_Header'}'`
14926 { echo "$as_me:$LINENO: result: $ac_res" >&5
14927 echo "${ECHO_T}$ac_res" >&6; }
14930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14931 cat >>confdefs.h <<_ACEOF
14932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14943 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 ac_res=`eval echo '${'$as_ac_Header'}'`
14953 { echo "$as_me:$LINENO: result: $ac_res" >&5
14954 echo "${ECHO_T}$ac_res" >&6; }
14956 # Is the header compilable?
14957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14959 cat >conftest.$ac_ext <<_ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h. */
14965 $ac_includes_default
14966 #include <$ac_header>
14968 rm -f conftest.$ac_objext
14969 if { (ac_try="$ac_compile"
14970 case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_compile") 2>conftest.er1
14977 grep -v '^ *+' conftest.er1 >conftest.err
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
14982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14983 { (case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_try") 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; } &&
14992 { ac_try='test -s conftest.$ac_objext'
14993 { (case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_try") 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; }; then
15002 ac_header_compiler=yes
15004 echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15007 ac_header_compiler=no
15010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15012 echo "${ECHO_T}$ac_header_compiler" >&6; }
15014 # Is the header present?
15015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15017 cat >conftest.$ac_ext <<_ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 #include <$ac_header>
15025 if { (ac_try="$ac_cpp conftest.$ac_ext"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15033 grep -v '^ *+' conftest.er1 >conftest.err
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } >/dev/null; then
15038 if test -s conftest.err; then
15039 ac_cpp_err=$ac_c_preproc_warn_flag
15040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15047 if test -z "$ac_cpp_err"; then
15048 ac_header_preproc=yes
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 ac_header_preproc=no
15056 rm -f conftest.err conftest.$ac_ext
15057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15058 echo "${ECHO_T}$ac_header_preproc" >&6; }
15060 # So? What about this header?
15061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15067 ac_header_preproc=yes
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15083 ## ------------------------------------ ##
15084 ## Report this to http://llvm.org/bugs/ ##
15085 ## ------------------------------------ ##
15087 ) | sed "s/^/$as_me: WARNING: /" >&2
15090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15095 eval "$as_ac_Header=\$ac_header_preproc"
15097 ac_res=`eval echo '${'$as_ac_Header'}'`
15098 { echo "$as_me:$LINENO: result: $ac_res" >&5
15099 echo "${ECHO_T}$ac_res" >&6; }
15102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15103 cat >>confdefs.h <<_ACEOF
15104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15112 for ac_header in valgrind/valgrind.h
15114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15121 ac_res=`eval echo '${'$as_ac_Header'}'`
15122 { echo "$as_me:$LINENO: result: $ac_res" >&5
15123 echo "${ECHO_T}$ac_res" >&6; }
15125 # Is the header compilable?
15126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15128 cat >conftest.$ac_ext <<_ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 $ac_includes_default
15135 #include <$ac_header>
15137 rm -f conftest.$ac_objext
15138 if { (ac_try="$ac_compile"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_compile") 2>conftest.er1
15146 grep -v '^ *+' conftest.er1 >conftest.err
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15152 { (case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_try") 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try='test -s conftest.$ac_objext'
15162 { (case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_try") 2>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_header_compiler=yes
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ac_header_compiler=no
15179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15181 echo "${ECHO_T}$ac_header_compiler" >&6; }
15183 # Is the header present?
15184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15186 cat >conftest.$ac_ext <<_ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 #include <$ac_header>
15194 if { (ac_try="$ac_cpp conftest.$ac_ext"
15195 case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15202 grep -v '^ *+' conftest.er1 >conftest.err
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } >/dev/null; then
15207 if test -s conftest.err; then
15208 ac_cpp_err=$ac_c_preproc_warn_flag
15209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15216 if test -z "$ac_cpp_err"; then
15217 ac_header_preproc=yes
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 ac_header_preproc=no
15225 rm -f conftest.err conftest.$ac_ext
15226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15227 echo "${ECHO_T}$ac_header_preproc" >&6; }
15229 # So? What about this header?
15230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15236 ac_header_preproc=yes
15239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15252 ## ------------------------------------ ##
15253 ## Report this to http://llvm.org/bugs/ ##
15254 ## ------------------------------------ ##
15256 ) | sed "s/^/$as_me: WARNING: /" >&2
15259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
15264 eval "$as_ac_Header=\$ac_header_preproc"
15266 ac_res=`eval echo '${'$as_ac_Header'}'`
15267 { echo "$as_me:$LINENO: result: $ac_res" >&5
15268 echo "${ECHO_T}$ac_res" >&6; }
15271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15272 cat >>confdefs.h <<_ACEOF
15273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15281 for ac_header in fenv.h
15283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 ac_res=`eval echo '${'$as_ac_Header'}'`
15291 { echo "$as_me:$LINENO: result: $ac_res" >&5
15292 echo "${ECHO_T}$ac_res" >&6; }
15294 # Is the header compilable?
15295 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15297 cat >conftest.$ac_ext <<_ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h. */
15303 $ac_includes_default
15304 #include <$ac_header>
15306 rm -f conftest.$ac_objext
15307 if { (ac_try="$ac_compile"
15308 case "(($ac_try" in
15309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310 *) ac_try_echo=$ac_try;;
15312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15313 (eval "$ac_compile") 2>conftest.er1
15315 grep -v '^ *+' conftest.er1 >conftest.err
15317 cat conftest.err >&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
15320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15321 { (case "(($ac_try" in
15322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323 *) ac_try_echo=$ac_try;;
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326 (eval "$ac_try") 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; } &&
15330 { ac_try='test -s conftest.$ac_objext'
15331 { (case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_try") 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }; then
15340 ac_header_compiler=yes
15342 echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15345 ac_header_compiler=no
15348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15350 echo "${ECHO_T}$ac_header_compiler" >&6; }
15352 # Is the header present?
15353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15355 cat >conftest.$ac_ext <<_ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 #include <$ac_header>
15363 if { (ac_try="$ac_cpp conftest.$ac_ext"
15364 case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15371 grep -v '^ *+' conftest.er1 >conftest.err
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } >/dev/null; then
15376 if test -s conftest.err; then
15377 ac_cpp_err=$ac_c_preproc_warn_flag
15378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15385 if test -z "$ac_cpp_err"; then
15386 ac_header_preproc=yes
15388 echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15391 ac_header_preproc=no
15394 rm -f conftest.err conftest.$ac_ext
15395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15396 echo "${ECHO_T}$ac_header_preproc" >&6; }
15398 # So? What about this header?
15399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15405 ac_header_preproc=yes
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15421 ## ------------------------------------ ##
15422 ## Report this to http://llvm.org/bugs/ ##
15423 ## ------------------------------------ ##
15425 ) | sed "s/^/$as_me: WARNING: /" >&2
15428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15433 eval "$as_ac_Header=\$ac_header_preproc"
15435 ac_res=`eval echo '${'$as_ac_Header'}'`
15436 { echo "$as_me:$LINENO: result: $ac_res" >&5
15437 echo "${ECHO_T}$ac_res" >&6; }
15440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15441 cat >>confdefs.h <<_ACEOF
15442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15449 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15451 for ac_header in pthread.h
15453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 ac_res=`eval echo '${'$as_ac_Header'}'`
15461 { echo "$as_me:$LINENO: result: $ac_res" >&5
15462 echo "${ECHO_T}$ac_res" >&6; }
15464 # Is the header compilable?
15465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15467 cat >conftest.$ac_ext <<_ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h. */
15473 $ac_includes_default
15474 #include <$ac_header>
15476 rm -f conftest.$ac_objext
15477 if { (ac_try="$ac_compile"
15478 case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_compile") 2>conftest.er1
15485 grep -v '^ *+' conftest.er1 >conftest.err
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } &&
15490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15491 { (case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496 (eval "$ac_try") 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest.$ac_objext'
15501 { (case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_try") 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_header_compiler=yes
15512 echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15515 ac_header_compiler=no
15518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15520 echo "${ECHO_T}$ac_header_compiler" >&6; }
15522 # Is the header present?
15523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15525 cat >conftest.$ac_ext <<_ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 #include <$ac_header>
15533 if { (ac_try="$ac_cpp conftest.$ac_ext"
15534 case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15541 grep -v '^ *+' conftest.er1 >conftest.err
15543 cat conftest.err >&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } >/dev/null; then
15546 if test -s conftest.err; then
15547 ac_cpp_err=$ac_c_preproc_warn_flag
15548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15555 if test -z "$ac_cpp_err"; then
15556 ac_header_preproc=yes
15558 echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15561 ac_header_preproc=no
15564 rm -f conftest.err conftest.$ac_ext
15565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15566 echo "${ECHO_T}$ac_header_preproc" >&6; }
15568 # So? What about this header?
15569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15575 ac_header_preproc=yes
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15591 ## ------------------------------------ ##
15592 ## Report this to http://llvm.org/bugs/ ##
15593 ## ------------------------------------ ##
15595 ) | sed "s/^/$as_me: WARNING: /" >&2
15598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 eval "$as_ac_Header=\$ac_header_preproc"
15605 ac_res=`eval echo '${'$as_ac_Header'}'`
15606 { echo "$as_me:$LINENO: result: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15611 cat >>confdefs.h <<_ACEOF
15612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15628 if test "$llvm_cv_enable_libffi" = "yes" ; then
15631 for ac_header in ffi.h ffi/ffi.h
15633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 ac_res=`eval echo '${'$as_ac_Header'}'`
15641 { echo "$as_me:$LINENO: result: $ac_res" >&5
15642 echo "${ECHO_T}$ac_res" >&6; }
15644 # Is the header compilable?
15645 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15647 cat >conftest.$ac_ext <<_ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 $ac_includes_default
15654 #include <$ac_header>
15656 rm -f conftest.$ac_objext
15657 if { (ac_try="$ac_compile"
15658 case "(($ac_try" in
15659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_compile") 2>conftest.er1
15665 grep -v '^ *+' conftest.er1 >conftest.err
15667 cat conftest.err >&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
15670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15671 { (case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_try") 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; } &&
15680 { ac_try='test -s conftest.$ac_objext'
15681 { (case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_try") 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 ac_header_compiler=yes
15692 echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15695 ac_header_compiler=no
15698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15700 echo "${ECHO_T}$ac_header_compiler" >&6; }
15702 # Is the header present?
15703 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15705 cat >conftest.$ac_ext <<_ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711 #include <$ac_header>
15713 if { (ac_try="$ac_cpp conftest.$ac_ext"
15714 case "(($ac_try" in
15715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716 *) ac_try_echo=$ac_try;;
15718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15721 grep -v '^ *+' conftest.er1 >conftest.err
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } >/dev/null; then
15726 if test -s conftest.err; then
15727 ac_cpp_err=$ac_c_preproc_warn_flag
15728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15735 if test -z "$ac_cpp_err"; then
15736 ac_header_preproc=yes
15738 echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15741 ac_header_preproc=no
15744 rm -f conftest.err conftest.$ac_ext
15745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15746 echo "${ECHO_T}$ac_header_preproc" >&6; }
15748 # So? What about this header?
15749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15755 ac_header_preproc=yes
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15771 ## ------------------------------------ ##
15772 ## Report this to http://llvm.org/bugs/ ##
15773 ## ------------------------------------ ##
15775 ) | sed "s/^/$as_me: WARNING: /" >&2
15778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 eval "$as_ac_Header=\$ac_header_preproc"
15785 ac_res=`eval echo '${'$as_ac_Header'}'`
15786 { echo "$as_me:$LINENO: result: $ac_res" >&5
15787 echo "${ECHO_T}$ac_res" >&6; }
15790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15791 cat >>confdefs.h <<_ACEOF
15792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15802 for ac_header in CrashReporterClient.h
15804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 ac_res=`eval echo '${'$as_ac_Header'}'`
15812 { echo "$as_me:$LINENO: result: $ac_res" >&5
15813 echo "${ECHO_T}$ac_res" >&6; }
15815 # Is the header compilable?
15816 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15818 cat >conftest.$ac_ext <<_ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 $ac_includes_default
15825 #include <$ac_header>
15827 rm -f conftest.$ac_objext
15828 if { (ac_try="$ac_compile"
15829 case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834 (eval "$ac_compile") 2>conftest.er1
15836 grep -v '^ *+' conftest.er1 >conftest.err
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15842 { (case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_try") 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } &&
15851 { ac_try='test -s conftest.$ac_objext'
15852 { (case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857 (eval "$ac_try") 2>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 ac_header_compiler=yes
15863 echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15866 ac_header_compiler=no
15869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15871 echo "${ECHO_T}$ac_header_compiler" >&6; }
15873 # Is the header present?
15874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15876 cat >conftest.$ac_ext <<_ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 #include <$ac_header>
15884 if { (ac_try="$ac_cpp conftest.$ac_ext"
15885 case "(($ac_try" in
15886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15892 grep -v '^ *+' conftest.er1 >conftest.err
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } >/dev/null; then
15897 if test -s conftest.err; then
15898 ac_cpp_err=$ac_c_preproc_warn_flag
15899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15906 if test -z "$ac_cpp_err"; then
15907 ac_header_preproc=yes
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15912 ac_header_preproc=no
15915 rm -f conftest.err conftest.$ac_ext
15916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15917 echo "${ECHO_T}$ac_header_preproc" >&6; }
15919 # So? What about this header?
15920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15926 ac_header_preproc=yes
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15936 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15942 ## ------------------------------------ ##
15943 ## Report this to http://llvm.org/bugs/ ##
15944 ## ------------------------------------ ##
15946 ) | sed "s/^/$as_me: WARNING: /" >&2
15949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15952 echo $ECHO_N "(cached) $ECHO_C" >&6
15954 eval "$as_ac_Header=\$ac_header_preproc"
15956 ac_res=`eval echo '${'$as_ac_Header'}'`
15957 { echo "$as_me:$LINENO: result: $ac_res" >&5
15958 echo "${ECHO_T}$ac_res" >&6; }
15961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15962 cat >>confdefs.h <<_ACEOF
15963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15971 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15972 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15973 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15979 extern const char *__crashreporter_info__;
15981 __crashreporter_info__ = "test";
15986 rm -f conftest.$ac_objext conftest$ac_exeext
15987 if { (ac_try="$ac_link"
15988 case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993 (eval "$ac_link") 2>conftest.er1
15995 grep -v '^ *+' conftest.er1 >conftest.err
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } &&
16000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16001 { (case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_try") 2>&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; } &&
16010 { ac_try='test -s conftest$ac_exeext'
16011 { (case "(($ac_try" in
16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16016 (eval "$ac_try") 2>&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16020 { echo "$as_me:$LINENO: result: yes" >&5
16021 echo "${ECHO_T}yes" >&6; }
16023 cat >>confdefs.h <<\_ACEOF
16024 #define HAVE_CRASHREPORTER_INFO 1
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16031 { echo "$as_me:$LINENO: result: no" >&5
16032 echo "${ECHO_T}no" >&6; }
16034 cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_CRASHREPORTER_INFO 0
16040 rm -f core conftest.err conftest.$ac_objext \
16041 conftest$ac_exeext conftest.$ac_ext
16046 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16047 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16048 if test "${ac_cv_huge_val_sanity+set}" = set; then
16049 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 ac_cpp='$CXXCPP $CPPFLAGS'
16054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16058 ac_save_CXXFLAGS=$CXXFLAGS
16060 if test "$cross_compiling" = yes; then
16061 ac_cv_huge_val_sanity=yes
16063 cat >conftest.$ac_ext <<_ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16073 double x = HUGE_VAL; return x != x;
16078 rm -f conftest$ac_exeext
16079 if { (ac_try="$ac_link"
16080 case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_link") 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16089 { (case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_try") 2>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 ac_cv_huge_val_sanity=yes
16100 echo "$as_me: program exited with status $ac_status" >&5
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16104 ( exit $ac_status )
16105 ac_cv_huge_val_sanity=no
16107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16111 CXXFLAGS=$ac_save_CXXFLAGS
16113 ac_cpp='$CPP $CPPFLAGS'
16114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16120 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16121 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16122 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16125 { echo "$as_me:$LINENO: checking for pid_t" >&5
16126 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16127 if test "${ac_cv_type_pid_t+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16130 cat >conftest.$ac_ext <<_ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h. */
16136 $ac_includes_default
16137 typedef pid_t ac__type_new_;
16141 if ((ac__type_new_ *) 0)
16143 if (sizeof (ac__type_new_))
16149 rm -f conftest.$ac_objext
16150 if { (ac_try="$ac_compile"
16151 case "(($ac_try" in
16152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153 *) ac_try_echo=$ac_try;;
16155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16156 (eval "$ac_compile") 2>conftest.er1
16158 grep -v '^ *+' conftest.er1 >conftest.err
16160 cat conftest.err >&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } &&
16163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16164 { (case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_try") 2>&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; } &&
16173 { ac_try='test -s conftest.$ac_objext'
16174 { (case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_try") 2>&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 ac_cv_type_pid_t=yes
16185 echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.$ac_ext >&5
16188 ac_cv_type_pid_t=no
16191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16193 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16194 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16195 if test $ac_cv_type_pid_t = yes; then
16199 cat >>confdefs.h <<_ACEOF
16205 { echo "$as_me:$LINENO: checking for size_t" >&5
16206 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16207 if test "${ac_cv_type_size_t+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16210 cat >conftest.$ac_ext <<_ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h. */
16216 $ac_includes_default
16217 typedef size_t ac__type_new_;
16221 if ((ac__type_new_ *) 0)
16223 if (sizeof (ac__type_new_))
16229 rm -f conftest.$ac_objext
16230 if { (ac_try="$ac_compile"
16231 case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_compile") 2>conftest.er1
16238 grep -v '^ *+' conftest.er1 >conftest.err
16240 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } &&
16243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16244 { (case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_try") 2>&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest.$ac_objext'
16254 { (case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_try") 2>&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; }; then
16263 ac_cv_type_size_t=yes
16265 echo "$as_me: failed program was:" >&5
16266 sed 's/^/| /' conftest.$ac_ext >&5
16268 ac_cv_type_size_t=no
16271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16274 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16275 if test $ac_cv_type_size_t = yes; then
16279 cat >>confdefs.h <<_ACEOF
16280 #define size_t unsigned int
16286 cat >>confdefs.h <<_ACEOF
16287 #define RETSIGTYPE void
16290 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16291 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16292 if test "${ac_cv_struct_tm+set}" = set; then
16293 echo $ECHO_N "(cached) $ECHO_C" >&6
16295 cat >conftest.$ac_ext <<_ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h. */
16301 #include <sys/types.h>
16307 struct tm *tp; tp->tm_sec;
16312 rm -f conftest.$ac_objext
16313 if { (ac_try="$ac_compile"
16314 case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_compile") 2>conftest.er1
16321 grep -v '^ *+' conftest.er1 >conftest.err
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } &&
16326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16327 { (case "(($ac_try" in
16328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329 *) ac_try_echo=$ac_try;;
16331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332 (eval "$ac_try") 2>&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; } &&
16336 { ac_try='test -s conftest.$ac_objext'
16337 { (case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_try") 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16346 ac_cv_struct_tm=time.h
16348 echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16351 ac_cv_struct_tm=sys/time.h
16354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16356 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16357 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16358 if test $ac_cv_struct_tm = sys/time.h; then
16360 cat >>confdefs.h <<\_ACEOF
16361 #define TM_IN_SYS_TIME 1
16366 { echo "$as_me:$LINENO: checking for int64_t" >&5
16367 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16368 if test "${ac_cv_type_int64_t+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 cat >conftest.$ac_ext <<_ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 $ac_includes_default
16378 typedef int64_t ac__type_new_;
16382 if ((ac__type_new_ *) 0)
16384 if (sizeof (ac__type_new_))
16390 rm -f conftest.$ac_objext
16391 if { (ac_try="$ac_compile"
16392 case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397 (eval "$ac_compile") 2>conftest.er1
16399 grep -v '^ *+' conftest.er1 >conftest.err
16401 cat conftest.err >&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
16404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16405 { (case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_try") 2>&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; } &&
16414 { ac_try='test -s conftest.$ac_objext'
16415 { (case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_try") 2>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; }; then
16424 ac_cv_type_int64_t=yes
16426 echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16429 ac_cv_type_int64_t=no
16432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16435 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16436 if test $ac_cv_type_int64_t = yes; then
16438 cat >>confdefs.h <<_ACEOF
16439 #define HAVE_INT64_T 1
16444 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16445 echo "$as_me: error: Type int64_t required but not found" >&2;}
16446 { (exit 1); exit 1; }; }
16449 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16450 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16451 if test "${ac_cv_type_uint64_t+set}" = set; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 cat >conftest.$ac_ext <<_ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h. */
16460 $ac_includes_default
16461 typedef uint64_t ac__type_new_;
16465 if ((ac__type_new_ *) 0)
16467 if (sizeof (ac__type_new_))
16473 rm -f conftest.$ac_objext
16474 if { (ac_try="$ac_compile"
16475 case "(($ac_try" in
16476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477 *) ac_try_echo=$ac_try;;
16479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16480 (eval "$ac_compile") 2>conftest.er1
16482 grep -v '^ *+' conftest.er1 >conftest.err
16484 cat conftest.err >&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
16487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16488 { (case "(($ac_try" in
16489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490 *) ac_try_echo=$ac_try;;
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493 (eval "$ac_try") 2>&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; } &&
16497 { ac_try='test -s conftest.$ac_objext'
16498 { (case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_try") 2>&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; }; then
16507 ac_cv_type_uint64_t=yes
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16512 ac_cv_type_uint64_t=no
16515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16517 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16518 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16519 if test $ac_cv_type_uint64_t = yes; then
16521 cat >>confdefs.h <<_ACEOF
16522 #define HAVE_UINT64_T 1
16527 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16528 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16529 if test "${ac_cv_type_u_int64_t+set}" = set; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16532 cat >conftest.$ac_ext <<_ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h. */
16538 $ac_includes_default
16539 typedef u_int64_t ac__type_new_;
16543 if ((ac__type_new_ *) 0)
16545 if (sizeof (ac__type_new_))
16551 rm -f conftest.$ac_objext
16552 if { (ac_try="$ac_compile"
16553 case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558 (eval "$ac_compile") 2>conftest.er1
16560 grep -v '^ *+' conftest.er1 >conftest.err
16562 cat conftest.err >&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
16565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16566 { (case "(($ac_try" in
16567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568 *) ac_try_echo=$ac_try;;
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571 (eval "$ac_try") 2>&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; } &&
16575 { ac_try='test -s conftest.$ac_objext'
16576 { (case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_try") 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ac_cv_type_u_int64_t=yes
16587 echo "$as_me: failed program was:" >&5
16588 sed 's/^/| /' conftest.$ac_ext >&5
16590 ac_cv_type_u_int64_t=no
16593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16596 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16597 if test $ac_cv_type_u_int64_t = yes; then
16599 cat >>confdefs.h <<_ACEOF
16600 #define HAVE_U_INT64_T 1
16605 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16606 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16607 { (exit 1); exit 1; }; }
16621 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16629 cat >conftest.$ac_ext <<_ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16637 #define $ac_func innocuous_$ac_func
16639 /* System header to define __stub macros and hopefully few prototypes,
16640 which can conflict with char $ac_func (); below.
16641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16642 <limits.h> exists even on freestanding compilers. */
16645 # include <limits.h>
16647 # include <assert.h>
16652 /* Override any GCC internal prototype to avoid an error.
16653 Use char because int might match the return type of a GCC
16654 builtin and then its argument prototype would still apply. */
16659 /* The GNU C library defines this for functions which it implements
16660 to always fail with ENOSYS. Some functions are actually named
16661 something starting with __ and the normal name is an alias. */
16662 #if defined __stub_$ac_func || defined __stub___$ac_func
16669 return $ac_func ();
16674 rm -f conftest.$ac_objext conftest$ac_exeext
16675 if { (ac_try="$ac_link"
16676 case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_link") 2>conftest.er1
16683 grep -v '^ *+' conftest.er1 >conftest.err
16685 cat conftest.err >&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } &&
16688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16689 { (case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_try") 2>&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; } &&
16698 { ac_try='test -s conftest$ac_exeext'
16699 { (case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_try") 2>&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708 eval "$as_ac_var=yes"
16710 echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16713 eval "$as_ac_var=no"
16716 rm -f core conftest.err conftest.$ac_objext \
16717 conftest$ac_exeext conftest.$ac_ext
16719 ac_res=`eval echo '${'$as_ac_var'}'`
16720 { echo "$as_me:$LINENO: result: $ac_res" >&5
16721 echo "${ECHO_T}$ac_res" >&6; }
16722 if test `eval echo '${'$as_ac_var'}'` = yes; then
16723 cat >>confdefs.h <<_ACEOF
16724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16734 for ac_func in powf fmodf strtof round
16736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16740 echo $ECHO_N "(cached) $ECHO_C" >&6
16742 cat >conftest.$ac_ext <<_ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h. */
16748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16750 #define $ac_func innocuous_$ac_func
16752 /* System header to define __stub macros and hopefully few prototypes,
16753 which can conflict with char $ac_func (); below.
16754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16755 <limits.h> exists even on freestanding compilers. */
16758 # include <limits.h>
16760 # include <assert.h>
16765 /* Override any GCC internal prototype to avoid an error.
16766 Use char because int might match the return type of a GCC
16767 builtin and then its argument prototype would still apply. */
16772 /* The GNU C library defines this for functions which it implements
16773 to always fail with ENOSYS. Some functions are actually named
16774 something starting with __ and the normal name is an alias. */
16775 #if defined __stub_$ac_func || defined __stub___$ac_func
16782 return $ac_func ();
16787 rm -f conftest.$ac_objext conftest$ac_exeext
16788 if { (ac_try="$ac_link"
16789 case "(($ac_try" in
16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791 *) ac_try_echo=$ac_try;;
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794 (eval "$ac_link") 2>conftest.er1
16796 grep -v '^ *+' conftest.er1 >conftest.err
16798 cat conftest.err >&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } &&
16801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16802 { (case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_try") 2>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; } &&
16811 { ac_try='test -s conftest$ac_exeext'
16812 { (case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_try") 2>&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
16821 eval "$as_ac_var=yes"
16823 echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.$ac_ext >&5
16826 eval "$as_ac_var=no"
16829 rm -f core conftest.err conftest.$ac_objext \
16830 conftest$ac_exeext conftest.$ac_ext
16832 ac_res=`eval echo '${'$as_ac_var'}'`
16833 { echo "$as_me:$LINENO: result: $ac_res" >&5
16834 echo "${ECHO_T}$ac_res" >&6; }
16835 if test `eval echo '${'$as_ac_var'}'` = yes; then
16836 cat >>confdefs.h <<_ACEOF
16837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16848 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16856 cat >conftest.$ac_ext <<_ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16864 #define $ac_func innocuous_$ac_func
16866 /* System header to define __stub macros and hopefully few prototypes,
16867 which can conflict with char $ac_func (); below.
16868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16869 <limits.h> exists even on freestanding compilers. */
16872 # include <limits.h>
16874 # include <assert.h>
16879 /* Override any GCC internal prototype to avoid an error.
16880 Use char because int might match the return type of a GCC
16881 builtin and then its argument prototype would still apply. */
16886 /* The GNU C library defines this for functions which it implements
16887 to always fail with ENOSYS. Some functions are actually named
16888 something starting with __ and the normal name is an alias. */
16889 #if defined __stub_$ac_func || defined __stub___$ac_func
16896 return $ac_func ();
16901 rm -f conftest.$ac_objext conftest$ac_exeext
16902 if { (ac_try="$ac_link"
16903 case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_link") 2>conftest.er1
16910 grep -v '^ *+' conftest.er1 >conftest.err
16912 cat conftest.err >&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } &&
16915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16916 { (case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_try") 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; } &&
16925 { ac_try='test -s conftest$ac_exeext'
16926 { (case "(($ac_try" in
16927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16928 *) ac_try_echo=$ac_try;;
16930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16931 (eval "$ac_try") 2>&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; }; then
16935 eval "$as_ac_var=yes"
16937 echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16940 eval "$as_ac_var=no"
16943 rm -f core conftest.err conftest.$ac_objext \
16944 conftest$ac_exeext conftest.$ac_ext
16946 ac_res=`eval echo '${'$as_ac_var'}'`
16947 { echo "$as_me:$LINENO: result: $ac_res" >&5
16948 echo "${ECHO_T}$ac_res" >&6; }
16949 if test `eval echo '${'$as_ac_var'}'` = yes; then
16950 cat >>confdefs.h <<_ACEOF
16951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16960 for ac_func in isatty mkdtemp mkstemp
16962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16966 echo $ECHO_N "(cached) $ECHO_C" >&6
16968 cat >conftest.$ac_ext <<_ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16976 #define $ac_func innocuous_$ac_func
16978 /* System header to define __stub macros and hopefully few prototypes,
16979 which can conflict with char $ac_func (); below.
16980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16981 <limits.h> exists even on freestanding compilers. */
16984 # include <limits.h>
16986 # include <assert.h>
16991 /* Override any GCC internal prototype to avoid an error.
16992 Use char because int might match the return type of a GCC
16993 builtin and then its argument prototype would still apply. */
16998 /* The GNU C library defines this for functions which it implements
16999 to always fail with ENOSYS. Some functions are actually named
17000 something starting with __ and the normal name is an alias. */
17001 #if defined __stub_$ac_func || defined __stub___$ac_func
17008 return $ac_func ();
17013 rm -f conftest.$ac_objext conftest$ac_exeext
17014 if { (ac_try="$ac_link"
17015 case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_link") 2>conftest.er1
17022 grep -v '^ *+' conftest.er1 >conftest.err
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17028 { (case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_try") 2>&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; } &&
17037 { ac_try='test -s conftest$ac_exeext'
17038 { (case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_try") 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 eval "$as_ac_var=yes"
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17052 eval "$as_ac_var=no"
17055 rm -f core conftest.err conftest.$ac_objext \
17056 conftest$ac_exeext conftest.$ac_ext
17058 ac_res=`eval echo '${'$as_ac_var'}'`
17059 { echo "$as_me:$LINENO: result: $ac_res" >&5
17060 echo "${ECHO_T}$ac_res" >&6; }
17061 if test `eval echo '${'$as_ac_var'}'` = yes; then
17062 cat >>confdefs.h <<_ACEOF
17063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17076 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17084 cat >conftest.$ac_ext <<_ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17092 #define $ac_func innocuous_$ac_func
17094 /* System header to define __stub macros and hopefully few prototypes,
17095 which can conflict with char $ac_func (); below.
17096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17097 <limits.h> exists even on freestanding compilers. */
17100 # include <limits.h>
17102 # include <assert.h>
17107 /* Override any GCC internal prototype to avoid an error.
17108 Use char because int might match the return type of a GCC
17109 builtin and then its argument prototype would still apply. */
17114 /* The GNU C library defines this for functions which it implements
17115 to always fail with ENOSYS. Some functions are actually named
17116 something starting with __ and the normal name is an alias. */
17117 #if defined __stub_$ac_func || defined __stub___$ac_func
17124 return $ac_func ();
17129 rm -f conftest.$ac_objext conftest$ac_exeext
17130 if { (ac_try="$ac_link"
17131 case "(($ac_try" in
17132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133 *) ac_try_echo=$ac_try;;
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136 (eval "$ac_link") 2>conftest.er1
17138 grep -v '^ *+' conftest.er1 >conftest.err
17140 cat conftest.err >&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } &&
17143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17144 { (case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_try") 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; } &&
17153 { ac_try='test -s conftest$ac_exeext'
17154 { (case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_try") 2>&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; }; then
17163 eval "$as_ac_var=yes"
17165 echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.$ac_ext >&5
17168 eval "$as_ac_var=no"
17171 rm -f core conftest.err conftest.$ac_objext \
17172 conftest$ac_exeext conftest.$ac_ext
17174 ac_res=`eval echo '${'$as_ac_var'}'`
17175 { echo "$as_me:$LINENO: result: $ac_res" >&5
17176 echo "${ECHO_T}$ac_res" >&6; }
17177 if test `eval echo '${'$as_ac_var'}'` = yes; then
17178 cat >>confdefs.h <<_ACEOF
17179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17188 for ac_func in strerror strerror_r setenv
17190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17196 cat >conftest.$ac_ext <<_ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17204 #define $ac_func innocuous_$ac_func
17206 /* System header to define __stub macros and hopefully few prototypes,
17207 which can conflict with char $ac_func (); below.
17208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17209 <limits.h> exists even on freestanding compilers. */
17212 # include <limits.h>
17214 # include <assert.h>
17219 /* Override any GCC internal prototype to avoid an error.
17220 Use char because int might match the return type of a GCC
17221 builtin and then its argument prototype would still apply. */
17226 /* The GNU C library defines this for functions which it implements
17227 to always fail with ENOSYS. Some functions are actually named
17228 something starting with __ and the normal name is an alias. */
17229 #if defined __stub_$ac_func || defined __stub___$ac_func
17236 return $ac_func ();
17241 rm -f conftest.$ac_objext conftest$ac_exeext
17242 if { (ac_try="$ac_link"
17243 case "(($ac_try" in
17244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248 (eval "$ac_link") 2>conftest.er1
17250 grep -v '^ *+' conftest.er1 >conftest.err
17252 cat conftest.err >&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } &&
17255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17256 { (case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_try") 2>&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest$ac_exeext'
17266 { (case "(($ac_try" in
17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268 *) ac_try_echo=$ac_try;;
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_try") 2>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; }; then
17275 eval "$as_ac_var=yes"
17277 echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17280 eval "$as_ac_var=no"
17283 rm -f core conftest.err conftest.$ac_objext \
17284 conftest$ac_exeext conftest.$ac_ext
17286 ac_res=`eval echo '${'$as_ac_var'}'`
17287 { echo "$as_me:$LINENO: result: $ac_res" >&5
17288 echo "${ECHO_T}$ac_res" >&6; }
17289 if test `eval echo '${'$as_ac_var'}'` = yes; then
17290 cat >>confdefs.h <<_ACEOF
17291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17301 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17309 cat >conftest.$ac_ext <<_ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17317 #define $ac_func innocuous_$ac_func
17319 /* System header to define __stub macros and hopefully few prototypes,
17320 which can conflict with char $ac_func (); below.
17321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17322 <limits.h> exists even on freestanding compilers. */
17325 # include <limits.h>
17327 # include <assert.h>
17332 /* Override any GCC internal prototype to avoid an error.
17333 Use char because int might match the return type of a GCC
17334 builtin and then its argument prototype would still apply. */
17339 /* The GNU C library defines this for functions which it implements
17340 to always fail with ENOSYS. Some functions are actually named
17341 something starting with __ and the normal name is an alias. */
17342 #if defined __stub_$ac_func || defined __stub___$ac_func
17349 return $ac_func ();
17354 rm -f conftest.$ac_objext conftest$ac_exeext
17355 if { (ac_try="$ac_link"
17356 case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361 (eval "$ac_link") 2>conftest.er1
17363 grep -v '^ *+' conftest.er1 >conftest.err
17365 cat conftest.err >&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } &&
17368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17369 { (case "(($ac_try" in
17370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371 *) ac_try_echo=$ac_try;;
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374 (eval "$ac_try") 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; } &&
17378 { ac_try='test -s conftest$ac_exeext'
17379 { (case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_try") 2>&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17388 eval "$as_ac_var=yes"
17390 echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17393 eval "$as_ac_var=no"
17396 rm -f core conftest.err conftest.$ac_objext \
17397 conftest$ac_exeext conftest.$ac_ext
17399 ac_res=`eval echo '${'$as_ac_var'}'`
17400 { echo "$as_me:$LINENO: result: $ac_res" >&5
17401 echo "${ECHO_T}$ac_res" >&6; }
17402 if test `eval echo '${'$as_ac_var'}'` = yes; then
17403 cat >>confdefs.h <<_ACEOF
17404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17415 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17421 echo $ECHO_N "(cached) $ECHO_C" >&6
17423 cat >conftest.$ac_ext <<_ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h. */
17429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17431 #define $ac_func innocuous_$ac_func
17433 /* System header to define __stub macros and hopefully few prototypes,
17434 which can conflict with char $ac_func (); below.
17435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17436 <limits.h> exists even on freestanding compilers. */
17439 # include <limits.h>
17441 # include <assert.h>
17446 /* Override any GCC internal prototype to avoid an error.
17447 Use char because int might match the return type of a GCC
17448 builtin and then its argument prototype would still apply. */
17453 /* The GNU C library defines this for functions which it implements
17454 to always fail with ENOSYS. Some functions are actually named
17455 something starting with __ and the normal name is an alias. */
17456 #if defined __stub_$ac_func || defined __stub___$ac_func
17463 return $ac_func ();
17468 rm -f conftest.$ac_objext conftest$ac_exeext
17469 if { (ac_try="$ac_link"
17470 case "(($ac_try" in
17471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17472 *) ac_try_echo=$ac_try;;
17474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17475 (eval "$ac_link") 2>conftest.er1
17477 grep -v '^ *+' conftest.er1 >conftest.err
17479 cat conftest.err >&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } &&
17482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17483 { (case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_try") 2>&5
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; } &&
17492 { ac_try='test -s conftest$ac_exeext'
17493 { (case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_try") 2>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 eval "$as_ac_var=yes"
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 eval "$as_ac_var=no"
17510 rm -f core conftest.err conftest.$ac_objext \
17511 conftest$ac_exeext conftest.$ac_ext
17513 ac_res=`eval echo '${'$as_ac_var'}'`
17514 { echo "$as_me:$LINENO: result: $ac_res" >&5
17515 echo "${ECHO_T}$ac_res" >&6; }
17516 if test `eval echo '${'$as_ac_var'}'` = yes; then
17517 cat >>confdefs.h <<_ACEOF
17518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17524 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17525 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17526 if test "${llvm_cv_c_printf_a+set}" = set; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
17530 ac_cpp='$CPP $CPPFLAGS'
17531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17535 if test "$cross_compiling" = yes; then
17536 llvmac_cv_c_printf_a=no
17538 cat >conftest.$ac_ext <<_ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17547 #include <stdlib.h>
17553 volatile double A, B;
17557 sprintf(Buffer, "%a", A);
17561 if (A != 0x1.999999999999ap-4)
17568 rm -f conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_link") 2>&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 llvm_cv_c_printf_a=yes
17590 echo "$as_me: program exited with status $ac_status" >&5
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17594 ( exit $ac_status )
17595 llvmac_cv_c_printf_a=no
17597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17602 ac_cpp='$CPP $CPPFLAGS'
17603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17608 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17609 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17610 if test "$llvm_cv_c_printf_a" = "yes"; then
17612 cat >>confdefs.h <<\_ACEOF
17613 #define HAVE_PRINTF_A 1
17619 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17620 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17621 if test "${ac_cv_func_rand48+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17625 ac_cpp='$CXXCPP $CPPFLAGS'
17626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17630 cat >conftest.$ac_ext <<_ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17636 #include <stdlib.h>
17640 srand48(0);lrand48();drand48();
17645 rm -f conftest.$ac_objext
17646 if { (ac_try="$ac_compile"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_compile") 2>conftest.er1
17654 grep -v '^ *+' conftest.er1 >conftest.err
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17660 { (case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_try") 2>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
17670 { (case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_try") 2>&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_cv_func_rand48=yes
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17684 ac_cv_func_rand48=no
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17689 ac_cpp='$CPP $CPPFLAGS'
17690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17695 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17696 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17698 if test "$ac_cv_func_rand48" = "yes" ; then
17700 cat >>confdefs.h <<\_ACEOF
17701 #define HAVE_RAND48 1
17707 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17708 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17709 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17710 echo $ECHO_N "(cached) $ECHO_C" >&6
17712 cat >conftest.$ac_ext <<_ACEOF
17715 cat confdefs.h >>conftest.$ac_ext
17716 cat >>conftest.$ac_ext <<_ACEOF
17717 /* end confdefs.h. */
17718 $ac_includes_default
17723 char *p = (char *) strerror_s;
17731 rm -f conftest.$ac_objext
17732 if { (ac_try="$ac_compile"
17733 case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_compile") 2>conftest.er1
17740 grep -v '^ *+' conftest.er1 >conftest.err
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } &&
17745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17746 { (case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_try") 2>&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; }; then
17765 ac_cv_have_decl_strerror_s=yes
17767 echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17770 ac_cv_have_decl_strerror_s=no
17773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17775 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17776 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17777 if test $ac_cv_have_decl_strerror_s = yes; then
17779 cat >>confdefs.h <<_ACEOF
17780 #define HAVE_DECL_STRERROR_S 1
17785 cat >>confdefs.h <<_ACEOF
17786 #define HAVE_DECL_STRERROR_S 0
17794 if test "$llvm_cv_os_type" = "MingW" ; then
17795 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17796 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17797 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 ac_check_lib_save_LIBS=$LIBS
17802 cat >conftest.$ac_ext <<_ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17809 /* Override any GCC internal prototype to avoid an error.
17810 Use char because int might match the return type of a GCC
17811 builtin and then its argument prototype would still apply. */
17824 rm -f conftest.$ac_objext conftest$ac_exeext
17825 if { (ac_try="$ac_link"
17826 case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_link") 2>conftest.er1
17833 grep -v '^ *+' conftest.er1 >conftest.err
17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
17838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17839 { (case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_try") 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; } &&
17848 { ac_try='test -s conftest$ac_exeext'
17849 { (case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_try") 2>&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 ac_cv_lib_gcc__alloca=yes
17860 echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17863 ac_cv_lib_gcc__alloca=no
17866 rm -f core conftest.err conftest.$ac_objext \
17867 conftest$ac_exeext conftest.$ac_ext
17868 LIBS=$ac_check_lib_save_LIBS
17870 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17871 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17872 if test $ac_cv_lib_gcc__alloca = yes; then
17874 cat >>confdefs.h <<\_ACEOF
17875 #define HAVE__ALLOCA 1
17880 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17881 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17882 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17885 ac_check_lib_save_LIBS=$LIBS
17887 cat >conftest.$ac_ext <<_ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17894 /* Override any GCC internal prototype to avoid an error.
17895 Use char because int might match the return type of a GCC
17896 builtin and then its argument prototype would still apply. */
17904 return __alloca ();
17909 rm -f conftest.$ac_objext conftest$ac_exeext
17910 if { (ac_try="$ac_link"
17911 case "(($ac_try" in
17912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913 *) ac_try_echo=$ac_try;;
17915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916 (eval "$ac_link") 2>conftest.er1
17918 grep -v '^ *+' conftest.er1 >conftest.err
17920 cat conftest.err >&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } &&
17923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17924 { (case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_try") 2>&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; } &&
17933 { ac_try='test -s conftest$ac_exeext'
17934 { (case "(($ac_try" in
17935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936 *) ac_try_echo=$ac_try;;
17938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939 (eval "$ac_try") 2>&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; }; then
17943 ac_cv_lib_gcc___alloca=yes
17945 echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17948 ac_cv_lib_gcc___alloca=no
17951 rm -f core conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
17953 LIBS=$ac_check_lib_save_LIBS
17955 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17956 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17957 if test $ac_cv_lib_gcc___alloca = yes; then
17959 cat >>confdefs.h <<\_ACEOF
17960 #define HAVE___ALLOCA 1
17965 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17966 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17967 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17970 ac_check_lib_save_LIBS=$LIBS
17972 cat >conftest.$ac_ext <<_ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17979 /* Override any GCC internal prototype to avoid an error.
17980 Use char because int might match the return type of a GCC
17981 builtin and then its argument prototype would still apply. */
17989 return __chkstk ();
17994 rm -f conftest.$ac_objext conftest$ac_exeext
17995 if { (ac_try="$ac_link"
17996 case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_link") 2>conftest.er1
18003 grep -v '^ *+' conftest.er1 >conftest.err
18005 cat conftest.err >&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } &&
18008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18009 { (case "(($ac_try" in
18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011 *) ac_try_echo=$ac_try;;
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014 (eval "$ac_try") 2>&5
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; } &&
18018 { ac_try='test -s conftest$ac_exeext'
18019 { (case "(($ac_try" in
18020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18021 *) ac_try_echo=$ac_try;;
18023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18024 (eval "$ac_try") 2>&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; }; then
18028 ac_cv_lib_gcc___chkstk=yes
18030 echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18033 ac_cv_lib_gcc___chkstk=no
18036 rm -f core conftest.err conftest.$ac_objext \
18037 conftest$ac_exeext conftest.$ac_ext
18038 LIBS=$ac_check_lib_save_LIBS
18040 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18041 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18042 if test $ac_cv_lib_gcc___chkstk = yes; then
18044 cat >>confdefs.h <<\_ACEOF
18045 #define HAVE___CHKSTK 1
18050 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18051 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18052 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18053 echo $ECHO_N "(cached) $ECHO_C" >&6
18055 ac_check_lib_save_LIBS=$LIBS
18057 cat >conftest.$ac_ext <<_ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18064 /* Override any GCC internal prototype to avoid an error.
18065 Use char because int might match the return type of a GCC
18066 builtin and then its argument prototype would still apply. */
18074 return ___chkstk ();
18079 rm -f conftest.$ac_objext conftest$ac_exeext
18080 if { (ac_try="$ac_link"
18081 case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_link") 2>conftest.er1
18088 grep -v '^ *+' conftest.er1 >conftest.err
18090 cat conftest.err >&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } &&
18093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18094 { (case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_try") 2>&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; } &&
18103 { ac_try='test -s conftest$ac_exeext'
18104 { (case "(($ac_try" in
18105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106 *) ac_try_echo=$ac_try;;
18108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109 (eval "$ac_try") 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 ac_cv_lib_gcc____chkstk=yes
18115 echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18118 ac_cv_lib_gcc____chkstk=no
18121 rm -f core conftest.err conftest.$ac_objext \
18122 conftest$ac_exeext conftest.$ac_ext
18123 LIBS=$ac_check_lib_save_LIBS
18125 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18126 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18127 if test $ac_cv_lib_gcc____chkstk = yes; then
18129 cat >>confdefs.h <<\_ACEOF
18130 #define HAVE____CHKSTK 1
18136 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18137 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18138 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18141 ac_check_lib_save_LIBS=$LIBS
18143 cat >conftest.$ac_ext <<_ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18150 /* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18160 return __ashldi3 ();
18165 rm -f conftest.$ac_objext conftest$ac_exeext
18166 if { (ac_try="$ac_link"
18167 case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_link") 2>conftest.er1
18174 grep -v '^ *+' conftest.er1 >conftest.err
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } &&
18179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18180 { (case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_try") 2>&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; }; then
18199 ac_cv_lib_gcc___ashldi3=yes
18201 echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18204 ac_cv_lib_gcc___ashldi3=no
18207 rm -f core conftest.err conftest.$ac_objext \
18208 conftest$ac_exeext conftest.$ac_ext
18209 LIBS=$ac_check_lib_save_LIBS
18211 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18212 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18213 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18215 cat >>confdefs.h <<\_ACEOF
18216 #define HAVE___ASHLDI3 1
18221 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18222 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18223 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18226 ac_check_lib_save_LIBS=$LIBS
18228 cat >conftest.$ac_ext <<_ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h. */
18235 /* Override any GCC internal prototype to avoid an error.
18236 Use char because int might match the return type of a GCC
18237 builtin and then its argument prototype would still apply. */
18245 return __ashrdi3 ();
18250 rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (ac_try="$ac_link"
18252 case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_link") 2>conftest.er1
18259 grep -v '^ *+' conftest.er1 >conftest.err
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
18264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18265 { (case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_try") 2>&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; } &&
18274 { ac_try='test -s conftest$ac_exeext'
18275 { (case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_try") 2>&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18284 ac_cv_lib_gcc___ashrdi3=yes
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18289 ac_cv_lib_gcc___ashrdi3=no
18292 rm -f core conftest.err conftest.$ac_objext \
18293 conftest$ac_exeext conftest.$ac_ext
18294 LIBS=$ac_check_lib_save_LIBS
18296 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18297 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18298 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18300 cat >>confdefs.h <<\_ACEOF
18301 #define HAVE___ASHRDI3 1
18306 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18307 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18308 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18311 ac_check_lib_save_LIBS=$LIBS
18313 cat >conftest.$ac_ext <<_ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18320 /* Override any GCC internal prototype to avoid an error.
18321 Use char because int might match the return type of a GCC
18322 builtin and then its argument prototype would still apply. */
18330 return __divdi3 ();
18335 rm -f conftest.$ac_objext conftest$ac_exeext
18336 if { (ac_try="$ac_link"
18337 case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_link") 2>conftest.er1
18344 grep -v '^ *+' conftest.er1 >conftest.err
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } &&
18349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18350 { (case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_try") 2>&5
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; } &&
18359 { ac_try='test -s conftest$ac_exeext'
18360 { (case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365 (eval "$ac_try") 2>&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; }; then
18369 ac_cv_lib_gcc___divdi3=yes
18371 echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18374 ac_cv_lib_gcc___divdi3=no
18377 rm -f core conftest.err conftest.$ac_objext \
18378 conftest$ac_exeext conftest.$ac_ext
18379 LIBS=$ac_check_lib_save_LIBS
18381 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18382 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18383 if test $ac_cv_lib_gcc___divdi3 = yes; then
18385 cat >>confdefs.h <<\_ACEOF
18386 #define HAVE___DIVDI3 1
18391 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18392 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18393 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18394 echo $ECHO_N "(cached) $ECHO_C" >&6
18396 ac_check_lib_save_LIBS=$LIBS
18398 cat >conftest.$ac_ext <<_ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h. */
18405 /* Override any GCC internal prototype to avoid an error.
18406 Use char because int might match the return type of a GCC
18407 builtin and then its argument prototype would still apply. */
18415 return __fixdfdi ();
18420 rm -f conftest.$ac_objext conftest$ac_exeext
18421 if { (ac_try="$ac_link"
18422 case "(($ac_try" in
18423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424 *) ac_try_echo=$ac_try;;
18426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427 (eval "$ac_link") 2>conftest.er1
18429 grep -v '^ *+' conftest.er1 >conftest.err
18431 cat conftest.err >&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } &&
18434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18435 { (case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_try") 2>&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; } &&
18444 { ac_try='test -s conftest$ac_exeext'
18445 { (case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450 (eval "$ac_try") 2>&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); }; }; then
18454 ac_cv_lib_gcc___fixdfdi=yes
18456 echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18459 ac_cv_lib_gcc___fixdfdi=no
18462 rm -f core conftest.err conftest.$ac_objext \
18463 conftest$ac_exeext conftest.$ac_ext
18464 LIBS=$ac_check_lib_save_LIBS
18466 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18467 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18468 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18470 cat >>confdefs.h <<\_ACEOF
18471 #define HAVE___FIXDFDI 1
18476 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18477 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18478 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 ac_check_lib_save_LIBS=$LIBS
18483 cat >conftest.$ac_ext <<_ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18490 /* Override any GCC internal prototype to avoid an error.
18491 Use char because int might match the return type of a GCC
18492 builtin and then its argument prototype would still apply. */
18500 return __fixsfdi ();
18505 rm -f conftest.$ac_objext conftest$ac_exeext
18506 if { (ac_try="$ac_link"
18507 case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_link") 2>conftest.er1
18514 grep -v '^ *+' conftest.er1 >conftest.err
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18520 { (case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_try") 2>&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; } &&
18529 { ac_try='test -s conftest$ac_exeext'
18530 { (case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_try") 2>&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; }; then
18539 ac_cv_lib_gcc___fixsfdi=yes
18541 echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18544 ac_cv_lib_gcc___fixsfdi=no
18547 rm -f core conftest.err conftest.$ac_objext \
18548 conftest$ac_exeext conftest.$ac_ext
18549 LIBS=$ac_check_lib_save_LIBS
18551 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18552 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18553 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18555 cat >>confdefs.h <<\_ACEOF
18556 #define HAVE___FIXSFDI 1
18561 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18562 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18563 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18566 ac_check_lib_save_LIBS=$LIBS
18568 cat >conftest.$ac_ext <<_ACEOF
18571 cat confdefs.h >>conftest.$ac_ext
18572 cat >>conftest.$ac_ext <<_ACEOF
18573 /* end confdefs.h. */
18575 /* Override any GCC internal prototype to avoid an error.
18576 Use char because int might match the return type of a GCC
18577 builtin and then its argument prototype would still apply. */
18581 char __floatdidf ();
18585 return __floatdidf ();
18590 rm -f conftest.$ac_objext conftest$ac_exeext
18591 if { (ac_try="$ac_link"
18592 case "(($ac_try" in
18593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594 *) ac_try_echo=$ac_try;;
18596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597 (eval "$ac_link") 2>conftest.er1
18599 grep -v '^ *+' conftest.er1 >conftest.err
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } &&
18604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18605 { (case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_try") 2>&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; } &&
18614 { ac_try='test -s conftest$ac_exeext'
18615 { (case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_try") 2>&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624 ac_cv_lib_gcc___floatdidf=yes
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18629 ac_cv_lib_gcc___floatdidf=no
18632 rm -f core conftest.err conftest.$ac_objext \
18633 conftest$ac_exeext conftest.$ac_ext
18634 LIBS=$ac_check_lib_save_LIBS
18636 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18637 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18638 if test $ac_cv_lib_gcc___floatdidf = yes; then
18640 cat >>confdefs.h <<\_ACEOF
18641 #define HAVE___FLOATDIDF 1
18646 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18647 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18648 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18651 ac_check_lib_save_LIBS=$LIBS
18653 cat >conftest.$ac_ext <<_ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18660 /* Override any GCC internal prototype to avoid an error.
18661 Use char because int might match the return type of a GCC
18662 builtin and then its argument prototype would still apply. */
18670 return __lshrdi3 ();
18675 rm -f conftest.$ac_objext conftest$ac_exeext
18676 if { (ac_try="$ac_link"
18677 case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_link") 2>conftest.er1
18684 grep -v '^ *+' conftest.er1 >conftest.err
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } &&
18689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18690 { (case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_try") 2>&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; } &&
18699 { ac_try='test -s conftest$ac_exeext'
18700 { (case "(($ac_try" in
18701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702 *) ac_try_echo=$ac_try;;
18704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705 (eval "$ac_try") 2>&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; }; then
18709 ac_cv_lib_gcc___lshrdi3=yes
18711 echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18714 ac_cv_lib_gcc___lshrdi3=no
18717 rm -f core conftest.err conftest.$ac_objext \
18718 conftest$ac_exeext conftest.$ac_ext
18719 LIBS=$ac_check_lib_save_LIBS
18721 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18722 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18723 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18725 cat >>confdefs.h <<\_ACEOF
18726 #define HAVE___LSHRDI3 1
18731 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18732 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18733 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18736 ac_check_lib_save_LIBS=$LIBS
18738 cat >conftest.$ac_ext <<_ACEOF
18741 cat confdefs.h >>conftest.$ac_ext
18742 cat >>conftest.$ac_ext <<_ACEOF
18743 /* end confdefs.h. */
18745 /* Override any GCC internal prototype to avoid an error.
18746 Use char because int might match the return type of a GCC
18747 builtin and then its argument prototype would still apply. */
18755 return __moddi3 ();
18760 rm -f conftest.$ac_objext conftest$ac_exeext
18761 if { (ac_try="$ac_link"
18762 case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_link") 2>conftest.er1
18769 grep -v '^ *+' conftest.er1 >conftest.err
18771 cat conftest.err >&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } &&
18774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18775 { (case "(($ac_try" in
18776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780 (eval "$ac_try") 2>&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; } &&
18784 { ac_try='test -s conftest$ac_exeext'
18785 { (case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_try") 2>&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; }; then
18794 ac_cv_lib_gcc___moddi3=yes
18796 echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18799 ac_cv_lib_gcc___moddi3=no
18802 rm -f core conftest.err conftest.$ac_objext \
18803 conftest$ac_exeext conftest.$ac_ext
18804 LIBS=$ac_check_lib_save_LIBS
18806 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18807 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18808 if test $ac_cv_lib_gcc___moddi3 = yes; then
18810 cat >>confdefs.h <<\_ACEOF
18811 #define HAVE___MODDI3 1
18816 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18817 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18818 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18821 ac_check_lib_save_LIBS=$LIBS
18823 cat >conftest.$ac_ext <<_ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18830 /* Override any GCC internal prototype to avoid an error.
18831 Use char because int might match the return type of a GCC
18832 builtin and then its argument prototype would still apply. */
18840 return __udivdi3 ();
18845 rm -f conftest.$ac_objext conftest$ac_exeext
18846 if { (ac_try="$ac_link"
18847 case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_link") 2>conftest.er1
18854 grep -v '^ *+' conftest.er1 >conftest.err
18856 cat conftest.err >&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } &&
18859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18860 { (case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865 (eval "$ac_try") 2>&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; } &&
18869 { ac_try='test -s conftest$ac_exeext'
18870 { (case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18875 (eval "$ac_try") 2>&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; }; then
18879 ac_cv_lib_gcc___udivdi3=yes
18881 echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18884 ac_cv_lib_gcc___udivdi3=no
18887 rm -f core conftest.err conftest.$ac_objext \
18888 conftest$ac_exeext conftest.$ac_ext
18889 LIBS=$ac_check_lib_save_LIBS
18891 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18892 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18893 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18895 cat >>confdefs.h <<\_ACEOF
18896 #define HAVE___UDIVDI3 1
18901 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18902 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18903 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18906 ac_check_lib_save_LIBS=$LIBS
18908 cat >conftest.$ac_ext <<_ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18915 /* Override any GCC internal prototype to avoid an error.
18916 Use char because int might match the return type of a GCC
18917 builtin and then its argument prototype would still apply. */
18925 return __umoddi3 ();
18930 rm -f conftest.$ac_objext conftest$ac_exeext
18931 if { (ac_try="$ac_link"
18932 case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_link") 2>conftest.er1
18939 grep -v '^ *+' conftest.er1 >conftest.err
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
18944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18945 { (case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_try") 2>&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; } &&
18954 { ac_try='test -s conftest$ac_exeext'
18955 { (case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_try") 2>&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 ac_cv_lib_gcc___umoddi3=yes
18966 echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18969 ac_cv_lib_gcc___umoddi3=no
18972 rm -f core conftest.err conftest.$ac_objext \
18973 conftest$ac_exeext conftest.$ac_ext
18974 LIBS=$ac_check_lib_save_LIBS
18976 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18977 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18978 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18980 cat >>confdefs.h <<\_ACEOF
18981 #define HAVE___UMODDI3 1
18987 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18988 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18989 if test "${ac_cv_lib_gcc___main+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 ac_check_lib_save_LIBS=$LIBS
18994 cat >conftest.$ac_ext <<_ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h. */
19001 /* Override any GCC internal prototype to avoid an error.
19002 Use char because int might match the return type of a GCC
19003 builtin and then its argument prototype would still apply. */
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_link") 2>conftest.er1
19025 grep -v '^ *+' conftest.er1 >conftest.err
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } &&
19030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19031 { (case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_try") 2>&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; } &&
19040 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_cv_lib_gcc___main=yes
19052 echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19055 ac_cv_lib_gcc___main=no
19058 rm -f core conftest.err conftest.$ac_objext \
19059 conftest$ac_exeext conftest.$ac_ext
19060 LIBS=$ac_check_lib_save_LIBS
19062 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19063 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19064 if test $ac_cv_lib_gcc___main = yes; then
19066 cat >>confdefs.h <<\_ACEOF
19067 #define HAVE___MAIN 1
19072 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19073 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19074 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 ac_check_lib_save_LIBS=$LIBS
19079 cat >conftest.$ac_ext <<_ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h. */
19086 /* Override any GCC internal prototype to avoid an error.
19087 Use char because int might match the return type of a GCC
19088 builtin and then its argument prototype would still apply. */
19096 return __cmpdi2 ();
19101 rm -f conftest.$ac_objext conftest$ac_exeext
19102 if { (ac_try="$ac_link"
19103 case "(($ac_try" in
19104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105 *) ac_try_echo=$ac_try;;
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108 (eval "$ac_link") 2>conftest.er1
19110 grep -v '^ *+' conftest.er1 >conftest.err
19112 cat conftest.err >&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } &&
19115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19116 { (case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_try") 2>&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; } &&
19125 { ac_try='test -s conftest$ac_exeext'
19126 { (case "(($ac_try" in
19127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128 *) ac_try_echo=$ac_try;;
19130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131 (eval "$ac_try") 2>&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; }; then
19135 ac_cv_lib_gcc___cmpdi2=yes
19137 echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19140 ac_cv_lib_gcc___cmpdi2=no
19143 rm -f core conftest.err conftest.$ac_objext \
19144 conftest$ac_exeext conftest.$ac_ext
19145 LIBS=$ac_check_lib_save_LIBS
19147 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19148 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19149 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19151 cat >>confdefs.h <<\_ACEOF
19152 #define HAVE___CMPDI2 1
19159 if test "$llvm_cv_os_type" = "MingW" ; then
19160 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19161 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19162 cat >conftest.$ac_ext <<_ACEOF
19163 #include <windows.h>
19164 #include <imagehlp.h>
19165 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19166 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19168 rm -f conftest.$ac_objext
19169 if { (ac_try="$ac_compile"
19170 case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_compile") 2>conftest.er1
19177 grep -v '^ *+' conftest.er1 >conftest.err
19179 cat conftest.err >&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } &&
19182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19183 { (case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_try") 2>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; } &&
19192 { ac_try='test -s conftest.$ac_objext'
19193 { (case "(($ac_try" in
19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195 *) ac_try_echo=$ac_try;;
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198 (eval "$ac_try") 2>&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; }; then
19203 { echo "$as_me:$LINENO: result: yes" >&5
19204 echo "${ECHO_T}yes" >&6; }
19205 llvm_cv_win32_elmcb_pcstr="PCSTR"
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19212 { echo "$as_me:$LINENO: result: no" >&5
19213 echo "${ECHO_T}no" >&6; }
19214 llvm_cv_win32_elmcb_pcstr="PSTR"
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19220 cat >>confdefs.h <<_ACEOF
19221 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19227 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19228 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19229 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19233 ac_cpp='$CXXCPP $CPPFLAGS'
19234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19238 cat >conftest.$ac_ext <<_ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19253 rm -f conftest.$ac_objext
19254 if { (ac_try="$ac_compile"
19255 case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_compile") 2>conftest.er1
19262 grep -v '^ *+' conftest.er1 >conftest.err
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
19267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19268 { (case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_try") 2>&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; } &&
19277 { ac_try='test -s conftest.$ac_objext'
19278 { (case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_try") 2>&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; }; then
19287 ac_cv_func_isnan_in_math_h=yes
19289 echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19292 ac_cv_func_isnan_in_math_h=no
19295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19297 ac_cpp='$CPP $CPPFLAGS'
19298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19303 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19304 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19307 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19309 cat >>confdefs.h <<\_ACEOF
19310 #define HAVE_ISNAN_IN_MATH_H 1
19315 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19316 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19317 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19318 echo $ECHO_N "(cached) $ECHO_C" >&6
19321 ac_cpp='$CXXCPP $CPPFLAGS'
19322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19326 cat >conftest.$ac_ext <<_ACEOF
19329 cat confdefs.h >>conftest.$ac_ext
19330 cat >>conftest.$ac_ext <<_ACEOF
19331 /* end confdefs.h. */
19341 rm -f conftest.$ac_objext
19342 if { (ac_try="$ac_compile"
19343 case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_compile") 2>conftest.er1
19350 grep -v '^ *+' conftest.er1 >conftest.err
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19356 { (case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_try") 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try='test -s conftest.$ac_objext'
19366 { (case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_try") 2>&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; }; then
19375 ac_cv_func_isnan_in_cmath=yes
19377 echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19380 ac_cv_func_isnan_in_cmath=no
19383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19385 ac_cpp='$CPP $CPPFLAGS'
19386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19391 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19392 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19394 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19396 cat >>confdefs.h <<\_ACEOF
19397 #define HAVE_ISNAN_IN_CMATH 1
19402 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19403 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19404 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 ac_cpp='$CXXCPP $CPPFLAGS'
19409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19413 cat >conftest.$ac_ext <<_ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h. */
19423 float f; std::isnan(f);
19428 rm -f conftest.$ac_objext
19429 if { (ac_try="$ac_compile"
19430 case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_compile") 2>conftest.er1
19437 grep -v '^ *+' conftest.er1 >conftest.err
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19443 { (case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_try") 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest.$ac_objext'
19453 { (case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_try") 2>&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; }; then
19462 ac_cv_func_std_isnan_in_cmath=yes
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19467 ac_cv_func_std_isnan_in_cmath=no
19470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472 ac_cpp='$CPP $CPPFLAGS'
19473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19478 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19479 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19481 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19483 cat >>confdefs.h <<\_ACEOF
19484 #define HAVE_STD_ISNAN_IN_CMATH 1
19490 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19491 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19492 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19493 echo $ECHO_N "(cached) $ECHO_C" >&6
19496 ac_cpp='$CXXCPP $CPPFLAGS'
19497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19501 cat >conftest.$ac_ext <<_ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19516 rm -f conftest.$ac_objext
19517 if { (ac_try="$ac_compile"
19518 case "(($ac_try" in
19519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520 *) ac_try_echo=$ac_try;;
19522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19523 (eval "$ac_compile") 2>conftest.er1
19525 grep -v '^ *+' conftest.er1 >conftest.err
19527 cat conftest.err >&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } &&
19530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19531 { (case "(($ac_try" in
19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533 *) ac_try_echo=$ac_try;;
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536 (eval "$ac_try") 2>&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; } &&
19540 { ac_try='test -s conftest.$ac_objext'
19541 { (case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_try") 2>&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; }; then
19550 ac_cv_func_isinf_in_math_h=yes
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19555 ac_cv_func_isinf_in_math_h=no
19558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19560 ac_cpp='$CPP $CPPFLAGS'
19561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19566 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19567 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19569 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19571 cat >>confdefs.h <<\_ACEOF
19572 #define HAVE_ISINF_IN_MATH_H 1
19577 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19578 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19579 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19583 ac_cpp='$CXXCPP $CPPFLAGS'
19584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19588 cat >conftest.$ac_ext <<_ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h. */
19603 rm -f conftest.$ac_objext
19604 if { (ac_try="$ac_compile"
19605 case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610 (eval "$ac_compile") 2>conftest.er1
19612 grep -v '^ *+' conftest.er1 >conftest.err
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } &&
19617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19618 { (case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_try") 2>&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest.$ac_objext'
19628 { (case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_try") 2>&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 ac_cv_func_isinf_in_cmath=yes
19639 echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19642 ac_cv_func_isinf_in_cmath=no
19645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19647 ac_cpp='$CPP $CPPFLAGS'
19648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19653 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19654 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19656 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19658 cat >>confdefs.h <<\_ACEOF
19659 #define HAVE_ISINF_IN_CMATH 1
19664 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19665 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19666 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19667 echo $ECHO_N "(cached) $ECHO_C" >&6
19670 ac_cpp='$CXXCPP $CPPFLAGS'
19671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19675 cat >conftest.$ac_ext <<_ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h. */
19685 float f; std::isinf(f)}
19690 rm -f conftest.$ac_objext
19691 if { (ac_try="$ac_compile"
19692 case "(($ac_try" in
19693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694 *) ac_try_echo=$ac_try;;
19696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697 (eval "$ac_compile") 2>conftest.er1
19699 grep -v '^ *+' conftest.er1 >conftest.err
19701 cat conftest.err >&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } &&
19704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19705 { (case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_try") 2>&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; } &&
19714 { ac_try='test -s conftest.$ac_objext'
19715 { (case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_try") 2>&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
19724 ac_cv_func_std_isinf_in_cmath=yes
19726 echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19729 ac_cv_func_std_isinf_in_cmath=no
19732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19734 ac_cpp='$CPP $CPPFLAGS'
19735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19740 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19741 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19743 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19745 cat >>confdefs.h <<\_ACEOF
19746 #define HAVE_STD_ISINF_IN_CMATH 1
19751 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19752 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19753 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19757 ac_cpp='$CXXCPP $CPPFLAGS'
19758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19762 cat >conftest.$ac_ext <<_ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19768 #include <ieeefp.h>
19772 float f; finite(f);
19777 rm -f conftest.$ac_objext
19778 if { (ac_try="$ac_compile"
19779 case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_compile") 2>conftest.er1
19786 grep -v '^ *+' conftest.er1 >conftest.err
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } &&
19791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19792 { (case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_try") 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; } &&
19801 { ac_try='test -s conftest.$ac_objext'
19802 { (case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_try") 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811 ac_cv_func_finite_in_ieeefp_h=yes
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19816 ac_cv_func_finite_in_ieeefp_h=no
19819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19821 ac_cpp='$CPP $CPPFLAGS'
19822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19827 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19828 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19830 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19832 cat >>confdefs.h <<\_ACEOF
19833 #define HAVE_FINITE_IN_IEEEFP_H 1
19840 if test "$llvm_cv_platform_type" = "Unix" ; then
19843 for ac_header in stdlib.h unistd.h
19845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19850 echo $ECHO_N "(cached) $ECHO_C" >&6
19852 ac_res=`eval echo '${'$as_ac_Header'}'`
19853 { echo "$as_me:$LINENO: result: $ac_res" >&5
19854 echo "${ECHO_T}$ac_res" >&6; }
19856 # Is the header compilable?
19857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19859 cat >conftest.$ac_ext <<_ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19865 $ac_includes_default
19866 #include <$ac_header>
19868 rm -f conftest.$ac_objext
19869 if { (ac_try="$ac_compile"
19870 case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_compile") 2>conftest.er1
19877 grep -v '^ *+' conftest.er1 >conftest.err
19879 cat conftest.err >&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } &&
19882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19883 { (case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_try") 2>&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; } &&
19892 { ac_try='test -s conftest.$ac_objext'
19893 { (case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_try") 2>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
19902 ac_header_compiler=yes
19904 echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19907 ac_header_compiler=no
19910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19912 echo "${ECHO_T}$ac_header_compiler" >&6; }
19914 # Is the header present?
19915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19917 cat >conftest.$ac_ext <<_ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923 #include <$ac_header>
19925 if { (ac_try="$ac_cpp conftest.$ac_ext"
19926 case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19933 grep -v '^ *+' conftest.er1 >conftest.err
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } >/dev/null; then
19938 if test -s conftest.err; then
19939 ac_cpp_err=$ac_c_preproc_warn_flag
19940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19947 if test -z "$ac_cpp_err"; then
19948 ac_header_preproc=yes
19950 echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19953 ac_header_preproc=no
19956 rm -f conftest.err conftest.$ac_ext
19957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19958 echo "${ECHO_T}$ac_header_preproc" >&6; }
19960 # So? What about this header?
19961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19967 ac_header_preproc=yes
19970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19977 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19983 ## ------------------------------------ ##
19984 ## Report this to http://llvm.org/bugs/ ##
19985 ## ------------------------------------ ##
19987 ) | sed "s/^/$as_me: WARNING: /" >&2
19990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 eval "$as_ac_Header=\$ac_header_preproc"
19997 ac_res=`eval echo '${'$as_ac_Header'}'`
19998 { echo "$as_me:$LINENO: result: $ac_res" >&5
19999 echo "${ECHO_T}$ac_res" >&6; }
20002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20003 cat >>confdefs.h <<_ACEOF
20004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20012 for ac_func in getpagesize
20014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20028 #define $ac_func innocuous_$ac_func
20030 /* System header to define __stub macros and hopefully few prototypes,
20031 which can conflict with char $ac_func (); below.
20032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20033 <limits.h> exists even on freestanding compilers. */
20036 # include <limits.h>
20038 # include <assert.h>
20043 /* Override any GCC internal prototype to avoid an error.
20044 Use char because int might match the return type of a GCC
20045 builtin and then its argument prototype would still apply. */
20050 /* The GNU C library defines this for functions which it implements
20051 to always fail with ENOSYS. Some functions are actually named
20052 something starting with __ and the normal name is an alias. */
20053 #if defined __stub_$ac_func || defined __stub___$ac_func
20060 return $ac_func ();
20065 rm -f conftest.$ac_objext conftest$ac_exeext
20066 if { (ac_try="$ac_link"
20067 case "(($ac_try" in
20068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069 *) ac_try_echo=$ac_try;;
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072 (eval "$ac_link") 2>conftest.er1
20074 grep -v '^ *+' conftest.er1 >conftest.err
20076 cat conftest.err >&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } &&
20079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20080 { (case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085 (eval "$ac_try") 2>&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; } &&
20089 { ac_try='test -s conftest$ac_exeext'
20090 { (case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_try") 2>&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099 eval "$as_ac_var=yes"
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20104 eval "$as_ac_var=no"
20107 rm -f core conftest.err conftest.$ac_objext \
20108 conftest$ac_exeext conftest.$ac_ext
20110 ac_res=`eval echo '${'$as_ac_var'}'`
20111 { echo "$as_me:$LINENO: result: $ac_res" >&5
20112 echo "${ECHO_T}$ac_res" >&6; }
20113 if test `eval echo '${'$as_ac_var'}'` = yes; then
20114 cat >>confdefs.h <<_ACEOF
20115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20121 { echo "$as_me:$LINENO: checking for working mmap" >&5
20122 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20123 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20126 if test "$cross_compiling" = yes; then
20127 ac_cv_func_mmap_fixed_mapped=no
20129 cat >conftest.$ac_ext <<_ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 $ac_includes_default
20136 /* malloc might have been renamed as rpl_malloc. */
20139 /* Thanks to Mike Haertel and Jim Avera for this test.
20140 Here is a matrix of mmap possibilities:
20141 mmap private not fixed
20142 mmap private fixed at somewhere currently unmapped
20143 mmap private fixed at somewhere already mapped
20144 mmap shared not fixed
20145 mmap shared fixed at somewhere currently unmapped
20146 mmap shared fixed at somewhere already mapped
20147 For private mappings, we should verify that changes cannot be read()
20148 back from the file, nor mmap's back from the file at a different
20149 address. (There have been systems where private was not correctly
20150 implemented like the infamous i386 svr4.0, and systems where the
20151 VM page cache was not coherent with the file system buffer cache
20152 like early versions of FreeBSD and possibly contemporary NetBSD.)
20153 For shared mappings, we should conversely verify that changes get
20154 propagated back to all the places they're supposed to be.
20156 Grep wants private fixed already mapped.
20157 The main things grep needs to know about mmap are:
20158 * does it exist and is it safe to write into the mmap'd area
20159 * how to use it (BSD variants) */
20162 #include <sys/mman.h>
20164 #if !STDC_HEADERS && !HAVE_STDLIB_H
20168 /* This mess was copied from the GNU getpagesize.h. */
20169 #if !HAVE_GETPAGESIZE
20170 /* Assume that all systems that can run configure have sys/param.h. */
20171 # if !HAVE_SYS_PARAM_H
20172 # define HAVE_SYS_PARAM_H 1
20175 # ifdef _SC_PAGESIZE
20176 # define getpagesize() sysconf(_SC_PAGESIZE)
20177 # else /* no _SC_PAGESIZE */
20178 # if HAVE_SYS_PARAM_H
20179 # include <sys/param.h>
20180 # ifdef EXEC_PAGESIZE
20181 # define getpagesize() EXEC_PAGESIZE
20182 # else /* no EXEC_PAGESIZE */
20184 # define getpagesize() NBPG * CLSIZE
20187 # endif /* no CLSIZE */
20188 # else /* no NBPG */
20190 # define getpagesize() NBPC
20191 # else /* no NBPC */
20193 # define getpagesize() PAGESIZE
20194 # endif /* PAGESIZE */
20195 # endif /* no NBPC */
20196 # endif /* no NBPG */
20197 # endif /* no EXEC_PAGESIZE */
20198 # else /* no HAVE_SYS_PARAM_H */
20199 # define getpagesize() 8192 /* punt totally */
20200 # endif /* no HAVE_SYS_PARAM_H */
20201 # endif /* no _SC_PAGESIZE */
20203 #endif /* no HAVE_GETPAGESIZE */
20208 char *data, *data2, *data3;
20212 pagesize = getpagesize ();
20214 /* First, make a file with some known garbage in it. */
20215 data = (char *) malloc (pagesize);
20218 for (i = 0; i < pagesize; ++i)
20219 *(data + i) = rand ();
20221 fd = creat ("conftest.mmap", 0600);
20224 if (write (fd, data, pagesize) != pagesize)
20228 /* Next, try to mmap the file at a fixed address which already has
20229 something else allocated at it. If we can, also make sure that
20230 we see the same garbage. */
20231 fd = open ("conftest.mmap", O_RDWR);
20234 data2 = (char *) malloc (2 * pagesize);
20237 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20238 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20239 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20241 for (i = 0; i < pagesize; ++i)
20242 if (*(data + i) != *(data2 + i))
20245 /* Finally, make sure that changes to the mapped area do not
20246 percolate back to the file as seen by read(). (This is a bug on
20247 some variants of i386 svr4.0.) */
20248 for (i = 0; i < pagesize; ++i)
20249 *(data2 + i) = *(data2 + i) + 1;
20250 data3 = (char *) malloc (pagesize);
20253 if (read (fd, data3, pagesize) != pagesize)
20255 for (i = 0; i < pagesize; ++i)
20256 if (*(data + i) != *(data3 + i))
20262 rm -f conftest$ac_exeext
20263 if { (ac_try="$ac_link"
20264 case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_link") 2>&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20282 ac_cv_func_mmap_fixed_mapped=yes
20284 echo "$as_me: program exited with status $ac_status" >&5
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 ( exit $ac_status )
20289 ac_cv_func_mmap_fixed_mapped=no
20291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20296 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20297 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20298 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20300 cat >>confdefs.h <<\_ACEOF
20301 #define HAVE_MMAP 1
20305 rm -f conftest.mmap
20307 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20308 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20309 if test "${ac_cv_func_mmap_file+set}" = set; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 ac_cpp='$CPP $CPPFLAGS'
20314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20318 if test "$cross_compiling" = yes; then
20319 ac_cv_func_mmap_file=no
20321 cat >conftest.$ac_ext <<_ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20329 #include <sys/types.h>
20330 #include <sys/mman.h>
20338 fd = creat ("foo",0777);
20339 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20341 return (fd != (int) MAP_FAILED);
20346 rm -f conftest$ac_exeext
20347 if { (ac_try="$ac_link"
20348 case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_link") 2>&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20357 { (case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_try") 2>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20366 ac_cv_func_mmap_file=yes
20368 echo "$as_me: program exited with status $ac_status" >&5
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20372 ( exit $ac_status )
20373 ac_cv_func_mmap_file=no
20375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20380 ac_cpp='$CPP $CPPFLAGS'
20381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20387 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20388 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20389 if test "$ac_cv_func_mmap_file" = yes; then
20391 cat >>confdefs.h <<\_ACEOF
20392 #define HAVE_MMAP_FILE
20399 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20400 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20401 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20404 if test "$llvm_cv_os_type" = "Interix" ; then
20405 ac_cv_need_dev_zero_for_mmap=yes
20407 ac_cv_need_dev_zero_for_mmap=no
20411 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20412 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20413 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20415 cat >>confdefs.h <<\_ACEOF
20416 #define NEED_DEV_ZERO_FOR_MMAP 1
20421 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20423 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20424 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20426 if test "$ac_cv_func_mmap_file" = "no"
20428 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20429 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20433 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20434 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20436 ac_cpp='$CXXCPP $CPPFLAGS'
20437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20441 cat >conftest.$ac_ext <<_ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20448 volatile unsigned long val = 1;
20449 __sync_synchronize();
20450 __sync_val_compare_and_swap(&val, 1, 0);
20451 __sync_add_and_fetch(&val, 1);
20452 __sync_sub_and_fetch(&val, 1);
20457 rm -f conftest.$ac_objext conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_link") 2>conftest.er1
20466 grep -v '^ *+' conftest.er1 >conftest.err
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
20471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20472 { (case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_try") 2>&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; } &&
20481 { ac_try='test -s conftest$ac_exeext'
20482 { (case "(($ac_try" in
20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487 (eval "$ac_try") 2>&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
20492 ac_cpp='$CPP $CPPFLAGS'
20493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20497 { echo "$as_me:$LINENO: result: yes" >&5
20498 echo "${ECHO_T}yes" >&6; }
20500 cat >>confdefs.h <<\_ACEOF
20501 #define LLVM_HAS_ATOMICS 1
20505 echo "$as_me: failed program was:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20508 { echo "$as_me:$LINENO: result: no" >&5
20509 echo "${ECHO_T}no" >&6; }
20511 cat >>confdefs.h <<\_ACEOF
20512 #define LLVM_HAS_ATOMICS 0
20515 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20516 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20519 rm -f core conftest.err conftest.$ac_objext \
20520 conftest$ac_exeext conftest.$ac_ext
20523 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20524 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20525 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20526 if test "${llvm_cv_linux_mixed+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 ac_cpp='$CPP $CPPFLAGS'
20531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20535 cat >conftest.$ac_ext <<_ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20542 error: Not x86-64 even if uname says so!
20553 rm -f conftest.$ac_objext
20554 if { (ac_try="$ac_compile"
20555 case "(($ac_try" in
20556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557 *) ac_try_echo=$ac_try;;
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560 (eval "$ac_compile") 2>conftest.er1
20562 grep -v '^ *+' conftest.er1 >conftest.err
20564 cat conftest.err >&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } &&
20567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; } &&
20577 { ac_try='test -s conftest.$ac_objext'
20578 { (case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_try") 2>&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }; then
20587 llvm_cv_linux_mixed=no
20589 echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20592 llvm_cv_linux_mixed=yes
20595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20597 ac_cpp='$CPP $CPPFLAGS'
20598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20604 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20605 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20607 if test "$llvm_cv_linux_mixed" = "yes"; then
20608 llvm_cv_target_arch="x86"
20614 for ac_func in __dso_handle
20616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20630 #define $ac_func innocuous_$ac_func
20632 /* System header to define __stub macros and hopefully few prototypes,
20633 which can conflict with char $ac_func (); below.
20634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20635 <limits.h> exists even on freestanding compilers. */
20638 # include <limits.h>
20640 # include <assert.h>
20645 /* Override any GCC internal prototype to avoid an error.
20646 Use char because int might match the return type of a GCC
20647 builtin and then its argument prototype would still apply. */
20652 /* The GNU C library defines this for functions which it implements
20653 to always fail with ENOSYS. Some functions are actually named
20654 something starting with __ and the normal name is an alias. */
20655 #if defined __stub_$ac_func || defined __stub___$ac_func
20662 return $ac_func ();
20667 rm -f conftest.$ac_objext conftest$ac_exeext
20668 if { (ac_try="$ac_link"
20669 case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674 (eval "$ac_link") 2>conftest.er1
20676 grep -v '^ *+' conftest.er1 >conftest.err
20678 cat conftest.err >&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); } &&
20681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20682 { (case "(($ac_try" in
20683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684 *) ac_try_echo=$ac_try;;
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687 (eval "$ac_try") 2>&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); }; } &&
20691 { ac_try='test -s conftest$ac_exeext'
20692 { (case "(($ac_try" in
20693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694 *) ac_try_echo=$ac_try;;
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697 (eval "$ac_try") 2>&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 eval "$as_ac_var=yes"
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20706 eval "$as_ac_var=no"
20709 rm -f core conftest.err conftest.$ac_objext \
20710 conftest$ac_exeext conftest.$ac_ext
20712 ac_res=`eval echo '${'$as_ac_var'}'`
20713 { echo "$as_me:$LINENO: result: $ac_res" >&5
20714 echo "${ECHO_T}$ac_res" >&6; }
20715 if test `eval echo '${'$as_ac_var'}'` = yes; then
20716 cat >>confdefs.h <<_ACEOF
20717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20724 SHLIBEXT=$libltdl_cv_shlibext
20727 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20730 if test "${prefix}" = "NONE" ; then
20731 prefix="/usr/local"
20733 eval LLVM_PREFIX="${prefix}";
20734 eval LLVM_BINDIR="${prefix}/bin";
20735 eval LLVM_LIBDIR="${prefix}/lib";
20736 eval LLVM_DATADIR="${prefix}/share/llvm";
20737 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20738 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20739 eval LLVM_INCLUDEDIR="${prefix}/include";
20740 eval LLVM_INFODIR="${prefix}/info";
20741 eval LLVM_MANDIR="${prefix}/man";
20742 LLVM_CONFIGTIME=`date`
20754 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20755 LLVM_CONFIGTIME="(timestamp not enabled)"
20759 cat >>confdefs.h <<_ACEOF
20760 #define LLVM_PREFIX "$LLVM_PREFIX"
20764 cat >>confdefs.h <<_ACEOF
20765 #define LLVM_BINDIR "$LLVM_BINDIR"
20769 cat >>confdefs.h <<_ACEOF
20770 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20774 cat >>confdefs.h <<_ACEOF
20775 #define LLVM_DATADIR "$LLVM_DATADIR"
20779 cat >>confdefs.h <<_ACEOF
20780 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20784 cat >>confdefs.h <<_ACEOF
20785 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20789 cat >>confdefs.h <<_ACEOF
20790 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20794 cat >>confdefs.h <<_ACEOF
20795 #define LLVM_INFODIR "$LLVM_INFODIR"
20799 cat >>confdefs.h <<_ACEOF
20800 #define LLVM_MANDIR "$LLVM_MANDIR"
20804 cat >>confdefs.h <<_ACEOF
20805 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20809 cat >>confdefs.h <<_ACEOF
20810 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20814 if test "$BINDINGS_TO_BUILD" = auto ; then
20815 BINDINGS_TO_BUILD=""
20816 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20817 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20820 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20826 binding_prereqs_failed=0
20827 for a_binding in $BINDINGS_TO_BUILD ; do
20828 case "$a_binding" in
20830 if test "x$OCAMLC" = x ; then
20831 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20832 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20833 binding_prereqs_failed=1
20835 if test "x$OCAMLDEP" = x ; then
20836 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20837 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20838 binding_prereqs_failed=1
20840 if test "x$OCAMLOPT" = x ; then
20841 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20842 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20844 if test "x$with_ocaml_libdir" != xauto ; then
20845 OCAML_LIBDIR=$with_ocaml_libdir
20848 ocaml_stdlib="`"$OCAMLC" -where`"
20849 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20851 # ocaml stdlib is beneath our prefix; use stdlib
20852 OCAML_LIBDIR=$ocaml_stdlib
20855 # ocaml stdlib is outside our prefix; use libdir/ocaml
20856 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20863 if test "$binding_prereqs_failed" = 1 ; then
20864 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20865 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20866 { (exit 1); exit 1; }; }
20869 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20870 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20871 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20872 echo $ECHO_N "(cached) $ECHO_C" >&6
20875 ac_cpp='$CXXCPP $CPPFLAGS'
20876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20880 oldcxxflags="$CXXFLAGS"
20881 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20882 cat >conftest.$ac_ext <<_ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h. */
20888 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20897 rm -f conftest.$ac_objext
20898 if { (ac_try="$ac_compile"
20899 case "(($ac_try" in
20900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20901 *) ac_try_echo=$ac_try;;
20903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20904 (eval "$ac_compile") 2>conftest.er1
20906 grep -v '^ *+' conftest.er1 >conftest.err
20908 cat conftest.err >&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); } &&
20911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20912 { (case "(($ac_try" in
20913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914 *) ac_try_echo=$ac_try;;
20916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917 (eval "$ac_try") 2>&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; } &&
20921 { ac_try='test -s conftest.$ac_objext'
20922 { (case "(($ac_try" in
20923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924 *) ac_try_echo=$ac_try;;
20926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20927 (eval "$ac_try") 2>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
20931 llvm_cv_cxx_visibility_inlines_hidden=yes
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20936 llvm_cv_cxx_visibility_inlines_hidden=no
20939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 CXXFLAGS="$oldcxxflags"
20942 ac_cpp='$CPP $CPPFLAGS'
20943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20949 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20950 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20951 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20952 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20955 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20960 if test "$llvm_cv_link_use_r" = "yes" ; then
20967 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20968 RDYNAMIC="-Wl,-export-dynamic"
20975 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20982 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20984 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20986 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20988 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20990 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
20993 ac_config_files="$ac_config_files Makefile.config"
20996 ac_config_files="$ac_config_files llvm.spec"
20999 ac_config_files="$ac_config_files docs/doxygen.cfg"
21002 if test "${clang_src_root}" = ""; then
21003 clang_src_root="$srcdir/tools/clang"
21005 if test -f ${clang_src_root}/README.txt; then
21006 configh="include/clang/Config/config.h"
21007 doxy="docs/doxygen.cfg"
21008 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21010 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21014 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21017 ac_config_commands="$ac_config_commands setup"
21019 ac_config_commands="$ac_config_commands Makefile"
21022 ac_config_commands="$ac_config_commands Makefile.common"
21025 ac_config_commands="$ac_config_commands examples/Makefile"
21028 ac_config_commands="$ac_config_commands lib/Makefile"
21031 ac_config_commands="$ac_config_commands runtime/Makefile"
21034 ac_config_commands="$ac_config_commands test/Makefile"
21037 ac_config_commands="$ac_config_commands test/Makefile.tests"
21040 ac_config_commands="$ac_config_commands unittests/Makefile"
21043 ac_config_commands="$ac_config_commands tools/Makefile"
21046 ac_config_commands="$ac_config_commands utils/Makefile"
21049 ac_config_commands="$ac_config_commands projects/Makefile"
21052 ac_config_commands="$ac_config_commands bindings/Makefile"
21055 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21059 cat >confcache <<\_ACEOF
21060 # This file is a shell script that caches the results of configure
21061 # tests run on this system so they can be shared between configure
21062 # scripts and configure runs, see configure's option --config-cache.
21063 # It is not useful on other systems. If it contains results you don't
21064 # want to keep, you may remove or edit it.
21066 # config.status only pays attention to the cache file if you give it
21067 # the --recheck option to rerun configure.
21069 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21070 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21071 # following values.
21075 # The following way of writing the cache mishandles newlines in values,
21076 # but we know of no workaround that is simple, portable, and efficient.
21077 # So, we kill variables containing newlines.
21078 # Ultrix sh set writes to stderr and can't be redirected directly,
21079 # and sets the high bit in the cache file unless we assign to the vars.
21081 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21082 eval ac_val=\$$ac_var
21086 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21087 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21090 _ | IFS | as_nl) ;; #(
21091 *) $as_unset $ac_var ;;
21097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21098 *${as_nl}ac_space=\ *)
21099 # `set' does not quote correctly, so add quotes (double-quote
21100 # substitution turns \\\\ into \\, and sed turns \\ into \).
21103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21106 # `set' quotes correctly as required by POSIX, so do not add quotes.
21107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21121 if test -w "$cache_file"; then
21122 test "x$cache_file" != "x/dev/null" &&
21123 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21124 echo "$as_me: updating cache $cache_file" >&6;}
21125 cat confcache >$cache_file
21127 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21128 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21133 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21134 # Let make expand exec_prefix.
21135 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21137 DEFS=-DHAVE_CONFIG_H
21141 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21142 # 1. Remove the extension, and $U if already installed.
21143 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21144 ac_i=`echo "$ac_i" | sed "$ac_script"`
21145 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21146 # will be set to the directory where LIBOBJS objects are built.
21147 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21148 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21150 LIBOBJS=$ac_libobjs
21152 LTLIBOBJS=$ac_ltlibobjs
21155 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21156 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21157 Usually this means the macro was only invoked conditionally." >&5
21158 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21159 Usually this means the macro was only invoked conditionally." >&2;}
21160 { (exit 1); exit 1; }; }
21162 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21163 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21164 Usually this means the macro was only invoked conditionally." >&5
21165 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21166 Usually this means the macro was only invoked conditionally." >&2;}
21167 { (exit 1); exit 1; }; }
21170 : ${CONFIG_STATUS=./config.status}
21171 ac_clean_files_save=$ac_clean_files
21172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21173 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21174 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21175 cat >$CONFIG_STATUS <<_ACEOF
21177 # Generated by $as_me.
21178 # Run this file to recreate the current configuration.
21179 # Compiler output produced by configure, useful for debugging
21180 # configure, is in config.log if it exists.
21183 ac_cs_recheck=false
21185 SHELL=\${CONFIG_SHELL-$SHELL}
21188 cat >>$CONFIG_STATUS <<\_ACEOF
21189 ## --------------------- ##
21190 ## M4sh Initialization. ##
21191 ## --------------------- ##
21193 # Be Bourne compatible
21194 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21197 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21198 # is contrary to our usage. Disable this feature.
21199 alias -g '${1+"$@"}'='"$@"'
21200 setopt NO_GLOB_SUBST
21202 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21204 BIN_SH=xpg4; export BIN_SH # for Tru64
21205 DUALCASE=1; export DUALCASE # for MKS sh
21209 # Avoid depending upon Character Ranges.
21210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21213 as_cr_digits='0123456789'
21214 as_cr_alnum=$as_cr_Letters$as_cr_digits
21216 # The user is always right.
21217 if test "${PATH_SEPARATOR+set}" != set; then
21218 echo "#! /bin/sh" >conf$$.sh
21219 echo "exit 0" >>conf$$.sh
21221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21229 # Support unset when possible.
21230 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21238 # We need space, tab and new line, in precisely that order. Quoting is
21239 # there to prevent editors from complaining about space-tab.
21240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21241 # splitting by setting IFS to empty value.)
21246 # Find who we are. Look in the path if we contain no directory separator.
21248 *[\\/]* ) as_myself=$0 ;;
21249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21250 for as_dir in $PATH
21253 test -z "$as_dir" && as_dir=.
21254 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21260 # We did not find ourselves, most probably we were run as `sh COMMAND'
21261 # in which case we are not to be found in the path.
21262 if test "x$as_myself" = x; then
21265 if test ! -f "$as_myself"; then
21266 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21267 { (exit 1); exit 1; }
21270 # Work around bugs in pre-3.0 UWIN ksh.
21271 for as_var in ENV MAIL MAILPATH
21272 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21280 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21281 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21282 LC_TELEPHONE LC_TIME
21284 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21285 eval $as_var=C; export $as_var
21287 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21291 # Required to use basename.
21292 if expr a : '\(a\)' >/dev/null 2>&1 &&
21293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21300 as_basename=basename
21306 # Name of the executable.
21307 as_me=`$as_basename -- "$0" ||
21308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21309 X"$0" : 'X\(//\)$' \| \
21310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21312 sed '/^.*\/\([^/][^/]*\)\/*$/{
21331 as_lineno_1=$LINENO
21332 as_lineno_2=$LINENO
21333 test "x$as_lineno_1" != "x$as_lineno_2" &&
21334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21336 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21337 # uniformly replaced by the line number. The first 'sed' inserts a
21338 # line-number line after each line using $LINENO; the second 'sed'
21339 # does the real work. The second script uses 'N' to pair each
21340 # line-number line with the line containing $LINENO, and appends
21341 # trailing '-' during substitution so that $LINENO is not a special
21342 # case at line end.
21343 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21344 # scripts with optimization help from Paolo Bonzini. Blame Lee
21345 # E. McMahon (1931-1989) for sed's syntax. :-)
21357 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21360 ' >$as_me.lineno &&
21361 chmod +x "$as_me.lineno" ||
21362 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21363 { (exit 1); exit 1; }; }
21365 # Don't try to exec as it changes $[0], causing all sort of problems
21366 # (the dirname of $[0] is not the place where we might find the
21367 # original and so on. Autoconf is especially sensitive to this).
21368 . "./$as_me.lineno"
21369 # Exit status is that of the last command.
21374 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21380 ECHO_C= ECHO_N= ECHO_T=
21381 case `echo -n x` in
21383 case `echo 'x\c'` in
21384 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21391 if expr a : '\(a\)' >/dev/null 2>&1 &&
21392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21398 rm -f conf$$ conf$$.exe conf$$.file
21399 if test -d conf$$.dir; then
21400 rm -f conf$$.dir/conf$$.file
21406 if ln -s conf$$.file conf$$ 2>/dev/null; then
21408 # ... but there are two gotchas:
21409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21411 # In both cases, we have to default to `cp -p'.
21412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21414 elif ln conf$$.file conf$$ 2>/dev/null; then
21419 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21420 rmdir conf$$.dir 2>/dev/null
21422 if mkdir -p . 2>/dev/null; then
21425 test -d ./-p && rmdir ./-p
21429 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21430 # systems may use methods other than mode bits to determine executability.
21431 cat >conf$$.file <<_ASEOF
21435 chmod +x conf$$.file
21436 if test -x conf$$.file >/dev/null 2>&1; then
21437 as_executable_p="test -x"
21443 # Sed expression to map a string onto a valid CPP name.
21444 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21446 # Sed expression to map a string onto a valid variable name.
21447 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21452 # Save the log message, to keep $[0] and so on meaningful, and to
21453 # report actual input values of CONFIG_FILES etc. instead of their
21454 # values after options handling.
21456 This file was extended by LLVM $as_me 3.1svn, which was
21457 generated by GNU Autoconf 2.60. Invocation command line was
21459 CONFIG_FILES = $CONFIG_FILES
21460 CONFIG_HEADERS = $CONFIG_HEADERS
21461 CONFIG_LINKS = $CONFIG_LINKS
21462 CONFIG_COMMANDS = $CONFIG_COMMANDS
21465 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21470 cat >>$CONFIG_STATUS <<_ACEOF
21471 # Files that config.status was made for.
21472 config_files="$ac_config_files"
21473 config_headers="$ac_config_headers"
21474 config_commands="$ac_config_commands"
21478 cat >>$CONFIG_STATUS <<\_ACEOF
21480 \`$as_me' instantiates files from templates according to the
21481 current configuration.
21483 Usage: $0 [OPTIONS] [FILE]...
21485 -h, --help print this help, then exit
21486 -V, --version print version number, then exit
21487 -q, --quiet do not print progress messages
21488 -d, --debug don't remove temporary files
21489 --recheck update $as_me by reconfiguring in the same conditions
21490 --file=FILE[:TEMPLATE]
21491 instantiate the configuration file FILE
21492 --header=FILE[:TEMPLATE]
21493 instantiate the configuration header FILE
21495 Configuration files:
21498 Configuration headers:
21501 Configuration commands:
21504 Report bugs to <bug-autoconf@gnu.org>."
21507 cat >>$CONFIG_STATUS <<_ACEOF
21509 LLVM config.status 3.1svn
21510 configured by $0, generated by GNU Autoconf 2.60,
21511 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21513 Copyright (C) 2006 Free Software Foundation, Inc.
21514 This config.status script is free software; the Free Software Foundation
21515 gives unlimited permission to copy, distribute and modify it."
21522 cat >>$CONFIG_STATUS <<\_ACEOF
21523 # If no file are specified by the user, then we need to provide default
21524 # value. By we need to know if files were specified by the user.
21530 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21531 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21542 # Handling of the options.
21543 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21545 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21546 echo "$ac_cs_version"; exit ;;
21547 --debug | --debu | --deb | --de | --d | -d )
21549 --file | --fil | --fi | --f )
21551 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21552 ac_need_defaults=false;;
21553 --header | --heade | --head | --hea )
21555 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21556 ac_need_defaults=false;;
21558 # Conflict between --help and --header
21559 { echo "$as_me: error: ambiguous option: $1
21560 Try \`$0 --help' for more information." >&2
21561 { (exit 1); exit 1; }; };;
21562 --help | --hel | -h )
21563 echo "$ac_cs_usage"; exit ;;
21564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21565 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21568 # This is an error.
21569 -*) { echo "$as_me: error: unrecognized option: $1
21570 Try \`$0 --help' for more information." >&2
21571 { (exit 1); exit 1; }; } ;;
21573 *) ac_config_targets="$ac_config_targets $1"
21574 ac_need_defaults=false ;;
21580 ac_configure_extra_args=
21582 if $ac_cs_silent; then
21584 ac_configure_extra_args="$ac_configure_extra_args --silent"
21588 cat >>$CONFIG_STATUS <<_ACEOF
21589 if \$ac_cs_recheck; then
21590 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21591 CONFIG_SHELL=$SHELL
21592 export CONFIG_SHELL
21593 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21597 cat >>$CONFIG_STATUS <<\_ACEOF
21601 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21602 ## Running $as_me. ##
21608 cat >>$CONFIG_STATUS <<_ACEOF
21612 llvm_src="${srcdir}"
21616 cat >>$CONFIG_STATUS <<\_ACEOF
21618 # Handling of arguments.
21619 for ac_config_target in $ac_config_targets
21621 case $ac_config_target in
21622 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21623 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21624 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21625 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21626 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21627 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21628 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21629 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21630 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21631 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21632 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21633 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21634 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21635 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21636 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21637 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21638 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21639 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21640 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21641 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21642 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21643 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21644 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21645 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21646 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21647 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21648 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21650 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21651 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21652 { (exit 1); exit 1; }; };;
21657 # If the user did not use the arguments to specify the items to instantiate,
21658 # then the envvar interface is used. Set only those that are not.
21659 # We use the long form for the default assignment because of an extremely
21660 # bizarre bug on SunOS 4.1.3.
21661 if $ac_need_defaults; then
21662 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21663 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21664 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21667 # Have a temporary directory for convenience. Make it in the build tree
21668 # simply because there is no reason against having it here, and in addition,
21669 # creating and moving files from /tmp can sometimes cause problems.
21670 # Hook for its removal unless debugging.
21671 # Note that there is a small window in which the directory will not be cleaned:
21672 # after its creation but before its name has been assigned to `$tmp'.
21676 trap 'exit_status=$?
21677 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21679 trap '{ (exit 1); exit 1; }' 1 2 13 15
21681 # Create a (secure) tmp directory for tmp files.
21684 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21685 test -n "$tmp" && test -d "$tmp"
21688 tmp=./conf$$-$RANDOM
21689 (umask 077 && mkdir "$tmp")
21692 echo "$me: cannot create a temporary directory in ." >&2
21693 { (exit 1); exit 1; }
21697 # Set up the sed scripts for CONFIG_FILES section.
21700 # No need to generate the scripts if there are no CONFIG_FILES.
21701 # This happens for instance when ./config.status config.h
21702 if test -n "$CONFIG_FILES"; then
21709 for ac_last_try in false false false false false :; do
21710 cat >conf$$subs.sed <<_ACEOF
21711 SHELL!$SHELL$ac_delim
21712 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21713 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21714 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21715 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21716 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21717 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21718 exec_prefix!$exec_prefix$ac_delim
21719 prefix!$prefix$ac_delim
21720 program_transform_name!$program_transform_name$ac_delim
21721 bindir!$bindir$ac_delim
21722 sbindir!$sbindir$ac_delim
21723 libexecdir!$libexecdir$ac_delim
21724 datarootdir!$datarootdir$ac_delim
21725 datadir!$datadir$ac_delim
21726 sysconfdir!$sysconfdir$ac_delim
21727 sharedstatedir!$sharedstatedir$ac_delim
21728 localstatedir!$localstatedir$ac_delim
21729 includedir!$includedir$ac_delim
21730 oldincludedir!$oldincludedir$ac_delim
21731 docdir!$docdir$ac_delim
21732 infodir!$infodir$ac_delim
21733 htmldir!$htmldir$ac_delim
21734 dvidir!$dvidir$ac_delim
21735 pdfdir!$pdfdir$ac_delim
21736 psdir!$psdir$ac_delim
21737 libdir!$libdir$ac_delim
21738 localedir!$localedir$ac_delim
21739 mandir!$mandir$ac_delim
21740 DEFS!$DEFS$ac_delim
21741 ECHO_C!$ECHO_C$ac_delim
21742 ECHO_N!$ECHO_N$ac_delim
21743 ECHO_T!$ECHO_T$ac_delim
21744 LIBS!$LIBS$ac_delim
21745 build_alias!$build_alias$ac_delim
21746 host_alias!$host_alias$ac_delim
21747 target_alias!$target_alias$ac_delim
21748 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21750 CFLAGS!$CFLAGS$ac_delim
21751 LDFLAGS!$LDFLAGS$ac_delim
21752 CPPFLAGS!$CPPFLAGS$ac_delim
21753 ac_ct_CC!$ac_ct_CC$ac_delim
21754 EXEEXT!$EXEEXT$ac_delim
21755 OBJEXT!$OBJEXT$ac_delim
21757 CXXFLAGS!$CXXFLAGS$ac_delim
21758 ac_ct_CXX!$ac_ct_CXX$ac_delim
21760 subdirs!$subdirs$ac_delim
21761 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21762 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21763 build!$build$ac_delim
21764 build_cpu!$build_cpu$ac_delim
21765 build_vendor!$build_vendor$ac_delim
21766 build_os!$build_os$ac_delim
21767 host!$host$ac_delim
21768 host_cpu!$host_cpu$ac_delim
21769 host_vendor!$host_vendor$ac_delim
21770 host_os!$host_os$ac_delim
21771 target!$target$ac_delim
21772 target_cpu!$target_cpu$ac_delim
21773 target_vendor!$target_vendor$ac_delim
21774 target_os!$target_os$ac_delim
21776 HOST_OS!$HOST_OS$ac_delim
21777 TARGET_OS!$TARGET_OS$ac_delim
21778 LINKALL!$LINKALL$ac_delim
21779 NOLINKALL!$NOLINKALL$ac_delim
21780 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21781 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21782 ARCH!$ARCH$ac_delim
21783 ENDIAN!$ENDIAN$ac_delim
21784 GREP!$GREP$ac_delim
21785 EGREP!$EGREP$ac_delim
21786 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21787 BUILD_CC!$BUILD_CC$ac_delim
21788 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21789 BUILD_CXX!$BUILD_CXX$ac_delim
21790 CVSBUILD!$CVSBUILD$ac_delim
21791 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21792 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21793 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21794 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21795 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21796 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21797 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21798 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21800 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21801 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21802 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21803 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21804 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21805 ENABLE_PIC!$ENABLE_PIC$ac_delim
21806 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21807 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21810 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21812 elif $ac_last_try; then
21813 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21814 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21815 { (exit 1); exit 1; }; }
21817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21821 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21822 if test -n "$ac_eof"; then
21823 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21824 ac_eof=`expr $ac_eof + 1`
21827 cat >>$CONFIG_STATUS <<_ACEOF
21828 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21832 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21833 s/^/s,@/; s/!/@,|#_!!_#|/
21836 s/'"$ac_delim"'$/,g/; t
21838 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21839 ' >>$CONFIG_STATUS <conf$$subs.sed
21840 rm -f conf$$subs.sed
21841 cat >>$CONFIG_STATUS <<_ACEOF
21847 for ac_last_try in false false false false false :; do
21848 cat >conf$$subs.sed <<_ACEOF
21849 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21850 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21851 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21852 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21853 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21854 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21855 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21856 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21857 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21858 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21859 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21860 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21861 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21863 ifGNUmake!$ifGNUmake$ac_delim
21864 LN_S!$LN_S$ac_delim
21867 DATE!$DATE$ac_delim
21868 FIND!$FIND$ac_delim
21869 MKDIR!$MKDIR$ac_delim
21871 RANLIB!$RANLIB$ac_delim
21876 BINPWD!$BINPWD$ac_delim
21877 GRAPHVIZ!$GRAPHVIZ$ac_delim
21880 NEATO!$NEATO$ac_delim
21881 TWOPI!$TWOPI$ac_delim
21882 CIRCO!$CIRCO$ac_delim
21884 DOTTY!$DOTTY$ac_delim
21885 XDOT_PY!$XDOT_PY$ac_delim
21886 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21887 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21888 INSTALL_DATA!$INSTALL_DATA$ac_delim
21889 BZIP2!$BZIP2$ac_delim
21891 DOXYGEN!$DOXYGEN$ac_delim
21892 GROFF!$GROFF$ac_delim
21893 GZIPBIN!$GZIPBIN$ac_delim
21894 POD2HTML!$POD2HTML$ac_delim
21895 POD2MAN!$POD2MAN$ac_delim
21896 PDFROFF!$PDFROFF$ac_delim
21897 RUNTEST!$RUNTEST$ac_delim
21898 TCLSH!$TCLSH$ac_delim
21900 OCAMLC!$OCAMLC$ac_delim
21901 OCAMLOPT!$OCAMLOPT$ac_delim
21902 OCAMLDEP!$OCAMLDEP$ac_delim
21903 OCAMLDOC!$OCAMLDOC$ac_delim
21905 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21906 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21907 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21908 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21909 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21910 LIBADD_DL!$LIBADD_DL$ac_delim
21911 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21912 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21913 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21914 USE_UDIS86!$USE_UDIS86$ac_delim
21915 USE_OPROFILE!$USE_OPROFILE$ac_delim
21916 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21917 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21918 MMAP_FILE!$MMAP_FILE$ac_delim
21919 SHLIBEXT!$SHLIBEXT$ac_delim
21920 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21921 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21922 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21923 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21924 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21925 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21926 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21927 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21928 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21929 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21930 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21931 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21932 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21933 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21934 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21935 RPATH!$RPATH$ac_delim
21936 RDYNAMIC!$RDYNAMIC$ac_delim
21937 LIBOBJS!$LIBOBJS$ac_delim
21938 LTLIBOBJS!$LTLIBOBJS$ac_delim
21941 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21943 elif $ac_last_try; then
21944 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21945 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21946 { (exit 1); exit 1; }; }
21948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21952 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21953 if test -n "$ac_eof"; then
21954 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21955 ac_eof=`expr $ac_eof + 1`
21958 cat >>$CONFIG_STATUS <<_ACEOF
21959 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21963 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21964 s/^/s,@/; s/!/@,|#_!!_#|/
21967 s/'"$ac_delim"'$/,g/; t
21969 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21970 ' >>$CONFIG_STATUS <conf$$subs.sed
21971 rm -f conf$$subs.sed
21972 cat >>$CONFIG_STATUS <<_ACEOF
21979 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21980 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21981 # trailing colons and then remove the whole line if VPATH becomes empty
21982 # (actually we leave an empty line to preserve line numbers).
21983 if test "x$srcdir" = x.; then
21984 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21985 s/:*\$(srcdir):*/:/
21986 s/:*\${srcdir}:*/:/
21988 s/^\([^=]*=[ ]*\):*/\1/
21994 cat >>$CONFIG_STATUS <<\_ACEOF
21995 fi # test -n "$CONFIG_FILES"
21998 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22001 :[FHLC]) ac_mode=$ac_tag; continue;;
22003 case $ac_mode$ac_tag in
22005 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22006 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22007 { (exit 1); exit 1; }; };;
22008 :[FH]-) ac_tag=-:-;;
22009 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22026 -) ac_f="$tmp/stdin";;
22027 *) # Look for the file first in the build tree, then in the source tree
22028 # (if the path is not absolute). The absolute path cannot be DOS-style,
22029 # because $ac_f cannot contain `:'.
22033 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22035 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22036 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22037 { (exit 1); exit 1; }; };;
22039 ac_file_inputs="$ac_file_inputs $ac_f"
22042 # Let's still pretend it is `configure' which instantiates (i.e., don't
22043 # use $as_me), people would be surprised to read:
22044 # /* config.h. Generated by config.status. */
22045 configure_input="Generated from "`IFS=:
22046 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22047 if test x"$ac_file" != x-; then
22048 configure_input="$ac_file. $configure_input"
22049 { echo "$as_me:$LINENO: creating $ac_file" >&5
22050 echo "$as_me: creating $ac_file" >&6;}
22054 *:-:* | *:-) cat >"$tmp/stdin";;
22059 ac_dir=`$as_dirname -- "$ac_file" ||
22060 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22061 X"$ac_file" : 'X\(//\)[^/]' \| \
22062 X"$ac_file" : 'X\(//\)$' \| \
22063 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22069 /^X\(\/\/\)[^/].*/{
22084 -*) as_dir=./$as_dir;;
22086 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22090 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22091 *) as_qdir=$as_dir;;
22093 as_dirs="'$as_qdir' $as_dirs"
22094 as_dir=`$as_dirname -- "$as_dir" ||
22095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22096 X"$as_dir" : 'X\(//\)[^/]' \| \
22097 X"$as_dir" : 'X\(//\)$' \| \
22098 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22104 /^X\(\/\/\)[^/].*/{
22117 test -d "$as_dir" && break
22119 test -z "$as_dirs" || eval "mkdir $as_dirs"
22120 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22121 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22122 { (exit 1); exit 1; }; }; }
22126 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22128 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22129 # A ".." for each directory in $ac_dir_suffix.
22130 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22131 case $ac_top_builddir_sub in
22132 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22133 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22136 ac_abs_top_builddir=$ac_pwd
22137 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22138 # for backward compatibility:
22139 ac_top_builddir=$ac_top_build_prefix
22142 .) # We are building in place.
22144 ac_top_srcdir=$ac_top_builddir_sub
22145 ac_abs_top_srcdir=$ac_pwd ;;
22146 [\\/]* | ?:[\\/]* ) # Absolute name.
22147 ac_srcdir=$srcdir$ac_dir_suffix;
22148 ac_top_srcdir=$srcdir
22149 ac_abs_top_srcdir=$srcdir ;;
22150 *) # Relative name.
22151 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22152 ac_top_srcdir=$ac_top_build_prefix$srcdir
22153 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22155 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22165 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22166 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22170 cat >>$CONFIG_STATUS <<\_ACEOF
22171 # If the template does not know about datarootdir, expand it.
22172 # FIXME: This hack should be removed a few years after 2.60.
22173 ac_datarootdir_hack=; ac_datarootdir_seen=
22175 case `sed -n '/datarootdir/ {
22184 ' $ac_file_inputs` in
22185 *datarootdir*) ac_datarootdir_seen=yes;;
22186 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22187 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22188 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22190 cat >>$CONFIG_STATUS <<_ACEOF
22191 ac_datarootdir_hack='
22192 s&@datadir@&$datadir&g
22193 s&@docdir@&$docdir&g
22194 s&@infodir@&$infodir&g
22195 s&@localedir@&$localedir&g
22196 s&@mandir@&$mandir&g
22197 s&\\\${datarootdir}&$datarootdir&g' ;;
22201 # Neutralize VPATH when `$srcdir' = `.'.
22202 # Shell code in configure.ac might set extrasub.
22203 # FIXME: do we really want to maintain this feature?
22204 cat >>$CONFIG_STATUS <<_ACEOF
22208 cat >>$CONFIG_STATUS <<\_ACEOF
22210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22211 s&@configure_input@&$configure_input&;t t
22212 s&@top_builddir@&$ac_top_builddir_sub&;t t
22213 s&@srcdir@&$ac_srcdir&;t t
22214 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22215 s&@top_srcdir@&$ac_top_srcdir&;t t
22216 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22217 s&@builddir@&$ac_builddir&;t t
22218 s&@abs_builddir@&$ac_abs_builddir&;t t
22219 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22220 s&@INSTALL@&$ac_INSTALL&;t t
22221 $ac_datarootdir_hack
22222 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22224 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22225 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22226 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22227 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22228 which seems to be undefined. Please make sure it is defined." >&5
22229 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22230 which seems to be undefined. Please make sure it is defined." >&2;}
22234 -) cat "$tmp/out"; rm -f "$tmp/out";;
22235 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22244 # Transform confdefs.h into a sed script `conftest.defines', that
22245 # substitutes the proper values into config.h.in to produce config.h.
22246 rm -f conftest.defines conftest.tail
22247 # First, append a space to every undef/define line, to ease matching.
22248 echo 's/$/ /' >conftest.defines
22249 # Then, protect against being on the right side of a sed subst, or in
22250 # an unquoted here document, in config.status. If some macros were
22251 # called several times there might be several #defines for the same
22252 # symbol, which is useless. But do not sort them, since the last
22253 # AC_DEFINE must be honored.
22254 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22255 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22256 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22257 # PARAMS is the parameter list in the macro definition--in most cases, it's
22258 # just an empty string.
22259 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22260 ac_dB='\\)[ (].*,\\1define\\2'
22268 s/^[ ]*#[ ]*define[ ][ ]*//
22273 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22274 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22275 ' >>conftest.defines
22277 # Remove the space that was appended to ease matching.
22278 # Then replace #undef with comments. This is necessary, for
22279 # example, in the case of _POSIX_SOURCE, which is predefined and required
22280 # on some systems where configure will not decide to define it.
22281 # (The regexp can be short, since the line contains either #define or #undef.)
22283 s,^[ #]*u.*,/* & */,' >>conftest.defines
22285 # Break up conftest.defines:
22286 ac_max_sed_lines=50
22288 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22289 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22290 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22292 ac_in='$ac_file_inputs'
22293 ac_out='"$tmp/out1"'
22294 ac_nxt='"$tmp/out2"'
22298 # Write a here document:
22299 cat >>$CONFIG_STATUS <<_ACEOF
22300 # First, check the format of the line:
22301 cat >"\$tmp/defines.sed" <<\\CEOF
22302 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22303 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22307 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22309 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22310 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22311 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22312 grep . conftest.tail >/dev/null || break
22313 rm -f conftest.defines
22314 mv conftest.tail conftest.defines
22316 rm -f conftest.defines conftest.tail
22318 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22319 cat >>$CONFIG_STATUS <<\_ACEOF
22320 if test x"$ac_file" != x-; then
22321 echo "/* $configure_input */" >"$tmp/config.h"
22322 cat "$ac_result" >>"$tmp/config.h"
22323 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22324 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22325 echo "$as_me: $ac_file is unchanged" >&6;}
22328 mv "$tmp/config.h" $ac_file
22331 echo "/* $configure_input */"
22337 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22338 echo "$as_me: executing $ac_file commands" >&6;}
22343 case $ac_file$ac_mode in
22344 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22345 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22346 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22347 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22348 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22349 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22350 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22351 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22352 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22353 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22354 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22355 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22356 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22357 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22358 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22359 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22360 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22361 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22362 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22363 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22364 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22365 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22366 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22367 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22368 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22369 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22375 { (exit 0); exit 0; }
22377 chmod +x $CONFIG_STATUS
22378 ac_clean_files=$ac_clean_files_save
22381 # configure is writing to config.log, and then calls config.status.
22382 # config.status does its own redirection, appending to config.log.
22383 # Unfortunately, on DOS this fails, as config.log is still kept open
22384 # by configure, so config.status won't be able to write to it; its
22385 # output is simply discarded. So we exec the FD to /dev/null,
22386 # effectively closing config.log, so it can be properly (re)opened and
22387 # appended to by config.status. When coming back to configure, we
22388 # need to make the FD available again.
22389 if test "$no_create" != yes; then
22391 ac_config_status_args=
22392 test "$silent" = yes &&
22393 ac_config_status_args="$ac_config_status_args --quiet"
22395 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22397 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22398 # would make configure fail if this is the last instruction.
22399 $ac_cs_success || { (exit 1); exit 1; }
22403 # CONFIG_SUBDIRS section.
22405 if test "$no_recursion" != yes; then
22407 # Remove --cache-file and --srcdir arguments so they do not pile up.
22408 ac_sub_configure_args=
22410 eval "set x $ac_configure_args"
22414 if test -n "$ac_prev"; then
22419 -cache-file | --cache-file | --cache-fil | --cache-fi \
22420 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22421 ac_prev=cache_file ;;
22422 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22423 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22426 --config-cache | -C)
22428 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22430 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22432 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22434 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22438 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22440 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22444 # Always prepend --prefix to ensure using the same prefix
22445 # in subdir configurations.
22446 ac_arg="--prefix=$prefix"
22448 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22450 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22453 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22455 # Do not complain, so a configure script can configure whichever
22456 # parts of a large source tree are present.
22457 test -d "$srcdir/$ac_dir" || continue
22459 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22460 echo "$as_me:$LINENO: $ac_msg" >&5
22464 -*) as_dir=./$as_dir;;
22466 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22470 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22471 *) as_qdir=$as_dir;;
22473 as_dirs="'$as_qdir' $as_dirs"
22474 as_dir=`$as_dirname -- "$as_dir" ||
22475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22476 X"$as_dir" : 'X\(//\)[^/]' \| \
22477 X"$as_dir" : 'X\(//\)$' \| \
22478 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22484 /^X\(\/\/\)[^/].*/{
22497 test -d "$as_dir" && break
22499 test -z "$as_dirs" || eval "mkdir $as_dirs"
22500 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22501 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22502 { (exit 1); exit 1; }; }; }
22506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22509 # A ".." for each directory in $ac_dir_suffix.
22510 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22511 case $ac_top_builddir_sub in
22512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22516 ac_abs_top_builddir=$ac_pwd
22517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22518 # for backward compatibility:
22519 ac_top_builddir=$ac_top_build_prefix
22522 .) # We are building in place.
22524 ac_top_srcdir=$ac_top_builddir_sub
22525 ac_abs_top_srcdir=$ac_pwd ;;
22526 [\\/]* | ?:[\\/]* ) # Absolute name.
22527 ac_srcdir=$srcdir$ac_dir_suffix;
22528 ac_top_srcdir=$srcdir
22529 ac_abs_top_srcdir=$srcdir ;;
22530 *) # Relative name.
22531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22532 ac_top_srcdir=$ac_top_build_prefix$srcdir
22533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22540 # Check for guested configure; otherwise get Cygnus style configure.
22541 if test -f "$ac_srcdir/configure.gnu"; then
22542 ac_sub_configure=$ac_srcdir/configure.gnu
22543 elif test -f "$ac_srcdir/configure"; then
22544 ac_sub_configure=$ac_srcdir/configure
22545 elif test -f "$ac_srcdir/configure.in"; then
22546 # This should be Cygnus configure.
22547 ac_sub_configure=$ac_aux_dir/configure
22549 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22550 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22554 # The recursion is here.
22555 if test -n "$ac_sub_configure"; then
22556 # Make the cache file name correct relative to the subdirectory.
22557 case $cache_file in
22558 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22559 *) # Relative name.
22560 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22563 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22564 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22565 # The eval makes quoting arguments work.
22566 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22567 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22568 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22569 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22570 { (exit 1); exit 1; }; }