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 <llvmbugs@cs.uiuc.edu>.
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-2011 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='llvmbugs@cs.uiuc.edu'
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
688 ENABLE_EXPENSIVE_CHECKS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
765 NO_MISSING_FIELD_INITIALIZERS
786 ENABLE_VISIBILITY_INLINES_HIDDEN
792 ac_precious_vars='build_alias
803 ac_subdirs_all='projects/llvm-gcc
807 projects/llvm-poolalloc
810 projects/llvm-stacker
818 # Initialize some variables set by options.
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
830 program_transform_name=s,x,x,
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 -enable-* | --enable-*)
938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
959 -help | --help | --hel | --he | -h)
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1108 -site=* | --site=* | --sit=*)
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
1153 # Obsolete; use --with-x.
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
1201 # Be sure to have absolute directory names.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237 test "$silent" = yes && exec 6>/dev/null
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1318 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of llvm 3.1svn:";;
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-polly Use polly if available (default is YES)
1392 --enable-optimized Compile with optimizations enabled (default is NO)
1393 --enable-profiling Compile with profiling enabled (default is NO)
1394 --enable-assertions Compile with assertion checks enabled (default is
1396 --enable-expensive-checks
1397 Compile with expensive debug checks enabled (default
1399 --enable-debug-runtime Build runtime libs with debug symbols (default is
1401 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1402 optimization is on and YES if it's off)
1403 --enable-jit Enable Just In Time Compiling (default is YES)
1404 --enable-docs Build documents (default is YES)
1405 --enable-doxygen Build doxygen documentation (default is NO)
1406 --enable-threads Use threads if available (default is YES)
1407 --enable-pthreads Use pthreads if available (default is YES)
1408 --enable-pic Build LLVM with Position Independent Code (default
1410 --enable-shared Build a shared library and link tools against it
1412 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1413 Win32 DLL (default is NO)
1414 --enable-timestamps Enable embedding timestamp information in build
1416 --enable-targets Build specific host targets: all or
1417 target1,target2,... Valid targets are: host, x86,
1418 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1419 xcore, msp430, blackfin, ptx, cbe, and cpp
1421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
1425 --enable-libffi Check for the presence of libffi (default is NO)
1426 --enable-ltdl-install install libltdl
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-optimize-option Select the compiler options to use for optimized
1433 --with-extra-options Specify additional options to compile LLVM with
1434 --with-extra-ld-options Specify additional options to link LLVM with
1435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1437 --with-clang-srcdir Directory to the out-of-tree Clang source
1438 --with-clang-resource-dir
1439 Relative directory from the Clang binary for
1441 --with-c-include-dirs Colon separated list of directories clang will
1443 --with-cxx-include-root Directory with the libstdc++ headers.
1444 --with-cxx-include-arch Architecture of the libstdc++ headers.
1445 --with-cxx-include-32bit-dir
1446 32 bit multilib dir.
1447 --with-cxx-include-64bit-dir
1448 64 bit multilib directory.
1449 --with-binutils-include Specify path to binutils/include/ containing
1450 plugin-api.h file for gold plugin.
1451 --with-bug-report-url Specify the URL where bug reports should be
1452 submitted (default=http://llvm.org/bugs/)
1453 --with-tclinclude directory where tcl headers are
1454 --with-udis86=<path> Use udis86 external x86 disassembler library
1455 --with-oprofile=<prefix>
1456 Tell OProfile >= 0.9.4 how to symbolize JIT output
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 Report bugs to <llvmbugs@cs.uiuc.edu>.
1477 if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 test -d "$ac_dir" || continue
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1500 .) # We are building in place.
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
1505 ac_srcdir=$srcdir$ac_dir_suffix;
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1524 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1533 llvm configure 3.1svn
1534 generated by GNU Autoconf 2.60
1536 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1537 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1541 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1545 cat >config.log <<_ACEOF
1546 This file contains any messages produced by compilers while
1547 running configure, to aid debugging if configure makes a mistake.
1549 It was created by llvm $as_me 3.1svn, which was
1550 generated by GNU Autoconf 2.60. Invocation command line was
1562 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1571 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1572 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1573 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1574 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1575 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1576 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1577 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 test -z "$as_dir" && as_dir=.
1586 echo "PATH: $as_dir"
1602 # Keep a trace of the command line.
1603 # Strip out --no-create and --no-recursion so they do not pile up.
1604 # Strip out --silent because we don't want to record it for future runs.
1605 # Also quote any args containing shell meta-characters.
1606 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_must_keep_next=false
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1621 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1624 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627 if test $ac_must_keep_next = true; then
1628 ac_must_keep_next=false # Got value, back to normal.
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639 -* ) ac_must_keep_next=true ;;
1642 ac_configure_args="$ac_configure_args '$ac_arg'"
1647 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650 # When interrupted or exit'd, cleanup temporary files, and complete
1651 # config.log. We remove comments because anyway the quotes in there
1652 # would cause problems or look ugly.
1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655 trap 'exit_status=$?
1656 # Save into config.log some information that might help in debugging.
1661 ## ---------------- ##
1662 ## Cache variables. ##
1663 ## ---------------- ##
1666 # The following way of writing the cache mishandles newlines in values,
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1677 _ | IFS | as_nl) ;; #(
1678 *) $as_unset $ac_var ;;
1683 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684 *${as_nl}ac_space=\ *)
1686 "s/'\''/'\''\\\\'\'''\''/g;
1687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1698 ## ----------------- ##
1699 ## Output variables. ##
1700 ## ----------------- ##
1703 for ac_var in $ac_subst_vars
1705 eval ac_val=\$$ac_var
1707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709 echo "$ac_var='\''$ac_val'\''"
1713 if test -n "$ac_subst_files"; then
1715 ## ------------------- ##
1716 ## File substitutions. ##
1717 ## ------------------- ##
1720 for ac_var in $ac_subst_files
1722 eval ac_val=\$$ac_var
1724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726 echo "$ac_var='\''$ac_val'\''"
1731 if test -s confdefs.h; then
1741 test "$ac_signal" != 0 &&
1742 echo "$as_me: caught signal $ac_signal"
1743 echo "$as_me: exit $exit_status"
1745 rm -f core *.core core.conftest.* &&
1746 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1749 for ac_signal in 1 2 13 15; do
1750 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1755 rm -f -r conftest* confdefs.h
1757 # Predefined preprocessor variables.
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 # Let the site file select an alternate cache file if it wants to.
1785 # Prefer explicitly selected file to automatically selected ones.
1786 if test -n "$CONFIG_SITE"; then
1787 set x "$CONFIG_SITE"
1788 elif test "x$prefix" != xNONE; then
1789 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791 set x "$ac_default_prefix/share/config.site" \
1792 "$ac_default_prefix/etc/config.site"
1797 if test -r "$ac_site_file"; then
1798 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799 echo "$as_me: loading site script $ac_site_file" >&6;}
1800 sed 's/^/| /' "$ac_site_file" >&5
1805 if test -r "$cache_file"; then
1806 # Some versions of bash will fail to source /dev/null (special
1807 # files actually), so we avoid doing that.
1808 if test -f "$cache_file"; then
1809 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810 echo "$as_me: loading cache $cache_file" >&6;}
1812 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813 *) . "./$cache_file";;
1817 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818 echo "$as_me: creating cache $cache_file" >&6;}
1822 # Check that the precious variables saved in the cache have kept the same
1824 ac_cache_corrupted=false
1825 for ac_var in $ac_precious_vars; do
1826 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827 eval ac_new_set=\$ac_env_${ac_var}_set
1828 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829 eval ac_new_val=\$ac_env_${ac_var}_value
1830 case $ac_old_set,$ac_new_set in
1832 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1834 ac_cache_corrupted=: ;;
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1838 ac_cache_corrupted=: ;;
1841 if test "x$ac_old_val" != "x$ac_new_val"; then
1842 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1845 echo "$as_me: former value: $ac_old_val" >&2;}
1846 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1847 echo "$as_me: current value: $ac_new_val" >&2;}
1848 ac_cache_corrupted=:
1851 # Pass precious variables to config.status.
1852 if test "$ac_new_set" = set; then
1854 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 *) ac_arg=$ac_var=$ac_new_val ;;
1857 case " $ac_configure_args " in
1858 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1859 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863 if $ac_cache_corrupted; then
1864 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868 { (exit 1); exit 1; }; }
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1912 for ac_dir in autoconf "$srcdir"/autoconf; do
1913 if test -f "$ac_dir/install-sh"; then
1915 ac_install_sh="$ac_aux_dir/install-sh -c"
1917 elif test -f "$ac_dir/install.sh"; then
1919 ac_install_sh="$ac_aux_dir/install.sh -c"
1921 elif test -f "$ac_dir/shtool"; then
1923 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 if test -z "$ac_aux_dir"; then
1928 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1929 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1930 { (exit 1); exit 1; }; }
1933 # These three variables are undocumented and unsupported,
1934 # and are intended to be withdrawn in a future Autoconf release.
1935 # They can cause serious problems if a builder's source tree is in a directory
1936 # whose full name contains unusual characters.
1937 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1938 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1939 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943 if test ${srcdir} != "." ; then
1944 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1945 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1946 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1947 { (exit 1); exit 1; }; }
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 if test -n "$ac_tool_prefix"; then
1957 for ac_prog in clang llvm-gcc gcc
1959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963 if test "${ac_cv_prog_CC+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1976 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 if test -n "$CC"; then
1988 { echo "$as_me:$LINENO: result: $CC" >&5
1989 echo "${ECHO_T}$CC" >&6; }
1991 { echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6; }
1996 test -n "$CC" && break
1999 if test -z "$CC"; then
2001 for ac_prog in clang llvm-gcc gcc
2003 # Extract the first word of "$ac_prog", so it can be a program name with args.
2004 set dummy $ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$ac_ct_CC"; then
2011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020 ac_cv_prog_ac_ct_CC="$ac_prog"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031 if test -n "$ac_ct_CC"; then
2032 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033 echo "${ECHO_T}$ac_ct_CC" >&6; }
2035 { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2040 test -n "$ac_ct_CC" && break
2043 if test "x$ac_ct_CC" = x; then
2046 case $cross_compiling:$ac_tool_warned in
2048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2049 whose name does not start with the host triplet. If you think this
2050 configuration is useful to you, please write to autoconf@gnu.org." >&5
2051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet. If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2054 ac_tool_warned=yes ;;
2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO: checking for C compiler version" >&5
2069 ac_compiler=`set X $ac_compile; echo $2`
2070 { (ac_try="$ac_compiler --version >&5"
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2076 (eval "$ac_compiler --version >&5") 2>&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }
2080 { (ac_try="$ac_compiler -v >&5"
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086 (eval "$ac_compiler -v >&5") 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (ac_try="$ac_compiler -V >&5"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler -V >&5") 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2101 cat >conftest.$ac_ext <<_ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2116 ac_clean_files_save=$ac_clean_files
2117 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2118 # Try to create an executable without -o first, disregard a.out.
2119 # It will help us diagnose broken compilers, and finding out an intuition
2121 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2123 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2125 # List of possible output files, starting from the most likely.
2126 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2127 # only as a last resort. b.out is created by i960 compilers.
2128 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2130 # The IRIX 6 linker writes into existing files which may not be
2131 # executable, retaining their permissions. Remove them first so a
2132 # subsequent execution test works.
2134 for ac_file in $ac_files
2137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2143 if { (ac_try="$ac_link_default"
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149 (eval "$ac_link_default") 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
2153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2156 # so that the user can short-circuit this test for compilers unknown to
2158 for ac_file in $ac_files
2160 test -f "$ac_file" || continue
2162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2165 # We found the default executable, but exeext='' is most
2169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173 # We set ac_cv_exeext here because the later test for it is not
2174 # safe: cross compilers may not add the suffix if given an `-o'
2175 # argument, so we may need to know it at that point already.
2176 # Even if this section looks crufty: it has the advantage of
2183 test "$ac_cv_exeext" = no && ac_cv_exeext=
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2189 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&2;}
2193 { (exit 77); exit 77; }; }
2196 ac_exeext=$ac_cv_exeext
2197 { echo "$as_me:$LINENO: result: $ac_file" >&5
2198 echo "${ECHO_T}$ac_file" >&6; }
2200 # Check that the compiler produces executables we can run. If not, either
2201 # the compiler is broken, or we cross compile.
2202 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207 if { ac_try='./$ac_file'
2208 { (case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213 (eval "$ac_try") 2>&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2219 if test "$cross_compiling" = maybe; then
2222 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2232 { echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6; }
2235 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2236 ac_clean_files=$ac_clean_files_save
2237 # Check that the compiler produces executables we can run. If not, either
2238 # the compiler is broken, or we cross compile.
2239 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2241 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242 echo "${ECHO_T}$cross_compiling" >&6; }
2244 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2246 if { (ac_try="$ac_link"
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252 (eval "$ac_link") 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; then
2256 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2258 # work properly (i.e., refer to `conftest.exe'), while it won't with
2260 for ac_file in conftest.exe conftest conftest.*; do
2261 test -f "$ac_file" || continue
2263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2264 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2277 rm -f conftest$ac_cv_exeext
2278 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2284 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2286 if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2304 rm -f conftest.o conftest.obj
2305 if { (ac_try="$ac_compile"
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311 (eval "$ac_compile") 2>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
2315 for ac_file in conftest.o conftest.obj conftest.*; do
2316 test -f "$ac_file" || continue;
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
2334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2336 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337 echo "${ECHO_T}$ac_cv_objext" >&6; }
2338 OBJEXT=$ac_cv_objext
2340 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2342 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 cat >conftest.$ac_ext <<_ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2363 rm -f conftest.$ac_objext
2364 if { (ac_try="$ac_compile"
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compile") 2>conftest.er1
2372 grep -v '^ *+' conftest.er1 >conftest.err
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2378 { (case "(($ac_try" in
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_try") 2>&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_try") 2>&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2409 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
2412 ac_test_CFLAGS=${CFLAGS+set}
2413 ac_save_CFLAGS=$CFLAGS
2414 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 ac_save_c_werror_flag=$ac_c_werror_flag
2420 ac_c_werror_flag=yes
2423 cat >conftest.$ac_ext <<_ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2438 rm -f conftest.$ac_objext
2439 if { (ac_try="$ac_compile"
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compile") 2>conftest.er1
2447 grep -v '^ *+' conftest.er1 >conftest.err
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2453 { (case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_try") 2>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_try") 2>&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2478 cat >conftest.$ac_ext <<_ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2493 rm -f conftest.$ac_objext
2494 if { (ac_try="$ac_compile"
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_compile") 2>conftest.er1
2502 grep -v '^ *+' conftest.er1 >conftest.err
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508 { (case "(($ac_try" in
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_try") 2>&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_try") 2>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2529 echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2532 ac_c_werror_flag=$ac_save_c_werror_flag
2534 cat >conftest.$ac_ext <<_ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2549 rm -f conftest.$ac_objext
2550 if { (ac_try="$ac_compile"
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_compile") 2>conftest.er1
2558 grep -v '^ *+' conftest.er1 >conftest.err
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2564 { (case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_try") 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_try") 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 ac_c_werror_flag=$ac_save_c_werror_flag
2600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2601 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2602 if test "$ac_test_CFLAGS" = set; then
2603 CFLAGS=$ac_save_CFLAGS
2604 elif test $ac_cv_prog_cc_g = yes; then
2605 if test "$GCC" = yes; then
2611 if test "$GCC" = yes; then
2617 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2618 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2619 if test "${ac_cv_prog_cc_c89+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 ac_cv_prog_cc_c89=no
2624 cat >conftest.$ac_ext <<_ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2632 #include <sys/types.h>
2633 #include <sys/stat.h>
2634 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2635 struct buf { int x; };
2636 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2637 static char *e (p, i)
2643 static char *f (char * (*g) (char **, int), char **p, ...)
2648 s = g (p, va_arg (v,int));
2653 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2654 function prototypes and stuff, but not '\xHH' hex character constants.
2655 These don't provoke an error unfortunately, instead are silently treated
2656 as 'x'. The following induces an error, until -std is added to get
2657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2658 array size at least. It's necessary to write '\x00'==0 to get something
2659 that's true only with -std. */
2660 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2662 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2663 inside strings and character constants. */
2665 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2667 int test (int i, double x);
2668 struct s1 {int (*f) (int a);};
2669 struct s2 {int (*f) (double a);};
2670 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2676 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2684 CC="$ac_save_CC $ac_arg"
2685 rm -f conftest.$ac_objext
2686 if { (ac_try="$ac_compile"
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700 { (case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_try") 2>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 ac_cv_prog_cc_c89=$ac_arg
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f core conftest.err conftest.$ac_objext
2728 test "x$ac_cv_prog_cc_c89" != "xno" && break
2730 rm -f conftest.$ac_ext
2735 case "x$ac_cv_prog_cc_c89" in
2737 { echo "$as_me:$LINENO: result: none needed" >&5
2738 echo "${ECHO_T}none needed" >&6; } ;;
2740 { echo "$as_me:$LINENO: result: unsupported" >&5
2741 echo "${ECHO_T}unsupported" >&6; } ;;
2743 CC="$CC $ac_cv_prog_cc_c89"
2744 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2745 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 ac_cpp='$CXXCPP $CPPFLAGS'
2757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2760 if test -z "$CXX"; then
2761 if test -n "$CCC"; then
2764 if test -n "$ac_tool_prefix"; then
2765 for ac_prog in clang++ llvm-g++ g++
2767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_CXX+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 if test -n "$CXX"; then
2775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 if test -n "$CXX"; then
2796 { echo "$as_me:$LINENO: result: $CXX" >&5
2797 echo "${ECHO_T}$CXX" >&6; }
2799 { echo "$as_me:$LINENO: result: no" >&5
2800 echo "${ECHO_T}no" >&6; }
2804 test -n "$CXX" && break
2807 if test -z "$CXX"; then
2809 for ac_prog in clang++ llvm-g++ g++
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 if test -n "$ac_ct_CXX"; then
2819 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_ac_ct_CXX="$ac_prog"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2839 if test -n "$ac_ct_CXX"; then
2840 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2841 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2848 test -n "$ac_ct_CXX" && break
2851 if test "x$ac_ct_CXX" = x; then
2854 case $cross_compiling:$ac_tool_warned in
2856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857 whose name does not start with the host triplet. If you think this
2858 configuration is useful to you, please write to autoconf@gnu.org." >&5
2859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet. If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2862 ac_tool_warned=yes ;;
2870 # Provide some information about the compiler.
2871 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2872 ac_compiler=`set X $ac_compile; echo $2`
2873 { (ac_try="$ac_compiler --version >&5"
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compiler --version >&5") 2>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883 { (ac_try="$ac_compiler -v >&5"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler -v >&5") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893 { (ac_try="$ac_compiler -V >&5"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -V >&5") 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2904 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2905 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2906 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2927 rm -f conftest.$ac_objext
2928 if { (ac_try="$ac_compile"
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2942 { (case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_try") 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_try") 2>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2973 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2974 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2975 GXX=`test $ac_compiler_gnu = yes && echo yes`
2976 ac_test_CXXFLAGS=${CXXFLAGS+set}
2977 ac_save_CXXFLAGS=$CXXFLAGS
2978 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2979 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_cxx_g+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2984 ac_cxx_werror_flag=yes
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3011 grep -v '^ *+' conftest.er1 >conftest.err
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } &&
3016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3017 { (case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_try") 2>&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 ac_cv_prog_cxx_g=yes
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3072 { (case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_try") 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3098 cat >conftest.$ac_ext <<_ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3122 grep -v '^ *+' conftest.er1 >conftest.err
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_prog_cxx_g=yes
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3164 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3165 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3166 if test "$ac_test_CXXFLAGS" = set; then
3167 CXXFLAGS=$ac_save_CXXFLAGS
3168 elif test $ac_cv_prog_cxx_g = yes; then
3169 if test "$GXX" = yes; then
3175 if test "$GXX" = yes; then
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3193 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3194 # On Suns, sometimes $CPP names a directory.
3195 if test -n "$CPP" && test -d "$CPP"; then
3198 if test -z "$CPP"; then
3199 if test "${ac_cv_prog_CPP+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 # Double quotes because CPP needs to be expanded
3203 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3206 for ac_c_preproc_warn_flag in '' yes
3208 # Use a header file that comes with gcc, so configuring glibc
3209 # with a fresh cross-compiler works.
3210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3211 # <limits.h> exists even on freestanding compilers.
3212 # On the NeXT, cc -E runs the code through the compiler's parser,
3213 # not just through cpp. "Syntax error" is here to catch this case.
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3221 # include <limits.h>
3223 # include <assert.h>
3227 if { (ac_try="$ac_cpp conftest.$ac_ext"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3235 grep -v '^ *+' conftest.er1 >conftest.err
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } >/dev/null; then
3240 if test -s conftest.err; then
3241 ac_cpp_err=$ac_c_preproc_warn_flag
3242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3249 if test -z "$ac_cpp_err"; then
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 # Broken: fails on valid input.
3259 rm -f conftest.err conftest.$ac_ext
3261 # OK, works on sane cases. Now check whether nonexistent headers
3262 # can be detected and how.
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269 #include <ac_nonexistent.h>
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279 grep -v '^ *+' conftest.er1 >conftest.err
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null; then
3284 if test -s conftest.err; then
3285 ac_cpp_err=$ac_c_preproc_warn_flag
3286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3293 if test -z "$ac_cpp_err"; then
3294 # Broken: success on invalid input.
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 # Passes both tests.
3305 rm -f conftest.err conftest.$ac_ext
3308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309 rm -f conftest.err conftest.$ac_ext
3310 if $ac_preproc_ok; then
3322 { echo "$as_me:$LINENO: result: $CPP" >&5
3323 echo "${ECHO_T}$CPP" >&6; }
3325 for ac_c_preproc_warn_flag in '' yes
3327 # Use a header file that comes with gcc, so configuring glibc
3328 # with a fresh cross-compiler works.
3329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3330 # <limits.h> exists even on freestanding compilers.
3331 # On the NeXT, cc -E runs the code through the compiler's parser,
3332 # not just through cpp. "Syntax error" is here to catch this case.
3333 cat >conftest.$ac_ext <<_ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3340 # include <limits.h>
3342 # include <assert.h>
3346 if { (ac_try="$ac_cpp conftest.$ac_ext"
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3354 grep -v '^ *+' conftest.er1 >conftest.err
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3368 if test -z "$ac_cpp_err"; then
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 # Broken: fails on valid input.
3378 rm -f conftest.err conftest.$ac_ext
3380 # OK, works on sane cases. Now check whether nonexistent headers
3381 # can be detected and how.
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388 #include <ac_nonexistent.h>
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_c_preproc_warn_flag
3405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3412 if test -z "$ac_cpp_err"; then
3413 # Broken: success on invalid input.
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3419 # Passes both tests.
3424 rm -f conftest.err conftest.$ac_ext
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3432 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435 See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 if test -d ${srcdir}/projects/llvm-gcc ; then
3449 subdirs="$subdirs projects/llvm-gcc"
3453 if test -d ${srcdir}/projects/test-suite ; then
3454 subdirs="$subdirs projects/test-suite"
3458 if test -d ${srcdir}/projects/llvm-test ; then
3459 subdirs="$subdirs projects/llvm-test"
3463 if test -d ${srcdir}/projects/poolalloc ; then
3464 subdirs="$subdirs projects/poolalloc"
3468 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3469 subdirs="$subdirs projects/llvm-poolalloc"
3473 for i in `ls ${srcdir}/projects`
3475 if test -d ${srcdir}/projects/${i} ; then
3477 sample) subdirs="$subdirs projects/sample"
3479 privbracket) subdirs="$subdirs projects/privbracket"
3481 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3483 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3485 llvm-java) subdirs="$subdirs projects/llvm-java"
3487 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3489 safecode) subdirs="$subdirs projects/safecode"
3491 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3499 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3500 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3506 # Check whether --enable-polly was given.
3507 if test "${enable_polly+set}" = set; then
3508 enableval=$enable_polly;
3513 case "$enableval" in
3518 default) ENABLE_POLLY=1
3520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3521 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3522 { (exit 1); exit 1; }; } ;;
3526 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3529 subdirs="$subdirs tools/polly"
3534 # Make sure we can run config.sub.
3535 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3536 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3537 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3538 { (exit 1); exit 1; }; }
3540 { echo "$as_me:$LINENO: checking build system type" >&5
3541 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3542 if test "${ac_cv_build+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 ac_build_alias=$build_alias
3546 test "x$ac_build_alias" = x &&
3547 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3548 test "x$ac_build_alias" = x &&
3549 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3550 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3551 { (exit 1); exit 1; }; }
3552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3553 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3554 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3555 { (exit 1); exit 1; }; }
3558 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3559 echo "${ECHO_T}$ac_cv_build" >&6; }
3560 case $ac_cv_build in
3562 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3563 echo "$as_me: error: invalid value of canonical build" >&2;}
3564 { (exit 1); exit 1; }; };;
3567 ac_save_IFS=$IFS; IFS='-'
3573 # Remember, the first character of IFS is used to create $*,
3574 # except with old shells:
3577 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3580 { echo "$as_me:$LINENO: checking host system type" >&5
3581 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3582 if test "${ac_cv_host+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 if test "x$host_alias" = x; then
3586 ac_cv_host=$ac_cv_build
3588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3589 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3590 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3591 { (exit 1); exit 1; }; }
3595 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3596 echo "${ECHO_T}$ac_cv_host" >&6; }
3599 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3600 echo "$as_me: error: invalid value of canonical host" >&2;}
3601 { (exit 1); exit 1; }; };;
3604 ac_save_IFS=$IFS; IFS='-'
3610 # Remember, the first character of IFS is used to create $*,
3611 # except with old shells:
3614 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3617 { echo "$as_me:$LINENO: checking target system type" >&5
3618 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3619 if test "${ac_cv_target+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 if test "x$target_alias" = x; then
3623 ac_cv_target=$ac_cv_host
3625 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3626 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3627 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3628 { (exit 1); exit 1; }; }
3632 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3633 echo "${ECHO_T}$ac_cv_target" >&6; }
3634 case $ac_cv_target in
3636 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3637 echo "$as_me: error: invalid value of canonical target" >&2;}
3638 { (exit 1); exit 1; }; };;
3640 target=$ac_cv_target
3641 ac_save_IFS=$IFS; IFS='-'
3647 # Remember, the first character of IFS is used to create $*,
3648 # except with old shells:
3651 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3654 # The aliases save the names the user supplied, while $host etc.
3655 # will get canonicalized.
3656 test -n "$target_alias" &&
3657 test "$program_prefix$program_suffix$program_transform_name" = \
3659 program_prefix=${target_alias}-
3661 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3662 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3663 if test "${llvm_cv_os_type+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="AIX"
3671 llvm_cv_platform_type="Unix" ;;
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="IRIX"
3676 llvm_cv_platform_type="Unix" ;;
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="Cygwin"
3681 llvm_cv_platform_type="Unix" ;;
3683 llvm_cv_link_all_option="-Wl,-all_load"
3684 llvm_cv_no_link_all_option="-Wl,-noall_load"
3685 llvm_cv_os_type="Darwin"
3686 llvm_cv_platform_type="Unix" ;;
3688 llvm_cv_link_all_option="-Wl,-all_load"
3689 llvm_cv_no_link_all_option="-Wl,-noall_load"
3690 llvm_cv_os_type="Minix"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="FreeBSD"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="OpenBSD"
3701 llvm_cv_platform_type="Unix" ;;
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="NetBSD"
3706 llvm_cv_platform_type="Unix" ;;
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="DragonFly"
3711 llvm_cv_platform_type="Unix" ;;
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="HP-UX"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Interix"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Linux"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option="-Wl,-z,allextract"
3729 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3730 llvm_cv_os_type="SunOS"
3731 llvm_cv_platform_type="Unix" ;;
3733 llvm_cv_link_all_option="-Wl,-z,allextract"
3734 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3735 llvm_cv_os_type="AuroraUX"
3736 llvm_cv_platform_type="Unix" ;;
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="Win32"
3741 llvm_cv_platform_type="Win32" ;;
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="MingW"
3746 llvm_cv_platform_type="Win32" ;;
3748 llvm_cv_link_all_option="-Wl,--whole-archive"
3749 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750 llvm_cv_os_type="Haiku"
3751 llvm_cv_platform_type="Unix" ;;
3753 llvm_cv_link_all_option="-Wl,--whole-archive"
3754 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755 llvm_cv_os_type="Freestanding"
3756 llvm_cv_platform_type="Unix" ;;
3758 llvm_cv_link_all_option="-Wl,--whole-archive"
3759 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760 llvm_cv_os_type="Freestanding"
3761 llvm_cv_platform_type="Unix" ;;
3763 llvm_cv_link_all_option=""
3764 llvm_cv_no_link_all_option=""
3765 llvm_cv_os_type="Unknown"
3766 llvm_cv_platform_type="Unknown" ;;
3769 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3770 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3772 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3773 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3774 if test "${llvm_cv_target_os_type+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 llvm_cv_target_os_type="AIX" ;;
3781 llvm_cv_target_os_type="IRIX" ;;
3783 llvm_cv_target_os_type="Cygwin" ;;
3785 llvm_cv_target_os_type="Darwin" ;;
3787 llvm_cv_target_os_type="Minix" ;;
3789 llvm_cv_target_os_type="FreeBSD" ;;
3791 llvm_cv_target_os_type="OpenBSD" ;;
3793 llvm_cv_target_os_type="NetBSD" ;;
3795 llvm_cv_target_os_type="DragonFly" ;;
3797 llvm_cv_target_os_type="HP-UX" ;;
3799 llvm_cv_target_os_type="Interix" ;;
3801 llvm_cv_target_os_type="Linux" ;;
3803 llvm_cv_target_os_type="SunOS" ;;
3805 llvm_cv_target_os_type="AuroraUX" ;;
3807 llvm_cv_target_os_type="Win32" ;;
3809 llvm_cv_target_os_type="MingW" ;;
3811 llvm_cv_target_os_type="Haiku" ;;
3813 llvm_cv_target_os_type="RTEMS" ;;
3815 llvm_cv_target_os_type="NativeClient" ;;
3817 llvm_cv_target_os_type="Freestanding" ;;
3819 llvm_cv_target_os_type="Unknown" ;;
3822 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3823 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3825 if test "$llvm_cv_os_type" = "Unknown" ; then
3826 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3827 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3828 { (exit 1); exit 1; }; }
3833 HOST_OS=$llvm_cv_os_type
3835 TARGET_OS=$llvm_cv_target_os_type
3838 LINKALL=$llvm_cv_link_all_option
3840 NOLINKALL=$llvm_cv_no_link_all_option
3843 case $llvm_cv_platform_type in
3846 cat >>confdefs.h <<\_ACEOF
3847 #define LLVM_ON_UNIX 1
3857 cat >>confdefs.h <<\_ACEOF
3858 #define LLVM_ON_WIN32 1
3868 { echo "$as_me:$LINENO: checking target architecture" >&5
3869 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3870 if test "${llvm_cv_target_arch+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 i?86-*) llvm_cv_target_arch="x86" ;;
3875 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3876 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3877 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3878 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3879 arm*-*) llvm_cv_target_arch="ARM" ;;
3880 mips-*) llvm_cv_target_arch="Mips" ;;
3881 xcore-*) llvm_cv_target_arch="XCore" ;;
3882 msp430-*) llvm_cv_target_arch="MSP430" ;;
3883 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3884 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3885 ptx-*) llvm_cv_target_arch="PTX" ;;
3886 *) llvm_cv_target_arch="Unknown" ;;
3889 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3890 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3892 if test "$llvm_cv_target_arch" = "Unknown" ; then
3893 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3894 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3897 # Determine the LLVM native architecture for the target
3898 case "$llvm_cv_target_arch" in
3899 x86) LLVM_NATIVE_ARCH="X86" ;;
3900 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3901 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3904 ARCH=$llvm_cv_target_arch
3909 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3910 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3911 if test "${ac_cv_path_GREP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 # Extract the first word of "grep ggrep" to use in msg output
3915 if test -z "$GREP"; then
3916 set dummy grep ggrep; ac_prog_name=$2
3917 if test "${ac_cv_path_GREP+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 ac_path_GREP_found=false
3921 # Loop through the user's path and test for each of PROGNAME-LIST
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3926 test -z "$as_dir" && as_dir=.
3927 for ac_prog in grep ggrep; do
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3930 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3931 # Check for GNU ac_path_GREP and select it if it is found.
3932 # Check for GNU $ac_path_GREP
3933 case `"$ac_path_GREP" --version 2>&1` in
3935 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3938 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3941 cat "conftest.in" "conftest.in" >"conftest.tmp"
3942 mv "conftest.tmp" "conftest.in"
3943 cp "conftest.in" "conftest.nl"
3944 echo 'GREP' >> "conftest.nl"
3945 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3946 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3947 ac_count=`expr $ac_count + 1`
3948 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3949 # Best one so far, save it but keep looking for a better one
3950 ac_cv_path_GREP="$ac_path_GREP"
3951 ac_path_GREP_max=$ac_count
3953 # 10*(2^10) chars as input seems more than enough
3954 test $ac_count -gt 10 && break
3956 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3960 $ac_path_GREP_found && break 3
3970 GREP="$ac_cv_path_GREP"
3971 if test -z "$GREP"; then
3972 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3973 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3974 { (exit 1); exit 1; }; }
3978 ac_cv_path_GREP=$GREP
3983 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3984 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3985 GREP="$ac_cv_path_GREP"
3988 { echo "$as_me:$LINENO: checking for egrep" >&5
3989 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3990 if test "${ac_cv_path_EGREP+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3994 then ac_cv_path_EGREP="$GREP -E"
3996 # Extract the first word of "egrep" to use in msg output
3997 if test -z "$EGREP"; then
3998 set dummy egrep; ac_prog_name=$2
3999 if test "${ac_cv_path_EGREP+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 ac_path_EGREP_found=false
4003 # Loop through the user's path and test for each of PROGNAME-LIST
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4008 test -z "$as_dir" && as_dir=.
4009 for ac_prog in egrep; do
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4012 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4013 # Check for GNU ac_path_EGREP and select it if it is found.
4014 # Check for GNU $ac_path_EGREP
4015 case `"$ac_path_EGREP" --version 2>&1` in
4017 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4020 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4023 cat "conftest.in" "conftest.in" >"conftest.tmp"
4024 mv "conftest.tmp" "conftest.in"
4025 cp "conftest.in" "conftest.nl"
4026 echo 'EGREP' >> "conftest.nl"
4027 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4028 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4029 ac_count=`expr $ac_count + 1`
4030 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4031 # Best one so far, save it but keep looking for a better one
4032 ac_cv_path_EGREP="$ac_path_EGREP"
4033 ac_path_EGREP_max=$ac_count
4035 # 10*(2^10) chars as input seems more than enough
4036 test $ac_count -gt 10 && break
4038 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4042 $ac_path_EGREP_found && break 3
4052 EGREP="$ac_cv_path_EGREP"
4053 if test -z "$EGREP"; then
4054 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4055 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4056 { (exit 1); exit 1; }; }
4060 ac_cv_path_EGREP=$EGREP
4066 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4067 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4068 EGREP="$ac_cv_path_EGREP"
4071 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4072 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4073 if test "${ac_cv_header_stdc+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 cat >conftest.$ac_ext <<_ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4095 rm -f conftest.$ac_objext
4096 if { (ac_try="$ac_compile"
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_compile") 2>conftest.er1
4104 grep -v '^ *+' conftest.er1 >conftest.err
4106 cat conftest.err >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } &&
4109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4110 { (case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115 (eval "$ac_try") 2>&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; } &&
4119 { ac_try='test -s conftest.$ac_objext'
4120 { (case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125 (eval "$ac_try") 2>&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 ac_cv_header_stdc=yes
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 ac_cv_header_stdc=no
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 if test $ac_cv_header_stdc = yes; then
4140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4141 cat >conftest.$ac_ext <<_ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151 $EGREP "memchr" >/dev/null 2>&1; then
4154 ac_cv_header_stdc=no
4160 if test $ac_cv_header_stdc = yes; then
4161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4162 cat >conftest.$ac_ext <<_ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172 $EGREP "free" >/dev/null 2>&1; then
4175 ac_cv_header_stdc=no
4181 if test $ac_cv_header_stdc = yes; then
4182 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4183 if test "$cross_compiling" = yes; then
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4194 #if ((' ' & 0x0FF) == 0x020)
4195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4198 # define ISLOWER(c) \
4199 (('a' <= (c) && (c) <= 'i') \
4200 || ('j' <= (c) && (c) <= 'r') \
4201 || ('s' <= (c) && (c) <= 'z'))
4202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4210 for (i = 0; i < 256; i++)
4211 if (XOR (islower (i), ISLOWER (i))
4212 || toupper (i) != TOUPPER (i))
4217 rm -f conftest$ac_exeext
4218 if { (ac_try="$ac_link"
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_link") 2>&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4228 { (case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_try") 2>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4239 echo "$as_me: program exited with status $ac_status" >&5
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4244 ac_cv_header_stdc=no
4246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4252 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4253 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4254 if test $ac_cv_header_stdc = yes; then
4256 cat >>confdefs.h <<\_ACEOF
4257 #define STDC_HEADERS 1
4262 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4272 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4273 inttypes.h stdint.h unistd.h
4275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 cat >conftest.$ac_ext <<_ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287 $ac_includes_default
4289 #include <$ac_header>
4291 rm -f conftest.$ac_objext
4292 if { (ac_try="$ac_compile"
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_compile") 2>conftest.er1
4300 grep -v '^ *+' conftest.er1 >conftest.err
4302 cat conftest.err >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4306 { (case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_try") 2>&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; } &&
4315 { ac_try='test -s conftest.$ac_objext'
4316 { (case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_try") 2>&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 eval "$as_ac_Header=yes"
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 eval "$as_ac_Header=no"
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 ac_res=`eval echo '${'$as_ac_Header'}'`
4336 { echo "$as_me:$LINENO: result: $ac_res" >&5
4337 echo "${ECHO_T}$ac_res" >&6; }
4338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4339 cat >>confdefs.h <<_ACEOF
4340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4348 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4349 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4350 if test "${ac_cv_c_bigendian+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 # See if sys/param.h defines the BYTE_ORDER macro.
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 #include <sys/types.h>
4361 #include <sys/param.h>
4366 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4374 rm -f conftest.$ac_objext
4375 if { (ac_try="$ac_compile"
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_compile") 2>conftest.er1
4383 grep -v '^ *+' conftest.er1 >conftest.err
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4389 { (case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_try") 2>&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; } &&
4398 { ac_try='test -s conftest.$ac_objext'
4399 { (case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_try") 2>&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 # It does; now see whether it defined to BIG_ENDIAN or not.
4409 cat >conftest.$ac_ext <<_ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 #include <sys/types.h>
4416 #include <sys/param.h>
4421 #if BYTE_ORDER != BIG_ENDIAN
4429 rm -f conftest.$ac_objext
4430 if { (ac_try="$ac_compile"
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4436 (eval "$ac_compile") 2>conftest.er1
4438 grep -v '^ *+' conftest.er1 >conftest.err
4440 cat conftest.err >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } &&
4443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4444 { (case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449 (eval "$ac_try") 2>&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; } &&
4453 { ac_try='test -s conftest.$ac_objext'
4454 { (case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_try") 2>&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 ac_cv_c_bigendian=yes
4465 echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4468 ac_cv_c_bigendian=no
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4476 # It does not; compile a test program.
4477 if test "$cross_compiling" = yes; then
4478 # try to guess the endianness by grepping values into an object file
4479 ac_cv_c_bigendian=unknown
4480 cat >conftest.$ac_ext <<_ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4487 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4488 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4489 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4490 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4491 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4495 _ascii (); _ebcdic ();
4500 rm -f conftest.$ac_objext
4501 if { (ac_try="$ac_compile"
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507 (eval "$ac_compile") 2>conftest.er1
4509 grep -v '^ *+' conftest.er1 >conftest.err
4511 cat conftest.err >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
4514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4515 { (case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520 (eval "$ac_try") 2>&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; } &&
4524 { ac_try='test -s conftest.$ac_objext'
4525 { (case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 (eval "$ac_try") 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4535 ac_cv_c_bigendian=yes
4537 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4538 if test "$ac_cv_c_bigendian" = unknown; then
4539 ac_cv_c_bigendian=no
4541 # finding both strings is unlikely to happen, but who knows?
4542 ac_cv_c_bigendian=unknown
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 cat >conftest.$ac_ext <<_ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 $ac_includes_default
4565 /* Are we little or big endian? From Harbison&Steele. */
4569 char c[sizeof (long int)];
4572 return u.c[sizeof (long int) - 1] == 1;
4578 rm -f conftest$ac_exeext
4579 if { (ac_try="$ac_link"
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585 (eval "$ac_link") 2>&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4589 { (case "(($ac_try" in
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594 (eval "$ac_try") 2>&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; }; then
4598 ac_cv_c_bigendian=no
4600 echo "$as_me: program exited with status $ac_status" >&5
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4605 ac_cv_c_bigendian=yes
4607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4616 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4617 case $ac_cv_c_bigendian in
4625 { { echo "$as_me:$LINENO: error: unknown endianness
4626 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4627 echo "$as_me: error: unknown endianness
4628 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4629 { (exit 1); exit 1; }; } ;;
4633 if test "$cross_compiling" = yes; then
4634 LLVM_CROSS_COMPILING=1
4637 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4638 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4639 if test "${ac_cv_build_exeext+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4643 ac_cv_build_exeext=.exe
4645 ac_build_prefix=${build_alias}-
4647 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4648 set dummy ${ac_build_prefix}gcc; ac_word=$2
4649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 if test -n "$BUILD_CC"; then
4655 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 BUILD_CC=$ac_cv_prog_BUILD_CC
4675 if test -n "$BUILD_CC"; then
4676 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4677 echo "${ECHO_T}$BUILD_CC" >&6; }
4679 { echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6; }
4684 if test -z "$BUILD_CC"; then
4685 # Extract the first word of "gcc", so it can be a program name with args.
4686 set dummy gcc; ac_word=$2
4687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 if test -n "$BUILD_CC"; then
4693 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_BUILD_CC="gcc"
4703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 BUILD_CC=$ac_cv_prog_BUILD_CC
4713 if test -n "$BUILD_CC"; then
4714 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4715 echo "${ECHO_T}$BUILD_CC" >&6; }
4717 { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4722 if test -z "$BUILD_CC"; then
4723 # Extract the first word of "cc", so it can be a program name with args.
4724 set dummy cc; ac_word=$2
4725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4727 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 if test -n "$BUILD_CC"; then
4731 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4742 ac_prog_rejected=yes
4745 ac_cv_prog_BUILD_CC="cc"
4746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 if test $ac_prog_rejected = yes; then
4754 # We found a bogon in the path, so make sure we never use it.
4755 set dummy $ac_cv_prog_BUILD_CC
4757 if test $# != 0; then
4758 # We chose a different compiler from the bogus one.
4759 # However, it has the same basename, so the bogon will be chosen
4760 # first if we set BUILD_CC to just the basename; use the full file name.
4762 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4767 BUILD_CC=$ac_cv_prog_BUILD_CC
4768 if test -n "$BUILD_CC"; then
4769 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4770 echo "${ECHO_T}$BUILD_CC" >&6; }
4772 { echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6; }
4779 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4780 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4781 { (exit 1); exit 1; }; }
4782 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4784 echo 'int main () { return 0; }' > conftest.$ac_ext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4787 (eval $ac_build_link) 2>&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; then
4791 for file in conftest.*; do
4793 *.c | *.o | *.obj | *.dSYM) ;;
4794 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4798 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4799 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4800 { (exit 1); exit 1; }; }
4803 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4808 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4809 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4810 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4811 ac_build_exeext=$BUILD_EXEEXT
4813 ac_build_prefix=${build_alias}-
4814 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4815 set dummy ${ac_build_prefix}g++; ac_word=$2
4816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4818 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 if test -n "$BUILD_CXX"; then
4822 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4842 if test -n "$BUILD_CXX"; then
4843 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4844 echo "${ECHO_T}$BUILD_CXX" >&6; }
4846 { echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6; }
4851 if test -z "$BUILD_CXX"; then
4852 # Extract the first word of "g++", so it can be a program name with args.
4853 set dummy g++; ac_word=$2
4854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4856 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 if test -n "$BUILD_CXX"; then
4860 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_BUILD_CXX="g++"
4870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4880 if test -n "$BUILD_CXX"; then
4881 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4882 echo "${ECHO_T}$BUILD_CXX" >&6; }
4884 { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4889 if test -z "$BUILD_CXX"; then
4890 # Extract the first word of "c++", so it can be a program name with args.
4891 set dummy c++; ac_word=$2
4892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4894 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 if test -n "$BUILD_CXX"; then
4898 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4909 ac_prog_rejected=yes
4912 ac_cv_prog_BUILD_CXX="c++"
4913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 if test $ac_prog_rejected = yes; then
4921 # We found a bogon in the path, so make sure we never use it.
4922 set dummy $ac_cv_prog_BUILD_CXX
4924 if test $# != 0; then
4925 # We chose a different compiler from the bogus one.
4926 # However, it has the same basename, so the bogon will be chosen
4927 # first if we set BUILD_CXX to just the basename; use the full file name.
4929 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4934 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4935 if test -n "$BUILD_CXX"; then
4936 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4937 echo "${ECHO_T}$BUILD_CXX" >&6; }
4939 { echo "$as_me:$LINENO: result: no" >&5
4940 echo "${ECHO_T}no" >&6; }
4947 LLVM_CROSS_COMPILING=0
4951 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4962 # Check whether --enable-optimized was given.
4963 if test "${enable_optimized+set}" = set; then
4964 enableval=$enable_optimized;
4969 if test ${enableval} = "no" ; then
4973 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4977 # Check whether --enable-profiling was given.
4978 if test "${enable_profiling+set}" = set; then
4979 enableval=$enable_profiling;
4984 if test ${enableval} = "no" ; then
4988 ENABLE_PROFILING=ENABLE_PROFILING=1
4992 # Check whether --enable-assertions was given.
4993 if test "${enable_assertions+set}" = set; then
4994 enableval=$enable_assertions;
4999 if test ${enableval} = "yes" ; then
5003 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5007 # Check whether --enable-expensive-checks was given.
5008 if test "${enable_expensive_checks+set}" = set; then
5009 enableval=$enable_expensive_checks;
5014 if test ${enableval} = "yes" ; then
5015 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5017 EXPENSIVE_CHECKS=yes
5020 ENABLE_EXPENSIVE_CHECKS=
5026 # Check whether --enable-debug-runtime was given.
5027 if test "${enable_debug_runtime+set}" = set; then
5028 enableval=$enable_debug_runtime;
5033 if test ${enableval} = "no" ; then
5037 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5041 # Check whether --enable-debug-symbols was given.
5042 if test "${enable_debug_symbols+set}" = set; then
5043 enableval=$enable_debug_symbols;
5048 if test ${enableval} = "no" ; then
5052 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5056 # Check whether --enable-jit was given.
5057 if test "${enable_jit+set}" = set; then
5058 enableval=$enable_jit;
5063 if test ${enableval} = "no"
5068 case "$llvm_cv_target_arch" in
5069 x86) TARGET_HAS_JIT=1
5071 Sparc) TARGET_HAS_JIT=0
5073 PowerPC) TARGET_HAS_JIT=1
5075 x86_64) TARGET_HAS_JIT=1
5077 Alpha) TARGET_HAS_JIT=0
5079 ARM) TARGET_HAS_JIT=1
5081 Mips) TARGET_HAS_JIT=1
5083 XCore) TARGET_HAS_JIT=0
5085 MSP430) TARGET_HAS_JIT=0
5087 Blackfin) TARGET_HAS_JIT=0
5089 MBlaze) TARGET_HAS_JIT=0
5091 PTX) TARGET_HAS_JIT=0
5098 # Check whether --enable-docs was given.
5099 if test "${enable_docs+set}" = set; then
5100 enableval=$enable_docs;
5105 case "$enableval" in
5110 default) ENABLE_DOCS=1
5112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5113 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5114 { (exit 1); exit 1; }; } ;;
5117 # Check whether --enable-doxygen was given.
5118 if test "${enable_doxygen+set}" = set; then
5119 enableval=$enable_doxygen;
5124 case "$enableval" in
5125 yes) ENABLE_DOXYGEN=1
5127 no) ENABLE_DOXYGEN=0
5129 default) ENABLE_DOXYGEN=0
5131 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5132 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5133 { (exit 1); exit 1; }; } ;;
5136 # Check whether --enable-threads was given.
5137 if test "${enable_threads+set}" = set; then
5138 enableval=$enable_threads;
5143 case "$enableval" in
5144 yes) ENABLE_THREADS=1
5146 no) ENABLE_THREADS=0
5148 default) ENABLE_THREADS=1
5150 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5151 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5152 { (exit 1); exit 1; }; } ;;
5155 cat >>confdefs.h <<_ACEOF
5156 #define ENABLE_THREADS $ENABLE_THREADS
5160 # Check whether --enable-pthreads was given.
5161 if test "${enable_pthreads+set}" = set; then
5162 enableval=$enable_pthreads;
5167 case "$enableval" in
5168 yes) ENABLE_PTHREADS=1
5170 no) ENABLE_PTHREADS=0
5172 default) ENABLE_PTHREADS=1
5174 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5175 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5176 { (exit 1); exit 1; }; } ;;
5179 # Check whether --enable-pic was given.
5180 if test "${enable_pic+set}" = set; then
5181 enableval=$enable_pic;
5186 case "$enableval" in
5191 default) ENABLE_PIC=1
5193 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5194 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5195 { (exit 1); exit 1; }; } ;;
5198 cat >>confdefs.h <<_ACEOF
5199 #define ENABLE_PIC $ENABLE_PIC
5203 # Check whether --enable-shared was given.
5204 if test "${enable_shared+set}" = set; then
5205 enableval=$enable_shared;
5210 case "$enableval" in
5211 yes) ENABLE_SHARED=1
5215 default) ENABLE_SHARED=0
5217 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5218 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5219 { (exit 1); exit 1; }; } ;;
5222 # Check whether --enable-embed-stdcxx was given.
5223 if test "${enable_embed_stdcxx+set}" = set; then
5224 enableval=$enable_embed_stdcxx;
5229 case "$enableval" in
5230 yes) ENABLE_EMBED_STDCXX=1
5232 no) ENABLE_EMBED_STDCXX=0
5234 default) ENABLE_EMBED_STDCXX=0
5236 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5237 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5238 { (exit 1); exit 1; }; } ;;
5241 # Check whether --enable-timestamps was given.
5242 if test "${enable_timestamps+set}" = set; then
5243 enableval=$enable_timestamps;
5248 case "$enableval" in
5249 yes) ENABLE_TIMESTAMPS=1
5251 no) ENABLE_TIMESTAMPS=0
5253 default) ENABLE_TIMESTAMPS=1
5255 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5256 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5257 { (exit 1); exit 1; }; } ;;
5260 cat >>confdefs.h <<_ACEOF
5261 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5266 # Check whether --enable-targets was given.
5267 if test "${enable_targets+set}" = set; then
5268 enableval=$enable_targets;
5273 if test "$enableval" = host-only ; then
5276 case "$enableval" in
5277 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 Blackfin CBackend CppBackend MBlaze PTX" ;;
5278 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5280 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5281 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5282 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5283 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5284 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5285 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5286 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5287 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5288 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5289 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5290 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5291 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5292 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5293 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5294 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5295 host) case "$llvm_cv_target_arch" in
5296 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5297 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5298 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5299 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5300 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5301 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5302 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5303 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5304 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5305 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5306 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5307 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5308 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5309 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5310 echo "$as_me: error: Can not set target to build" >&2;}
5311 { (exit 1); exit 1; }; } ;;
5313 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5314 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5315 { (exit 1); exit 1; }; } ;;
5320 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5323 # Determine whether we are building LLVM support for the native architecture.
5324 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5325 for a_target in $TARGETS_TO_BUILD; do
5326 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5328 cat >>confdefs.h <<_ACEOF
5329 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5332 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5333 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5334 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5335 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5336 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5337 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5340 cat >>confdefs.h <<_ACEOF
5341 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5345 cat >>confdefs.h <<_ACEOF
5346 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5350 cat >>confdefs.h <<_ACEOF
5351 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5355 cat >>confdefs.h <<_ACEOF
5356 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5359 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5361 cat >>confdefs.h <<_ACEOF
5362 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5369 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5370 # target feature def files.
5371 LLVM_ENUM_TARGETS=""
5372 LLVM_ENUM_ASM_PRINTERS=""
5373 LLVM_ENUM_ASM_PARSERS=""
5374 LLVM_ENUM_DISASSEMBLERS=""
5375 for target_to_build in $TARGETS_TO_BUILD; do
5376 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5377 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5378 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5380 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5381 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5383 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5384 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5392 # Check whether --enable-cbe-printf-a was given.
5393 if test "${enable_cbe_printf_a+set}" = set; then
5394 enableval=$enable_cbe_printf_a;
5399 case "$enableval" in
5400 yes) ENABLE_CBE_PRINTF_A=1
5402 no) ENABLE_CBE_PRINTF_A=0
5404 default) ENABLE_CBE_PRINTF_A=1
5406 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5407 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5408 { (exit 1); exit 1; }; } ;;
5411 cat >>confdefs.h <<_ACEOF
5412 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5417 # Check whether --with-optimize-option was given.
5418 if test "${with_optimize_option+set}" = set; then
5419 withval=$with_optimize_option;
5424 { echo "$as_me:$LINENO: checking optimization flags" >&5
5425 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5428 case "$llvm_cv_os_type" in
5429 FreeBSD) optimize_option=-O2 ;;
5430 MingW) optimize_option=-O2 ;;
5431 *) optimize_option=-O3 ;;
5433 *) optimize_option="$withval" ;;
5435 OPTIMIZE_OPTION=$optimize_option
5437 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5438 echo "${ECHO_T}$optimize_option" >&6; }
5441 # Check whether --with-extra-options was given.
5442 if test "${with_extra_options+set}" = set; then
5443 withval=$with_extra_options;
5449 default) EXTRA_OPTIONS= ;;
5450 *) EXTRA_OPTIONS=$withval ;;
5452 EXTRA_OPTIONS=$EXTRA_OPTIONS
5456 # Check whether --with-extra-ld-options was given.
5457 if test "${with_extra_ld_options+set}" = set; then
5458 withval=$with_extra_ld_options;
5464 default) EXTRA_LD_OPTIONS= ;;
5465 *) EXTRA_LD_OPTIONS=$withval ;;
5467 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5470 # Check whether --enable-bindings was given.
5471 if test "${enable_bindings+set}" = set; then
5472 enableval=$enable_bindings;
5477 BINDINGS_TO_BUILD=""
5478 case "$enableval" in
5479 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5480 all ) BINDINGS_TO_BUILD="ocaml" ;;
5481 none | no) BINDINGS_TO_BUILD="" ;;
5482 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5483 case "$a_binding" in
5484 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5485 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5486 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5487 { (exit 1); exit 1; }; } ;;
5494 # Check whether --with-ocaml-libdir was given.
5495 if test "${with_ocaml_libdir+set}" = set; then
5496 withval=$with_ocaml_libdir;
5502 auto) with_ocaml_libdir="$withval" ;;
5503 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5504 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5505 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5506 { (exit 1); exit 1; }; } ;;
5510 # Check whether --with-clang-srcdir was given.
5511 if test "${with_clang_srcdir+set}" = set; then
5512 withval=$with_clang_srcdir;
5518 -) clang_src_root="" ;;
5519 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5520 *) clang_src_root="$ac_pwd/$withval" ;;
5522 CLANG_SRC_ROOT=$clang_src_root
5526 # Check whether --with-clang-resource-dir was given.
5527 if test "${with_clang_resource_dir+set}" = set; then
5528 withval=$with_clang_resource_dir;
5534 cat >>confdefs.h <<_ACEOF
5535 #define CLANG_RESOURCE_DIR "$withval"
5540 # Check whether --with-c-include-dirs was given.
5541 if test "${with_c_include_dirs+set}" = set; then
5542 withval=$with_c_include_dirs;
5548 cat >>confdefs.h <<_ACEOF
5549 #define C_INCLUDE_DIRS "$withval"
5554 # Check whether --with-cxx-include-root was given.
5555 if test "${with_cxx_include_root+set}" = set; then
5556 withval=$with_cxx_include_root;
5562 cat >>confdefs.h <<_ACEOF
5563 #define CXX_INCLUDE_ROOT "$withval"
5568 # Check whether --with-cxx-include-arch was given.
5569 if test "${with_cxx_include_arch+set}" = set; then
5570 withval=$with_cxx_include_arch;
5576 cat >>confdefs.h <<_ACEOF
5577 #define CXX_INCLUDE_ARCH "$withval"
5582 # Check whether --with-cxx-include-32bit-dir was given.
5583 if test "${with_cxx_include_32bit_dir+set}" = set; then
5584 withval=$with_cxx_include_32bit_dir;
5590 cat >>confdefs.h <<_ACEOF
5591 #define CXX_INCLUDE_32BIT_DIR "$withval"
5596 # Check whether --with-cxx-include-64bit-dir was given.
5597 if test "${with_cxx_include_64bit_dir+set}" = set; then
5598 withval=$with_cxx_include_64bit_dir;
5604 cat >>confdefs.h <<_ACEOF
5605 #define CXX_INCLUDE_64BIT_DIR "$withval"
5610 # Check whether --with-binutils-include was given.
5611 if test "${with_binutils_include+set}" = set; then
5612 withval=$with_binutils_include;
5618 default) WITH_BINUTILS_INCDIR=default ;;
5619 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5620 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5621 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5622 { (exit 1); exit 1; }; } ;;
5624 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5625 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5627 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5628 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5629 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5630 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5631 { (exit 1); exit 1; }; };
5636 # Check whether --with-bug-report-url was given.
5637 if test "${with_bug_report_url+set}" = set; then
5638 withval=$with_bug_report_url;
5640 withval="http://llvm.org/bugs/"
5644 cat >>confdefs.h <<_ACEOF
5645 #define BUG_REPORT_URL "$withval"
5649 # Check whether --enable-libffi was given.
5650 if test "${enable_libffi+set}" = set; then
5651 enableval=$enable_libffi; case "$enableval" in
5652 yes) llvm_cv_enable_libffi="yes" ;;
5653 no) llvm_cv_enable_libffi="no" ;;
5654 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5655 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5656 { (exit 1); exit 1; }; } ;;
5659 llvm_cv_enable_libffi=no
5664 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5665 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5666 if test "${lt_cv_path_NM+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 if test -n "$NM"; then
5670 # Let the user override the test.
5673 lt_nm_to_check="${ac_tool_prefix}nm"
5674 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5675 lt_nm_to_check="$lt_nm_to_check nm"
5677 for lt_tmp_nm in $lt_nm_to_check; do
5678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5679 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5681 test -z "$ac_dir" && ac_dir=.
5682 tmp_nm="$ac_dir/$lt_tmp_nm"
5683 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5684 # Check to see if the nm accepts a BSD-compat flag.
5685 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5686 # nm: unknown option "B" ignored
5687 # Tru64's nm complains that /dev/null is an invalid object file
5688 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5689 */dev/null* | *'Invalid file or object type'*)
5690 lt_cv_path_NM="$tmp_nm -B"
5694 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5696 lt_cv_path_NM="$tmp_nm -p"
5700 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5701 continue # so that we can try to find one that supports BSD flags
5710 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5713 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5714 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5719 { echo "$as_me:$LINENO: checking for GNU make" >&5
5720 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5721 if test "${llvm_cv_gnu_make_command+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 llvm_cv_gnu_make_command=''
5725 for a in "$MAKE" make gmake gnumake ; do
5726 if test -z "$a" ; then continue ; fi ;
5727 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5729 llvm_cv_gnu_make_command=$a ;
5734 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5735 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5736 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5740 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5741 echo "${ECHO_T}\"Not found\"" >&6; };
5745 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5746 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5748 if test "$LN_S" = "ln -s"; then
5749 { echo "$as_me:$LINENO: result: yes" >&5
5750 echo "${ECHO_T}yes" >&6; }
5752 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5753 echo "${ECHO_T}no, using $LN_S" >&6; }
5756 # Extract the first word of "cmp", so it can be a program name with args.
5757 set dummy cmp; ac_word=$2
5758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5760 if test "${ac_cv_path_CMP+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5775 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5788 if test -n "$CMP"; then
5789 { echo "$as_me:$LINENO: result: $CMP" >&5
5790 echo "${ECHO_T}$CMP" >&6; }
5792 { echo "$as_me:$LINENO: result: no" >&5
5793 echo "${ECHO_T}no" >&6; }
5797 # Extract the first word of "cp", so it can be a program name with args.
5798 set dummy cp; ac_word=$2
5799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5801 if test "${ac_cv_path_CP+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5816 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5829 if test -n "$CP"; then
5830 { echo "$as_me:$LINENO: result: $CP" >&5
5831 echo "${ECHO_T}$CP" >&6; }
5833 { echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6; }
5838 # Extract the first word of "date", so it can be a program name with args.
5839 set dummy date; ac_word=$2
5840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5842 if test "${ac_cv_path_DATE+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5869 DATE=$ac_cv_path_DATE
5870 if test -n "$DATE"; then
5871 { echo "$as_me:$LINENO: result: $DATE" >&5
5872 echo "${ECHO_T}$DATE" >&6; }
5874 { echo "$as_me:$LINENO: result: no" >&5
5875 echo "${ECHO_T}no" >&6; }
5879 # Extract the first word of "find", so it can be a program name with args.
5880 set dummy find; ac_word=$2
5881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883 if test "${ac_cv_path_FIND+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5910 FIND=$ac_cv_path_FIND
5911 if test -n "$FIND"; then
5912 { echo "$as_me:$LINENO: result: $FIND" >&5
5913 echo "${ECHO_T}$FIND" >&6; }
5915 { echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6; }
5920 # Extract the first word of "grep", so it can be a program name with args.
5921 set dummy grep; ac_word=$2
5922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5924 if test "${ac_cv_path_GREP+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5951 GREP=$ac_cv_path_GREP
5952 if test -n "$GREP"; then
5953 { echo "$as_me:$LINENO: result: $GREP" >&5
5954 echo "${ECHO_T}$GREP" >&6; }
5956 { echo "$as_me:$LINENO: result: no" >&5
5957 echo "${ECHO_T}no" >&6; }
5961 # Extract the first word of "mkdir", so it can be a program name with args.
5962 set dummy mkdir; ac_word=$2
5963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5965 if test "${ac_cv_path_MKDIR+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5980 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5992 MKDIR=$ac_cv_path_MKDIR
5993 if test -n "$MKDIR"; then
5994 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5995 echo "${ECHO_T}$MKDIR" >&6; }
5997 { echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6; }
6002 # Extract the first word of "mv", so it can be a program name with args.
6003 set dummy mv; ac_word=$2
6004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6006 if test "${ac_cv_path_MV+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6021 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6034 if test -n "$MV"; then
6035 { echo "$as_me:$LINENO: result: $MV" >&5
6036 echo "${ECHO_T}$MV" >&6; }
6038 { echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6; }
6043 if test -n "$ac_tool_prefix"; then
6044 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6045 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048 if test "${ac_cv_prog_RANLIB+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 if test -n "$RANLIB"; then
6052 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6061 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 RANLIB=$ac_cv_prog_RANLIB
6072 if test -n "$RANLIB"; then
6073 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6074 echo "${ECHO_T}$RANLIB" >&6; }
6076 { echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6; }
6082 if test -z "$ac_cv_prog_RANLIB"; then
6083 ac_ct_RANLIB=$RANLIB
6084 # Extract the first word of "ranlib", so it can be a program name with args.
6085 set dummy ranlib; ac_word=$2
6086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 if test -n "$ac_ct_RANLIB"; then
6092 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6101 ac_cv_prog_ac_ct_RANLIB="ranlib"
6102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6112 if test -n "$ac_ct_RANLIB"; then
6113 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6114 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6116 { echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6; }
6120 if test "x$ac_ct_RANLIB" = x; then
6123 case $cross_compiling:$ac_tool_warned in
6125 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6126 whose name does not start with the host triplet. If you think this
6127 configuration is useful to you, please write to autoconf@gnu.org." >&5
6128 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6129 whose name does not start with the host triplet. If you think this
6130 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6131 ac_tool_warned=yes ;;
6133 RANLIB=$ac_ct_RANLIB
6136 RANLIB="$ac_cv_prog_RANLIB"
6139 if test -n "$ac_tool_prefix"; then
6140 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6141 set dummy ${ac_tool_prefix}ar; ac_word=$2
6142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6144 if test "${ac_cv_prog_AR+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 if test -n "$AR"; then
6148 ac_cv_prog_AR="$AR" # Let the user override the test.
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6157 ac_cv_prog_AR="${ac_tool_prefix}ar"
6158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 if test -n "$AR"; then
6169 { echo "$as_me:$LINENO: result: $AR" >&5
6170 echo "${ECHO_T}$AR" >&6; }
6172 { echo "$as_me:$LINENO: result: no" >&5
6173 echo "${ECHO_T}no" >&6; }
6178 if test -z "$ac_cv_prog_AR"; then
6180 # Extract the first word of "ar", so it can be a program name with args.
6181 set dummy ar; ac_word=$2
6182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6184 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 if test -n "$ac_ct_AR"; then
6188 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_prog_ac_ct_AR="ar"
6198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6208 if test -n "$ac_ct_AR"; then
6209 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6210 echo "${ECHO_T}$ac_ct_AR" >&6; }
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6216 if test "x$ac_ct_AR" = x; then
6219 case $cross_compiling:$ac_tool_warned in
6221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6222 whose name does not start with the host triplet. If you think this
6223 configuration is useful to you, please write to autoconf@gnu.org." >&5
6224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6225 whose name does not start with the host triplet. If you think this
6226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6227 ac_tool_warned=yes ;;
6235 # Extract the first word of "rm", so it can be a program name with args.
6236 set dummy rm; ac_word=$2
6237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6239 if test "${ac_cv_path_RM+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6254 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6267 if test -n "$RM"; then
6268 { echo "$as_me:$LINENO: result: $RM" >&5
6269 echo "${ECHO_T}$RM" >&6; }
6271 { echo "$as_me:$LINENO: result: no" >&5
6272 echo "${ECHO_T}no" >&6; }
6276 # Extract the first word of "sed", so it can be a program name with args.
6277 set dummy sed; ac_word=$2
6278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6280 if test "${ac_cv_path_SED+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6308 if test -n "$SED"; then
6309 { echo "$as_me:$LINENO: result: $SED" >&5
6310 echo "${ECHO_T}$SED" >&6; }
6312 { echo "$as_me:$LINENO: result: no" >&5
6313 echo "${ECHO_T}no" >&6; }
6317 # Extract the first word of "tar", so it can be a program name with args.
6318 set dummy tar; ac_word=$2
6319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6321 if test "${ac_cv_path_TAR+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6349 if test -n "$TAR"; then
6350 { echo "$as_me:$LINENO: result: $TAR" >&5
6351 echo "${ECHO_T}$TAR" >&6; }
6353 { echo "$as_me:$LINENO: result: no" >&5
6354 echo "${ECHO_T}no" >&6; }
6358 # Extract the first word of "pwd", so it can be a program name with args.
6359 set dummy pwd; ac_word=$2
6360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362 if test "${ac_cv_path_BINPWD+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6377 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6389 BINPWD=$ac_cv_path_BINPWD
6390 if test -n "$BINPWD"; then
6391 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6392 echo "${ECHO_T}$BINPWD" >&6; }
6394 { echo "$as_me:$LINENO: result: no" >&5
6395 echo "${ECHO_T}no" >&6; }
6400 # Extract the first word of "Graphviz", so it can be a program name with args.
6401 set dummy Graphviz; ac_word=$2
6402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6431 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6432 if test -n "$GRAPHVIZ"; then
6433 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6434 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6436 { echo "$as_me:$LINENO: result: no" >&5
6437 echo "${ECHO_T}no" >&6; }
6441 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6443 cat >>confdefs.h <<\_ACEOF
6444 #define HAVE_GRAPHVIZ 1
6447 if test "$llvm_cv_os_type" = "MingW" ; then
6448 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6451 cat >>confdefs.h <<_ACEOF
6452 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6456 # Extract the first word of "dot", so it can be a program name with args.
6457 set dummy dot; ac_word=$2
6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460 if test "${ac_cv_path_DOT+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6475 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6488 if test -n "$DOT"; then
6489 { echo "$as_me:$LINENO: result: $DOT" >&5
6490 echo "${ECHO_T}$DOT" >&6; }
6492 { echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6; }
6497 if test "$DOT" != "echo dot" ; then
6499 cat >>confdefs.h <<\_ACEOF
6503 if test "$llvm_cv_os_type" = "MingW" ; then
6504 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6507 cat >>confdefs.h <<_ACEOF
6508 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6512 # Extract the first word of "fdp", so it can be a program name with args.
6513 set dummy fdp; ac_word=$2
6514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516 if test "${ac_cv_path_FDP+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6531 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6544 if test -n "$FDP"; then
6545 { echo "$as_me:$LINENO: result: $FDP" >&5
6546 echo "${ECHO_T}$FDP" >&6; }
6548 { echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6; }
6553 if test "$FDP" != "echo fdp" ; then
6555 cat >>confdefs.h <<\_ACEOF
6559 if test "$llvm_cv_os_type" = "MingW" ; then
6560 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6563 cat >>confdefs.h <<_ACEOF
6564 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6568 # Extract the first word of "neato", so it can be a program name with args.
6569 set dummy neato; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_path_NEATO+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6599 NEATO=$ac_cv_path_NEATO
6600 if test -n "$NEATO"; then
6601 { echo "$as_me:$LINENO: result: $NEATO" >&5
6602 echo "${ECHO_T}$NEATO" >&6; }
6604 { echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6; }
6609 if test "$NEATO" != "echo neato" ; then
6611 cat >>confdefs.h <<\_ACEOF
6612 #define HAVE_NEATO 1
6615 if test "$llvm_cv_os_type" = "MingW" ; then
6616 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6619 cat >>confdefs.h <<_ACEOF
6620 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6624 # Extract the first word of "twopi", so it can be a program name with args.
6625 set dummy twopi; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_path_TWOPI+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6655 TWOPI=$ac_cv_path_TWOPI
6656 if test -n "$TWOPI"; then
6657 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6658 echo "${ECHO_T}$TWOPI" >&6; }
6660 { echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6; }
6665 if test "$TWOPI" != "echo twopi" ; then
6667 cat >>confdefs.h <<\_ACEOF
6668 #define HAVE_TWOPI 1
6671 if test "$llvm_cv_os_type" = "MingW" ; then
6672 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6675 cat >>confdefs.h <<_ACEOF
6676 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6680 # Extract the first word of "circo", so it can be a program name with args.
6681 set dummy circo; ac_word=$2
6682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6684 if test "${ac_cv_path_CIRCO+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6711 CIRCO=$ac_cv_path_CIRCO
6712 if test -n "$CIRCO"; then
6713 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6714 echo "${ECHO_T}$CIRCO" >&6; }
6716 { echo "$as_me:$LINENO: result: no" >&5
6717 echo "${ECHO_T}no" >&6; }
6721 if test "$CIRCO" != "echo circo" ; then
6723 cat >>confdefs.h <<\_ACEOF
6724 #define HAVE_CIRCO 1
6727 if test "$llvm_cv_os_type" = "MingW" ; then
6728 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6731 cat >>confdefs.h <<_ACEOF
6732 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6736 for ac_prog in gv gsview32
6738 # Extract the first word of "$ac_prog", so it can be a program name with args.
6739 set dummy $ac_prog; ac_word=$2
6740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742 if test "${ac_cv_path_GV+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 if test -n "$GV"; then
6770 { echo "$as_me:$LINENO: result: $GV" >&5
6771 echo "${ECHO_T}$GV" >&6; }
6773 { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6778 test -n "$GV" && break
6780 test -n "$GV" || GV="echo gv"
6782 if test "$GV" != "echo gv" ; then
6784 cat >>confdefs.h <<\_ACEOF
6788 if test "$llvm_cv_os_type" = "MingW" ; then
6789 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6792 cat >>confdefs.h <<_ACEOF
6793 #define LLVM_PATH_GV "$GV${EXEEXT}"
6797 # Extract the first word of "dotty", so it can be a program name with args.
6798 set dummy dotty; ac_word=$2
6799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801 if test "${ac_cv_path_DOTTY+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6828 DOTTY=$ac_cv_path_DOTTY
6829 if test -n "$DOTTY"; then
6830 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6831 echo "${ECHO_T}$DOTTY" >&6; }
6833 { echo "$as_me:$LINENO: result: no" >&5
6834 echo "${ECHO_T}no" >&6; }
6838 if test "$DOTTY" != "echo dotty" ; then
6840 cat >>confdefs.h <<\_ACEOF
6841 #define HAVE_DOTTY 1
6844 if test "$llvm_cv_os_type" = "MingW" ; then
6845 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6848 cat >>confdefs.h <<_ACEOF
6849 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6853 # Extract the first word of "xdot.py", so it can be a program name with args.
6854 set dummy xdot.py; ac_word=$2
6855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6884 XDOT_PY=$ac_cv_path_XDOT_PY
6885 if test -n "$XDOT_PY"; then
6886 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6887 echo "${ECHO_T}$XDOT_PY" >&6; }
6889 { echo "$as_me:$LINENO: result: no" >&5
6890 echo "${ECHO_T}no" >&6; }
6894 if test "$XDOT_PY" != "echo xdot.py" ; then
6896 cat >>confdefs.h <<\_ACEOF
6897 #define HAVE_XDOT_PY 1
6900 if test "$llvm_cv_os_type" = "MingW" ; then
6901 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6904 cat >>confdefs.h <<_ACEOF
6905 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6911 # Extract the first word of "perl", so it can be a program name with args.
6912 set dummy perl; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_path_PERL+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6942 PERL=$ac_cv_path_PERL
6943 if test -n "$PERL"; then
6944 { echo "$as_me:$LINENO: result: $PERL" >&5
6945 echo "${ECHO_T}$PERL" >&6; }
6947 { echo "$as_me:$LINENO: result: no" >&5
6948 echo "${ECHO_T}no" >&6; }
6952 if test "$PERL" != "none"; then
6953 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6954 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6955 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6956 { echo "$as_me:$LINENO: result: yes" >&5
6957 echo "${ECHO_T}yes" >&6; }
6960 { echo "$as_me:$LINENO: result: not found" >&5
6961 echo "${ECHO_T}not found" >&6; }
6966 if test x"$PERL" = xnone; then
6969 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6970 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6971 { (exit 1); exit 1; }; }
6977 # Find a good install program. We prefer a C program (faster),
6978 # so one script is as good as another. But avoid the broken or
6979 # incompatible versions:
6980 # SysV /etc/install, /usr/sbin/install
6981 # SunOS /usr/etc/install
6982 # IRIX /sbin/install
6984 # AmigaOS /C/install, which installs bootblocks on floppy discs
6985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6988 # OS/2's system install, which has a completely different semantic
6989 # ./install, which can be erroneously created by make from ./install.sh.
6990 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6991 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6992 if test -z "$INSTALL"; then
6993 if test "${ac_cv_path_install+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir=.
7001 # Account for people who put trailing slashes in PATH elements.
7003 ./ | .// | /cC/* | \
7004 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7005 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7008 # OSF1 and SCO ODT 3.0 have their own names for install.
7009 # Don't use installbsd from OSF since it installs stuff as root
7011 for ac_prog in ginstall scoinst install; do
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7014 if test $ac_prog = install &&
7015 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7016 # AIX install. It has an incompatible calling convention.
7018 elif test $ac_prog = install &&
7019 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7020 # program-specific install script used by HP pwplus--don't use.
7023 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7036 if test "${ac_cv_path_install+set}" = set; then
7037 INSTALL=$ac_cv_path_install
7039 # As a last resort, use the slow shell script. Don't cache a
7040 # value for INSTALL within a source directory, because that will
7041 # break other packages using the cache if that directory is
7042 # removed, or if the value is a relative name.
7043 INSTALL=$ac_install_sh
7046 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7047 echo "${ECHO_T}$INSTALL" >&6; }
7049 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7050 # It thinks the first close brace ends the variable substitution.
7051 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7053 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7055 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7058 [\\/$]* | ?:[\\/]* ) ;;
7059 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7062 # Extract the first word of "bzip2", so it can be a program name with args.
7063 set dummy bzip2; ac_word=$2
7064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066 if test "${ac_cv_path_BZIP2+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7081 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 BZIP2=$ac_cv_path_BZIP2
7093 if test -n "$BZIP2"; then
7094 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7095 echo "${ECHO_T}$BZIP2" >&6; }
7097 { echo "$as_me:$LINENO: result: no" >&5
7098 echo "${ECHO_T}no" >&6; }
7102 # Extract the first word of "cat", so it can be a program name with args.
7103 set dummy cat; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_path_CAT+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7121 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 if test -n "$CAT"; then
7134 { echo "$as_me:$LINENO: result: $CAT" >&5
7135 echo "${ECHO_T}$CAT" >&6; }
7137 { echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6; }
7142 # Extract the first word of "doxygen", so it can be a program name with args.
7143 set dummy doxygen; ac_word=$2
7144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7146 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7161 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 DOXYGEN=$ac_cv_path_DOXYGEN
7173 if test -n "$DOXYGEN"; then
7174 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7175 echo "${ECHO_T}$DOXYGEN" >&6; }
7177 { echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6; }
7182 # Extract the first word of "groff", so it can be a program name with args.
7183 set dummy groff; ac_word=$2
7184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186 if test "${ac_cv_path_GROFF+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7201 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 GROFF=$ac_cv_path_GROFF
7213 if test -n "$GROFF"; then
7214 { echo "$as_me:$LINENO: result: $GROFF" >&5
7215 echo "${ECHO_T}$GROFF" >&6; }
7217 { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7222 # Extract the first word of "gzip", so it can be a program name with args.
7223 set dummy gzip; ac_word=$2
7224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7241 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 GZIPBIN=$ac_cv_path_GZIPBIN
7253 if test -n "$GZIPBIN"; then
7254 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7255 echo "${ECHO_T}$GZIPBIN" >&6; }
7257 { echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6; }
7262 # Extract the first word of "pod2html", so it can be a program name with args.
7263 set dummy pod2html; ac_word=$2
7264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266 if test "${ac_cv_path_POD2HTML+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 POD2HTML=$ac_cv_path_POD2HTML
7293 if test -n "$POD2HTML"; then
7294 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7295 echo "${ECHO_T}$POD2HTML" >&6; }
7297 { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7302 # Extract the first word of "pod2man", so it can be a program name with args.
7303 set dummy pod2man; ac_word=$2
7304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306 if test "${ac_cv_path_POD2MAN+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 POD2MAN=$ac_cv_path_POD2MAN
7333 if test -n "$POD2MAN"; then
7334 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7335 echo "${ECHO_T}$POD2MAN" >&6; }
7337 { echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6; }
7342 # Extract the first word of "pdfroff", so it can be a program name with args.
7343 set dummy pdfroff; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_PDFROFF+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 PDFROFF=$ac_cv_path_PDFROFF
7373 if test -n "$PDFROFF"; then
7374 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7375 echo "${ECHO_T}$PDFROFF" >&6; }
7377 { echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6; }
7382 # Extract the first word of "runtest", so it can be a program name with args.
7383 set dummy runtest; ac_word=$2
7384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386 if test "${ac_cv_path_RUNTEST+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 RUNTEST=$ac_cv_path_RUNTEST
7413 if test -n "$RUNTEST"; then
7414 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7415 echo "${ECHO_T}$RUNTEST" >&6; }
7417 { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7424 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7425 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7427 # Check whether --with-tclinclude was given.
7428 if test "${with_tclinclude+set}" = set; then
7429 withval=$with_tclinclude; with_tclinclude=${withval}
7434 if test "${ac_cv_path_tclsh+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 if test x"${with_tclinclude}" != x ; then
7439 if test -f ${with_tclinclude}/tclsh ; then
7440 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7441 elif test -f ${with_tclinclude}/src/tclsh ; then
7442 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7444 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7445 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7446 { (exit 1); exit 1; }; }
7452 if test x"${ac_cv_path_tclsh}" = x ; then
7453 { echo "$as_me:$LINENO: result: none" >&5
7454 echo "${ECHO_T}none" >&6; }
7455 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
7457 # Extract the first word of "$ac_prog", so it can be a program name with args.
7458 set dummy $ac_prog; ac_word=$2
7459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461 if test "${ac_cv_path_TCLSH+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 TCLSH=$ac_cv_path_TCLSH
7488 if test -n "$TCLSH"; then
7489 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7490 echo "${ECHO_T}$TCLSH" >&6; }
7492 { echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6; }
7497 test -n "$TCLSH" && break
7500 if test x"${TCLSH}" = x ; then
7501 ac_cv_path_tclsh='';
7503 ac_cv_path_tclsh="${TCLSH}";
7506 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7507 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7508 TCLSH="${ac_cv_path_tclsh}"
7512 # Extract the first word of "zip", so it can be a program name with args.
7513 set dummy zip; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_path_ZIP+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 if test -n "$ZIP"; then
7544 { echo "$as_me:$LINENO: result: $ZIP" >&5
7545 echo "${ECHO_T}$ZIP" >&6; }
7547 { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7552 for ac_prog in ocamlc
7554 # Extract the first word of "$ac_prog", so it can be a program name with args.
7555 set dummy $ac_prog; ac_word=$2
7556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7558 if test "${ac_cv_path_OCAMLC+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7573 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 OCAMLC=$ac_cv_path_OCAMLC
7585 if test -n "$OCAMLC"; then
7586 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7587 echo "${ECHO_T}$OCAMLC" >&6; }
7589 { echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6; }
7594 test -n "$OCAMLC" && break
7597 for ac_prog in ocamlopt
7599 # Extract the first word of "$ac_prog", so it can be a program name with args.
7600 set dummy $ac_prog; ac_word=$2
7601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7603 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 OCAMLOPT=$ac_cv_path_OCAMLOPT
7630 if test -n "$OCAMLOPT"; then
7631 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7632 echo "${ECHO_T}$OCAMLOPT" >&6; }
7634 { echo "$as_me:$LINENO: result: no" >&5
7635 echo "${ECHO_T}no" >&6; }
7639 test -n "$OCAMLOPT" && break
7642 for ac_prog in ocamldep
7644 # Extract the first word of "$ac_prog", so it can be a program name with args.
7645 set dummy $ac_prog; ac_word=$2
7646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7648 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7663 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 OCAMLDEP=$ac_cv_path_OCAMLDEP
7675 if test -n "$OCAMLDEP"; then
7676 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7677 echo "${ECHO_T}$OCAMLDEP" >&6; }
7679 { echo "$as_me:$LINENO: result: no" >&5
7680 echo "${ECHO_T}no" >&6; }
7684 test -n "$OCAMLDEP" && break
7687 for ac_prog in ocamldoc
7689 # Extract the first word of "$ac_prog", so it can be a program name with args.
7690 set dummy $ac_prog; ac_word=$2
7691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7693 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 test -z "$as_dir" && as_dir=.
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7708 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 OCAMLDOC=$ac_cv_path_OCAMLDOC
7720 if test -n "$OCAMLDOC"; then
7721 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7722 echo "${ECHO_T}$OCAMLDOC" >&6; }
7724 { echo "$as_me:$LINENO: result: no" >&5
7725 echo "${ECHO_T}no" >&6; }
7729 test -n "$OCAMLDOC" && break
7732 for ac_prog in gas as
7734 # Extract the first word of "$ac_prog", so it can be a program name with args.
7735 set dummy $ac_prog; ac_word=$2
7736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7738 if test "${ac_cv_path_GAS+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7753 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 if test -n "$GAS"; then
7766 { echo "$as_me:$LINENO: result: $GAS" >&5
7767 echo "${ECHO_T}$GAS" >&6; }
7769 { echo "$as_me:$LINENO: result: no" >&5
7770 echo "${ECHO_T}no" >&6; }
7774 test -n "$GAS" && break
7778 { echo "$as_me:$LINENO: checking for linker version" >&5
7779 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7780 if test "${llvm_cv_link_version+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 version_string="$(ld -v 2>&1 | head -1)"
7787 if (echo "$version_string" | grep -q "ld64"); then
7788 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7790 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7794 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7795 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7797 cat >>confdefs.h <<_ACEOF
7798 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7803 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7804 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7805 if test "${llvm_cv_link_use_r+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 ac_cpp='$CPP $CPPFLAGS'
7810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7815 CFLAGS="$CFLAGS -Wl,-R."
7816 cat >conftest.$ac_ext <<_ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7831 rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (ac_try="$ac_link"
7834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_link") 2>conftest.er1
7840 grep -v '^ *+' conftest.er1 >conftest.err
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7846 { (case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_try") 2>&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; } &&
7855 { ac_try='test -s conftest$ac_exeext'
7856 { (case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_try") 2>&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; }; then
7865 llvm_cv_link_use_r=yes
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7870 llvm_cv_link_use_r=no
7873 rm -f core conftest.err conftest.$ac_objext \
7874 conftest$ac_exeext conftest.$ac_ext
7877 ac_cpp='$CPP $CPPFLAGS'
7878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7884 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7885 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7886 if test "$llvm_cv_link_use_r" = yes ; then
7888 cat >>confdefs.h <<\_ACEOF
7889 #define HAVE_LINK_R 1
7895 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7896 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7897 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7908 cat >conftest.$ac_ext <<_ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h. */
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (ac_try="$ac_link"
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_link") 2>conftest.er1
7932 grep -v '^ *+' conftest.er1 >conftest.err
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } &&
7937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7938 { (case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_try") 2>&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; } &&
7947 { ac_try='test -s conftest$ac_exeext'
7948 { (case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_try") 2>&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 llvm_cv_link_use_export_dynamic=yes
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 llvm_cv_link_use_export_dynamic=no
7965 rm -f core conftest.err conftest.$ac_objext \
7966 conftest$ac_exeext conftest.$ac_ext
7969 ac_cpp='$CPP $CPPFLAGS'
7970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7976 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7977 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7978 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7980 cat >>confdefs.h <<\_ACEOF
7981 #define HAVE_LINK_EXPORT_DYNAMIC 1
7987 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7988 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7989 if test "${llvm_cv_link_use_version_script+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 ac_cpp='$CPP $CPPFLAGS'
7994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8000 # The following code is from the autoconf manual,
8001 # "11.13: Limitations of Usual Tools".
8002 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8003 # Use mktemp if possible; otherwise fall back on mkdir,
8004 # with $RANDOM to make collisions less likely.
8008 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8010 test -n "$tmp" && test -d "$tmp"
8012 tmp=$TMPDIR/foo$$-$RANDOM
8013 (umask 077 && mkdir "$tmp")
8016 echo "{" > "$tmp/export.map"
8017 echo " global: main;" >> "$tmp/export.map"
8018 echo " local: *;" >> "$tmp/export.map"
8019 echo "};" >> "$tmp/export.map"
8021 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8022 cat >conftest.$ac_ext <<_ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8037 rm -f conftest.$ac_objext conftest$ac_exeext
8038 if { (ac_try="$ac_link"
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_link") 2>conftest.er1
8046 grep -v '^ *+' conftest.er1 >conftest.err
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
8051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8052 { (case "(($ac_try" in
8053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054 *) ac_try_echo=$ac_try;;
8056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057 (eval "$ac_try") 2>&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; } &&
8061 { ac_try='test -s conftest$ac_exeext'
8062 { (case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_try") 2>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; }; then
8071 llvm_cv_link_use_version_script=yes
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8076 llvm_cv_link_use_version_script=no
8079 rm -f core conftest.err conftest.$ac_objext \
8080 conftest$ac_exeext conftest.$ac_ext
8081 rm "$tmp/export.map"
8085 ac_cpp='$CPP $CPPFLAGS'
8086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8092 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8093 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8094 if test "$llvm_cv_link_use_version_script" = yes ; then
8095 HAVE_LINK_VERSION_SCRIPT=1
8102 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8103 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8104 if test "${ac_cv_c_const+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 cat >conftest.$ac_ext <<_ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8117 /* FIXME: Include the comments suggested by Paul. */
8119 /* Ultrix mips cc rejects this. */
8120 typedef int charset[2];
8122 /* SunOS 4.1.1 cc rejects this. */
8123 char const *const *ccp;
8125 /* NEC SVR4.0.2 mips cc rejects this. */
8126 struct point {int x, y;};
8127 static struct point const zero = {0,0};
8128 /* AIX XL C 1.02.0.0 rejects this.
8129 It does not let you subtract one const X* pointer from another in
8130 an arm of an if-expression whose if-part is not a constant
8132 const char *g = "string";
8133 ccp = &g + (g ? g-g : 0);
8134 /* HPUX 7.0 cc rejects these. */
8137 ccp = (char const *const *) p;
8138 { /* SCO 3.2v4 cc rejects this. */
8140 char const *s = 0 ? (char *) 0 : (char const *) 0;
8145 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8147 const int *foo = &x[0];
8150 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8151 typedef const int *iptr;
8155 { /* AIX XL C 1.02.0.0 rejects this saying
8156 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8157 struct s { int j; const int *ap[3]; };
8158 struct s *b; b->j = 5;
8160 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8164 return !x[0] && !zero.x;
8171 rm -f conftest.$ac_objext
8172 if { (ac_try="$ac_compile"
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178 (eval "$ac_compile") 2>conftest.er1
8180 grep -v '^ *+' conftest.er1 >conftest.err
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } &&
8185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8186 { (case "(($ac_try" in
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191 (eval "$ac_try") 2>&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; } &&
8195 { ac_try='test -s conftest.$ac_objext'
8196 { (case "(($ac_try" in
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_try") 2>&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8207 echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8216 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8217 if test $ac_cv_c_const = no; then
8219 cat >>confdefs.h <<\_ACEOF
8231 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8232 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8233 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8234 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 cat >conftest.$ac_ext <<_ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 #include <sys/types.h>
8256 rm -f conftest.$ac_objext
8257 if { (ac_try="$ac_compile"
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_compile") 2>conftest.er1
8265 grep -v '^ *+' conftest.er1 >conftest.err
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8271 { (case "(($ac_try" in
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_try") 2>&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; } &&
8280 { ac_try='test -s conftest.$ac_objext'
8281 { (case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_try") 2>&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 eval "$as_ac_Header=yes"
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 eval "$as_ac_Header=no"
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8300 ac_res=`eval echo '${'$as_ac_Header'}'`
8301 { echo "$as_me:$LINENO: result: $ac_res" >&5
8302 echo "${ECHO_T}$ac_res" >&6; }
8303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8304 cat >>confdefs.h <<_ACEOF
8305 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8308 ac_header_dirent=$ac_hdr; break
8312 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8313 if test $ac_header_dirent = dirent.h; then
8314 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8315 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8316 if test "${ac_cv_search_opendir+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 ac_func_search_save_LIBS=$LIBS
8320 cat >conftest.$ac_ext <<_ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8327 /* Override any GCC internal prototype to avoid an error.
8328 Use char because int might match the return type of a GCC
8329 builtin and then its argument prototype would still apply. */
8342 for ac_lib in '' dir; do
8343 if test -z "$ac_lib"; then
8344 ac_res="none required"
8347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (ac_try="$ac_link"
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_link") 2>conftest.er1
8358 grep -v '^ *+' conftest.er1 >conftest.err
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364 { (case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_try") 2>&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; } &&
8373 { ac_try='test -s conftest$ac_exeext'
8374 { (case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_try") 2>&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_cv_search_opendir=$ac_res
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8391 rm -f core conftest.err conftest.$ac_objext \
8393 if test "${ac_cv_search_opendir+set}" = set; then
8397 if test "${ac_cv_search_opendir+set}" = set; then
8400 ac_cv_search_opendir=no
8403 LIBS=$ac_func_search_save_LIBS
8405 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8406 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8407 ac_res=$ac_cv_search_opendir
8408 if test "$ac_res" != no; then
8409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8414 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8415 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8416 if test "${ac_cv_search_opendir+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8419 ac_func_search_save_LIBS=$LIBS
8420 cat >conftest.$ac_ext <<_ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8427 /* Override any GCC internal prototype to avoid an error.
8428 Use char because int might match the return type of a GCC
8429 builtin and then its argument prototype would still apply. */
8442 for ac_lib in '' x; do
8443 if test -z "$ac_lib"; then
8444 ac_res="none required"
8447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (ac_try="$ac_link"
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_link") 2>conftest.er1
8458 grep -v '^ *+' conftest.er1 >conftest.err
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8464 { (case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_try") 2>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest$ac_exeext'
8474 { (case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_try") 2>&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_cv_search_opendir=$ac_res
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8491 rm -f core conftest.err conftest.$ac_objext \
8493 if test "${ac_cv_search_opendir+set}" = set; then
8497 if test "${ac_cv_search_opendir+set}" = set; then
8500 ac_cv_search_opendir=no
8503 LIBS=$ac_func_search_save_LIBS
8505 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8506 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8507 ac_res=$ac_cv_search_opendir
8508 if test "$ac_res" != no; then
8509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8516 for ac_header in dlfcn.h
8518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 ac_res=`eval echo '${'$as_ac_Header'}'`
8526 { echo "$as_me:$LINENO: result: $ac_res" >&5
8527 echo "${ECHO_T}$ac_res" >&6; }
8529 # Is the header compilable?
8530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8532 cat >conftest.$ac_ext <<_ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h. */
8538 $ac_includes_default
8539 #include <$ac_header>
8541 rm -f conftest.$ac_objext
8542 if { (ac_try="$ac_compile"
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_compile") 2>conftest.er1
8550 grep -v '^ *+' conftest.er1 >conftest.err
8552 cat conftest.err >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } &&
8555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8556 { (case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_try") 2>&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; } &&
8565 { ac_try='test -s conftest.$ac_objext'
8566 { (case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_try") 2>&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 ac_header_compiler=yes
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8580 ac_header_compiler=no
8583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8585 echo "${ECHO_T}$ac_header_compiler" >&6; }
8587 # Is the header present?
8588 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8590 cat >conftest.$ac_ext <<_ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8596 #include <$ac_header>
8598 if { (ac_try="$ac_cpp conftest.$ac_ext"
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8606 grep -v '^ *+' conftest.er1 >conftest.err
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } >/dev/null; then
8611 if test -s conftest.err; then
8612 ac_cpp_err=$ac_c_preproc_warn_flag
8613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8620 if test -z "$ac_cpp_err"; then
8621 ac_header_preproc=yes
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8626 ac_header_preproc=no
8629 rm -f conftest.err conftest.$ac_ext
8630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8631 echo "${ECHO_T}$ac_header_preproc" >&6; }
8633 # So? What about this header?
8634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8640 ac_header_preproc=yes
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8656 ## ----------------------------------- ##
8657 ## Report this to llvmbugs@cs.uiuc.edu ##
8658 ## ----------------------------------- ##
8660 ) | sed "s/^/$as_me: WARNING: /" >&2
8663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 eval "$as_ac_Header=\$ac_header_preproc"
8670 ac_res=`eval echo '${'$as_ac_Header'}'`
8671 { echo "$as_me:$LINENO: result: $ac_res" >&5
8672 echo "${ECHO_T}$ac_res" >&6; }
8675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8676 cat >>confdefs.h <<_ACEOF
8677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8684 # Check whether --enable-ltdl-install was given.
8685 if test "${enable_ltdl_install+set}" = set; then
8686 enableval=$enable_ltdl_install;
8692 if test x"${enable_ltdl_install-no}" != xno; then
8694 INSTALL_LTDL_FALSE='#'
8696 INSTALL_LTDL_TRUE='#'
8702 if test x"${enable_ltdl_convenience-no}" != xno; then
8703 CONVENIENCE_LTDL_TRUE=
8704 CONVENIENCE_LTDL_FALSE='#'
8706 CONVENIENCE_LTDL_TRUE='#'
8707 CONVENIENCE_LTDL_FALSE=
8711 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8712 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8714 libname_spec='lib$name'
8722 shlibpath_overrides_runpath=unknown
8724 dynamic_linker="$host_os ld.so"
8725 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8726 if test "$GCC" = yes; then
8727 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8728 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8729 # if the path contains ";" then we assume it to be the separator
8730 # otherwise default to the standard path separator (i.e. ":") - it is
8731 # assumed that no part of a normal pathname contains ";" but that should
8732 # okay in the real world where ";" in dirpaths is itself problematic.
8733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8735 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8738 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8740 need_lib_prefix=unknown
8741 hardcode_into_libs=no
8743 # when you set need_version to no, make sure it does not cause -set_version
8744 # flags to be left without arguments
8745 need_version=unknown
8750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8751 shlibpath_var=LIBPATH
8753 # AIX 3 has no versioning support, so we append a major version to the name.
8754 soname_spec='${libname}${release}${shared_ext}$major'
8761 hardcode_into_libs=yes
8762 if test "$host_cpu" = ia64; then
8763 # AIX 5 supports IA64
8764 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8765 shlibpath_var=LD_LIBRARY_PATH
8767 # With GCC up to 2.95.x, collect2 would create an import file
8768 # for dependence libraries. The import file would start with
8769 # the line `#! .'. This would cause the generated library to
8770 # depend on `.', always an invalid library. This was fixed in
8771 # development snapshots of GCC prior to 3.0.
8773 aix4 | aix4.[01] | aix4.[01].*)
8774 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8776 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8783 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8784 # soname into executable. Probably we can add versioning support to
8785 # collect2, so additional links can be useful in future.
8786 if test "$aix_use_runtimelinking" = yes; then
8787 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8788 # instead of lib<name>.a to let people know that these are not
8789 # typical AIX shared libraries.
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8792 # We preserve .a as extension for shared libraries through AIX4.2
8793 # and later when we are not doing run time linking.
8794 library_names_spec='${libname}${release}.a $libname.a'
8795 soname_spec='${libname}${release}${shared_ext}$major'
8797 shlibpath_var=LIBPATH
8802 library_names_spec='$libname.ixlibrary $libname.a'
8803 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8804 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'
8808 library_names_spec='${libname}${shared_ext}'
8809 dynamic_linker="$host_os ld.so"
8810 shlibpath_var=LIBRARY_PATH
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8819 shlibpath_var=LD_LIBRARY_PATH
8820 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8821 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8822 # the default ld.so.conf also contains /usr/contrib/lib and
8823 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8824 # libtool to hard-code these into programs
8827 cygwin* | mingw* | pw32*)
8828 version_type=windows
8833 case $GCC,$host_os in
8834 yes,cygwin* | yes,mingw* | yes,pw32*)
8835 library_names_spec='$libname.dll.a'
8836 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8837 postinstall_cmds='base_file=`basename \${file}`~
8838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8839 dldir=$destdir/`dirname \$dlpath`~
8840 test -d \$dldir || mkdir -p \$dldir~
8841 $install_prog $dir/$dlname \$dldir/$dlname~
8842 chmod a+x \$dldir/$dlname'
8843 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8844 dlpath=$dir/\$dldll~
8846 shlibpath_overrides_runpath=yes
8850 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8851 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8852 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8855 # MinGW DLLs use traditional 'lib' prefix
8856 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8858 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8859 # It is most probably a Windows format PATH printed by
8860 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8861 # path with ; separators, and with drive letters. We can handle the
8862 # drive letters (cygwin fileutils understands them), so leave them,
8863 # especially as we might pass files found there to a mingw objdump,
8864 # which wouldn't understand a cygwinified path. Ahh.
8865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8867 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8871 # pw32 DLLs use 'pw' prefix rather than 'lib'
8872 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8878 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8881 dynamic_linker='Win32 ld.exe'
8882 # FIXME: first we should search . and the directory the executable is in
8886 darwin* | rhapsody*)
8887 dynamic_linker="$host_os dyld"
8891 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8892 soname_spec='${libname}${release}${major}$shared_ext'
8893 shlibpath_overrides_runpath=yes
8894 shlibpath_var=DYLD_LIBRARY_PATH
8895 shrext_cmds='.dylib'
8896 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8897 if test "$GCC" = yes; then
8898 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"`
8900 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8902 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 shlibpath_var=LD_LIBRARY_PATH
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=no
8926 hardcode_into_libs=yes
8927 dynamic_linker='GNU ld.so'
8930 freebsd* | dragonfly*)
8931 # DragonFly does not have aout. When/if they implement a new
8932 # versioning mechanism, adjust this.
8933 if test -x /usr/bin/objformat; then
8934 objformat=`/usr/bin/objformat`
8937 freebsd[123]*) objformat=aout ;;
8941 version_type=freebsd-$objformat
8942 case $version_type in
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8953 shlibpath_var=LD_LIBRARY_PATH
8956 shlibpath_overrides_runpath=yes
8958 freebsd3.[01]* | freebsdelf3.[01]*)
8959 shlibpath_overrides_runpath=yes
8960 hardcode_into_libs=yes
8962 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8963 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8964 shlibpath_overrides_runpath=no
8965 hardcode_into_libs=yes
8967 freebsd*) # from 4.6 on
8968 shlibpath_overrides_runpath=yes
8969 hardcode_into_libs=yes
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 hardcode_into_libs=yes
8984 hpux9* | hpux10* | hpux11*)
8985 # Give a soname corresponding to the major version so that dld.sl refuses to
8986 # link against other versions.
8993 hardcode_into_libs=yes
8994 dynamic_linker="$host_os dld.so"
8995 shlibpath_var=LD_LIBRARY_PATH
8996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 if test "X$HPUX_IA64_MODE" = X32; then
9000 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9002 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9008 hardcode_into_libs=yes
9009 dynamic_linker="$host_os dld.sl"
9010 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9019 dynamic_linker="$host_os dld.sl"
9020 shlibpath_var=SHLIB_PATH
9021 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9026 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9027 postinstall_cmds='chmod 555 $lib'
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=no
9039 hardcode_into_libs=yes
9042 irix5* | irix6* | nonstopux*)
9044 nonstopux*) version_type=nonstopux ;;
9046 if test "$lt_cv_prog_gnu_ld" = yes; then
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9057 irix5* | nonstopux*)
9061 case $LD in # libtool.m4 will add one of these switches to LD
9062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9063 libsuff= shlibsuff= libmagic=32-bit;;
9064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9065 libsuff=32 shlibsuff=N32 libmagic=N32;;
9066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9067 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9068 *) libsuff= shlibsuff= libmagic=never-match;;
9072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9073 shlibpath_overrides_runpath=no
9074 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9075 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9076 hardcode_into_libs=yes
9079 # No shared lib support for Linux oldld, aout, or coff.
9080 linux*oldld* | linux*aout* | linux*coff*)
9084 # This must be Linux ELF.
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 shlibpath_overrides_runpath=no
9094 # This implies no fast_install, which is unacceptable.
9095 # Some rework will be needed to allow for fast_install
9096 # before this can be enabled.
9097 hardcode_into_libs=yes
9099 # Append ld.so.conf contents to the search path
9100 if test -f /etc/ld.so.conf; then
9101 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' ' '`
9102 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9105 # We used to test for /lib/ld.so.1 and disable shared libraries on
9106 # powerpc, because MkLinux only supported shared libraries with the
9107 # GNU dynamic linker. Since this was broken with cross compilers,
9108 # most powerpc-linux boxes support dynamic linking these days and
9109 # people can always --disable-shared, the test was removed, and we
9110 # assume the GNU/Linux dynamic linker is in use.
9111 dynamic_linker='GNU/Linux ld.so'
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 shlibpath_overrides_runpath=no
9122 hardcode_into_libs=yes
9123 dynamic_linker='GNU ld.so'
9130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9133 dynamic_linker='NetBSD (a.out) ld.so'
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9136 soname_spec='${libname}${release}${shared_ext}$major'
9137 dynamic_linker='NetBSD ld.elf_so'
9139 shlibpath_var=LD_LIBRARY_PATH
9140 shlibpath_overrides_runpath=yes
9141 hardcode_into_libs=yes
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147 shlibpath_var=LD_LIBRARY_PATH
9148 shlibpath_overrides_runpath=yes
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=yes
9163 sys_lib_dlsearch_path_spec="/usr/lib"
9165 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9167 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9168 *) need_version=no ;;
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9172 shlibpath_var=LD_LIBRARY_PATH
9173 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9175 openbsd2.[89] | openbsd2.[89].*)
9176 shlibpath_overrides_runpath=no
9179 shlibpath_overrides_runpath=yes
9183 shlibpath_overrides_runpath=yes
9188 libname_spec='$name'
9191 library_names_spec='$libname${shared_ext} $libname.a'
9192 dynamic_linker='OS/2 ld.exe'
9193 shlibpath_var=LIBPATH
9196 osf3* | osf4* | osf5*)
9200 soname_spec='${libname}${release}${shared_ext}$major'
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9204 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212 soname_spec='${libname}${release}${shared_ext}$major'
9213 shlibpath_var=LD_LIBRARY_PATH
9214 shlibpath_overrides_runpath=yes
9215 hardcode_into_libs=yes
9216 # ldd complains unless libraries are executable
9217 postinstall_cmds='chmod +x $lib'
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9223 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9224 shlibpath_var=LD_LIBRARY_PATH
9225 shlibpath_overrides_runpath=yes
9226 if test "$with_gnu_ld" = yes; then
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 case $host_vendor in
9239 shlibpath_overrides_runpath=no
9241 export_dynamic_flag_spec='${wl}-Blargedynsym'
9242 runpath_var=LD_RUN_PATH
9250 shlibpath_overrides_runpath=no
9251 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9257 if test -d /usr/nec ;then
9259 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9260 soname_spec='$libname${shared_ext}.$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9266 version_type=freebsd-elf
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 hardcode_into_libs=yes
9273 if test "$with_gnu_ld" = yes; then
9274 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9275 shlibpath_overrides_runpath=no
9277 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9278 shlibpath_overrides_runpath=yes
9281 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9285 sys_lib_dlsearch_path_spec='/usr/lib'
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 shlibpath_var=LD_LIBRARY_PATH
9299 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9300 echo "${ECHO_T}$dynamic_linker" >&6; }
9301 test "$dynamic_linker" = no && can_build_shared=no
9303 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9304 if test "$GCC" = yes; then
9305 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9309 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9310 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9311 if test "${libltdl_cv_shlibext+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 eval libltdl_cv_shlibext=$shrext_cmds
9319 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9320 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9321 if test -n "$libltdl_cv_shlibext"; then
9323 cat >>confdefs.h <<_ACEOF
9324 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9330 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9331 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9332 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 libltdl_cv_shlibpath_var="$shlibpath_var"
9337 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9338 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9339 if test -n "$libltdl_cv_shlibpath_var"; then
9341 cat >>confdefs.h <<_ACEOF
9342 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9348 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9349 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9350 if test "${libltdl_cv_sys_search_path+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9355 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9356 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9357 if test -n "$libltdl_cv_sys_search_path"; then
9359 for dir in $libltdl_cv_sys_search_path; do
9360 if test -z "$sys_search_path"; then
9361 sys_search_path="$dir"
9363 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9367 cat >>confdefs.h <<_ACEOF
9368 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9373 { echo "$as_me:$LINENO: checking for objdir" >&5
9374 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9375 if test "${libltdl_cv_objdir+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 libltdl_cv_objdir="$objdir"
9379 if test -n "$objdir"; then
9382 rm -f .libs 2>/dev/null
9383 mkdir .libs 2>/dev/null
9384 if test -d .libs; then
9385 libltdl_cv_objdir=.libs
9387 # MS-DOS does not allow filenames that begin with a dot.
9388 libltdl_cv_objdir=_libs
9390 rmdir .libs 2>/dev/null
9394 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9395 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9397 cat >>confdefs.h <<_ACEOF
9398 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9406 # Check for command to grab the raw symbol name followed by C symbol from nm.
9407 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9408 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9409 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 # These are sane defaults that work on at least a few old systems.
9414 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9416 # Character class describing NM global symbol codes.
9417 symcode='[BCDEGRST]'
9419 # Regexp to match symbols that can be accessed directly from C.
9420 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9422 # Transform an extracted symbol line into a proper C declaration
9423 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9425 # Transform an extracted symbol line into symbol name and symbol address
9426 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'"
9428 # Define system-specific variables.
9433 cygwin* | mingw* | pw32*)
9434 symcode='[ABCDGISTW]'
9436 hpux*) # Its linker distinguishes data from code symbols
9437 if test "$host_cpu" = ia64; then
9438 symcode='[ABCDEGRST]'
9440 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9441 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'"
9444 if test "$host_cpu" = ia64; then
9445 symcode='[ABCDGIRSTW]'
9446 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9447 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'"
9451 symcode='[BCDEGRST]'
9454 symcode='[BCDEGQRST]'
9465 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9473 # Handle CRLF in mingw tool chain
9477 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9481 # If we're using GNU nm, then use its standard symbol codes.
9482 case `$NM -V 2>&1` in
9483 *GNU* | *'with BFD'*)
9484 symcode='[ABCDGIRSTW]' ;;
9487 # Try without a prefix undercore, then with it.
9488 for ac_symprfx in "" "_"; do
9490 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9491 symxfrm="\\1 $ac_symprfx\\2 \\2"
9493 # Write the raw and C identifiers.
9494 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9496 # Check to see that the pipe works correctly.
9500 cat > conftest.$ac_ext <<EOF
9505 void nm_test_func(){}
9509 int main(){nm_test_var='a';nm_test_func();return(0);}
9512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9513 (eval $ac_compile) 2>&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; then
9517 # Now try to grab the symbols.
9519 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9520 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } && test -s "$nlist"; then
9524 # Try sorting and uniquifying the output.
9525 if sort "$nlist" | uniq > "$nlist"T; then
9526 mv -f "$nlist"T "$nlist"
9531 # Make sure that we snagged all the symbols we need.
9532 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9533 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9534 cat <<EOF > conftest.$ac_ext
9540 # Now generate the symbol file.
9541 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9543 cat <<EOF >> conftest.$ac_ext
9544 #if defined (__STDC__) && __STDC__
9545 # define lt_ptr_t void *
9547 # define lt_ptr_t char *
9551 /* The mapping between symbol names and symbols. */
9556 lt_preloaded_symbols[] =
9559 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9560 cat <<\EOF >> conftest.$ac_ext
9568 # Now try linking the two files.
9569 mv conftest.$ac_objext conftstm.$ac_objext
9570 lt_save_LIBS="$LIBS"
9571 lt_save_CFLAGS="$CFLAGS"
9572 LIBS="conftstm.$ac_objext"
9573 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575 (eval $ac_link) 2>&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9581 LIBS="$lt_save_LIBS"
9582 CFLAGS="$lt_save_CFLAGS"
9584 echo "cannot find nm_test_func in $nlist" >&5
9587 echo "cannot find nm_test_var in $nlist" >&5
9590 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9593 echo "$progname: failed program was:" >&5
9594 cat conftest.$ac_ext >&5
9596 rm -f conftest* conftst*
9598 # Do not use the global_symbol_pipe unless it works.
9599 if test "$pipe_works" = yes; then
9602 lt_cv_sys_global_symbol_pipe=
9608 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9609 lt_cv_sys_global_symbol_to_cdecl=
9611 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9612 { echo "$as_me:$LINENO: result: failed" >&5
9613 echo "${ECHO_T}failed" >&6; }
9615 { echo "$as_me:$LINENO: result: ok" >&5
9616 echo "${ECHO_T}ok" >&6; }
9620 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9621 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9622 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9626 libltdl_cv_preloaded_symbols=yes
9628 libltdl_cv_preloaded_symbols=no
9632 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9633 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9634 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9636 cat >>confdefs.h <<\_ACEOF
9637 #define HAVE_PRELOADED_SYMBOLS 1
9645 ac_cpp='$CPP $CPPFLAGS'
9646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9651 { echo "$as_me:$LINENO: checking for shl_load" >&5
9652 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9653 if test "${ac_cv_func_shl_load+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 cat >conftest.$ac_ext <<_ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9664 #define shl_load innocuous_shl_load
9666 /* System header to define __stub macros and hopefully few prototypes,
9667 which can conflict with char shl_load (); below.
9668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9669 <limits.h> exists even on freestanding compilers. */
9672 # include <limits.h>
9674 # include <assert.h>
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9686 /* The GNU C library defines this for functions which it implements
9687 to always fail with ENOSYS. Some functions are actually named
9688 something starting with __ and the normal name is an alias. */
9689 #if defined __stub_shl_load || defined __stub___shl_load
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (ac_try="$ac_link"
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_link") 2>conftest.er1
9710 grep -v '^ *+' conftest.er1 >conftest.err
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9716 { (case "(($ac_try" in
9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718 *) ac_try_echo=$ac_try;;
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_try") 2>&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest$ac_exeext'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_cv_func_shl_load=yes
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740 ac_cv_func_shl_load=no
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9746 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9747 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9748 if test $ac_cv_func_shl_load = yes; then
9750 cat >>confdefs.h <<\_ACEOF
9751 #define HAVE_SHL_LOAD 1
9755 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9756 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9757 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 ac_check_lib_save_LIBS=$LIBS
9762 cat >conftest.$ac_ext <<_ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9769 /* Override any GCC internal prototype to avoid an error.
9770 Use char because int might match the return type of a GCC
9771 builtin and then its argument prototype would still apply. */
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (ac_try="$ac_link"
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_link") 2>conftest.er1
9793 grep -v '^ *+' conftest.er1 >conftest.err
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9799 { (case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_try") 2>&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; } &&
9808 { ac_try='test -s conftest$ac_exeext'
9809 { (case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_try") 2>&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 ac_cv_lib_dld_shl_load=yes
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9823 ac_cv_lib_dld_shl_load=no
9826 rm -f core conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9828 LIBS=$ac_check_lib_save_LIBS
9830 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9831 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9832 if test $ac_cv_lib_dld_shl_load = yes; then
9834 cat >>confdefs.h <<\_ACEOF
9835 #define HAVE_SHL_LOAD 1
9838 LIBADD_DL="$LIBADD_DL -ldld"
9840 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9841 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 ac_check_lib_save_LIBS=$LIBS
9847 cat >conftest.$ac_ext <<_ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9854 /* Override any GCC internal prototype to avoid an error.
9855 Use char because int might match the return type of a GCC
9856 builtin and then its argument prototype would still apply. */
9869 rm -f conftest.$ac_objext conftest$ac_exeext
9870 if { (ac_try="$ac_link"
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_link") 2>conftest.er1
9878 grep -v '^ *+' conftest.er1 >conftest.err
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } &&
9883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9884 { (case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_try") 2>&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; } &&
9893 { ac_try='test -s conftest$ac_exeext'
9894 { (case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_try") 2>&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; }; then
9903 ac_cv_lib_dl_dlopen=yes
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908 ac_cv_lib_dl_dlopen=no
9911 rm -f core conftest.err conftest.$ac_objext \
9912 conftest$ac_exeext conftest.$ac_ext
9913 LIBS=$ac_check_lib_save_LIBS
9915 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9916 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9917 if test $ac_cv_lib_dl_dlopen = yes; then
9919 cat >>confdefs.h <<\_ACEOF
9920 #define HAVE_LIBDL 1
9923 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9925 cat >conftest.$ac_ext <<_ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (ac_try="$ac_link"
9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947 *) ac_try_echo=$ac_try;;
9949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950 (eval "$ac_link") 2>conftest.er1
9952 grep -v '^ *+' conftest.er1 >conftest.err
9954 cat conftest.err >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } &&
9957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9958 { (case "(($ac_try" in
9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_try") 2>&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; } &&
9967 { ac_try='test -s conftest$ac_exeext'
9968 { (case "(($ac_try" in
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_try") 2>&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; }; then
9978 cat >>confdefs.h <<\_ACEOF
9979 #define HAVE_LIBDL 1
9981 libltdl_cv_func_dlopen="yes"
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9986 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9987 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9988 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 ac_check_lib_save_LIBS=$LIBS
9993 cat >conftest.$ac_ext <<_ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
10000 /* Override any GCC internal prototype to avoid an error.
10001 Use char because int might match the return type of a GCC
10002 builtin and then its argument prototype would still apply. */
10015 rm -f conftest.$ac_objext conftest$ac_exeext
10016 if { (ac_try="$ac_link"
10017 case "(($ac_try" in
10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019 *) ac_try_echo=$ac_try;;
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_link") 2>conftest.er1
10024 grep -v '^ *+' conftest.er1 >conftest.err
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10030 { (case "(($ac_try" in
10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_try") 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_try") 2>&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10049 ac_cv_lib_svld_dlopen=yes
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10054 ac_cv_lib_svld_dlopen=no
10057 rm -f core conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059 LIBS=$ac_check_lib_save_LIBS
10061 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10062 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10063 if test $ac_cv_lib_svld_dlopen = yes; then
10065 cat >>confdefs.h <<\_ACEOF
10066 #define HAVE_LIBDL 1
10069 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10071 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10072 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10073 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 ac_check_lib_save_LIBS=$LIBS
10078 cat >conftest.$ac_ext <<_ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10085 /* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
10095 return dld_link ();
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (ac_try="$ac_link"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_link") 2>conftest.er1
10109 grep -v '^ *+' conftest.er1 >conftest.err
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } &&
10114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10115 { (case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_try") 2>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; } &&
10124 { ac_try='test -s conftest$ac_exeext'
10125 { (case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_try") 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 ac_cv_lib_dld_dld_link=yes
10136 echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10139 ac_cv_lib_dld_dld_link=no
10142 rm -f core conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
10144 LIBS=$ac_check_lib_save_LIBS
10146 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10147 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10148 if test $ac_cv_lib_dld_dld_link = yes; then
10150 cat >>confdefs.h <<\_ACEOF
10154 LIBADD_DL="$LIBADD_DL -ldld"
10156 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10157 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10158 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 cat >conftest.$ac_ext <<_ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10169 #define _dyld_func_lookup innocuous__dyld_func_lookup
10171 /* System header to define __stub macros and hopefully few prototypes,
10172 which can conflict with char _dyld_func_lookup (); below.
10173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10174 <limits.h> exists even on freestanding compilers. */
10177 # include <limits.h>
10179 # include <assert.h>
10182 #undef _dyld_func_lookup
10184 /* Override any GCC internal prototype to avoid an error.
10185 Use char because int might match the return type of a GCC
10186 builtin and then its argument prototype would still apply. */
10190 char _dyld_func_lookup ();
10191 /* The GNU C library defines this for functions which it implements
10192 to always fail with ENOSYS. Some functions are actually named
10193 something starting with __ and the normal name is an alias. */
10194 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10201 return _dyld_func_lookup ();
10206 rm -f conftest.$ac_objext conftest$ac_exeext
10207 if { (ac_try="$ac_link"
10208 case "(($ac_try" in
10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210 *) ac_try_echo=$ac_try;;
10212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10213 (eval "$ac_link") 2>conftest.er1
10215 grep -v '^ *+' conftest.er1 >conftest.err
10217 cat conftest.err >&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } &&
10220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10221 { (case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226 (eval "$ac_try") 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; } &&
10230 { ac_try='test -s conftest$ac_exeext'
10231 { (case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_try") 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 ac_cv_func__dyld_func_lookup=yes
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10245 ac_cv_func__dyld_func_lookup=no
10248 rm -f core conftest.err conftest.$ac_objext \
10249 conftest$ac_exeext conftest.$ac_ext
10251 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10252 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10253 if test $ac_cv_func__dyld_func_lookup = yes; then
10255 cat >>confdefs.h <<\_ACEOF
10256 #define HAVE_DYLD 1
10270 rm -f core conftest.err conftest.$ac_objext \
10271 conftest$ac_exeext conftest.$ac_ext
10282 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10284 lt_save_LIBS="$LIBS"
10285 LIBS="$LIBS $LIBADD_DL"
10287 for ac_func in dlerror
10289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 cat >conftest.$ac_ext <<_ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10303 #define $ac_func innocuous_$ac_func
10305 /* System header to define __stub macros and hopefully few prototypes,
10306 which can conflict with char $ac_func (); below.
10307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10308 <limits.h> exists even on freestanding compilers. */
10311 # include <limits.h>
10313 # include <assert.h>
10318 /* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10325 /* The GNU C library defines this for functions which it implements
10326 to always fail with ENOSYS. Some functions are actually named
10327 something starting with __ and the normal name is an alias. */
10328 #if defined __stub_$ac_func || defined __stub___$ac_func
10335 return $ac_func ();
10340 rm -f conftest.$ac_objext conftest$ac_exeext
10341 if { (ac_try="$ac_link"
10342 case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_link") 2>conftest.er1
10349 grep -v '^ *+' conftest.er1 >conftest.err
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10355 { (case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_try") 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; } &&
10364 { ac_try='test -s conftest$ac_exeext'
10365 { (case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_try") 2>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 eval "$as_ac_var=yes"
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 eval "$as_ac_var=no"
10382 rm -f core conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
10385 ac_res=`eval echo '${'$as_ac_var'}'`
10386 { echo "$as_me:$LINENO: result: $ac_res" >&5
10387 echo "${ECHO_T}$ac_res" >&6; }
10388 if test `eval echo '${'$as_ac_var'}'` = yes; then
10389 cat >>confdefs.h <<_ACEOF
10390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10396 LIBS="$lt_save_LIBS"
10399 ac_cpp='$CPP $CPPFLAGS'
10400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10406 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10407 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10408 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 ac_cv_sys_symbol_underscore=no
10412 cat > conftest.$ac_ext <<EOF
10413 void nm_test_func(){}
10414 int main(){nm_test_func;return 0;}
10416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10417 (eval $ac_compile) 2>&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; then
10421 # Now try to grab the symbols.
10422 ac_nlist=conftest.nm
10423 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10424 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } && test -s "$ac_nlist"; then
10428 # See whether the symbols have a leading underscore.
10429 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10430 ac_cv_sys_symbol_underscore=yes
10432 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10435 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10439 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10442 echo "configure: failed program was:" >&5
10448 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10449 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10452 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10453 if test x"$libltdl_cv_func_dlopen" = xyes ||
10454 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10455 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10456 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10457 if test "${libltdl_cv_need_uscore+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 libltdl_cv_need_uscore=unknown
10462 LIBS="$LIBS $LIBADD_DL"
10463 if test "$cross_compiling" = yes; then :
10464 libltdl_cv_need_uscore=cross
10466 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10467 lt_status=$lt_dlunknown
10468 cat > conftest.$ac_ext <<EOF
10469 #line 10474 "configure"
10470 #include "confdefs.h"
10479 # define LT_DLGLOBAL RTLD_GLOBAL
10482 # define LT_DLGLOBAL DL_GLOBAL
10484 # define LT_DLGLOBAL 0
10488 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10489 find out it does not work in some platform. */
10490 #ifndef LT_DLLAZY_OR_NOW
10492 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10495 # define LT_DLLAZY_OR_NOW DL_LAZY
10498 # define LT_DLLAZY_OR_NOW RTLD_NOW
10501 # define LT_DLLAZY_OR_NOW DL_NOW
10503 # define LT_DLLAZY_OR_NOW 0
10511 extern "C" void exit (int);
10514 void fnord() { int i=42;}
10517 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10518 int status = $lt_dlunknown;
10522 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10523 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10524 /* dlclose (self); */
10532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10533 (eval $ac_link) 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10537 (./conftest; exit; ) >&5 2>/dev/null
10539 case x$lt_status in
10540 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10541 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10542 x$lt_dlunknown|x*) ;;
10545 # compilation failed
10554 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10555 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10559 if test x"$libltdl_cv_need_uscore" = xyes; then
10561 cat >>confdefs.h <<\_ACEOF
10562 #define NEED_USCORE 1
10568 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10569 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10570 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 # PORTME does your system automatically load deplibs for dlopen?
10574 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10575 # For now, we just catch OSes we know something about -- in the
10576 # future, we'll try test this programmatically.
10577 libltdl_cv_sys_dlopen_deplibs=unknown
10579 aix3*|aix4.1.*|aix4.2.*)
10580 # Unknown whether this is true for these versions of AIX, but
10581 # we want this `case' here to explicitly catch those versions.
10582 libltdl_cv_sys_dlopen_deplibs=unknown
10585 libltdl_cv_sys_dlopen_deplibs=yes
10588 # Assuming the user has installed a libdl from somewhere, this is true
10589 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10590 libltdl_cv_sys_dlopen_deplibs=yes
10592 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10593 # GNU and its variants, using gnu ld.so (Glibc)
10594 libltdl_cv_sys_dlopen_deplibs=yes
10597 libltdl_cv_sys_dlopen_deplibs=yes
10600 libltdl_cv_sys_dlopen_deplibs=yes
10602 irix[12345]*|irix6.[01]*)
10603 # Catch all versions of IRIX before 6.2, and indicate that we don't
10604 # know how it worked for any of those versions.
10605 libltdl_cv_sys_dlopen_deplibs=unknown
10608 # The case above catches anything before 6.2, and it's known that
10609 # at 6.2 and later dlopen does load deplibs.
10610 libltdl_cv_sys_dlopen_deplibs=yes
10613 libltdl_cv_sys_dlopen_deplibs=yes
10616 libltdl_cv_sys_dlopen_deplibs=yes
10619 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10620 # it did *not* use an RPATH in a shared library to find objects the
10621 # library depends on, so we explicitly say `no'.
10622 libltdl_cv_sys_dlopen_deplibs=no
10624 osf5.0|osf5.0a|osf5.1)
10625 # dlopen *does* load deplibs and with the right loader patch applied
10626 # it even uses RPATH in a shared library to search for shared objects
10627 # that the library depends on, but there's no easy way to know if that
10628 # patch is installed. Since this is the case, all we can really
10629 # say is unknown -- it depends on the patch being installed. If
10630 # it is, this changes to `yes'. Without it, it would be `no'.
10631 libltdl_cv_sys_dlopen_deplibs=unknown
10634 # the two cases above should catch all versions of osf <= 5.1. Read
10635 # the comments above for what we know about them.
10636 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10637 # is used to find them so we can finally say `yes'.
10638 libltdl_cv_sys_dlopen_deplibs=yes
10641 libltdl_cv_sys_dlopen_deplibs=yes
10643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10644 libltdl_cv_sys_dlopen_deplibs=yes
10649 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10650 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10651 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10653 cat >>confdefs.h <<\_ACEOF
10654 #define LTDL_DLOPEN_DEPLIBS 1
10660 for ac_header in argz.h
10662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 ac_res=`eval echo '${'$as_ac_Header'}'`
10670 { echo "$as_me:$LINENO: result: $ac_res" >&5
10671 echo "${ECHO_T}$ac_res" >&6; }
10673 # Is the header compilable?
10674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10676 cat >conftest.$ac_ext <<_ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 $ac_includes_default
10683 #include <$ac_header>
10685 rm -f conftest.$ac_objext
10686 if { (ac_try="$ac_compile"
10687 case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_compile") 2>conftest.er1
10694 grep -v '^ *+' conftest.er1 >conftest.err
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10700 { (case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_try") 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest.$ac_objext'
10710 { (case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_try") 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 ac_header_compiler=yes
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_header_compiler=no
10727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10729 echo "${ECHO_T}$ac_header_compiler" >&6; }
10731 # Is the header present?
10732 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 #include <$ac_header>
10742 if { (ac_try="$ac_cpp conftest.$ac_ext"
10743 case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10750 grep -v '^ *+' conftest.er1 >conftest.err
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } >/dev/null; then
10755 if test -s conftest.err; then
10756 ac_cpp_err=$ac_c_preproc_warn_flag
10757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10764 if test -z "$ac_cpp_err"; then
10765 ac_header_preproc=yes
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10770 ac_header_preproc=no
10773 rm -f conftest.err conftest.$ac_ext
10774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10775 echo "${ECHO_T}$ac_header_preproc" >&6; }
10777 # So? What about this header?
10778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10784 ac_header_preproc=yes
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10800 ## ----------------------------------- ##
10801 ## Report this to llvmbugs@cs.uiuc.edu ##
10802 ## ----------------------------------- ##
10804 ) | sed "s/^/$as_me: WARNING: /" >&2
10807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 eval "$as_ac_Header=\$ac_header_preproc"
10814 ac_res=`eval echo '${'$as_ac_Header'}'`
10815 { echo "$as_me:$LINENO: result: $ac_res" >&5
10816 echo "${ECHO_T}$ac_res" >&6; }
10819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10820 cat >>confdefs.h <<_ACEOF
10821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10829 { echo "$as_me:$LINENO: checking for error_t" >&5
10830 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10831 if test "${ac_cv_type_error_t+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 cat >conftest.$ac_ext <<_ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10844 typedef error_t ac__type_new_;
10848 if ((ac__type_new_ *) 0)
10850 if (sizeof (ac__type_new_))
10856 rm -f conftest.$ac_objext
10857 if { (ac_try="$ac_compile"
10858 case "(($ac_try" in
10859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860 *) ac_try_echo=$ac_try;;
10862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863 (eval "$ac_compile") 2>conftest.er1
10865 grep -v '^ *+' conftest.er1 >conftest.err
10867 cat conftest.err >&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } &&
10870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10871 { (case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_try") 2>&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; } &&
10880 { ac_try='test -s conftest.$ac_objext'
10881 { (case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_try") 2>&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; }; then
10890 ac_cv_type_error_t=yes
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 ac_cv_type_error_t=no
10898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10900 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10901 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10902 if test $ac_cv_type_error_t = yes; then
10904 cat >>confdefs.h <<_ACEOF
10905 #define HAVE_ERROR_T 1
10911 cat >>confdefs.h <<\_ACEOF
10912 #define error_t int
10923 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10929 echo $ECHO_N "(cached) $ECHO_C" >&6
10931 cat >conftest.$ac_ext <<_ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10939 #define $ac_func innocuous_$ac_func
10941 /* System header to define __stub macros and hopefully few prototypes,
10942 which can conflict with char $ac_func (); below.
10943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10944 <limits.h> exists even on freestanding compilers. */
10947 # include <limits.h>
10949 # include <assert.h>
10954 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10961 /* The GNU C library defines this for functions which it implements
10962 to always fail with ENOSYS. Some functions are actually named
10963 something starting with __ and the normal name is an alias. */
10964 #if defined __stub_$ac_func || defined __stub___$ac_func
10971 return $ac_func ();
10976 rm -f conftest.$ac_objext conftest$ac_exeext
10977 if { (ac_try="$ac_link"
10978 case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983 (eval "$ac_link") 2>conftest.er1
10985 grep -v '^ *+' conftest.er1 >conftest.err
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } &&
10990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10991 { (case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_try") 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest$ac_exeext'
11001 { (case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_try") 2>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11010 eval "$as_ac_var=yes"
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 eval "$as_ac_var=no"
11018 rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11021 ac_res=`eval echo '${'$as_ac_var'}'`
11022 { echo "$as_me:$LINENO: result: $ac_res" >&5
11023 echo "${ECHO_T}$ac_res" >&6; }
11024 if test `eval echo '${'$as_ac_var'}'` = yes; then
11025 cat >>confdefs.h <<_ACEOF
11026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11059 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 ac_res=`eval echo '${'$as_ac_Header'}'`
11070 { echo "$as_me:$LINENO: result: $ac_res" >&5
11071 echo "${ECHO_T}$ac_res" >&6; }
11073 # Is the header compilable?
11074 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11076 cat >conftest.$ac_ext <<_ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11082 $ac_includes_default
11083 #include <$ac_header>
11085 rm -f conftest.$ac_objext
11086 if { (ac_try="$ac_compile"
11087 case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_compile") 2>conftest.er1
11094 grep -v '^ *+' conftest.er1 >conftest.err
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11100 { (case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_try") 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest.$ac_objext'
11110 { (case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_try") 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_header_compiler=yes
11121 echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11124 ac_header_compiler=no
11127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11129 echo "${ECHO_T}$ac_header_compiler" >&6; }
11131 # Is the header present?
11132 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11134 cat >conftest.$ac_ext <<_ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 #include <$ac_header>
11142 if { (ac_try="$ac_cpp conftest.$ac_ext"
11143 case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11150 grep -v '^ *+' conftest.er1 >conftest.err
11152 cat conftest.err >&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } >/dev/null; then
11155 if test -s conftest.err; then
11156 ac_cpp_err=$ac_c_preproc_warn_flag
11157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11164 if test -z "$ac_cpp_err"; then
11165 ac_header_preproc=yes
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11170 ac_header_preproc=no
11173 rm -f conftest.err conftest.$ac_ext
11174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11175 echo "${ECHO_T}$ac_header_preproc" >&6; }
11177 # So? What about this header?
11178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11184 ac_header_preproc=yes
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11200 ## ----------------------------------- ##
11201 ## Report this to llvmbugs@cs.uiuc.edu ##
11202 ## ----------------------------------- ##
11204 ) | sed "s/^/$as_me: WARNING: /" >&2
11207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 eval "$as_ac_Header=\$ac_header_preproc"
11214 ac_res=`eval echo '${'$as_ac_Header'}'`
11215 { echo "$as_me:$LINENO: result: $ac_res" >&5
11216 echo "${ECHO_T}$ac_res" >&6; }
11219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11232 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 ac_res=`eval echo '${'$as_ac_Header'}'`
11242 { echo "$as_me:$LINENO: result: $ac_res" >&5
11243 echo "${ECHO_T}$ac_res" >&6; }
11245 # Is the header compilable?
11246 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11248 cat >conftest.$ac_ext <<_ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11254 $ac_includes_default
11255 #include <$ac_header>
11257 rm -f conftest.$ac_objext
11258 if { (ac_try="$ac_compile"
11259 case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_compile") 2>conftest.er1
11266 grep -v '^ *+' conftest.er1 >conftest.err
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
11271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11272 { (case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_try") 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; } &&
11281 { ac_try='test -s conftest.$ac_objext'
11282 { (case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_try") 2>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 ac_header_compiler=yes
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11296 ac_header_compiler=no
11299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11301 echo "${ECHO_T}$ac_header_compiler" >&6; }
11303 # Is the header present?
11304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11306 cat >conftest.$ac_ext <<_ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11312 #include <$ac_header>
11314 if { (ac_try="$ac_cpp conftest.$ac_ext"
11315 case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11322 grep -v '^ *+' conftest.er1 >conftest.err
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } >/dev/null; then
11327 if test -s conftest.err; then
11328 ac_cpp_err=$ac_c_preproc_warn_flag
11329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11336 if test -z "$ac_cpp_err"; then
11337 ac_header_preproc=yes
11339 echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11342 ac_header_preproc=no
11345 rm -f conftest.err conftest.$ac_ext
11346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11347 echo "${ECHO_T}$ac_header_preproc" >&6; }
11349 # So? What about this header?
11350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11356 ac_header_preproc=yes
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11372 ## ----------------------------------- ##
11373 ## Report this to llvmbugs@cs.uiuc.edu ##
11374 ## ----------------------------------- ##
11376 ) | sed "s/^/$as_me: WARNING: /" >&2
11379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 eval "$as_ac_Header=\$ac_header_preproc"
11386 ac_res=`eval echo '${'$as_ac_Header'}'`
11387 { echo "$as_me:$LINENO: result: $ac_res" >&5
11388 echo "${ECHO_T}$ac_res" >&6; }
11391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11392 cat >>confdefs.h <<_ACEOF
11393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11402 for ac_header in string.h strings.h
11404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 ac_res=`eval echo '${'$as_ac_Header'}'`
11412 { echo "$as_me:$LINENO: result: $ac_res" >&5
11413 echo "${ECHO_T}$ac_res" >&6; }
11415 # Is the header compilable?
11416 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11418 cat >conftest.$ac_ext <<_ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h. */
11424 $ac_includes_default
11425 #include <$ac_header>
11427 rm -f conftest.$ac_objext
11428 if { (ac_try="$ac_compile"
11429 case "(($ac_try" in
11430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431 *) ac_try_echo=$ac_try;;
11433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434 (eval "$ac_compile") 2>conftest.er1
11436 grep -v '^ *+' conftest.er1 >conftest.err
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } &&
11441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11442 { (case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_try") 2>&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; } &&
11451 { ac_try='test -s conftest.$ac_objext'
11452 { (case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_try") 2>&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
11461 ac_header_compiler=yes
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11466 ac_header_compiler=no
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11471 echo "${ECHO_T}$ac_header_compiler" >&6; }
11473 # Is the header present?
11474 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11476 cat >conftest.$ac_ext <<_ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h. */
11482 #include <$ac_header>
11484 if { (ac_try="$ac_cpp conftest.$ac_ext"
11485 case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11492 grep -v '^ *+' conftest.er1 >conftest.err
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } >/dev/null; then
11497 if test -s conftest.err; then
11498 ac_cpp_err=$ac_c_preproc_warn_flag
11499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11506 if test -z "$ac_cpp_err"; then
11507 ac_header_preproc=yes
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11512 ac_header_preproc=no
11515 rm -f conftest.err conftest.$ac_ext
11516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11517 echo "${ECHO_T}$ac_header_preproc" >&6; }
11519 # So? What about this header?
11520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11526 ac_header_preproc=yes
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11536 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11542 ## ----------------------------------- ##
11543 ## Report this to llvmbugs@cs.uiuc.edu ##
11544 ## ----------------------------------- ##
11546 ) | sed "s/^/$as_me: WARNING: /" >&2
11549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 eval "$as_ac_Header=\$ac_header_preproc"
11556 ac_res=`eval echo '${'$as_ac_Header'}'`
11557 { echo "$as_me:$LINENO: result: $ac_res" >&5
11558 echo "${ECHO_T}$ac_res" >&6; }
11561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11562 cat >>confdefs.h <<_ACEOF
11563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11573 for ac_func in strchr index
11575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 cat >conftest.$ac_ext <<_ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11589 #define $ac_func innocuous_$ac_func
11591 /* System header to define __stub macros and hopefully few prototypes,
11592 which can conflict with char $ac_func (); below.
11593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11594 <limits.h> exists even on freestanding compilers. */
11597 # include <limits.h>
11599 # include <assert.h>
11604 /* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11611 /* The GNU C library defines this for functions which it implements
11612 to always fail with ENOSYS. Some functions are actually named
11613 something starting with __ and the normal name is an alias. */
11614 #if defined __stub_$ac_func || defined __stub___$ac_func
11621 return $ac_func ();
11626 rm -f conftest.$ac_objext conftest$ac_exeext
11627 if { (ac_try="$ac_link"
11628 case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_link") 2>conftest.er1
11635 grep -v '^ *+' conftest.er1 >conftest.err
11637 cat conftest.err >&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } &&
11640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11641 { (case "(($ac_try" in
11642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643 *) ac_try_echo=$ac_try;;
11645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11646 (eval "$ac_try") 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; } &&
11650 { ac_try='test -s conftest$ac_exeext'
11651 { (case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_try") 2>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 eval "$as_ac_var=yes"
11662 echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11665 eval "$as_ac_var=no"
11668 rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11671 ac_res=`eval echo '${'$as_ac_var'}'`
11672 { echo "$as_me:$LINENO: result: $ac_res" >&5
11673 echo "${ECHO_T}$ac_res" >&6; }
11674 if test `eval echo '${'$as_ac_var'}'` = yes; then
11675 cat >>confdefs.h <<_ACEOF
11676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11684 for ac_func in strrchr rindex
11686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 cat >conftest.$ac_ext <<_ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11700 #define $ac_func innocuous_$ac_func
11702 /* System header to define __stub macros and hopefully few prototypes,
11703 which can conflict with char $ac_func (); below.
11704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11705 <limits.h> exists even on freestanding compilers. */
11708 # include <limits.h>
11710 # include <assert.h>
11715 /* Override any GCC internal prototype to avoid an error.
11716 Use char because int might match the return type of a GCC
11717 builtin and then its argument prototype would still apply. */
11722 /* The GNU C library defines this for functions which it implements
11723 to always fail with ENOSYS. Some functions are actually named
11724 something starting with __ and the normal name is an alias. */
11725 #if defined __stub_$ac_func || defined __stub___$ac_func
11732 return $ac_func ();
11737 rm -f conftest.$ac_objext conftest$ac_exeext
11738 if { (ac_try="$ac_link"
11739 case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_link") 2>conftest.er1
11746 grep -v '^ *+' conftest.er1 >conftest.err
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
11751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11752 { (case "(($ac_try" in
11753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754 *) ac_try_echo=$ac_try;;
11756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757 (eval "$ac_try") 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; } &&
11761 { ac_try='test -s conftest$ac_exeext'
11762 { (case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_try") 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 eval "$as_ac_var=yes"
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 eval "$as_ac_var=no"
11779 rm -f core conftest.err conftest.$ac_objext \
11780 conftest$ac_exeext conftest.$ac_ext
11782 ac_res=`eval echo '${'$as_ac_var'}'`
11783 { echo "$as_me:$LINENO: result: $ac_res" >&5
11784 echo "${ECHO_T}$ac_res" >&6; }
11785 if test `eval echo '${'$as_ac_var'}'` = yes; then
11786 cat >>confdefs.h <<_ACEOF
11787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11795 for ac_func in memcpy bcopy
11797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 cat >conftest.$ac_ext <<_ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11811 #define $ac_func innocuous_$ac_func
11813 /* System header to define __stub macros and hopefully few prototypes,
11814 which can conflict with char $ac_func (); below.
11815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816 <limits.h> exists even on freestanding compilers. */
11819 # include <limits.h>
11821 # include <assert.h>
11826 /* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11833 /* The GNU C library defines this for functions which it implements
11834 to always fail with ENOSYS. Some functions are actually named
11835 something starting with __ and the normal name is an alias. */
11836 #if defined __stub_$ac_func || defined __stub___$ac_func
11843 return $ac_func ();
11848 rm -f conftest.$ac_objext conftest$ac_exeext
11849 if { (ac_try="$ac_link"
11850 case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_link") 2>conftest.er1
11857 grep -v '^ *+' conftest.er1 >conftest.err
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11863 { (case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_try") 2>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; } &&
11872 { ac_try='test -s conftest$ac_exeext'
11873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 eval "$as_ac_var=yes"
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11887 eval "$as_ac_var=no"
11890 rm -f core conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
11893 ac_res=`eval echo '${'$as_ac_var'}'`
11894 { echo "$as_me:$LINENO: result: $ac_res" >&5
11895 echo "${ECHO_T}$ac_res" >&6; }
11896 if test `eval echo '${'$as_ac_var'}'` = yes; then
11897 cat >>confdefs.h <<_ACEOF
11898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11906 for ac_func in memmove strcmp
11908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11914 cat >conftest.$ac_ext <<_ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11922 #define $ac_func innocuous_$ac_func
11924 /* System header to define __stub macros and hopefully few prototypes,
11925 which can conflict with char $ac_func (); below.
11926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11927 <limits.h> exists even on freestanding compilers. */
11930 # include <limits.h>
11932 # include <assert.h>
11937 /* Override any GCC internal prototype to avoid an error.
11938 Use char because int might match the return type of a GCC
11939 builtin and then its argument prototype would still apply. */
11944 /* The GNU C library defines this for functions which it implements
11945 to always fail with ENOSYS. Some functions are actually named
11946 something starting with __ and the normal name is an alias. */
11947 #if defined __stub_$ac_func || defined __stub___$ac_func
11954 return $ac_func ();
11959 rm -f conftest.$ac_objext conftest$ac_exeext
11960 if { (ac_try="$ac_link"
11961 case "(($ac_try" in
11962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_link") 2>conftest.er1
11968 grep -v '^ *+' conftest.er1 >conftest.err
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11974 { (case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_try") 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_try") 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 eval "$as_ac_var=yes"
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11998 eval "$as_ac_var=no"
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12004 ac_res=`eval echo '${'$as_ac_var'}'`
12005 { echo "$as_me:$LINENO: result: $ac_res" >&5
12006 echo "${ECHO_T}$ac_res" >&6; }
12007 if test `eval echo '${'$as_ac_var'}'` = yes; then
12008 cat >>confdefs.h <<_ACEOF
12009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12018 for ac_func in closedir opendir readdir
12020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 cat >conftest.$ac_ext <<_ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12034 #define $ac_func innocuous_$ac_func
12036 /* System header to define __stub macros and hopefully few prototypes,
12037 which can conflict with char $ac_func (); below.
12038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12039 <limits.h> exists even on freestanding compilers. */
12042 # include <limits.h>
12044 # include <assert.h>
12049 /* Override any GCC internal prototype to avoid an error.
12050 Use char because int might match the return type of a GCC
12051 builtin and then its argument prototype would still apply. */
12056 /* The GNU C library defines this for functions which it implements
12057 to always fail with ENOSYS. Some functions are actually named
12058 something starting with __ and the normal name is an alias. */
12059 #if defined __stub_$ac_func || defined __stub___$ac_func
12066 return $ac_func ();
12071 rm -f conftest.$ac_objext conftest$ac_exeext
12072 if { (ac_try="$ac_link"
12073 case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_link") 2>conftest.er1
12080 grep -v '^ *+' conftest.er1 >conftest.err
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12086 { (case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091 (eval "$ac_try") 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; } &&
12095 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 eval "$as_ac_var=yes"
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12110 eval "$as_ac_var=no"
12113 rm -f core conftest.err conftest.$ac_objext \
12114 conftest$ac_exeext conftest.$ac_ext
12116 ac_res=`eval echo '${'$as_ac_var'}'`
12117 { echo "$as_me:$LINENO: result: $ac_res" >&5
12118 echo "${ECHO_T}$ac_res" >&6; }
12119 if test `eval echo '${'$as_ac_var'}'` = yes; then
12120 cat >>confdefs.h <<_ACEOF
12121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12129 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12130 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12143 if test "$GCC" != "yes" && test "$ICC" != "yes"
12145 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12146 echo "$as_me: error: gcc|icc required but not found" >&2;}
12147 { (exit 1); exit 1; }; }
12150 if test "$GXX" != "yes" && test "$IXX" != "yes"
12152 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12153 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12154 { (exit 1); exit 1; }; }
12157 if test "$GCC" = "yes"
12159 cat >conftest.$ac_ext <<_ACEOF
12160 #if !defined(__GNUC__) || __GNUC__ < 3
12161 #error Unsupported GCC version
12165 rm -f conftest.$ac_objext
12166 if { (ac_try="$ac_compile"
12167 case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_compile") 2>conftest.er1
12174 grep -v '^ *+' conftest.er1 >conftest.err
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } &&
12179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12180 { (case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_try") 2>&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; } &&
12189 { ac_try='test -s conftest.$ac_objext'
12190 { (case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_try") 2>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12201 echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12204 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12205 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12206 { (exit 1); exit 1; }; }
12209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12212 if test -z "$llvm_cv_gnu_make_command"
12214 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12215 echo "$as_me: error: GNU Make required but not found" >&2;}
12216 { (exit 1); exit 1; }; }
12219 { echo "$as_me:$LINENO: result: ok" >&5
12220 echo "${ECHO_T}ok" >&6; }
12222 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12223 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12224 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12226 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12228 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12229 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12233 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12234 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12235 if test "${ac_cv_lib_m_sin+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 ac_check_lib_save_LIBS=$LIBS
12240 cat >conftest.$ac_ext <<_ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12247 /* Override any GCC internal prototype to avoid an error.
12248 Use char because int might match the return type of a GCC
12249 builtin and then its argument prototype would still apply. */
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (ac_try="$ac_link"
12264 case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269 (eval "$ac_link") 2>conftest.er1
12271 grep -v '^ *+' conftest.er1 >conftest.err
12273 cat conftest.err >&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest$ac_exeext'
12287 { (case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_try") 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_cv_lib_m_sin=yes
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12304 rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12308 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12309 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12310 if test $ac_cv_lib_m_sin = yes; then
12311 cat >>confdefs.h <<_ACEOF
12312 #define HAVE_LIBM 1
12319 if test "$llvm_cv_os_type" = "MingW" ; then
12321 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12322 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12323 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 ac_check_lib_save_LIBS=$LIBS
12327 LIBS="-limagehlp $LIBS"
12328 cat >conftest.$ac_ext <<_ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12344 rm -f conftest.$ac_objext conftest$ac_exeext
12345 if { (ac_try="$ac_link"
12346 case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_link") 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359 { (case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_try") 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest$ac_exeext'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_cv_lib_imagehlp_main=yes
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_cv_lib_imagehlp_main=no
12386 rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12388 LIBS=$ac_check_lib_save_LIBS
12390 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12391 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12392 if test $ac_cv_lib_imagehlp_main = yes; then
12393 cat >>confdefs.h <<_ACEOF
12394 #define HAVE_LIBIMAGEHLP 1
12397 LIBS="-limagehlp $LIBS"
12402 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12403 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12404 if test "${ac_cv_lib_psapi_main+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 ac_check_lib_save_LIBS=$LIBS
12408 LIBS="-lpsapi $LIBS"
12409 cat >conftest.$ac_ext <<_ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (ac_try="$ac_link"
12427 case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_link") 2>conftest.er1
12434 grep -v '^ *+' conftest.er1 >conftest.err
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } &&
12439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12440 { (case "(($ac_try" in
12441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442 *) ac_try_echo=$ac_try;;
12444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12445 (eval "$ac_try") 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; } &&
12449 { ac_try='test -s conftest$ac_exeext'
12450 { (case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_try") 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_cv_lib_psapi_main=yes
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12464 ac_cv_lib_psapi_main=no
12467 rm -f core conftest.err conftest.$ac_objext \
12468 conftest$ac_exeext conftest.$ac_ext
12469 LIBS=$ac_check_lib_save_LIBS
12471 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12472 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12473 if test $ac_cv_lib_psapi_main = yes; then
12474 cat >>confdefs.h <<_ACEOF
12475 #define HAVE_LIBPSAPI 1
12478 LIBS="-lpsapi $LIBS"
12484 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12485 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12486 if test "${ac_cv_search_dlopen+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 ac_func_search_save_LIBS=$LIBS
12490 cat >conftest.$ac_ext <<_ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12497 /* Override any GCC internal prototype to avoid an error.
12498 Use char because int might match the return type of a GCC
12499 builtin and then its argument prototype would still apply. */
12512 for ac_lib in '' dl; do
12513 if test -z "$ac_lib"; then
12514 ac_res="none required"
12517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12519 rm -f conftest.$ac_objext conftest$ac_exeext
12520 if { (ac_try="$ac_link"
12521 case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_link") 2>conftest.er1
12528 grep -v '^ *+' conftest.er1 >conftest.err
12530 cat conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12534 { (case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_try") 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest$ac_exeext'
12544 { (case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_try") 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 ac_cv_search_dlopen=$ac_res
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12561 rm -f core conftest.err conftest.$ac_objext \
12563 if test "${ac_cv_search_dlopen+set}" = set; then
12567 if test "${ac_cv_search_dlopen+set}" = set; then
12570 ac_cv_search_dlopen=no
12572 rm conftest.$ac_ext
12573 LIBS=$ac_func_search_save_LIBS
12575 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12576 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12577 ac_res=$ac_cv_search_dlopen
12578 if test "$ac_res" != no; then
12579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12581 cat >>confdefs.h <<\_ACEOF
12582 #define HAVE_DLOPEN 1
12586 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12587 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12591 if test "$llvm_cv_enable_libffi" = "yes" ; then
12592 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12593 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12594 if test "${ac_cv_search_ffi_call+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 ac_func_search_save_LIBS=$LIBS
12598 cat >conftest.$ac_ext <<_ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12605 /* Override any GCC internal prototype to avoid an error.
12606 Use char because int might match the return type of a GCC
12607 builtin and then its argument prototype would still apply. */
12615 return ffi_call ();
12620 for ac_lib in '' ffi; do
12621 if test -z "$ac_lib"; then
12622 ac_res="none required"
12625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12627 rm -f conftest.$ac_objext conftest$ac_exeext
12628 if { (ac_try="$ac_link"
12629 case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_link") 2>conftest.er1
12636 grep -v '^ *+' conftest.er1 >conftest.err
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642 { (case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_try") 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try='test -s conftest$ac_exeext'
12652 { (case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_try") 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 ac_cv_search_ffi_call=$ac_res
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12669 rm -f core conftest.err conftest.$ac_objext \
12671 if test "${ac_cv_search_ffi_call+set}" = set; then
12675 if test "${ac_cv_search_ffi_call+set}" = set; then
12678 ac_cv_search_ffi_call=no
12680 rm conftest.$ac_ext
12681 LIBS=$ac_func_search_save_LIBS
12683 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12684 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12685 ac_res=$ac_cv_search_ffi_call
12686 if test "$ac_res" != no; then
12687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12689 cat >>confdefs.h <<\_ACEOF
12690 #define HAVE_FFI_CALL 1
12694 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12695 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12696 { (exit 1); exit 1; }; }
12701 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12702 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12703 if test "${ac_cv_search_mallinfo+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 ac_func_search_save_LIBS=$LIBS
12707 cat >conftest.$ac_ext <<_ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12714 /* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12724 return mallinfo ();
12729 for ac_lib in '' malloc; do
12730 if test -z "$ac_lib"; then
12731 ac_res="none required"
12734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12736 rm -f conftest.$ac_objext conftest$ac_exeext
12737 if { (ac_try="$ac_link"
12738 case "(($ac_try" in
12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740 *) ac_try_echo=$ac_try;;
12742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743 (eval "$ac_link") 2>conftest.er1
12745 grep -v '^ *+' conftest.er1 >conftest.err
12747 cat conftest.err >&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
12750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12751 { (case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756 (eval "$ac_try") 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest$ac_exeext'
12761 { (case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_try") 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
12770 ac_cv_search_mallinfo=$ac_res
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12778 rm -f core conftest.err conftest.$ac_objext \
12780 if test "${ac_cv_search_mallinfo+set}" = set; then
12784 if test "${ac_cv_search_mallinfo+set}" = set; then
12787 ac_cv_search_mallinfo=no
12789 rm conftest.$ac_ext
12790 LIBS=$ac_func_search_save_LIBS
12792 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12793 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12794 ac_res=$ac_cv_search_mallinfo
12795 if test "$ac_res" != no; then
12796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12798 cat >>confdefs.h <<\_ACEOF
12799 #define HAVE_MALLINFO 1
12805 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12807 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12808 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12809 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 ac_check_lib_save_LIBS=$LIBS
12813 LIBS="-lpthread $LIBS"
12814 cat >conftest.$ac_ext <<_ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12821 /* Override any GCC internal prototype to avoid an error.
12822 Use char because int might match the return type of a GCC
12823 builtin and then its argument prototype would still apply. */
12827 char pthread_mutex_init ();
12831 return pthread_mutex_init ();
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (ac_try="$ac_link"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_link") 2>conftest.er1
12845 grep -v '^ *+' conftest.er1 >conftest.err
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12851 { (case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_try") 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 ac_cv_lib_pthread_pthread_mutex_init=yes
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12875 ac_cv_lib_pthread_pthread_mutex_init=no
12878 rm -f core conftest.err conftest.$ac_objext \
12879 conftest$ac_exeext conftest.$ac_ext
12880 LIBS=$ac_check_lib_save_LIBS
12882 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12883 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12884 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12885 cat >>confdefs.h <<_ACEOF
12886 #define HAVE_LIBPTHREAD 1
12889 LIBS="-lpthread $LIBS"
12893 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12894 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12895 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 ac_func_search_save_LIBS=$LIBS
12899 cat >conftest.$ac_ext <<_ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12906 /* Override any GCC internal prototype to avoid an error.
12907 Use char because int might match the return type of a GCC
12908 builtin and then its argument prototype would still apply. */
12912 char pthread_mutex_lock ();
12916 return pthread_mutex_lock ();
12921 for ac_lib in '' pthread; do
12922 if test -z "$ac_lib"; then
12923 ac_res="none required"
12926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12928 rm -f conftest.$ac_objext conftest$ac_exeext
12929 if { (ac_try="$ac_link"
12930 case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_link") 2>conftest.er1
12937 grep -v '^ *+' conftest.er1 >conftest.err
12939 cat conftest.err >&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); } &&
12942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12943 { (case "(($ac_try" in
12944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948 (eval "$ac_try") 2>&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; } &&
12952 { ac_try='test -s conftest$ac_exeext'
12953 { (case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_try") 2>&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_search_pthread_mutex_lock=$ac_res
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12970 rm -f core conftest.err conftest.$ac_objext \
12972 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12976 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12979 ac_cv_search_pthread_mutex_lock=no
12981 rm conftest.$ac_ext
12982 LIBS=$ac_func_search_save_LIBS
12984 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12985 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12986 ac_res=$ac_cv_search_pthread_mutex_lock
12987 if test "$ac_res" != no; then
12988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12990 cat >>confdefs.h <<\_ACEOF
12991 #define HAVE_PTHREAD_MUTEX_LOCK 1
12996 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12997 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12998 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13001 ac_func_search_save_LIBS=$LIBS
13002 cat >conftest.$ac_ext <<_ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13009 /* Override any GCC internal prototype to avoid an error.
13010 Use char because int might match the return type of a GCC
13011 builtin and then its argument prototype would still apply. */
13015 char pthread_rwlock_init ();
13019 return pthread_rwlock_init ();
13024 for ac_lib in '' pthread; do
13025 if test -z "$ac_lib"; then
13026 ac_res="none required"
13029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13031 rm -f conftest.$ac_objext conftest$ac_exeext
13032 if { (ac_try="$ac_link"
13033 case "(($ac_try" in
13034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13035 *) ac_try_echo=$ac_try;;
13037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13038 (eval "$ac_link") 2>conftest.er1
13040 grep -v '^ *+' conftest.er1 >conftest.err
13042 cat conftest.err >&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13046 { (case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_try") 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; } &&
13055 { ac_try='test -s conftest$ac_exeext'
13056 { (case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_try") 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; }; then
13065 ac_cv_search_pthread_rwlock_init=$ac_res
13067 echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13073 rm -f core conftest.err conftest.$ac_objext \
13075 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13079 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13082 ac_cv_search_pthread_rwlock_init=no
13084 rm conftest.$ac_ext
13085 LIBS=$ac_func_search_save_LIBS
13087 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13088 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13089 ac_res=$ac_cv_search_pthread_rwlock_init
13090 if test "$ac_res" != no; then
13091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13093 cat >>confdefs.h <<\_ACEOF
13094 #define HAVE_PTHREAD_RWLOCK_INIT 1
13099 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13100 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13101 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 ac_func_search_save_LIBS=$LIBS
13105 cat >conftest.$ac_ext <<_ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13112 /* Override any GCC internal prototype to avoid an error.
13113 Use char because int might match the return type of a GCC
13114 builtin and then its argument prototype would still apply. */
13118 char pthread_getspecific ();
13122 return pthread_getspecific ();
13127 for ac_lib in '' pthread; do
13128 if test -z "$ac_lib"; then
13129 ac_res="none required"
13132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13134 rm -f conftest.$ac_objext conftest$ac_exeext
13135 if { (ac_try="$ac_link"
13136 case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_link") 2>conftest.er1
13143 grep -v '^ *+' conftest.er1 >conftest.err
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
13148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13149 { (case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_try") 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; } &&
13158 { ac_try='test -s conftest$ac_exeext'
13159 { (case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_try") 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 ac_cv_search_pthread_getspecific=$ac_res
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13176 rm -f core conftest.err conftest.$ac_objext \
13178 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13182 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13185 ac_cv_search_pthread_getspecific=no
13187 rm conftest.$ac_ext
13188 LIBS=$ac_func_search_save_LIBS
13190 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13191 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13192 ac_res=$ac_cv_search_pthread_getspecific
13193 if test "$ac_res" != no; then
13194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13196 cat >>confdefs.h <<\_ACEOF
13197 #define HAVE_PTHREAD_GETSPECIFIC 1
13205 # Check whether --with-udis86 was given.
13206 if test "${with_udis86+set}" = set; then
13207 withval=$with_udis86;
13212 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13215 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13216 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13217 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 ac_check_lib_save_LIBS=$LIBS
13221 LIBS="-ludis86 $LIBS"
13222 cat >conftest.$ac_ext <<_ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13229 /* Override any GCC internal prototype to avoid an error.
13230 Use char because int might match the return type of a GCC
13231 builtin and then its argument prototype would still apply. */
13244 rm -f conftest.$ac_objext conftest$ac_exeext
13245 if { (ac_try="$ac_link"
13246 case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_link") 2>conftest.er1
13253 grep -v '^ *+' conftest.er1 >conftest.err
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
13258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13259 { (case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_try") 2>&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest$ac_exeext'
13269 { (case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274 (eval "$ac_try") 2>&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; }; then
13278 ac_cv_lib_udis86_ud_init=yes
13280 echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13283 ac_cv_lib_udis86_ud_init=no
13286 rm -f core conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext conftest.$ac_ext
13288 LIBS=$ac_check_lib_save_LIBS
13290 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13291 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13292 if test $ac_cv_lib_udis86_ud_init = yes; then
13293 cat >>confdefs.h <<_ACEOF
13294 #define HAVE_LIBUDIS86 1
13297 LIBS="-ludis86 $LIBS"
13301 echo "Error! You need to have libudis86 around."
13313 cat >>confdefs.h <<_ACEOF
13314 #define USE_UDIS86 $USE_UDIS86
13319 # Check whether --with-oprofile was given.
13320 if test "${with_oprofile+set}" = set; then
13321 withval=$with_oprofile;
13325 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13326 no) llvm_cv_oppath=
13329 *) llvm_cv_oppath="${withval}/lib/oprofile"
13330 CPPFLAGS="-I${withval}/include";;
13332 if test -n "$llvm_cv_oppath" ; then
13333 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13334 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13335 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13336 if test "${ac_cv_search_bfd_init+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 ac_func_search_save_LIBS=$LIBS
13340 cat >conftest.$ac_ext <<_ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13347 /* Override any GCC internal prototype to avoid an error.
13348 Use char because int might match the return type of a GCC
13349 builtin and then its argument prototype would still apply. */
13357 return bfd_init ();
13362 for ac_lib in '' bfd; do
13363 if test -z "$ac_lib"; then
13364 ac_res="none required"
13367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13369 rm -f conftest.$ac_objext conftest$ac_exeext
13370 if { (ac_try="$ac_link"
13371 case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_link") 2>conftest.er1
13378 grep -v '^ *+' conftest.er1 >conftest.err
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13384 { (case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_try") 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; } &&
13393 { ac_try='test -s conftest$ac_exeext'
13394 { (case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_try") 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_cv_search_bfd_init=$ac_res
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13411 rm -f core conftest.err conftest.$ac_objext \
13413 if test "${ac_cv_search_bfd_init+set}" = set; then
13417 if test "${ac_cv_search_bfd_init+set}" = set; then
13420 ac_cv_search_bfd_init=no
13422 rm conftest.$ac_ext
13423 LIBS=$ac_func_search_save_LIBS
13425 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13426 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13427 ac_res=$ac_cv_search_bfd_init
13428 if test "$ac_res" != no; then
13429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13433 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13434 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13435 if test "${ac_cv_search_op_open_agent+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 ac_func_search_save_LIBS=$LIBS
13439 cat >conftest.$ac_ext <<_ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h. */
13446 /* Override any GCC internal prototype to avoid an error.
13447 Use char because int might match the return type of a GCC
13448 builtin and then its argument prototype would still apply. */
13452 char op_open_agent ();
13456 return op_open_agent ();
13461 for ac_lib in '' opagent; do
13462 if test -z "$ac_lib"; then
13463 ac_res="none required"
13466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13468 rm -f conftest.$ac_objext conftest$ac_exeext
13469 if { (ac_try="$ac_link"
13470 case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_link") 2>conftest.er1
13477 grep -v '^ *+' conftest.er1 >conftest.err
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest$ac_exeext'
13493 { (case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_try") 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 ac_cv_search_op_open_agent=$ac_res
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13510 rm -f core conftest.err conftest.$ac_objext \
13512 if test "${ac_cv_search_op_open_agent+set}" = set; then
13516 if test "${ac_cv_search_op_open_agent+set}" = set; then
13519 ac_cv_search_op_open_agent=no
13521 rm conftest.$ac_ext
13522 LIBS=$ac_func_search_save_LIBS
13524 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13525 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13526 ac_res=$ac_cv_search_op_open_agent
13527 if test "$ac_res" != no; then
13528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13532 echo "Error! You need to have libopagent around."
13537 if test "${ac_cv_header_opagent_h+set}" = set; then
13538 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13539 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13540 if test "${ac_cv_header_opagent_h+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13544 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13546 # Is the header compilable?
13547 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13548 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13549 cat >conftest.$ac_ext <<_ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 $ac_includes_default
13556 #include <opagent.h>
13558 rm -f conftest.$ac_objext
13559 if { (ac_try="$ac_compile"
13560 case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_compile") 2>conftest.er1
13567 grep -v '^ *+' conftest.er1 >conftest.err
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13573 { (case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_try") 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; } &&
13582 { ac_try='test -s conftest.$ac_objext'
13583 { (case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_try") 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 ac_header_compiler=yes
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_header_compiler=no
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13602 echo "${ECHO_T}$ac_header_compiler" >&6; }
13604 # Is the header present?
13605 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13606 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13607 cat >conftest.$ac_ext <<_ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h. */
13613 #include <opagent.h>
13615 if { (ac_try="$ac_cpp conftest.$ac_ext"
13616 case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13623 grep -v '^ *+' conftest.er1 >conftest.err
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } >/dev/null; then
13628 if test -s conftest.err; then
13629 ac_cpp_err=$ac_c_preproc_warn_flag
13630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13637 if test -z "$ac_cpp_err"; then
13638 ac_header_preproc=yes
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13643 ac_header_preproc=no
13646 rm -f conftest.err conftest.$ac_ext
13647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13648 echo "${ECHO_T}$ac_header_preproc" >&6; }
13650 # So? What about this header?
13651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13653 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13654 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13656 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13657 ac_header_preproc=yes
13660 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13661 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13663 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13664 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13665 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13666 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13667 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13668 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13669 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13670 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13671 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13673 ## ----------------------------------- ##
13674 ## Report this to llvmbugs@cs.uiuc.edu ##
13675 ## ----------------------------------- ##
13677 ) | sed "s/^/$as_me: WARNING: /" >&2
13680 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13681 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13682 if test "${ac_cv_header_opagent_h+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 ac_cv_header_opagent_h=$ac_header_preproc
13687 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13688 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13691 if test $ac_cv_header_opagent_h = yes; then
13695 echo "Error! You need to have opagent.h around."
13711 cat >>confdefs.h <<_ACEOF
13712 #define USE_OPROFILE $USE_OPROFILE
13722 ac_header_dirent=no
13723 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13724 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13725 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13726 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 cat >conftest.$ac_ext <<_ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 #include <sys/types.h>
13748 rm -f conftest.$ac_objext
13749 if { (ac_try="$ac_compile"
13750 case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_compile") 2>conftest.er1
13757 grep -v '^ *+' conftest.er1 >conftest.err
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } &&
13762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13763 { (case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_try") 2>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; } &&
13772 { ac_try='test -s conftest.$ac_objext'
13773 { (case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778 (eval "$ac_try") 2>&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
13782 eval "$as_ac_Header=yes"
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13787 eval "$as_ac_Header=no"
13790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13792 ac_res=`eval echo '${'$as_ac_Header'}'`
13793 { echo "$as_me:$LINENO: result: $ac_res" >&5
13794 echo "${ECHO_T}$ac_res" >&6; }
13795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13796 cat >>confdefs.h <<_ACEOF
13797 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13800 ac_header_dirent=$ac_hdr; break
13804 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13805 if test $ac_header_dirent = dirent.h; then
13806 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13807 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13808 if test "${ac_cv_search_opendir+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 ac_func_search_save_LIBS=$LIBS
13812 cat >conftest.$ac_ext <<_ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13819 /* Override any GCC internal prototype to avoid an error.
13820 Use char because int might match the return type of a GCC
13821 builtin and then its argument prototype would still apply. */
13834 for ac_lib in '' dir; do
13835 if test -z "$ac_lib"; then
13836 ac_res="none required"
13839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13841 rm -f conftest.$ac_objext conftest$ac_exeext
13842 if { (ac_try="$ac_link"
13843 case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_link") 2>conftest.er1
13850 grep -v '^ *+' conftest.er1 >conftest.err
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } &&
13855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13856 { (case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_try") 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest$ac_exeext'
13866 { (case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_try") 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13875 ac_cv_search_opendir=$ac_res
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13883 rm -f core conftest.err conftest.$ac_objext \
13885 if test "${ac_cv_search_opendir+set}" = set; then
13889 if test "${ac_cv_search_opendir+set}" = set; then
13892 ac_cv_search_opendir=no
13894 rm conftest.$ac_ext
13895 LIBS=$ac_func_search_save_LIBS
13897 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13898 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13899 ac_res=$ac_cv_search_opendir
13900 if test "$ac_res" != no; then
13901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13906 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13907 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13908 if test "${ac_cv_search_opendir+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 ac_func_search_save_LIBS=$LIBS
13912 cat >conftest.$ac_ext <<_ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13919 /* Override any GCC internal prototype to avoid an error.
13920 Use char because int might match the return type of a GCC
13921 builtin and then its argument prototype would still apply. */
13934 for ac_lib in '' x; do
13935 if test -z "$ac_lib"; then
13936 ac_res="none required"
13939 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13941 rm -f conftest.$ac_objext conftest$ac_exeext
13942 if { (ac_try="$ac_link"
13943 case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_link") 2>conftest.er1
13950 grep -v '^ *+' conftest.er1 >conftest.err
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13956 { (case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_try") 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try='test -s conftest$ac_exeext'
13966 { (case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_try") 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 ac_cv_search_opendir=$ac_res
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13983 rm -f core conftest.err conftest.$ac_objext \
13985 if test "${ac_cv_search_opendir+set}" = set; then
13989 if test "${ac_cv_search_opendir+set}" = set; then
13992 ac_cv_search_opendir=no
13994 rm conftest.$ac_ext
13995 LIBS=$ac_func_search_save_LIBS
13997 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13998 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13999 ac_res=$ac_cv_search_opendir
14000 if test "$ac_res" != no; then
14001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14007 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14008 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14009 if test "${ac_cv_header_mmap_anon+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 ac_cpp='$CPP $CPPFLAGS'
14014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14018 cat >conftest.$ac_ext <<_ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h. */
14024 #include <sys/mman.h>
14025 #include <unistd.h>
14030 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14035 rm -f conftest.$ac_objext
14036 if { (ac_try="$ac_compile"
14037 case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_compile") 2>conftest.er1
14044 grep -v '^ *+' conftest.er1 >conftest.err
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14050 { (case "(($ac_try" in
14051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052 *) ac_try_echo=$ac_try;;
14054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055 (eval "$ac_try") 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; } &&
14059 { ac_try='test -s conftest.$ac_objext'
14060 { (case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_try") 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; }; then
14069 ac_cv_header_mmap_anon=yes
14071 echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14074 ac_cv_header_mmap_anon=no
14077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14079 ac_cpp='$CPP $CPPFLAGS'
14080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14086 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14087 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14088 if test "$ac_cv_header_mmap_anon" = yes; then
14090 cat >>confdefs.h <<\_ACEOF
14091 #define HAVE_MMAP_ANONYMOUS 1
14096 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14097 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14098 if test "${ac_cv_header_stat_broken+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 cat >conftest.$ac_ext <<_ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 #include <sys/types.h>
14108 #include <sys/stat.h>
14110 #if defined S_ISBLK && defined S_IFDIR
14111 # if S_ISBLK (S_IFDIR)
14116 #if defined S_ISBLK && defined S_IFCHR
14117 # if S_ISBLK (S_IFCHR)
14122 #if defined S_ISLNK && defined S_IFREG
14123 # if S_ISLNK (S_IFREG)
14128 #if defined S_ISSOCK && defined S_IFREG
14129 # if S_ISSOCK (S_IFREG)
14135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14136 $EGREP "You lose" >/dev/null 2>&1; then
14137 ac_cv_header_stat_broken=yes
14139 ac_cv_header_stat_broken=no
14144 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14145 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14146 if test $ac_cv_header_stat_broken = yes; then
14148 cat >>confdefs.h <<\_ACEOF
14149 #define STAT_MACROS_BROKEN 1
14154 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14155 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14156 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 cat >conftest.$ac_ext <<_ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14165 #include <sys/types.h>
14166 #include <sys/wait.h>
14167 #ifndef WEXITSTATUS
14168 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14171 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14179 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14184 rm -f conftest.$ac_objext
14185 if { (ac_try="$ac_compile"
14186 case "(($ac_try" in
14187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188 *) ac_try_echo=$ac_try;;
14190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191 (eval "$ac_compile") 2>conftest.er1
14193 grep -v '^ *+' conftest.er1 >conftest.err
14195 cat conftest.err >&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
14198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14199 { (case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_try") 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; } &&
14208 { ac_try='test -s conftest.$ac_objext'
14209 { (case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_try") 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 ac_cv_header_sys_wait_h=yes
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14223 ac_cv_header_sys_wait_h=no
14226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14229 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14230 if test $ac_cv_header_sys_wait_h = yes; then
14232 cat >>confdefs.h <<\_ACEOF
14233 #define HAVE_SYS_WAIT_H 1
14238 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14239 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14240 if test "${ac_cv_header_time+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 cat >conftest.$ac_ext <<_ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h. */
14249 #include <sys/types.h>
14250 #include <sys/time.h>
14256 if ((struct tm *) 0)
14262 rm -f conftest.$ac_objext
14263 if { (ac_try="$ac_compile"
14264 case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269 (eval "$ac_compile") 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14277 { (case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_try") 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; } &&
14286 { ac_try='test -s conftest.$ac_objext'
14287 { (case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_try") 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }; then
14296 ac_cv_header_time=yes
14298 echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14301 ac_cv_header_time=no
14304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14307 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14308 if test $ac_cv_header_time = yes; then
14310 cat >>confdefs.h <<\_ACEOF
14311 #define TIME_WITH_SYS_TIME 1
14323 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 ac_res=`eval echo '${'$as_ac_Header'}'`
14333 { echo "$as_me:$LINENO: result: $ac_res" >&5
14334 echo "${ECHO_T}$ac_res" >&6; }
14336 # Is the header compilable?
14337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14339 cat >conftest.$ac_ext <<_ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 $ac_includes_default
14346 #include <$ac_header>
14348 rm -f conftest.$ac_objext
14349 if { (ac_try="$ac_compile"
14350 case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_compile") 2>conftest.er1
14357 grep -v '^ *+' conftest.er1 >conftest.err
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
14362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14363 { (case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368 (eval "$ac_try") 2>&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; } &&
14372 { ac_try='test -s conftest.$ac_objext'
14373 { (case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_try") 2>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_header_compiler=yes
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 ac_header_compiler=no
14390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14392 echo "${ECHO_T}$ac_header_compiler" >&6; }
14394 # Is the header present?
14395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14397 cat >conftest.$ac_ext <<_ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14403 #include <$ac_header>
14405 if { (ac_try="$ac_cpp conftest.$ac_ext"
14406 case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } >/dev/null; then
14418 if test -s conftest.err; then
14419 ac_cpp_err=$ac_c_preproc_warn_flag
14420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14427 if test -z "$ac_cpp_err"; then
14428 ac_header_preproc=yes
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14433 ac_header_preproc=no
14436 rm -f conftest.err conftest.$ac_ext
14437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14438 echo "${ECHO_T}$ac_header_preproc" >&6; }
14440 # So? What about this header?
14441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14447 ac_header_preproc=yes
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14463 ## ----------------------------------- ##
14464 ## Report this to llvmbugs@cs.uiuc.edu ##
14465 ## ----------------------------------- ##
14467 ) | sed "s/^/$as_me: WARNING: /" >&2
14470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 eval "$as_ac_Header=\$ac_header_preproc"
14477 ac_res=`eval echo '${'$as_ac_Header'}'`
14478 { echo "$as_me:$LINENO: result: $ac_res" >&5
14479 echo "${ECHO_T}$ac_res" >&6; }
14482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14483 cat >>confdefs.h <<_ACEOF
14484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14497 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 ac_res=`eval echo '${'$as_ac_Header'}'`
14507 { echo "$as_me:$LINENO: result: $ac_res" >&5
14508 echo "${ECHO_T}$ac_res" >&6; }
14510 # Is the header compilable?
14511 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14513 cat >conftest.$ac_ext <<_ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h. */
14519 $ac_includes_default
14520 #include <$ac_header>
14522 rm -f conftest.$ac_objext
14523 if { (ac_try="$ac_compile"
14524 case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_compile") 2>conftest.er1
14531 grep -v '^ *+' conftest.er1 >conftest.err
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
14536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14537 { (case "(($ac_try" in
14538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_try") 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; } &&
14546 { ac_try='test -s conftest.$ac_objext'
14547 { (case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_try") 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; }; then
14556 ac_header_compiler=yes
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 ac_header_compiler=no
14564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14566 echo "${ECHO_T}$ac_header_compiler" >&6; }
14568 # Is the header present?
14569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14571 cat >conftest.$ac_ext <<_ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 #include <$ac_header>
14579 if { (ac_try="$ac_cpp conftest.$ac_ext"
14580 case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14587 grep -v '^ *+' conftest.er1 >conftest.err
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } >/dev/null; then
14592 if test -s conftest.err; then
14593 ac_cpp_err=$ac_c_preproc_warn_flag
14594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14601 if test -z "$ac_cpp_err"; then
14602 ac_header_preproc=yes
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14607 ac_header_preproc=no
14610 rm -f conftest.err conftest.$ac_ext
14611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14612 echo "${ECHO_T}$ac_header_preproc" >&6; }
14614 # So? What about this header?
14615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14621 ac_header_preproc=yes
14624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14637 ## ----------------------------------- ##
14638 ## Report this to llvmbugs@cs.uiuc.edu ##
14639 ## ----------------------------------- ##
14641 ) | sed "s/^/$as_me: WARNING: /" >&2
14644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 eval "$as_ac_Header=\$ac_header_preproc"
14651 ac_res=`eval echo '${'$as_ac_Header'}'`
14652 { echo "$as_me:$LINENO: result: $ac_res" >&5
14653 echo "${ECHO_T}$ac_res" >&6; }
14656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14657 cat >>confdefs.h <<_ACEOF
14658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14667 for ac_header in utime.h windows.h
14669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14676 ac_res=`eval echo '${'$as_ac_Header'}'`
14677 { echo "$as_me:$LINENO: result: $ac_res" >&5
14678 echo "${ECHO_T}$ac_res" >&6; }
14680 # Is the header compilable?
14681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14683 cat >conftest.$ac_ext <<_ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h. */
14689 $ac_includes_default
14690 #include <$ac_header>
14692 rm -f conftest.$ac_objext
14693 if { (ac_try="$ac_compile"
14694 case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_compile") 2>conftest.er1
14701 grep -v '^ *+' conftest.er1 >conftest.err
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14707 { (case "(($ac_try" in
14708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709 *) ac_try_echo=$ac_try;;
14711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712 (eval "$ac_try") 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest.$ac_objext'
14717 { (case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_try") 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14726 ac_header_compiler=yes
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14731 ac_header_compiler=no
14734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14736 echo "${ECHO_T}$ac_header_compiler" >&6; }
14738 # Is the header present?
14739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14741 cat >conftest.$ac_ext <<_ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14747 #include <$ac_header>
14749 if { (ac_try="$ac_cpp conftest.$ac_ext"
14750 case "(($ac_try" in
14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14757 grep -v '^ *+' conftest.er1 >conftest.err
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } >/dev/null; then
14762 if test -s conftest.err; then
14763 ac_cpp_err=$ac_c_preproc_warn_flag
14764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14771 if test -z "$ac_cpp_err"; then
14772 ac_header_preproc=yes
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14777 ac_header_preproc=no
14780 rm -f conftest.err conftest.$ac_ext
14781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14782 echo "${ECHO_T}$ac_header_preproc" >&6; }
14784 # So? What about this header?
14785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14791 ac_header_preproc=yes
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14807 ## ----------------------------------- ##
14808 ## Report this to llvmbugs@cs.uiuc.edu ##
14809 ## ----------------------------------- ##
14811 ) | sed "s/^/$as_me: WARNING: /" >&2
14814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 eval "$as_ac_Header=\$ac_header_preproc"
14821 ac_res=`eval echo '${'$as_ac_Header'}'`
14822 { echo "$as_me:$LINENO: result: $ac_res" >&5
14823 echo "${ECHO_T}$ac_res" >&6; }
14826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14827 cat >>confdefs.h <<_ACEOF
14828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14840 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14849 ac_res=`eval echo '${'$as_ac_Header'}'`
14850 { echo "$as_me:$LINENO: result: $ac_res" >&5
14851 echo "${ECHO_T}$ac_res" >&6; }
14853 # Is the header compilable?
14854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14856 cat >conftest.$ac_ext <<_ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14862 $ac_includes_default
14863 #include <$ac_header>
14865 rm -f conftest.$ac_objext
14866 if { (ac_try="$ac_compile"
14867 case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_compile") 2>conftest.er1
14874 grep -v '^ *+' conftest.er1 >conftest.err
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14880 { (case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_try") 2>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; } &&
14889 { ac_try='test -s conftest.$ac_objext'
14890 { (case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_try") 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 ac_header_compiler=yes
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ac_header_compiler=no
14907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14909 echo "${ECHO_T}$ac_header_compiler" >&6; }
14911 # Is the header present?
14912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14914 cat >conftest.$ac_ext <<_ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14920 #include <$ac_header>
14922 if { (ac_try="$ac_cpp conftest.$ac_ext"
14923 case "(($ac_try" in
14924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925 *) ac_try_echo=$ac_try;;
14927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14930 grep -v '^ *+' conftest.er1 >conftest.err
14932 cat conftest.err >&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } >/dev/null; then
14935 if test -s conftest.err; then
14936 ac_cpp_err=$ac_c_preproc_warn_flag
14937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14944 if test -z "$ac_cpp_err"; then
14945 ac_header_preproc=yes
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14950 ac_header_preproc=no
14953 rm -f conftest.err conftest.$ac_ext
14954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14955 echo "${ECHO_T}$ac_header_preproc" >&6; }
14957 # So? What about this header?
14958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14964 ac_header_preproc=yes
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14980 ## ----------------------------------- ##
14981 ## Report this to llvmbugs@cs.uiuc.edu ##
14982 ## ----------------------------------- ##
14984 ) | sed "s/^/$as_me: WARNING: /" >&2
14987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 eval "$as_ac_Header=\$ac_header_preproc"
14994 ac_res=`eval echo '${'$as_ac_Header'}'`
14995 { echo "$as_me:$LINENO: result: $ac_res" >&5
14996 echo "${ECHO_T}$ac_res" >&6; }
14999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15000 cat >>confdefs.h <<_ACEOF
15001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15012 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15019 echo $ECHO_N "(cached) $ECHO_C" >&6
15021 ac_res=`eval echo '${'$as_ac_Header'}'`
15022 { echo "$as_me:$LINENO: result: $ac_res" >&5
15023 echo "${ECHO_T}$ac_res" >&6; }
15025 # Is the header compilable?
15026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15028 cat >conftest.$ac_ext <<_ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15034 $ac_includes_default
15035 #include <$ac_header>
15037 rm -f conftest.$ac_objext
15038 if { (ac_try="$ac_compile"
15039 case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044 (eval "$ac_compile") 2>conftest.er1
15046 grep -v '^ *+' conftest.er1 >conftest.err
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15052 { (case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_try") 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; } &&
15061 { ac_try='test -s conftest.$ac_objext'
15062 { (case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_try") 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
15071 ac_header_compiler=yes
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15076 ac_header_compiler=no
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15081 echo "${ECHO_T}$ac_header_compiler" >&6; }
15083 # Is the header present?
15084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15086 cat >conftest.$ac_ext <<_ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 #include <$ac_header>
15094 if { (ac_try="$ac_cpp conftest.$ac_ext"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15102 grep -v '^ *+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } >/dev/null; then
15107 if test -s conftest.err; then
15108 ac_cpp_err=$ac_c_preproc_warn_flag
15109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15116 if test -z "$ac_cpp_err"; then
15117 ac_header_preproc=yes
15119 echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15122 ac_header_preproc=no
15125 rm -f conftest.err conftest.$ac_ext
15126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15127 echo "${ECHO_T}$ac_header_preproc" >&6; }
15129 # So? What about this header?
15130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15136 ac_header_preproc=yes
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15152 ## ----------------------------------- ##
15153 ## Report this to llvmbugs@cs.uiuc.edu ##
15154 ## ----------------------------------- ##
15156 ) | sed "s/^/$as_me: WARNING: /" >&2
15159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15164 eval "$as_ac_Header=\$ac_header_preproc"
15166 ac_res=`eval echo '${'$as_ac_Header'}'`
15167 { echo "$as_me:$LINENO: result: $ac_res" >&5
15168 echo "${ECHO_T}$ac_res" >&6; }
15171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15172 cat >>confdefs.h <<_ACEOF
15173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15181 for ac_header in valgrind/valgrind.h
15183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 ac_res=`eval echo '${'$as_ac_Header'}'`
15191 { echo "$as_me:$LINENO: result: $ac_res" >&5
15192 echo "${ECHO_T}$ac_res" >&6; }
15194 # Is the header compilable?
15195 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15197 cat >conftest.$ac_ext <<_ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15203 $ac_includes_default
15204 #include <$ac_header>
15206 rm -f conftest.$ac_objext
15207 if { (ac_try="$ac_compile"
15208 case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_compile") 2>conftest.er1
15215 grep -v '^ *+' conftest.er1 >conftest.err
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
15220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15221 { (case "(($ac_try" in
15222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223 *) ac_try_echo=$ac_try;;
15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_try") 2>&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; } &&
15230 { ac_try='test -s conftest.$ac_objext'
15231 { (case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_try") 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_header_compiler=yes
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15245 ac_header_compiler=no
15248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15250 echo "${ECHO_T}$ac_header_compiler" >&6; }
15252 # Is the header present?
15253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15255 cat >conftest.$ac_ext <<_ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15261 #include <$ac_header>
15263 if { (ac_try="$ac_cpp conftest.$ac_ext"
15264 case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15271 grep -v '^ *+' conftest.er1 >conftest.err
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } >/dev/null; then
15276 if test -s conftest.err; then
15277 ac_cpp_err=$ac_c_preproc_warn_flag
15278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15285 if test -z "$ac_cpp_err"; then
15286 ac_header_preproc=yes
15288 echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15291 ac_header_preproc=no
15294 rm -f conftest.err conftest.$ac_ext
15295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15296 echo "${ECHO_T}$ac_header_preproc" >&6; }
15298 # So? What about this header?
15299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15305 ac_header_preproc=yes
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15321 ## ----------------------------------- ##
15322 ## Report this to llvmbugs@cs.uiuc.edu ##
15323 ## ----------------------------------- ##
15325 ) | sed "s/^/$as_me: WARNING: /" >&2
15328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 eval "$as_ac_Header=\$ac_header_preproc"
15335 ac_res=`eval echo '${'$as_ac_Header'}'`
15336 { echo "$as_me:$LINENO: result: $ac_res" >&5
15337 echo "${ECHO_T}$ac_res" >&6; }
15340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15341 cat >>confdefs.h <<_ACEOF
15342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15350 for ac_header in fenv.h
15352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 ac_res=`eval echo '${'$as_ac_Header'}'`
15360 { echo "$as_me:$LINENO: result: $ac_res" >&5
15361 echo "${ECHO_T}$ac_res" >&6; }
15363 # Is the header compilable?
15364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15366 cat >conftest.$ac_ext <<_ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15372 $ac_includes_default
15373 #include <$ac_header>
15375 rm -f conftest.$ac_objext
15376 if { (ac_try="$ac_compile"
15377 case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_compile") 2>conftest.er1
15384 grep -v '^ *+' conftest.er1 >conftest.err
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } &&
15389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15390 { (case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395 (eval "$ac_try") 2>&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; } &&
15399 { ac_try='test -s conftest.$ac_objext'
15400 { (case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_try") 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15409 ac_header_compiler=yes
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15414 ac_header_compiler=no
15417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15419 echo "${ECHO_T}$ac_header_compiler" >&6; }
15421 # Is the header present?
15422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15424 cat >conftest.$ac_ext <<_ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h. */
15430 #include <$ac_header>
15432 if { (ac_try="$ac_cpp conftest.$ac_ext"
15433 case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15440 grep -v '^ *+' conftest.er1 >conftest.err
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } >/dev/null; then
15445 if test -s conftest.err; then
15446 ac_cpp_err=$ac_c_preproc_warn_flag
15447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15454 if test -z "$ac_cpp_err"; then
15455 ac_header_preproc=yes
15457 echo "$as_me: failed program was:" >&5
15458 sed 's/^/| /' conftest.$ac_ext >&5
15460 ac_header_preproc=no
15463 rm -f conftest.err conftest.$ac_ext
15464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15465 echo "${ECHO_T}$ac_header_preproc" >&6; }
15467 # So? What about this header?
15468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15474 ac_header_preproc=yes
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15490 ## ----------------------------------- ##
15491 ## Report this to llvmbugs@cs.uiuc.edu ##
15492 ## ----------------------------------- ##
15494 ) | sed "s/^/$as_me: WARNING: /" >&2
15497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 eval "$as_ac_Header=\$ac_header_preproc"
15504 ac_res=`eval echo '${'$as_ac_Header'}'`
15505 { echo "$as_me:$LINENO: result: $ac_res" >&5
15506 echo "${ECHO_T}$ac_res" >&6; }
15509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15510 cat >>confdefs.h <<_ACEOF
15511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15518 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15520 for ac_header in pthread.h
15522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 ac_res=`eval echo '${'$as_ac_Header'}'`
15530 { echo "$as_me:$LINENO: result: $ac_res" >&5
15531 echo "${ECHO_T}$ac_res" >&6; }
15533 # Is the header compilable?
15534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 $ac_includes_default
15543 #include <$ac_header>
15545 rm -f conftest.$ac_objext
15546 if { (ac_try="$ac_compile"
15547 case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_compile") 2>conftest.er1
15554 grep -v '^ *+' conftest.er1 >conftest.err
15556 cat conftest.err >&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } &&
15559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15560 { (case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_try") 2>&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; } &&
15569 { ac_try='test -s conftest.$ac_objext'
15570 { (case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_try") 2>&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; }; then
15579 ac_header_compiler=yes
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15584 ac_header_compiler=no
15587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15589 echo "${ECHO_T}$ac_header_compiler" >&6; }
15591 # Is the header present?
15592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15594 cat >conftest.$ac_ext <<_ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 #include <$ac_header>
15602 if { (ac_try="$ac_cpp conftest.$ac_ext"
15603 case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15610 grep -v '^ *+' conftest.er1 >conftest.err
15612 cat conftest.err >&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } >/dev/null; then
15615 if test -s conftest.err; then
15616 ac_cpp_err=$ac_c_preproc_warn_flag
15617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15624 if test -z "$ac_cpp_err"; then
15625 ac_header_preproc=yes
15627 echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15630 ac_header_preproc=no
15633 rm -f conftest.err conftest.$ac_ext
15634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15635 echo "${ECHO_T}$ac_header_preproc" >&6; }
15637 # So? What about this header?
15638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15644 ac_header_preproc=yes
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15660 ## ----------------------------------- ##
15661 ## Report this to llvmbugs@cs.uiuc.edu ##
15662 ## ----------------------------------- ##
15664 ) | sed "s/^/$as_me: WARNING: /" >&2
15667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 eval "$as_ac_Header=\$ac_header_preproc"
15674 ac_res=`eval echo '${'$as_ac_Header'}'`
15675 { echo "$as_me:$LINENO: result: $ac_res" >&5
15676 echo "${ECHO_T}$ac_res" >&6; }
15679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15680 cat >>confdefs.h <<_ACEOF
15681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15697 if test "$llvm_cv_enable_libffi" = "yes" ; then
15700 for ac_header in ffi.h ffi/ffi.h
15702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15709 ac_res=`eval echo '${'$as_ac_Header'}'`
15710 { echo "$as_me:$LINENO: result: $ac_res" >&5
15711 echo "${ECHO_T}$ac_res" >&6; }
15713 # Is the header compilable?
15714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15716 cat >conftest.$ac_ext <<_ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15722 $ac_includes_default
15723 #include <$ac_header>
15725 rm -f conftest.$ac_objext
15726 if { (ac_try="$ac_compile"
15727 case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_compile") 2>conftest.er1
15734 grep -v '^ *+' conftest.er1 >conftest.err
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15740 { (case "(($ac_try" in
15741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742 *) ac_try_echo=$ac_try;;
15744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745 (eval "$ac_try") 2>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; } &&
15749 { ac_try='test -s conftest.$ac_objext'
15750 { (case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_try") 2>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15759 ac_header_compiler=yes
15761 echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15764 ac_header_compiler=no
15767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15769 echo "${ECHO_T}$ac_header_compiler" >&6; }
15771 # Is the header present?
15772 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15774 cat >conftest.$ac_ext <<_ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 #include <$ac_header>
15782 if { (ac_try="$ac_cpp conftest.$ac_ext"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } >/dev/null; then
15795 if test -s conftest.err; then
15796 ac_cpp_err=$ac_c_preproc_warn_flag
15797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15804 if test -z "$ac_cpp_err"; then
15805 ac_header_preproc=yes
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15810 ac_header_preproc=no
15813 rm -f conftest.err conftest.$ac_ext
15814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15815 echo "${ECHO_T}$ac_header_preproc" >&6; }
15817 # So? What about this header?
15818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15824 ac_header_preproc=yes
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15840 ## ----------------------------------- ##
15841 ## Report this to llvmbugs@cs.uiuc.edu ##
15842 ## ----------------------------------- ##
15844 ) | sed "s/^/$as_me: WARNING: /" >&2
15847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15852 eval "$as_ac_Header=\$ac_header_preproc"
15854 ac_res=`eval echo '${'$as_ac_Header'}'`
15855 { echo "$as_me:$LINENO: result: $ac_res" >&5
15856 echo "${ECHO_T}$ac_res" >&6; }
15859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15860 cat >>confdefs.h <<_ACEOF
15861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15871 for ac_header in CrashReporterClient.h
15873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 ac_res=`eval echo '${'$as_ac_Header'}'`
15881 { echo "$as_me:$LINENO: result: $ac_res" >&5
15882 echo "${ECHO_T}$ac_res" >&6; }
15884 # Is the header compilable?
15885 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15887 cat >conftest.$ac_ext <<_ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 $ac_includes_default
15894 #include <$ac_header>
15896 rm -f conftest.$ac_objext
15897 if { (ac_try="$ac_compile"
15898 case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_compile") 2>conftest.er1
15905 grep -v '^ *+' conftest.er1 >conftest.err
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15911 { (case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_try") 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; } &&
15920 { ac_try='test -s conftest.$ac_objext'
15921 { (case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_try") 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }; then
15930 ac_header_compiler=yes
15932 echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15935 ac_header_compiler=no
15938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15940 echo "${ECHO_T}$ac_header_compiler" >&6; }
15942 # Is the header present?
15943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15945 cat >conftest.$ac_ext <<_ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 #include <$ac_header>
15953 if { (ac_try="$ac_cpp conftest.$ac_ext"
15954 case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15961 grep -v '^ *+' conftest.er1 >conftest.err
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } >/dev/null; then
15966 if test -s conftest.err; then
15967 ac_cpp_err=$ac_c_preproc_warn_flag
15968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15975 if test -z "$ac_cpp_err"; then
15976 ac_header_preproc=yes
15978 echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15981 ac_header_preproc=no
15984 rm -f conftest.err conftest.$ac_ext
15985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15986 echo "${ECHO_T}$ac_header_preproc" >&6; }
15988 # So? What about this header?
15989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15995 ac_header_preproc=yes
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16011 ## ----------------------------------- ##
16012 ## Report this to llvmbugs@cs.uiuc.edu ##
16013 ## ----------------------------------- ##
16015 ) | sed "s/^/$as_me: WARNING: /" >&2
16018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 eval "$as_ac_Header=\$ac_header_preproc"
16025 ac_res=`eval echo '${'$as_ac_Header'}'`
16026 { echo "$as_me:$LINENO: result: $ac_res" >&5
16027 echo "${ECHO_T}$ac_res" >&6; }
16030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16031 cat >>confdefs.h <<_ACEOF
16032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16040 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16041 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16042 cat >conftest.$ac_ext <<_ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16048 extern const char *__crashreporter_info__;
16050 __crashreporter_info__ = "test";
16055 rm -f conftest.$ac_objext conftest$ac_exeext
16056 if { (ac_try="$ac_link"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_link") 2>conftest.er1
16064 grep -v '^ *+' conftest.er1 >conftest.err
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } &&
16069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; } &&
16079 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 { echo "$as_me:$LINENO: result: yes" >&5
16090 echo "${ECHO_T}yes" >&6; }
16092 cat >>confdefs.h <<\_ACEOF
16093 #define HAVE_CRASHREPORTER_INFO 1
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16100 { echo "$as_me:$LINENO: result: no" >&5
16101 echo "${ECHO_T}no" >&6; }
16103 cat >>confdefs.h <<\_ACEOF
16104 #define HAVE_CRASHREPORTER_INFO 0
16109 rm -f core conftest.err conftest.$ac_objext \
16110 conftest$ac_exeext conftest.$ac_ext
16115 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16116 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16117 if test "${ac_cv_huge_val_sanity+set}" = set; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 ac_cpp='$CXXCPP $CPPFLAGS'
16123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16127 ac_save_CXXFLAGS=$CXXFLAGS
16129 if test "$cross_compiling" = yes; then
16130 ac_cv_huge_val_sanity=yes
16132 cat >conftest.$ac_ext <<_ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16142 double x = HUGE_VAL; return x != x;
16147 rm -f conftest$ac_exeext
16148 if { (ac_try="$ac_link"
16149 case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_link") 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16158 { (case "(($ac_try" in
16159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160 *) ac_try_echo=$ac_try;;
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163 (eval "$ac_try") 2>&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16167 ac_cv_huge_val_sanity=yes
16169 echo "$as_me: program exited with status $ac_status" >&5
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16173 ( exit $ac_status )
16174 ac_cv_huge_val_sanity=no
16176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16180 CXXFLAGS=$ac_save_CXXFLAGS
16182 ac_cpp='$CPP $CPPFLAGS'
16183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16189 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16190 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16191 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16194 { echo "$as_me:$LINENO: checking for pid_t" >&5
16195 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16196 if test "${ac_cv_type_pid_t+set}" = set; then
16197 echo $ECHO_N "(cached) $ECHO_C" >&6
16199 cat >conftest.$ac_ext <<_ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h. */
16205 $ac_includes_default
16206 typedef pid_t ac__type_new_;
16210 if ((ac__type_new_ *) 0)
16212 if (sizeof (ac__type_new_))
16218 rm -f conftest.$ac_objext
16219 if { (ac_try="$ac_compile"
16220 case "(($ac_try" in
16221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222 *) ac_try_echo=$ac_try;;
16224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225 (eval "$ac_compile") 2>conftest.er1
16227 grep -v '^ *+' conftest.er1 >conftest.err
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16233 { (case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_try") 2>&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; } &&
16242 { ac_try='test -s conftest.$ac_objext'
16243 { (case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_try") 2>&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; }; then
16252 ac_cv_type_pid_t=yes
16254 echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16257 ac_cv_type_pid_t=no
16260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16263 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16264 if test $ac_cv_type_pid_t = yes; then
16268 cat >>confdefs.h <<_ACEOF
16274 { echo "$as_me:$LINENO: checking for size_t" >&5
16275 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16276 if test "${ac_cv_type_size_t+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 cat >conftest.$ac_ext <<_ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 $ac_includes_default
16286 typedef size_t ac__type_new_;
16290 if ((ac__type_new_ *) 0)
16292 if (sizeof (ac__type_new_))
16298 rm -f conftest.$ac_objext
16299 if { (ac_try="$ac_compile"
16300 case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_compile") 2>conftest.er1
16307 grep -v '^ *+' conftest.er1 >conftest.err
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16313 { (case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_try") 2>&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; } &&
16322 { ac_try='test -s conftest.$ac_objext'
16323 { (case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_try") 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16332 ac_cv_type_size_t=yes
16334 echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 ac_cv_type_size_t=no
16340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16342 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16343 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16344 if test $ac_cv_type_size_t = yes; then
16348 cat >>confdefs.h <<_ACEOF
16349 #define size_t unsigned int
16355 cat >>confdefs.h <<_ACEOF
16356 #define RETSIGTYPE void
16359 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16360 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16361 if test "${ac_cv_struct_tm+set}" = set; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 cat >conftest.$ac_ext <<_ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16370 #include <sys/types.h>
16376 struct tm *tp; tp->tm_sec;
16381 rm -f conftest.$ac_objext
16382 if { (ac_try="$ac_compile"
16383 case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_compile") 2>conftest.er1
16390 grep -v '^ *+' conftest.er1 >conftest.err
16392 cat conftest.err >&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } &&
16395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16396 { (case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_try") 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try='test -s conftest.$ac_objext'
16406 { (case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_try") 2>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; }; then
16415 ac_cv_struct_tm=time.h
16417 echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16420 ac_cv_struct_tm=sys/time.h
16423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16425 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16426 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16427 if test $ac_cv_struct_tm = sys/time.h; then
16429 cat >>confdefs.h <<\_ACEOF
16430 #define TM_IN_SYS_TIME 1
16435 { echo "$as_me:$LINENO: checking for int64_t" >&5
16436 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16437 if test "${ac_cv_type_int64_t+set}" = set; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16440 cat >conftest.$ac_ext <<_ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h. */
16446 $ac_includes_default
16447 typedef int64_t ac__type_new_;
16451 if ((ac__type_new_ *) 0)
16453 if (sizeof (ac__type_new_))
16459 rm -f conftest.$ac_objext
16460 if { (ac_try="$ac_compile"
16461 case "(($ac_try" in
16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_compile") 2>conftest.er1
16468 grep -v '^ *+' conftest.er1 >conftest.err
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
16473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16474 { (case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_try") 2>&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; } &&
16483 { ac_try='test -s conftest.$ac_objext'
16484 { (case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_try") 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_cv_type_int64_t=yes
16495 echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 ac_cv_type_int64_t=no
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16503 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16504 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16505 if test $ac_cv_type_int64_t = yes; then
16507 cat >>confdefs.h <<_ACEOF
16508 #define HAVE_INT64_T 1
16513 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16514 echo "$as_me: error: Type int64_t required but not found" >&2;}
16515 { (exit 1); exit 1; }; }
16518 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16519 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16520 if test "${ac_cv_type_uint64_t+set}" = set; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16523 cat >conftest.$ac_ext <<_ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h. */
16529 $ac_includes_default
16530 typedef uint64_t ac__type_new_;
16534 if ((ac__type_new_ *) 0)
16536 if (sizeof (ac__type_new_))
16542 rm -f conftest.$ac_objext
16543 if { (ac_try="$ac_compile"
16544 case "(($ac_try" in
16545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546 *) ac_try_echo=$ac_try;;
16548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549 (eval "$ac_compile") 2>conftest.er1
16551 grep -v '^ *+' conftest.er1 >conftest.err
16553 cat conftest.err >&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } &&
16556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16557 { (case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_try") 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } &&
16566 { ac_try='test -s conftest.$ac_objext'
16567 { (case "(($ac_try" in
16568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569 *) ac_try_echo=$ac_try;;
16571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572 (eval "$ac_try") 2>&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16576 ac_cv_type_uint64_t=yes
16578 echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16581 ac_cv_type_uint64_t=no
16584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16586 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16587 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16588 if test $ac_cv_type_uint64_t = yes; then
16590 cat >>confdefs.h <<_ACEOF
16591 #define HAVE_UINT64_T 1
16596 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16597 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16598 if test "${ac_cv_type_u_int64_t+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16601 cat >conftest.$ac_ext <<_ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h. */
16607 $ac_includes_default
16608 typedef u_int64_t ac__type_new_;
16612 if ((ac__type_new_ *) 0)
16614 if (sizeof (ac__type_new_))
16620 rm -f conftest.$ac_objext
16621 if { (ac_try="$ac_compile"
16622 case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_compile") 2>conftest.er1
16629 grep -v '^ *+' conftest.er1 >conftest.err
16631 cat conftest.err >&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } &&
16634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16635 { (case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_try") 2>&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; } &&
16644 { ac_try='test -s conftest.$ac_objext'
16645 { (case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_try") 2>&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
16654 ac_cv_type_u_int64_t=yes
16656 echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16659 ac_cv_type_u_int64_t=no
16662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16665 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16666 if test $ac_cv_type_u_int64_t = yes; then
16668 cat >>confdefs.h <<_ACEOF
16669 #define HAVE_U_INT64_T 1
16674 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16675 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16676 { (exit 1); exit 1; }; }
16690 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 cat >conftest.$ac_ext <<_ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16706 #define $ac_func innocuous_$ac_func
16708 /* System header to define __stub macros and hopefully few prototypes,
16709 which can conflict with char $ac_func (); below.
16710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16711 <limits.h> exists even on freestanding compilers. */
16714 # include <limits.h>
16716 # include <assert.h>
16721 /* Override any GCC internal prototype to avoid an error.
16722 Use char because int might match the return type of a GCC
16723 builtin and then its argument prototype would still apply. */
16728 /* The GNU C library defines this for functions which it implements
16729 to always fail with ENOSYS. Some functions are actually named
16730 something starting with __ and the normal name is an alias. */
16731 #if defined __stub_$ac_func || defined __stub___$ac_func
16738 return $ac_func ();
16743 rm -f conftest.$ac_objext conftest$ac_exeext
16744 if { (ac_try="$ac_link"
16745 case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_link") 2>conftest.er1
16752 grep -v '^ *+' conftest.er1 >conftest.err
16754 cat conftest.err >&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); } &&
16757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16758 { (case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_try") 2>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; } &&
16767 { ac_try='test -s conftest$ac_exeext'
16768 { (case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_try") 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 eval "$as_ac_var=yes"
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 eval "$as_ac_var=no"
16785 rm -f core conftest.err conftest.$ac_objext \
16786 conftest$ac_exeext conftest.$ac_ext
16788 ac_res=`eval echo '${'$as_ac_var'}'`
16789 { echo "$as_me:$LINENO: result: $ac_res" >&5
16790 echo "${ECHO_T}$ac_res" >&6; }
16791 if test `eval echo '${'$as_ac_var'}'` = yes; then
16792 cat >>confdefs.h <<_ACEOF
16793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16803 for ac_func in powf fmodf strtof round
16805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16811 cat >conftest.$ac_ext <<_ACEOF
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
16816 /* end confdefs.h. */
16817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16819 #define $ac_func innocuous_$ac_func
16821 /* System header to define __stub macros and hopefully few prototypes,
16822 which can conflict with char $ac_func (); below.
16823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16824 <limits.h> exists even on freestanding compilers. */
16827 # include <limits.h>
16829 # include <assert.h>
16834 /* Override any GCC internal prototype to avoid an error.
16835 Use char because int might match the return type of a GCC
16836 builtin and then its argument prototype would still apply. */
16841 /* The GNU C library defines this for functions which it implements
16842 to always fail with ENOSYS. Some functions are actually named
16843 something starting with __ and the normal name is an alias. */
16844 #if defined __stub_$ac_func || defined __stub___$ac_func
16851 return $ac_func ();
16856 rm -f conftest.$ac_objext conftest$ac_exeext
16857 if { (ac_try="$ac_link"
16858 case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_link") 2>conftest.er1
16865 grep -v '^ *+' conftest.er1 >conftest.err
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16871 { (case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_try") 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try='test -s conftest$ac_exeext'
16881 { (case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_try") 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 eval "$as_ac_var=yes"
16892 echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16895 eval "$as_ac_var=no"
16898 rm -f core conftest.err conftest.$ac_objext \
16899 conftest$ac_exeext conftest.$ac_ext
16901 ac_res=`eval echo '${'$as_ac_var'}'`
16902 { echo "$as_me:$LINENO: result: $ac_res" >&5
16903 echo "${ECHO_T}$ac_res" >&6; }
16904 if test `eval echo '${'$as_ac_var'}'` = yes; then
16905 cat >>confdefs.h <<_ACEOF
16906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16917 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16923 echo $ECHO_N "(cached) $ECHO_C" >&6
16925 cat >conftest.$ac_ext <<_ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h. */
16931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16933 #define $ac_func innocuous_$ac_func
16935 /* System header to define __stub macros and hopefully few prototypes,
16936 which can conflict with char $ac_func (); below.
16937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16938 <limits.h> exists even on freestanding compilers. */
16941 # include <limits.h>
16943 # include <assert.h>
16948 /* Override any GCC internal prototype to avoid an error.
16949 Use char because int might match the return type of a GCC
16950 builtin and then its argument prototype would still apply. */
16955 /* The GNU C library defines this for functions which it implements
16956 to always fail with ENOSYS. Some functions are actually named
16957 something starting with __ and the normal name is an alias. */
16958 #if defined __stub_$ac_func || defined __stub___$ac_func
16965 return $ac_func ();
16970 rm -f conftest.$ac_objext conftest$ac_exeext
16971 if { (ac_try="$ac_link"
16972 case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_link") 2>conftest.er1
16979 grep -v '^ *+' conftest.er1 >conftest.err
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16985 { (case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_try") 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest$ac_exeext'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; }; then
17004 eval "$as_ac_var=yes"
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 eval "$as_ac_var=no"
17012 rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17015 ac_res=`eval echo '${'$as_ac_var'}'`
17016 { echo "$as_me:$LINENO: result: $ac_res" >&5
17017 echo "${ECHO_T}$ac_res" >&6; }
17018 if test `eval echo '${'$as_ac_var'}'` = yes; then
17019 cat >>confdefs.h <<_ACEOF
17020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17029 for ac_func in isatty mkdtemp mkstemp
17031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17032 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17037 cat >conftest.$ac_ext <<_ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17045 #define $ac_func innocuous_$ac_func
17047 /* System header to define __stub macros and hopefully few prototypes,
17048 which can conflict with char $ac_func (); below.
17049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17050 <limits.h> exists even on freestanding compilers. */
17053 # include <limits.h>
17055 # include <assert.h>
17060 /* Override any GCC internal prototype to avoid an error.
17061 Use char because int might match the return type of a GCC
17062 builtin and then its argument prototype would still apply. */
17067 /* The GNU C library defines this for functions which it implements
17068 to always fail with ENOSYS. Some functions are actually named
17069 something starting with __ and the normal name is an alias. */
17070 #if defined __stub_$ac_func || defined __stub___$ac_func
17077 return $ac_func ();
17082 rm -f conftest.$ac_objext conftest$ac_exeext
17083 if { (ac_try="$ac_link"
17084 case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_link") 2>conftest.er1
17091 grep -v '^ *+' conftest.er1 >conftest.err
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } &&
17096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17097 { (case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_try") 2>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; } &&
17106 { ac_try='test -s conftest$ac_exeext'
17107 { (case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_try") 2>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 eval "$as_ac_var=yes"
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 eval "$as_ac_var=no"
17124 rm -f core conftest.err conftest.$ac_objext \
17125 conftest$ac_exeext conftest.$ac_ext
17127 ac_res=`eval echo '${'$as_ac_var'}'`
17128 { echo "$as_me:$LINENO: result: $ac_res" >&5
17129 echo "${ECHO_T}$ac_res" >&6; }
17130 if test `eval echo '${'$as_ac_var'}'` = yes; then
17131 cat >>confdefs.h <<_ACEOF
17132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17144 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
17152 cat >conftest.$ac_ext <<_ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17160 #define $ac_func innocuous_$ac_func
17162 /* System header to define __stub macros and hopefully few prototypes,
17163 which can conflict with char $ac_func (); below.
17164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17165 <limits.h> exists even on freestanding compilers. */
17168 # include <limits.h>
17170 # include <assert.h>
17175 /* Override any GCC internal prototype to avoid an error.
17176 Use char because int might match the return type of a GCC
17177 builtin and then its argument prototype would still apply. */
17182 /* The GNU C library defines this for functions which it implements
17183 to always fail with ENOSYS. Some functions are actually named
17184 something starting with __ and the normal name is an alias. */
17185 #if defined __stub_$ac_func || defined __stub___$ac_func
17192 return $ac_func ();
17197 rm -f conftest.$ac_objext conftest$ac_exeext
17198 if { (ac_try="$ac_link"
17199 case "(($ac_try" in
17200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201 *) ac_try_echo=$ac_try;;
17203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204 (eval "$ac_link") 2>conftest.er1
17206 grep -v '^ *+' conftest.er1 >conftest.err
17208 cat conftest.err >&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } &&
17211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17212 { (case "(($ac_try" in
17213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214 *) ac_try_echo=$ac_try;;
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217 (eval "$ac_try") 2>&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; } &&
17221 { ac_try='test -s conftest$ac_exeext'
17222 { (case "(($ac_try" in
17223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224 *) ac_try_echo=$ac_try;;
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227 (eval "$ac_try") 2>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; }; then
17231 eval "$as_ac_var=yes"
17233 echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17236 eval "$as_ac_var=no"
17239 rm -f core conftest.err conftest.$ac_objext \
17240 conftest$ac_exeext conftest.$ac_ext
17242 ac_res=`eval echo '${'$as_ac_var'}'`
17243 { echo "$as_me:$LINENO: result: $ac_res" >&5
17244 echo "${ECHO_T}$ac_res" >&6; }
17245 if test `eval echo '${'$as_ac_var'}'` = yes; then
17246 cat >>confdefs.h <<_ACEOF
17247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17256 for ac_func in strerror strerror_r setenv
17258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17264 cat >conftest.$ac_ext <<_ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17272 #define $ac_func innocuous_$ac_func
17274 /* System header to define __stub macros and hopefully few prototypes,
17275 which can conflict with char $ac_func (); below.
17276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17277 <limits.h> exists even on freestanding compilers. */
17280 # include <limits.h>
17282 # include <assert.h>
17287 /* Override any GCC internal prototype to avoid an error.
17288 Use char because int might match the return type of a GCC
17289 builtin and then its argument prototype would still apply. */
17294 /* The GNU C library defines this for functions which it implements
17295 to always fail with ENOSYS. Some functions are actually named
17296 something starting with __ and the normal name is an alias. */
17297 #if defined __stub_$ac_func || defined __stub___$ac_func
17304 return $ac_func ();
17309 rm -f conftest.$ac_objext conftest$ac_exeext
17310 if { (ac_try="$ac_link"
17311 case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_link") 2>conftest.er1
17318 grep -v '^ *+' conftest.er1 >conftest.err
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
17323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17324 { (case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_try") 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; } &&
17333 { ac_try='test -s conftest$ac_exeext'
17334 { (case "(($ac_try" in
17335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336 *) ac_try_echo=$ac_try;;
17338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339 (eval "$ac_try") 2>&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 eval "$as_ac_var=yes"
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17348 eval "$as_ac_var=no"
17351 rm -f core conftest.err conftest.$ac_objext \
17352 conftest$ac_exeext conftest.$ac_ext
17354 ac_res=`eval echo '${'$as_ac_var'}'`
17355 { echo "$as_me:$LINENO: result: $ac_res" >&5
17356 echo "${ECHO_T}$ac_res" >&6; }
17357 if test `eval echo '${'$as_ac_var'}'` = yes; then
17358 cat >>confdefs.h <<_ACEOF
17359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17369 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17377 cat >conftest.$ac_ext <<_ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17385 #define $ac_func innocuous_$ac_func
17387 /* System header to define __stub macros and hopefully few prototypes,
17388 which can conflict with char $ac_func (); below.
17389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17390 <limits.h> exists even on freestanding compilers. */
17393 # include <limits.h>
17395 # include <assert.h>
17400 /* Override any GCC internal prototype to avoid an error.
17401 Use char because int might match the return type of a GCC
17402 builtin and then its argument prototype would still apply. */
17407 /* The GNU C library defines this for functions which it implements
17408 to always fail with ENOSYS. Some functions are actually named
17409 something starting with __ and the normal name is an alias. */
17410 #if defined __stub_$ac_func || defined __stub___$ac_func
17417 return $ac_func ();
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_link") 2>conftest.er1
17431 grep -v '^ *+' conftest.er1 >conftest.err
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17437 { (case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_try") 2>&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; } &&
17446 { ac_try='test -s conftest$ac_exeext'
17447 { (case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_try") 2>&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 eval "$as_ac_var=yes"
17458 echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17461 eval "$as_ac_var=no"
17464 rm -f core conftest.err conftest.$ac_objext \
17465 conftest$ac_exeext conftest.$ac_ext
17467 ac_res=`eval echo '${'$as_ac_var'}'`
17468 { echo "$as_me:$LINENO: result: $ac_res" >&5
17469 echo "${ECHO_T}$ac_res" >&6; }
17470 if test `eval echo '${'$as_ac_var'}'` = yes; then
17471 cat >>confdefs.h <<_ACEOF
17472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17483 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 cat >conftest.$ac_ext <<_ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17499 #define $ac_func innocuous_$ac_func
17501 /* System header to define __stub macros and hopefully few prototypes,
17502 which can conflict with char $ac_func (); below.
17503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17504 <limits.h> exists even on freestanding compilers. */
17507 # include <limits.h>
17509 # include <assert.h>
17514 /* Override any GCC internal prototype to avoid an error.
17515 Use char because int might match the return type of a GCC
17516 builtin and then its argument prototype would still apply. */
17521 /* The GNU C library defines this for functions which it implements
17522 to always fail with ENOSYS. Some functions are actually named
17523 something starting with __ and the normal name is an alias. */
17524 #if defined __stub_$ac_func || defined __stub___$ac_func
17531 return $ac_func ();
17536 rm -f conftest.$ac_objext conftest$ac_exeext
17537 if { (ac_try="$ac_link"
17538 case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_link") 2>conftest.er1
17545 grep -v '^ *+' conftest.er1 >conftest.err
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
17550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17551 { (case "(($ac_try" in
17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553 *) ac_try_echo=$ac_try;;
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556 (eval "$ac_try") 2>&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; } &&
17560 { ac_try='test -s conftest$ac_exeext'
17561 { (case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
17570 eval "$as_ac_var=yes"
17572 echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17575 eval "$as_ac_var=no"
17578 rm -f core conftest.err conftest.$ac_objext \
17579 conftest$ac_exeext conftest.$ac_ext
17581 ac_res=`eval echo '${'$as_ac_var'}'`
17582 { echo "$as_me:$LINENO: result: $ac_res" >&5
17583 echo "${ECHO_T}$ac_res" >&6; }
17584 if test `eval echo '${'$as_ac_var'}'` = yes; then
17585 cat >>confdefs.h <<_ACEOF
17586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17592 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17593 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17594 if test "${llvm_cv_c_printf_a+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17598 ac_cpp='$CPP $CPPFLAGS'
17599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17603 if test "$cross_compiling" = yes; then
17604 llvmac_cv_c_printf_a=no
17606 cat >conftest.$ac_ext <<_ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h. */
17615 #include <stdlib.h>
17621 volatile double A, B;
17625 sprintf(Buffer, "%a", A);
17629 if (A != 0x1.999999999999ap-4)
17636 rm -f conftest$ac_exeext
17637 if { (ac_try="$ac_link"
17638 case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_link") 2>&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; }; then
17656 llvm_cv_c_printf_a=yes
17658 echo "$as_me: program exited with status $ac_status" >&5
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 ( exit $ac_status )
17663 llvmac_cv_c_printf_a=no
17665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17670 ac_cpp='$CPP $CPPFLAGS'
17671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17676 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17677 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17678 if test "$llvm_cv_c_printf_a" = "yes"; then
17680 cat >>confdefs.h <<\_ACEOF
17681 #define HAVE_PRINTF_A 1
17687 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17688 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17689 if test "${ac_cv_func_rand48+set}" = set; then
17690 echo $ECHO_N "(cached) $ECHO_C" >&6
17693 ac_cpp='$CXXCPP $CPPFLAGS'
17694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17698 cat >conftest.$ac_ext <<_ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17704 #include <stdlib.h>
17708 srand48(0);lrand48();drand48();
17713 rm -f conftest.$ac_objext
17714 if { (ac_try="$ac_compile"
17715 case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_compile") 2>conftest.er1
17722 grep -v '^ *+' conftest.er1 >conftest.err
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17728 { (case "(($ac_try" in
17729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17730 *) ac_try_echo=$ac_try;;
17732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17733 (eval "$ac_try") 2>&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; } &&
17737 { ac_try='test -s conftest.$ac_objext'
17738 { (case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_try") 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
17747 ac_cv_func_rand48=yes
17749 echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17752 ac_cv_func_rand48=no
17755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17757 ac_cpp='$CPP $CPPFLAGS'
17758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17763 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17764 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17766 if test "$ac_cv_func_rand48" = "yes" ; then
17768 cat >>confdefs.h <<\_ACEOF
17769 #define HAVE_RAND48 1
17775 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17776 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17777 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 cat >conftest.$ac_ext <<_ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786 $ac_includes_default
17791 char *p = (char *) strerror_s;
17799 rm -f conftest.$ac_objext
17800 if { (ac_try="$ac_compile"
17801 case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806 (eval "$ac_compile") 2>conftest.er1
17808 grep -v '^ *+' conftest.er1 >conftest.err
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
17813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17814 { (case "(($ac_try" in
17815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816 *) ac_try_echo=$ac_try;;
17818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17819 (eval "$ac_try") 2>&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; } &&
17823 { ac_try='test -s conftest.$ac_objext'
17824 { (case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_try") 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; }; then
17833 ac_cv_have_decl_strerror_s=yes
17835 echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17838 ac_cv_have_decl_strerror_s=no
17841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17843 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17844 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17845 if test $ac_cv_have_decl_strerror_s = yes; then
17847 cat >>confdefs.h <<_ACEOF
17848 #define HAVE_DECL_STRERROR_S 1
17853 cat >>confdefs.h <<_ACEOF
17854 #define HAVE_DECL_STRERROR_S 0
17862 if test "$llvm_cv_os_type" = "MingW" ; then
17863 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17864 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17865 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17868 ac_check_lib_save_LIBS=$LIBS
17870 cat >conftest.$ac_ext <<_ACEOF
17873 cat confdefs.h >>conftest.$ac_ext
17874 cat >>conftest.$ac_ext <<_ACEOF
17875 /* end confdefs.h. */
17877 /* Override any GCC internal prototype to avoid an error.
17878 Use char because int might match the return type of a GCC
17879 builtin and then its argument prototype would still apply. */
17892 rm -f conftest.$ac_objext conftest$ac_exeext
17893 if { (ac_try="$ac_link"
17894 case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_link") 2>conftest.er1
17901 grep -v '^ *+' conftest.er1 >conftest.err
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } &&
17906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907 { (case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_try") 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest$ac_exeext'
17917 { (case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922 (eval "$ac_try") 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 ac_cv_lib_gcc__alloca=yes
17928 echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17931 ac_cv_lib_gcc__alloca=no
17934 rm -f core conftest.err conftest.$ac_objext \
17935 conftest$ac_exeext conftest.$ac_ext
17936 LIBS=$ac_check_lib_save_LIBS
17938 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17939 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17940 if test $ac_cv_lib_gcc__alloca = yes; then
17942 cat >>confdefs.h <<\_ACEOF
17943 #define HAVE__ALLOCA 1
17948 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17949 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17950 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17953 ac_check_lib_save_LIBS=$LIBS
17955 cat >conftest.$ac_ext <<_ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17962 /* Override any GCC internal prototype to avoid an error.
17963 Use char because int might match the return type of a GCC
17964 builtin and then its argument prototype would still apply. */
17972 return __alloca ();
17977 rm -f conftest.$ac_objext conftest$ac_exeext
17978 if { (ac_try="$ac_link"
17979 case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_link") 2>conftest.er1
17986 grep -v '^ *+' conftest.er1 >conftest.err
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17992 { (case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_try") 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest$ac_exeext'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 ac_cv_lib_gcc___alloca=yes
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18016 ac_cv_lib_gcc___alloca=no
18019 rm -f core conftest.err conftest.$ac_objext \
18020 conftest$ac_exeext conftest.$ac_ext
18021 LIBS=$ac_check_lib_save_LIBS
18023 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18024 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18025 if test $ac_cv_lib_gcc___alloca = yes; then
18027 cat >>confdefs.h <<\_ACEOF
18028 #define HAVE___ALLOCA 1
18033 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18034 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18035 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18038 ac_check_lib_save_LIBS=$LIBS
18040 cat >conftest.$ac_ext <<_ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18047 /* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18057 return __chkstk ();
18062 rm -f conftest.$ac_objext conftest$ac_exeext
18063 if { (ac_try="$ac_link"
18064 case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_link") 2>conftest.er1
18071 grep -v '^ *+' conftest.er1 >conftest.err
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } &&
18076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18077 { (case "(($ac_try" in
18078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079 *) ac_try_echo=$ac_try;;
18081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082 (eval "$ac_try") 2>&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; } &&
18086 { ac_try='test -s conftest$ac_exeext'
18087 { (case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_try") 2>&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
18096 ac_cv_lib_gcc___chkstk=yes
18098 echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18101 ac_cv_lib_gcc___chkstk=no
18104 rm -f core conftest.err conftest.$ac_objext \
18105 conftest$ac_exeext conftest.$ac_ext
18106 LIBS=$ac_check_lib_save_LIBS
18108 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18109 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18110 if test $ac_cv_lib_gcc___chkstk = yes; then
18112 cat >>confdefs.h <<\_ACEOF
18113 #define HAVE___CHKSTK 1
18118 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18119 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18120 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 ac_check_lib_save_LIBS=$LIBS
18125 cat >conftest.$ac_ext <<_ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18132 /* Override any GCC internal prototype to avoid an error.
18133 Use char because int might match the return type of a GCC
18134 builtin and then its argument prototype would still apply. */
18142 return ___chkstk ();
18147 rm -f conftest.$ac_objext conftest$ac_exeext
18148 if { (ac_try="$ac_link"
18149 case "(($ac_try" in
18150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18151 *) ac_try_echo=$ac_try;;
18153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18154 (eval "$ac_link") 2>conftest.er1
18156 grep -v '^ *+' conftest.er1 >conftest.err
18158 cat conftest.err >&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } &&
18161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18162 { (case "(($ac_try" in
18163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18164 *) ac_try_echo=$ac_try;;
18166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18167 (eval "$ac_try") 2>&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try='test -s conftest$ac_exeext'
18172 { (case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_try") 2>&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; }; then
18181 ac_cv_lib_gcc____chkstk=yes
18183 echo "$as_me: failed program was:" >&5
18184 sed 's/^/| /' conftest.$ac_ext >&5
18186 ac_cv_lib_gcc____chkstk=no
18189 rm -f core conftest.err conftest.$ac_objext \
18190 conftest$ac_exeext conftest.$ac_ext
18191 LIBS=$ac_check_lib_save_LIBS
18193 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18194 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18195 if test $ac_cv_lib_gcc____chkstk = yes; then
18197 cat >>confdefs.h <<\_ACEOF
18198 #define HAVE____CHKSTK 1
18204 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18205 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18206 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18209 ac_check_lib_save_LIBS=$LIBS
18211 cat >conftest.$ac_ext <<_ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18218 /* Override any GCC internal prototype to avoid an error.
18219 Use char because int might match the return type of a GCC
18220 builtin and then its argument prototype would still apply. */
18228 return __ashldi3 ();
18233 rm -f conftest.$ac_objext conftest$ac_exeext
18234 if { (ac_try="$ac_link"
18235 case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_link") 2>conftest.er1
18242 grep -v '^ *+' conftest.er1 >conftest.err
18244 cat conftest.err >&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } &&
18247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18248 { (case "(($ac_try" in
18249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250 *) ac_try_echo=$ac_try;;
18252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253 (eval "$ac_try") 2>&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; } &&
18257 { ac_try='test -s conftest$ac_exeext'
18258 { (case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263 (eval "$ac_try") 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 ac_cv_lib_gcc___ashldi3=yes
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18272 ac_cv_lib_gcc___ashldi3=no
18275 rm -f core conftest.err conftest.$ac_objext \
18276 conftest$ac_exeext conftest.$ac_ext
18277 LIBS=$ac_check_lib_save_LIBS
18279 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18280 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18281 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18283 cat >>confdefs.h <<\_ACEOF
18284 #define HAVE___ASHLDI3 1
18289 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18290 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18291 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
18294 ac_check_lib_save_LIBS=$LIBS
18296 cat >conftest.$ac_ext <<_ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18303 /* Override any GCC internal prototype to avoid an error.
18304 Use char because int might match the return type of a GCC
18305 builtin and then its argument prototype would still apply. */
18313 return __ashrdi3 ();
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_link") 2>conftest.er1
18327 grep -v '^ *+' conftest.er1 >conftest.err
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18333 { (case "(($ac_try" in
18334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335 *) ac_try_echo=$ac_try;;
18337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338 (eval "$ac_try") 2>&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; } &&
18342 { ac_try='test -s conftest$ac_exeext'
18343 { (case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_try") 2>&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18352 ac_cv_lib_gcc___ashrdi3=yes
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18357 ac_cv_lib_gcc___ashrdi3=no
18360 rm -f core conftest.err conftest.$ac_objext \
18361 conftest$ac_exeext conftest.$ac_ext
18362 LIBS=$ac_check_lib_save_LIBS
18364 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18365 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18366 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18368 cat >>confdefs.h <<\_ACEOF
18369 #define HAVE___ASHRDI3 1
18374 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18375 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18376 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18377 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 ac_check_lib_save_LIBS=$LIBS
18381 cat >conftest.$ac_ext <<_ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h. */
18388 /* Override any GCC internal prototype to avoid an error.
18389 Use char because int might match the return type of a GCC
18390 builtin and then its argument prototype would still apply. */
18398 return __divdi3 ();
18403 rm -f conftest.$ac_objext conftest$ac_exeext
18404 if { (ac_try="$ac_link"
18405 case "(($ac_try" in
18406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407 *) ac_try_echo=$ac_try;;
18409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410 (eval "$ac_link") 2>conftest.er1
18412 grep -v '^ *+' conftest.er1 >conftest.err
18414 cat conftest.err >&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } &&
18417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18418 { (case "(($ac_try" in
18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423 (eval "$ac_try") 2>&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; } &&
18427 { ac_try='test -s conftest$ac_exeext'
18428 { (case "(($ac_try" in
18429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430 *) ac_try_echo=$ac_try;;
18432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433 (eval "$ac_try") 2>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; }; then
18437 ac_cv_lib_gcc___divdi3=yes
18439 echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18442 ac_cv_lib_gcc___divdi3=no
18445 rm -f core conftest.err conftest.$ac_objext \
18446 conftest$ac_exeext conftest.$ac_ext
18447 LIBS=$ac_check_lib_save_LIBS
18449 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18450 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18451 if test $ac_cv_lib_gcc___divdi3 = yes; then
18453 cat >>confdefs.h <<\_ACEOF
18454 #define HAVE___DIVDI3 1
18459 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18460 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18461 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18462 echo $ECHO_N "(cached) $ECHO_C" >&6
18464 ac_check_lib_save_LIBS=$LIBS
18466 cat >conftest.$ac_ext <<_ACEOF
18469 cat confdefs.h >>conftest.$ac_ext
18470 cat >>conftest.$ac_ext <<_ACEOF
18471 /* end confdefs.h. */
18473 /* Override any GCC internal prototype to avoid an error.
18474 Use char because int might match the return type of a GCC
18475 builtin and then its argument prototype would still apply. */
18483 return __fixdfdi ();
18488 rm -f conftest.$ac_objext conftest$ac_exeext
18489 if { (ac_try="$ac_link"
18490 case "(($ac_try" in
18491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492 *) ac_try_echo=$ac_try;;
18494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18495 (eval "$ac_link") 2>conftest.er1
18497 grep -v '^ *+' conftest.er1 >conftest.err
18499 cat conftest.err >&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } &&
18502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18503 { (case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_try") 2>&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; } &&
18512 { ac_try='test -s conftest$ac_exeext'
18513 { (case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_try") 2>&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; }; then
18522 ac_cv_lib_gcc___fixdfdi=yes
18524 echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18527 ac_cv_lib_gcc___fixdfdi=no
18530 rm -f core conftest.err conftest.$ac_objext \
18531 conftest$ac_exeext conftest.$ac_ext
18532 LIBS=$ac_check_lib_save_LIBS
18534 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18535 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18536 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18538 cat >>confdefs.h <<\_ACEOF
18539 #define HAVE___FIXDFDI 1
18544 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18545 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18546 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18547 echo $ECHO_N "(cached) $ECHO_C" >&6
18549 ac_check_lib_save_LIBS=$LIBS
18551 cat >conftest.$ac_ext <<_ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18558 /* Override any GCC internal prototype to avoid an error.
18559 Use char because int might match the return type of a GCC
18560 builtin and then its argument prototype would still apply. */
18568 return __fixsfdi ();
18573 rm -f conftest.$ac_objext conftest$ac_exeext
18574 if { (ac_try="$ac_link"
18575 case "(($ac_try" in
18576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577 *) ac_try_echo=$ac_try;;
18579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580 (eval "$ac_link") 2>conftest.er1
18582 grep -v '^ *+' conftest.er1 >conftest.err
18584 cat conftest.err >&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } &&
18587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18588 { (case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_try") 2>&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; } &&
18597 { ac_try='test -s conftest$ac_exeext'
18598 { (case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_try") 2>&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; }; then
18607 ac_cv_lib_gcc___fixsfdi=yes
18609 echo "$as_me: failed program was:" >&5
18610 sed 's/^/| /' conftest.$ac_ext >&5
18612 ac_cv_lib_gcc___fixsfdi=no
18615 rm -f core conftest.err conftest.$ac_objext \
18616 conftest$ac_exeext conftest.$ac_ext
18617 LIBS=$ac_check_lib_save_LIBS
18619 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18620 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18621 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18623 cat >>confdefs.h <<\_ACEOF
18624 #define HAVE___FIXSFDI 1
18629 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18630 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18631 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18632 echo $ECHO_N "(cached) $ECHO_C" >&6
18634 ac_check_lib_save_LIBS=$LIBS
18636 cat >conftest.$ac_ext <<_ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18643 /* Override any GCC internal prototype to avoid an error.
18644 Use char because int might match the return type of a GCC
18645 builtin and then its argument prototype would still apply. */
18649 char __floatdidf ();
18653 return __floatdidf ();
18658 rm -f conftest.$ac_objext conftest$ac_exeext
18659 if { (ac_try="$ac_link"
18660 case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_link") 2>conftest.er1
18667 grep -v '^ *+' conftest.er1 >conftest.err
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } &&
18672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18673 { (case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_try") 2>&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; } &&
18682 { ac_try='test -s conftest$ac_exeext'
18683 { (case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_try") 2>&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; }; then
18692 ac_cv_lib_gcc___floatdidf=yes
18694 echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18697 ac_cv_lib_gcc___floatdidf=no
18700 rm -f core conftest.err conftest.$ac_objext \
18701 conftest$ac_exeext conftest.$ac_ext
18702 LIBS=$ac_check_lib_save_LIBS
18704 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18705 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18706 if test $ac_cv_lib_gcc___floatdidf = yes; then
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE___FLOATDIDF 1
18714 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18715 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18716 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18719 ac_check_lib_save_LIBS=$LIBS
18721 cat >conftest.$ac_ext <<_ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18728 /* Override any GCC internal prototype to avoid an error.
18729 Use char because int might match the return type of a GCC
18730 builtin and then its argument prototype would still apply. */
18738 return __lshrdi3 ();
18743 rm -f conftest.$ac_objext conftest$ac_exeext
18744 if { (ac_try="$ac_link"
18745 case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_link") 2>conftest.er1
18752 grep -v '^ *+' conftest.er1 >conftest.err
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } &&
18757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18758 { (case "(($ac_try" in
18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763 (eval "$ac_try") 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; } &&
18767 { ac_try='test -s conftest$ac_exeext'
18768 { (case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_try") 2>&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; }; then
18777 ac_cv_lib_gcc___lshrdi3=yes
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18782 ac_cv_lib_gcc___lshrdi3=no
18785 rm -f core conftest.err conftest.$ac_objext \
18786 conftest$ac_exeext conftest.$ac_ext
18787 LIBS=$ac_check_lib_save_LIBS
18789 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18790 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18791 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18793 cat >>confdefs.h <<\_ACEOF
18794 #define HAVE___LSHRDI3 1
18799 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18800 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18801 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 ac_check_lib_save_LIBS=$LIBS
18806 cat >conftest.$ac_ext <<_ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h. */
18813 /* Override any GCC internal prototype to avoid an error.
18814 Use char because int might match the return type of a GCC
18815 builtin and then its argument prototype would still apply. */
18823 return __moddi3 ();
18828 rm -f conftest.$ac_objext conftest$ac_exeext
18829 if { (ac_try="$ac_link"
18830 case "(($ac_try" in
18831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18832 *) ac_try_echo=$ac_try;;
18834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18835 (eval "$ac_link") 2>conftest.er1
18837 grep -v '^ *+' conftest.er1 >conftest.err
18839 cat conftest.err >&5
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); } &&
18842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18843 { (case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_try") 2>&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try='test -s conftest$ac_exeext'
18853 { (case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_try") 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_cv_lib_gcc___moddi3=yes
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 ac_cv_lib_gcc___moddi3=no
18870 rm -f core conftest.err conftest.$ac_objext \
18871 conftest$ac_exeext conftest.$ac_ext
18872 LIBS=$ac_check_lib_save_LIBS
18874 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18875 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18876 if test $ac_cv_lib_gcc___moddi3 = yes; then
18878 cat >>confdefs.h <<\_ACEOF
18879 #define HAVE___MODDI3 1
18884 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18885 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18886 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18889 ac_check_lib_save_LIBS=$LIBS
18891 cat >conftest.$ac_ext <<_ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18898 /* Override any GCC internal prototype to avoid an error.
18899 Use char because int might match the return type of a GCC
18900 builtin and then its argument prototype would still apply. */
18908 return __udivdi3 ();
18913 rm -f conftest.$ac_objext conftest$ac_exeext
18914 if { (ac_try="$ac_link"
18915 case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_link") 2>conftest.er1
18922 grep -v '^ *+' conftest.er1 >conftest.err
18924 cat conftest.err >&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } &&
18927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18928 { (case "(($ac_try" in
18929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930 *) ac_try_echo=$ac_try;;
18932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933 (eval "$ac_try") 2>&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } &&
18937 { ac_try='test -s conftest$ac_exeext'
18938 { (case "(($ac_try" in
18939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940 *) ac_try_echo=$ac_try;;
18942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943 (eval "$ac_try") 2>&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18947 ac_cv_lib_gcc___udivdi3=yes
18949 echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18952 ac_cv_lib_gcc___udivdi3=no
18955 rm -f core conftest.err conftest.$ac_objext \
18956 conftest$ac_exeext conftest.$ac_ext
18957 LIBS=$ac_check_lib_save_LIBS
18959 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18960 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18961 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18963 cat >>confdefs.h <<\_ACEOF
18964 #define HAVE___UDIVDI3 1
18969 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18970 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18971 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 ac_check_lib_save_LIBS=$LIBS
18976 cat >conftest.$ac_ext <<_ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18983 /* Override any GCC internal prototype to avoid an error.
18984 Use char because int might match the return type of a GCC
18985 builtin and then its argument prototype would still apply. */
18993 return __umoddi3 ();
18998 rm -f conftest.$ac_objext conftest$ac_exeext
18999 if { (ac_try="$ac_link"
19000 case "(($ac_try" in
19001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19002 *) ac_try_echo=$ac_try;;
19004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19005 (eval "$ac_link") 2>conftest.er1
19007 grep -v '^ *+' conftest.er1 >conftest.err
19009 cat conftest.err >&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); } &&
19012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19013 { (case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_try") 2>&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; } &&
19022 { ac_try='test -s conftest$ac_exeext'
19023 { (case "(($ac_try" in
19024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025 *) ac_try_echo=$ac_try;;
19027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028 (eval "$ac_try") 2>&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; }; then
19032 ac_cv_lib_gcc___umoddi3=yes
19034 echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19037 ac_cv_lib_gcc___umoddi3=no
19040 rm -f core conftest.err conftest.$ac_objext \
19041 conftest$ac_exeext conftest.$ac_ext
19042 LIBS=$ac_check_lib_save_LIBS
19044 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19045 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19046 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19048 cat >>confdefs.h <<\_ACEOF
19049 #define HAVE___UMODDI3 1
19055 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19056 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19057 if test "${ac_cv_lib_gcc___main+set}" = set; then
19058 echo $ECHO_N "(cached) $ECHO_C" >&6
19060 ac_check_lib_save_LIBS=$LIBS
19062 cat >conftest.$ac_ext <<_ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19069 /* Override any GCC internal prototype to avoid an error.
19070 Use char because int might match the return type of a GCC
19071 builtin and then its argument prototype would still apply. */
19084 rm -f conftest.$ac_objext conftest$ac_exeext
19085 if { (ac_try="$ac_link"
19086 case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_link") 2>conftest.er1
19093 grep -v '^ *+' conftest.er1 >conftest.err
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } &&
19098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19099 { (case "(($ac_try" in
19100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101 *) ac_try_echo=$ac_try;;
19103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104 (eval "$ac_try") 2>&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; } &&
19108 { ac_try='test -s conftest$ac_exeext'
19109 { (case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_try") 2>&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; }; then
19118 ac_cv_lib_gcc___main=yes
19120 echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.$ac_ext >&5
19123 ac_cv_lib_gcc___main=no
19126 rm -f core conftest.err conftest.$ac_objext \
19127 conftest$ac_exeext conftest.$ac_ext
19128 LIBS=$ac_check_lib_save_LIBS
19130 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19131 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19132 if test $ac_cv_lib_gcc___main = yes; then
19134 cat >>confdefs.h <<\_ACEOF
19135 #define HAVE___MAIN 1
19140 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19141 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19142 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19145 ac_check_lib_save_LIBS=$LIBS
19147 cat >conftest.$ac_ext <<_ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h. */
19154 /* Override any GCC internal prototype to avoid an error.
19155 Use char because int might match the return type of a GCC
19156 builtin and then its argument prototype would still apply. */
19164 return __cmpdi2 ();
19169 rm -f conftest.$ac_objext conftest$ac_exeext
19170 if { (ac_try="$ac_link"
19171 case "(($ac_try" in
19172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173 *) ac_try_echo=$ac_try;;
19175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176 (eval "$ac_link") 2>conftest.er1
19178 grep -v '^ *+' conftest.er1 >conftest.err
19180 cat conftest.err >&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
19183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19184 { (case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_try") 2>&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; } &&
19193 { ac_try='test -s conftest$ac_exeext'
19194 { (case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_try") 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 ac_cv_lib_gcc___cmpdi2=yes
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 ac_cv_lib_gcc___cmpdi2=no
19211 rm -f core conftest.err conftest.$ac_objext \
19212 conftest$ac_exeext conftest.$ac_ext
19213 LIBS=$ac_check_lib_save_LIBS
19215 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19216 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19217 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19219 cat >>confdefs.h <<\_ACEOF
19220 #define HAVE___CMPDI2 1
19227 if test "$llvm_cv_os_type" = "MingW" ; then
19228 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19229 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19230 cat >conftest.$ac_ext <<_ACEOF
19231 #include <windows.h>
19232 #include <imagehlp.h>
19233 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19234 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19236 rm -f conftest.$ac_objext
19237 if { (ac_try="$ac_compile"
19238 case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_compile") 2>conftest.er1
19245 grep -v '^ *+' conftest.er1 >conftest.err
19247 cat conftest.err >&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
19250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19251 { (case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_try") 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; } &&
19260 { ac_try='test -s conftest.$ac_objext'
19261 { (case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_try") 2>&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
19271 { echo "$as_me:$LINENO: result: yes" >&5
19272 echo "${ECHO_T}yes" >&6; }
19273 llvm_cv_win32_elmcb_pcstr="PCSTR"
19276 echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19280 { echo "$as_me:$LINENO: result: no" >&5
19281 echo "${ECHO_T}no" >&6; }
19282 llvm_cv_win32_elmcb_pcstr="PSTR"
19286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19288 cat >>confdefs.h <<_ACEOF
19289 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19295 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19296 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19297 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19301 ac_cpp='$CXXCPP $CPPFLAGS'
19302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19306 cat >conftest.$ac_ext <<_ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19321 rm -f conftest.$ac_objext
19322 if { (ac_try="$ac_compile"
19323 case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_compile") 2>conftest.er1
19330 grep -v '^ *+' conftest.er1 >conftest.err
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19336 { (case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_try") 2>&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; } &&
19345 { ac_try='test -s conftest.$ac_objext'
19346 { (case "(($ac_try" in
19347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348 *) ac_try_echo=$ac_try;;
19350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351 (eval "$ac_try") 2>&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; }; then
19355 ac_cv_func_isnan_in_math_h=yes
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19360 ac_cv_func_isnan_in_math_h=no
19363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365 ac_cpp='$CPP $CPPFLAGS'
19366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19371 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19372 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19375 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19377 cat >>confdefs.h <<\_ACEOF
19378 #define HAVE_ISNAN_IN_MATH_H 1
19383 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19384 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19385 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19386 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 ac_cpp='$CXXCPP $CPPFLAGS'
19390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19394 cat >conftest.$ac_ext <<_ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19409 rm -f conftest.$ac_objext
19410 if { (ac_try="$ac_compile"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_compile") 2>conftest.er1
19418 grep -v '^ *+' conftest.er1 >conftest.err
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } &&
19423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19424 { (case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_try") 2>&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; } &&
19433 { ac_try='test -s conftest.$ac_objext'
19434 { (case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_try") 2>&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; }; then
19443 ac_cv_func_isnan_in_cmath=yes
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19448 ac_cv_func_isnan_in_cmath=no
19451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453 ac_cpp='$CPP $CPPFLAGS'
19454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19459 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19460 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19462 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19464 cat >>confdefs.h <<\_ACEOF
19465 #define HAVE_ISNAN_IN_CMATH 1
19470 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19471 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19472 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 ac_cpp='$CXXCPP $CPPFLAGS'
19477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19481 cat >conftest.$ac_ext <<_ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19491 float f; std::isnan(f);
19496 rm -f conftest.$ac_objext
19497 if { (ac_try="$ac_compile"
19498 case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_compile") 2>conftest.er1
19505 grep -v '^ *+' conftest.er1 >conftest.err
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } &&
19510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19511 { (case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_try") 2>&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; } &&
19520 { ac_try='test -s conftest.$ac_objext'
19521 { (case "(($ac_try" in
19522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523 *) ac_try_echo=$ac_try;;
19525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19526 (eval "$ac_try") 2>&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
19530 ac_cv_func_std_isnan_in_cmath=yes
19532 echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19535 ac_cv_func_std_isnan_in_cmath=no
19538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19540 ac_cpp='$CPP $CPPFLAGS'
19541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19546 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19547 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19549 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19551 cat >>confdefs.h <<\_ACEOF
19552 #define HAVE_STD_ISNAN_IN_CMATH 1
19558 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19559 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19560 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19564 ac_cpp='$CXXCPP $CPPFLAGS'
19565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19569 cat >conftest.$ac_ext <<_ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h. */
19584 rm -f conftest.$ac_objext
19585 if { (ac_try="$ac_compile"
19586 case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_compile") 2>conftest.er1
19593 grep -v '^ *+' conftest.er1 >conftest.err
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } &&
19598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19599 { (case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_try") 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
19609 { (case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_try") 2>&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; }; then
19618 ac_cv_func_isinf_in_math_h=yes
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19623 ac_cv_func_isinf_in_math_h=no
19626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19628 ac_cpp='$CPP $CPPFLAGS'
19629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19634 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19635 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19637 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19639 cat >>confdefs.h <<\_ACEOF
19640 #define HAVE_ISINF_IN_MATH_H 1
19645 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19646 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19647 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19651 ac_cpp='$CXXCPP $CPPFLAGS'
19652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19656 cat >conftest.$ac_ext <<_ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19671 rm -f conftest.$ac_objext
19672 if { (ac_try="$ac_compile"
19673 case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678 (eval "$ac_compile") 2>conftest.er1
19680 grep -v '^ *+' conftest.er1 >conftest.err
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19686 { (case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_try") 2>&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; } &&
19695 { ac_try='test -s conftest.$ac_objext'
19696 { (case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_try") 2>&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 ac_cv_func_isinf_in_cmath=yes
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19710 ac_cv_func_isinf_in_cmath=no
19713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19715 ac_cpp='$CPP $CPPFLAGS'
19716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19721 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19722 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19724 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19726 cat >>confdefs.h <<\_ACEOF
19727 #define HAVE_ISINF_IN_CMATH 1
19732 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19733 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19734 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19735 echo $ECHO_N "(cached) $ECHO_C" >&6
19738 ac_cpp='$CXXCPP $CPPFLAGS'
19739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19743 cat >conftest.$ac_ext <<_ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19753 float f; std::isinf(f)}
19758 rm -f conftest.$ac_objext
19759 if { (ac_try="$ac_compile"
19760 case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_compile") 2>conftest.er1
19767 grep -v '^ *+' conftest.er1 >conftest.err
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } &&
19772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19773 { (case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_try") 2>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest.$ac_objext'
19783 { (case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788 (eval "$ac_try") 2>&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19792 ac_cv_func_std_isinf_in_cmath=yes
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19797 ac_cv_func_std_isinf_in_cmath=no
19800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19802 ac_cpp='$CPP $CPPFLAGS'
19803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19808 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19809 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19811 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19813 cat >>confdefs.h <<\_ACEOF
19814 #define HAVE_STD_ISINF_IN_CMATH 1
19819 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19820 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19821 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 ac_cpp='$CXXCPP $CPPFLAGS'
19826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19830 cat >conftest.$ac_ext <<_ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h. */
19836 #include <ieeefp.h>
19840 float f; finite(f);
19845 rm -f conftest.$ac_objext
19846 if { (ac_try="$ac_compile"
19847 case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_compile") 2>conftest.er1
19854 grep -v '^ *+' conftest.er1 >conftest.err
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
19859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19860 { (case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_try") 2>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; } &&
19869 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879 ac_cv_func_finite_in_ieeefp_h=yes
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 ac_cv_func_finite_in_ieeefp_h=no
19887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19889 ac_cpp='$CPP $CPPFLAGS'
19890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19895 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19896 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19898 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19900 cat >>confdefs.h <<\_ACEOF
19901 #define HAVE_FINITE_IN_IEEEFP_H 1
19908 if test "$llvm_cv_platform_type" = "Unix" ; then
19911 for ac_header in stdlib.h unistd.h
19913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
19920 ac_res=`eval echo '${'$as_ac_Header'}'`
19921 { echo "$as_me:$LINENO: result: $ac_res" >&5
19922 echo "${ECHO_T}$ac_res" >&6; }
19924 # Is the header compilable?
19925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19927 cat >conftest.$ac_ext <<_ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19933 $ac_includes_default
19934 #include <$ac_header>
19936 rm -f conftest.$ac_objext
19937 if { (ac_try="$ac_compile"
19938 case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_compile") 2>conftest.er1
19945 grep -v '^ *+' conftest.er1 >conftest.err
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
19950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19951 { (case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_try") 2>&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; } &&
19960 { ac_try='test -s conftest.$ac_objext'
19961 { (case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_try") 2>&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; }; then
19970 ac_header_compiler=yes
19972 echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19975 ac_header_compiler=no
19978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19980 echo "${ECHO_T}$ac_header_compiler" >&6; }
19982 # Is the header present?
19983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19985 cat >conftest.$ac_ext <<_ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19991 #include <$ac_header>
19993 if { (ac_try="$ac_cpp conftest.$ac_ext"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20001 grep -v '^ *+' conftest.er1 >conftest.err
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } >/dev/null; then
20006 if test -s conftest.err; then
20007 ac_cpp_err=$ac_c_preproc_warn_flag
20008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20015 if test -z "$ac_cpp_err"; then
20016 ac_header_preproc=yes
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_header_preproc=no
20024 rm -f conftest.err conftest.$ac_ext
20025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20026 echo "${ECHO_T}$ac_header_preproc" >&6; }
20028 # So? What about this header?
20029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20035 ac_header_preproc=yes
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20051 ## ----------------------------------- ##
20052 ## Report this to llvmbugs@cs.uiuc.edu ##
20053 ## ----------------------------------- ##
20055 ) | sed "s/^/$as_me: WARNING: /" >&2
20058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20063 eval "$as_ac_Header=\$ac_header_preproc"
20065 ac_res=`eval echo '${'$as_ac_Header'}'`
20066 { echo "$as_me:$LINENO: result: $ac_res" >&5
20067 echo "${ECHO_T}$ac_res" >&6; }
20070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20071 cat >>confdefs.h <<_ACEOF
20072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20080 for ac_func in getpagesize
20082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 cat >conftest.$ac_ext <<_ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20096 #define $ac_func innocuous_$ac_func
20098 /* System header to define __stub macros and hopefully few prototypes,
20099 which can conflict with char $ac_func (); below.
20100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20101 <limits.h> exists even on freestanding compilers. */
20104 # include <limits.h>
20106 # include <assert.h>
20111 /* Override any GCC internal prototype to avoid an error.
20112 Use char because int might match the return type of a GCC
20113 builtin and then its argument prototype would still apply. */
20118 /* The GNU C library defines this for functions which it implements
20119 to always fail with ENOSYS. Some functions are actually named
20120 something starting with __ and the normal name is an alias. */
20121 #if defined __stub_$ac_func || defined __stub___$ac_func
20128 return $ac_func ();
20133 rm -f conftest.$ac_objext conftest$ac_exeext
20134 if { (ac_try="$ac_link"
20135 case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_link") 2>conftest.er1
20142 grep -v '^ *+' conftest.er1 >conftest.err
20144 cat conftest.err >&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } &&
20147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20148 { (case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_try") 2>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; } &&
20157 { ac_try='test -s conftest$ac_exeext'
20158 { (case "(($ac_try" in
20159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160 *) ac_try_echo=$ac_try;;
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163 (eval "$ac_try") 2>&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20167 eval "$as_ac_var=yes"
20169 echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20172 eval "$as_ac_var=no"
20175 rm -f core conftest.err conftest.$ac_objext \
20176 conftest$ac_exeext conftest.$ac_ext
20178 ac_res=`eval echo '${'$as_ac_var'}'`
20179 { echo "$as_me:$LINENO: result: $ac_res" >&5
20180 echo "${ECHO_T}$ac_res" >&6; }
20181 if test `eval echo '${'$as_ac_var'}'` = yes; then
20182 cat >>confdefs.h <<_ACEOF
20183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20189 { echo "$as_me:$LINENO: checking for working mmap" >&5
20190 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20191 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20194 if test "$cross_compiling" = yes; then
20195 ac_cv_func_mmap_fixed_mapped=no
20197 cat >conftest.$ac_ext <<_ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20203 $ac_includes_default
20204 /* malloc might have been renamed as rpl_malloc. */
20207 /* Thanks to Mike Haertel and Jim Avera for this test.
20208 Here is a matrix of mmap possibilities:
20209 mmap private not fixed
20210 mmap private fixed at somewhere currently unmapped
20211 mmap private fixed at somewhere already mapped
20212 mmap shared not fixed
20213 mmap shared fixed at somewhere currently unmapped
20214 mmap shared fixed at somewhere already mapped
20215 For private mappings, we should verify that changes cannot be read()
20216 back from the file, nor mmap's back from the file at a different
20217 address. (There have been systems where private was not correctly
20218 implemented like the infamous i386 svr4.0, and systems where the
20219 VM page cache was not coherent with the file system buffer cache
20220 like early versions of FreeBSD and possibly contemporary NetBSD.)
20221 For shared mappings, we should conversely verify that changes get
20222 propagated back to all the places they're supposed to be.
20224 Grep wants private fixed already mapped.
20225 The main things grep needs to know about mmap are:
20226 * does it exist and is it safe to write into the mmap'd area
20227 * how to use it (BSD variants) */
20230 #include <sys/mman.h>
20232 #if !STDC_HEADERS && !HAVE_STDLIB_H
20236 /* This mess was copied from the GNU getpagesize.h. */
20237 #if !HAVE_GETPAGESIZE
20238 /* Assume that all systems that can run configure have sys/param.h. */
20239 # if !HAVE_SYS_PARAM_H
20240 # define HAVE_SYS_PARAM_H 1
20243 # ifdef _SC_PAGESIZE
20244 # define getpagesize() sysconf(_SC_PAGESIZE)
20245 # else /* no _SC_PAGESIZE */
20246 # if HAVE_SYS_PARAM_H
20247 # include <sys/param.h>
20248 # ifdef EXEC_PAGESIZE
20249 # define getpagesize() EXEC_PAGESIZE
20250 # else /* no EXEC_PAGESIZE */
20252 # define getpagesize() NBPG * CLSIZE
20255 # endif /* no CLSIZE */
20256 # else /* no NBPG */
20258 # define getpagesize() NBPC
20259 # else /* no NBPC */
20261 # define getpagesize() PAGESIZE
20262 # endif /* PAGESIZE */
20263 # endif /* no NBPC */
20264 # endif /* no NBPG */
20265 # endif /* no EXEC_PAGESIZE */
20266 # else /* no HAVE_SYS_PARAM_H */
20267 # define getpagesize() 8192 /* punt totally */
20268 # endif /* no HAVE_SYS_PARAM_H */
20269 # endif /* no _SC_PAGESIZE */
20271 #endif /* no HAVE_GETPAGESIZE */
20276 char *data, *data2, *data3;
20280 pagesize = getpagesize ();
20282 /* First, make a file with some known garbage in it. */
20283 data = (char *) malloc (pagesize);
20286 for (i = 0; i < pagesize; ++i)
20287 *(data + i) = rand ();
20289 fd = creat ("conftest.mmap", 0600);
20292 if (write (fd, data, pagesize) != pagesize)
20296 /* Next, try to mmap the file at a fixed address which already has
20297 something else allocated at it. If we can, also make sure that
20298 we see the same garbage. */
20299 fd = open ("conftest.mmap", O_RDWR);
20302 data2 = (char *) malloc (2 * pagesize);
20305 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20306 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20307 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20309 for (i = 0; i < pagesize; ++i)
20310 if (*(data + i) != *(data2 + i))
20313 /* Finally, make sure that changes to the mapped area do not
20314 percolate back to the file as seen by read(). (This is a bug on
20315 some variants of i386 svr4.0.) */
20316 for (i = 0; i < pagesize; ++i)
20317 *(data2 + i) = *(data2 + i) + 1;
20318 data3 = (char *) malloc (pagesize);
20321 if (read (fd, data3, pagesize) != pagesize)
20323 for (i = 0; i < pagesize; ++i)
20324 if (*(data + i) != *(data3 + i))
20330 rm -f conftest$ac_exeext
20331 if { (ac_try="$ac_link"
20332 case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_link") 2>&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20341 { (case "(($ac_try" in
20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346 (eval "$ac_try") 2>&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; }; then
20350 ac_cv_func_mmap_fixed_mapped=yes
20352 echo "$as_me: program exited with status $ac_status" >&5
20353 echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20356 ( exit $ac_status )
20357 ac_cv_func_mmap_fixed_mapped=no
20359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20364 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20365 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20366 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20368 cat >>confdefs.h <<\_ACEOF
20369 #define HAVE_MMAP 1
20373 rm -f conftest.mmap
20375 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20376 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20377 if test "${ac_cv_func_mmap_file+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 ac_cpp='$CPP $CPPFLAGS'
20382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20386 if test "$cross_compiling" = yes; then
20387 ac_cv_func_mmap_file=no
20389 cat >conftest.$ac_ext <<_ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20397 #include <sys/types.h>
20398 #include <sys/mman.h>
20406 fd = creat ("foo",0777);
20407 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20409 return (fd != (int) MAP_FAILED);
20414 rm -f conftest$ac_exeext
20415 if { (ac_try="$ac_link"
20416 case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_link") 2>&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20425 { (case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_try") 2>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
20434 ac_cv_func_mmap_file=yes
20436 echo "$as_me: program exited with status $ac_status" >&5
20437 echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20440 ( exit $ac_status )
20441 ac_cv_func_mmap_file=no
20443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20448 ac_cpp='$CPP $CPPFLAGS'
20449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20455 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20456 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20457 if test "$ac_cv_func_mmap_file" = yes; then
20459 cat >>confdefs.h <<\_ACEOF
20460 #define HAVE_MMAP_FILE
20467 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20468 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20469 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20472 if test "$llvm_cv_os_type" = "Interix" ; then
20473 ac_cv_need_dev_zero_for_mmap=yes
20475 ac_cv_need_dev_zero_for_mmap=no
20479 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20480 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20481 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20483 cat >>confdefs.h <<\_ACEOF
20484 #define NEED_DEV_ZERO_FOR_MMAP 1
20489 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20491 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20492 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20494 if test "$ac_cv_func_mmap_file" = "no"
20496 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20497 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20501 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20502 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20504 ac_cpp='$CXXCPP $CPPFLAGS'
20505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20509 cat >conftest.$ac_ext <<_ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20516 volatile unsigned long val = 1;
20517 __sync_synchronize();
20518 __sync_val_compare_and_swap(&val, 1, 0);
20519 __sync_add_and_fetch(&val, 1);
20520 __sync_sub_and_fetch(&val, 1);
20525 rm -f conftest.$ac_objext conftest$ac_exeext
20526 if { (ac_try="$ac_link"
20527 case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532 (eval "$ac_link") 2>conftest.er1
20534 grep -v '^ *+' conftest.er1 >conftest.err
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20540 { (case "(($ac_try" in
20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545 (eval "$ac_try") 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; } &&
20549 { ac_try='test -s conftest$ac_exeext'
20550 { (case "(($ac_try" in
20551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552 *) ac_try_echo=$ac_try;;
20554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20555 (eval "$ac_try") 2>&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; }; then
20560 ac_cpp='$CPP $CPPFLAGS'
20561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20565 { echo "$as_me:$LINENO: result: yes" >&5
20566 echo "${ECHO_T}yes" >&6; }
20568 cat >>confdefs.h <<\_ACEOF
20569 #define LLVM_HAS_ATOMICS 1
20573 echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20576 { echo "$as_me:$LINENO: result: no" >&5
20577 echo "${ECHO_T}no" >&6; }
20579 cat >>confdefs.h <<\_ACEOF
20580 #define LLVM_HAS_ATOMICS 0
20583 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20584 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20587 rm -f core conftest.err conftest.$ac_objext \
20588 conftest$ac_exeext conftest.$ac_ext
20591 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20592 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20593 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20594 if test "${llvm_cv_linux_mixed+set}" = set; then
20595 echo $ECHO_N "(cached) $ECHO_C" >&6
20598 ac_cpp='$CPP $CPPFLAGS'
20599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20603 cat >conftest.$ac_ext <<_ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20610 error: Not x86-64 even if uname says so!
20621 rm -f conftest.$ac_objext
20622 if { (ac_try="$ac_compile"
20623 case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_compile") 2>conftest.er1
20630 grep -v '^ *+' conftest.er1 >conftest.err
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } &&
20635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20636 { (case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_try") 2>&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; } &&
20645 { ac_try='test -s conftest.$ac_objext'
20646 { (case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_try") 2>&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; }; then
20655 llvm_cv_linux_mixed=no
20657 echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 llvm_cv_linux_mixed=yes
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665 ac_cpp='$CPP $CPPFLAGS'
20666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20672 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20673 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20675 if test "$llvm_cv_linux_mixed" = "yes"; then
20676 llvm_cv_target_arch="x86"
20682 for ac_func in __dso_handle
20684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20690 cat >conftest.$ac_ext <<_ACEOF
20693 cat confdefs.h >>conftest.$ac_ext
20694 cat >>conftest.$ac_ext <<_ACEOF
20695 /* end confdefs.h. */
20696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20698 #define $ac_func innocuous_$ac_func
20700 /* System header to define __stub macros and hopefully few prototypes,
20701 which can conflict with char $ac_func (); below.
20702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20703 <limits.h> exists even on freestanding compilers. */
20706 # include <limits.h>
20708 # include <assert.h>
20713 /* Override any GCC internal prototype to avoid an error.
20714 Use char because int might match the return type of a GCC
20715 builtin and then its argument prototype would still apply. */
20720 /* The GNU C library defines this for functions which it implements
20721 to always fail with ENOSYS. Some functions are actually named
20722 something starting with __ and the normal name is an alias. */
20723 #if defined __stub_$ac_func || defined __stub___$ac_func
20730 return $ac_func ();
20735 rm -f conftest.$ac_objext conftest$ac_exeext
20736 if { (ac_try="$ac_link"
20737 case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742 (eval "$ac_link") 2>conftest.er1
20744 grep -v '^ *+' conftest.er1 >conftest.err
20746 cat conftest.err >&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } &&
20749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20750 { (case "(($ac_try" in
20751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20752 *) ac_try_echo=$ac_try;;
20754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20755 (eval "$ac_try") 2>&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; } &&
20759 { ac_try='test -s conftest$ac_exeext'
20760 { (case "(($ac_try" in
20761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762 *) ac_try_echo=$ac_try;;
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765 (eval "$ac_try") 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; }; then
20769 eval "$as_ac_var=yes"
20771 echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20774 eval "$as_ac_var=no"
20777 rm -f core conftest.err conftest.$ac_objext \
20778 conftest$ac_exeext conftest.$ac_ext
20780 ac_res=`eval echo '${'$as_ac_var'}'`
20781 { echo "$as_me:$LINENO: result: $ac_res" >&5
20782 echo "${ECHO_T}$ac_res" >&6; }
20783 if test `eval echo '${'$as_ac_var'}'` = yes; then
20784 cat >>confdefs.h <<_ACEOF
20785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20792 SHLIBEXT=$libltdl_cv_shlibext
20795 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20798 # Translate the various configuration directories and other basic
20799 # information into substitutions that will end up in Makefile.config.in
20800 # that these configured values can be used by the makefiles
20801 if test "${prefix}" = "NONE" ; then
20802 prefix="/usr/local"
20804 eval LLVM_PREFIX="${prefix}";
20805 eval LLVM_BINDIR="${prefix}/bin";
20806 eval LLVM_LIBDIR="${prefix}/lib";
20807 eval LLVM_DATADIR="${prefix}/share/llvm";
20808 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20809 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20810 eval LLVM_INCLUDEDIR="${prefix}/include";
20811 eval LLVM_INFODIR="${prefix}/info";
20812 eval LLVM_MANDIR="${prefix}/man";
20813 LLVM_CONFIGTIME=`date`
20825 # Place the various directores into the config.h file as #defines so that we
20826 # can know about the installation paths within LLVM.
20828 cat >>confdefs.h <<_ACEOF
20829 #define LLVM_PREFIX "$LLVM_PREFIX"
20833 cat >>confdefs.h <<_ACEOF
20834 #define LLVM_BINDIR "$LLVM_BINDIR"
20838 cat >>confdefs.h <<_ACEOF
20839 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20843 cat >>confdefs.h <<_ACEOF
20844 #define LLVM_DATADIR "$LLVM_DATADIR"
20848 cat >>confdefs.h <<_ACEOF
20849 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20853 cat >>confdefs.h <<_ACEOF
20854 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20858 cat >>confdefs.h <<_ACEOF
20859 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20863 cat >>confdefs.h <<_ACEOF
20864 #define LLVM_INFODIR "$LLVM_INFODIR"
20868 cat >>confdefs.h <<_ACEOF
20869 #define LLVM_MANDIR "$LLVM_MANDIR"
20873 cat >>confdefs.h <<_ACEOF
20874 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20878 cat >>confdefs.h <<_ACEOF
20879 #define LLVM_HOSTTRIPLE "$host"
20883 # Determine which bindings to build.
20884 if test "$BINDINGS_TO_BUILD" = auto ; then
20885 BINDINGS_TO_BUILD=""
20886 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20887 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20890 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20893 # This isn't really configurey, but it avoids having to repeat the list in
20898 # Do any work necessary to ensure that bindings have what they need.
20899 binding_prereqs_failed=0
20900 for a_binding in $BINDINGS_TO_BUILD ; do
20901 case "$a_binding" in
20903 if test "x$OCAMLC" = x ; then
20904 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20905 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20906 binding_prereqs_failed=1
20908 if test "x$OCAMLDEP" = x ; then
20909 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20910 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20911 binding_prereqs_failed=1
20913 if test "x$OCAMLOPT" = x ; then
20914 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20915 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20917 if test "x$with_ocaml_libdir" != xauto ; then
20918 OCAML_LIBDIR=$with_ocaml_libdir
20921 ocaml_stdlib="`"$OCAMLC" -where`"
20922 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20924 # ocaml stdlib is beneath our prefix; use stdlib
20925 OCAML_LIBDIR=$ocaml_stdlib
20928 # ocaml stdlib is outside our prefix; use libdir/ocaml
20929 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20936 if test "$binding_prereqs_failed" = 1 ; then
20937 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20938 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20939 { (exit 1); exit 1; }; }
20942 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20943 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20944 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
20948 ac_cpp='$CXXCPP $CPPFLAGS'
20949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20953 oldcxxflags="$CXXFLAGS"
20954 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20970 rm -f conftest.$ac_objext
20971 if { (ac_try="$ac_compile"
20972 case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977 (eval "$ac_compile") 2>conftest.er1
20979 grep -v '^ *+' conftest.er1 >conftest.err
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } &&
20984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20985 { (case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_try") 2>&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; } &&
20994 { ac_try='test -s conftest.$ac_objext'
20995 { (case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_try") 2>&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; }; then
21004 llvm_cv_cxx_visibility_inlines_hidden=yes
21006 echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21009 llvm_cv_cxx_visibility_inlines_hidden=no
21012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21013 CXXFLAGS="$oldcxxflags"
21015 ac_cpp='$CPP $CPPFLAGS'
21016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21022 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21023 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21024 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21025 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21028 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21033 if test "$llvm_cv_link_use_r" = "yes" ; then
21040 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21041 RDYNAMIC="-Wl,-export-dynamic"
21048 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21055 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21057 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21059 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21061 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21063 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21066 ac_config_files="$ac_config_files Makefile.config"
21068 ac_config_files="$ac_config_files llvm.spec"
21071 ac_config_files="$ac_config_files docs/doxygen.cfg"
21073 if test -f ${srcdir}/tools/clang/README.txt; then
21074 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21078 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21080 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21082 ac_config_commands="$ac_config_commands setup"
21084 ac_config_commands="$ac_config_commands Makefile"
21087 ac_config_commands="$ac_config_commands Makefile.common"
21090 ac_config_commands="$ac_config_commands examples/Makefile"
21093 ac_config_commands="$ac_config_commands lib/Makefile"
21096 ac_config_commands="$ac_config_commands runtime/Makefile"
21099 ac_config_commands="$ac_config_commands test/Makefile"
21102 ac_config_commands="$ac_config_commands test/Makefile.tests"
21105 ac_config_commands="$ac_config_commands unittests/Makefile"
21108 ac_config_commands="$ac_config_commands tools/Makefile"
21111 ac_config_commands="$ac_config_commands utils/Makefile"
21114 ac_config_commands="$ac_config_commands projects/Makefile"
21117 ac_config_commands="$ac_config_commands bindings/Makefile"
21120 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21124 cat >confcache <<\_ACEOF
21125 # This file is a shell script that caches the results of configure
21126 # tests run on this system so they can be shared between configure
21127 # scripts and configure runs, see configure's option --config-cache.
21128 # It is not useful on other systems. If it contains results you don't
21129 # want to keep, you may remove or edit it.
21131 # config.status only pays attention to the cache file if you give it
21132 # the --recheck option to rerun configure.
21134 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21135 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21136 # following values.
21140 # The following way of writing the cache mishandles newlines in values,
21141 # but we know of no workaround that is simple, portable, and efficient.
21142 # So, we kill variables containing newlines.
21143 # Ultrix sh set writes to stderr and can't be redirected directly,
21144 # and sets the high bit in the cache file unless we assign to the vars.
21146 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21147 eval ac_val=\$$ac_var
21151 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21152 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21155 _ | IFS | as_nl) ;; #(
21156 *) $as_unset $ac_var ;;
21162 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21163 *${as_nl}ac_space=\ *)
21164 # `set' does not quote correctly, so add quotes (double-quote
21165 # substitution turns \\\\ into \\, and sed turns \\ into \).
21168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21171 # `set' quotes correctly as required by POSIX, so do not add quotes.
21172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21181 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21183 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21185 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21186 if test -w "$cache_file"; then
21187 test "x$cache_file" != "x/dev/null" &&
21188 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21189 echo "$as_me: updating cache $cache_file" >&6;}
21190 cat confcache >$cache_file
21192 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21193 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21198 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21199 # Let make expand exec_prefix.
21200 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21202 DEFS=-DHAVE_CONFIG_H
21206 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21207 # 1. Remove the extension, and $U if already installed.
21208 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21209 ac_i=`echo "$ac_i" | sed "$ac_script"`
21210 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21211 # will be set to the directory where LIBOBJS objects are built.
21212 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21213 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21215 LIBOBJS=$ac_libobjs
21217 LTLIBOBJS=$ac_ltlibobjs
21220 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21221 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21222 Usually this means the macro was only invoked conditionally." >&5
21223 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21224 Usually this means the macro was only invoked conditionally." >&2;}
21225 { (exit 1); exit 1; }; }
21227 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21228 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21229 Usually this means the macro was only invoked conditionally." >&5
21230 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21231 Usually this means the macro was only invoked conditionally." >&2;}
21232 { (exit 1); exit 1; }; }
21235 : ${CONFIG_STATUS=./config.status}
21236 ac_clean_files_save=$ac_clean_files
21237 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21238 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21239 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21240 cat >$CONFIG_STATUS <<_ACEOF
21242 # Generated by $as_me.
21243 # Run this file to recreate the current configuration.
21244 # Compiler output produced by configure, useful for debugging
21245 # configure, is in config.log if it exists.
21248 ac_cs_recheck=false
21250 SHELL=\${CONFIG_SHELL-$SHELL}
21253 cat >>$CONFIG_STATUS <<\_ACEOF
21254 ## --------------------- ##
21255 ## M4sh Initialization. ##
21256 ## --------------------- ##
21258 # Be Bourne compatible
21259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21263 # is contrary to our usage. Disable this feature.
21264 alias -g '${1+"$@"}'='"$@"'
21265 setopt NO_GLOB_SUBST
21267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21269 BIN_SH=xpg4; export BIN_SH # for Tru64
21270 DUALCASE=1; export DUALCASE # for MKS sh
21274 # Avoid depending upon Character Ranges.
21275 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21276 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21277 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21278 as_cr_digits='0123456789'
21279 as_cr_alnum=$as_cr_Letters$as_cr_digits
21281 # The user is always right.
21282 if test "${PATH_SEPARATOR+set}" != set; then
21283 echo "#! /bin/sh" >conf$$.sh
21284 echo "exit 0" >>conf$$.sh
21286 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21294 # Support unset when possible.
21295 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21303 # We need space, tab and new line, in precisely that order. Quoting is
21304 # there to prevent editors from complaining about space-tab.
21305 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21306 # splitting by setting IFS to empty value.)
21311 # Find who we are. Look in the path if we contain no directory separator.
21313 *[\\/]* ) as_myself=$0 ;;
21314 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21315 for as_dir in $PATH
21318 test -z "$as_dir" && as_dir=.
21319 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21325 # We did not find ourselves, most probably we were run as `sh COMMAND'
21326 # in which case we are not to be found in the path.
21327 if test "x$as_myself" = x; then
21330 if test ! -f "$as_myself"; then
21331 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21332 { (exit 1); exit 1; }
21335 # Work around bugs in pre-3.0 UWIN ksh.
21336 for as_var in ENV MAIL MAILPATH
21337 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21345 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21346 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21347 LC_TELEPHONE LC_TIME
21349 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21350 eval $as_var=C; export $as_var
21352 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21356 # Required to use basename.
21357 if expr a : '\(a\)' >/dev/null 2>&1 &&
21358 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21364 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21365 as_basename=basename
21371 # Name of the executable.
21372 as_me=`$as_basename -- "$0" ||
21373 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21374 X"$0" : 'X\(//\)$' \| \
21375 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21377 sed '/^.*\/\([^/][^/]*\)\/*$/{
21396 as_lineno_1=$LINENO
21397 as_lineno_2=$LINENO
21398 test "x$as_lineno_1" != "x$as_lineno_2" &&
21399 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21401 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21402 # uniformly replaced by the line number. The first 'sed' inserts a
21403 # line-number line after each line using $LINENO; the second 'sed'
21404 # does the real work. The second script uses 'N' to pair each
21405 # line-number line with the line containing $LINENO, and appends
21406 # trailing '-' during substitution so that $LINENO is not a special
21407 # case at line end.
21408 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21409 # scripts with optimization help from Paolo Bonzini. Blame Lee
21410 # E. McMahon (1931-1989) for sed's syntax. :-)
21422 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21425 ' >$as_me.lineno &&
21426 chmod +x "$as_me.lineno" ||
21427 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21428 { (exit 1); exit 1; }; }
21430 # Don't try to exec as it changes $[0], causing all sort of problems
21431 # (the dirname of $[0] is not the place where we might find the
21432 # original and so on. Autoconf is especially sensitive to this).
21433 . "./$as_me.lineno"
21434 # Exit status is that of the last command.
21439 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21445 ECHO_C= ECHO_N= ECHO_T=
21446 case `echo -n x` in
21448 case `echo 'x\c'` in
21449 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21456 if expr a : '\(a\)' >/dev/null 2>&1 &&
21457 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21463 rm -f conf$$ conf$$.exe conf$$.file
21464 if test -d conf$$.dir; then
21465 rm -f conf$$.dir/conf$$.file
21471 if ln -s conf$$.file conf$$ 2>/dev/null; then
21473 # ... but there are two gotchas:
21474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21476 # In both cases, we have to default to `cp -p'.
21477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21479 elif ln conf$$.file conf$$ 2>/dev/null; then
21484 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21485 rmdir conf$$.dir 2>/dev/null
21487 if mkdir -p . 2>/dev/null; then
21490 test -d ./-p && rmdir ./-p
21494 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21495 # systems may use methods other than mode bits to determine executability.
21496 cat >conf$$.file <<_ASEOF
21500 chmod +x conf$$.file
21501 if test -x conf$$.file >/dev/null 2>&1; then
21502 as_executable_p="test -x"
21508 # Sed expression to map a string onto a valid CPP name.
21509 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21511 # Sed expression to map a string onto a valid variable name.
21512 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21517 # Save the log message, to keep $[0] and so on meaningful, and to
21518 # report actual input values of CONFIG_FILES etc. instead of their
21519 # values after options handling.
21521 This file was extended by llvm $as_me 3.1svn, which was
21522 generated by GNU Autoconf 2.60. Invocation command line was
21524 CONFIG_FILES = $CONFIG_FILES
21525 CONFIG_HEADERS = $CONFIG_HEADERS
21526 CONFIG_LINKS = $CONFIG_LINKS
21527 CONFIG_COMMANDS = $CONFIG_COMMANDS
21530 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21535 cat >>$CONFIG_STATUS <<_ACEOF
21536 # Files that config.status was made for.
21537 config_files="$ac_config_files"
21538 config_headers="$ac_config_headers"
21539 config_commands="$ac_config_commands"
21543 cat >>$CONFIG_STATUS <<\_ACEOF
21545 \`$as_me' instantiates files from templates according to the
21546 current configuration.
21548 Usage: $0 [OPTIONS] [FILE]...
21550 -h, --help print this help, then exit
21551 -V, --version print version number, then exit
21552 -q, --quiet do not print progress messages
21553 -d, --debug don't remove temporary files
21554 --recheck update $as_me by reconfiguring in the same conditions
21555 --file=FILE[:TEMPLATE]
21556 instantiate the configuration file FILE
21557 --header=FILE[:TEMPLATE]
21558 instantiate the configuration header FILE
21560 Configuration files:
21563 Configuration headers:
21566 Configuration commands:
21569 Report bugs to <bug-autoconf@gnu.org>."
21572 cat >>$CONFIG_STATUS <<_ACEOF
21574 llvm config.status 3.1svn
21575 configured by $0, generated by GNU Autoconf 2.60,
21576 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21578 Copyright (C) 2006 Free Software Foundation, Inc.
21579 This config.status script is free software; the Free Software Foundation
21580 gives unlimited permission to copy, distribute and modify it."
21587 cat >>$CONFIG_STATUS <<\_ACEOF
21588 # If no file are specified by the user, then we need to provide default
21589 # value. By we need to know if files were specified by the user.
21595 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21596 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21607 # Handling of the options.
21608 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21610 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21611 echo "$ac_cs_version"; exit ;;
21612 --debug | --debu | --deb | --de | --d | -d )
21614 --file | --fil | --fi | --f )
21616 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21617 ac_need_defaults=false;;
21618 --header | --heade | --head | --hea )
21620 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21621 ac_need_defaults=false;;
21623 # Conflict between --help and --header
21624 { echo "$as_me: error: ambiguous option: $1
21625 Try \`$0 --help' for more information." >&2
21626 { (exit 1); exit 1; }; };;
21627 --help | --hel | -h )
21628 echo "$ac_cs_usage"; exit ;;
21629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21630 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21633 # This is an error.
21634 -*) { echo "$as_me: error: unrecognized option: $1
21635 Try \`$0 --help' for more information." >&2
21636 { (exit 1); exit 1; }; } ;;
21638 *) ac_config_targets="$ac_config_targets $1"
21639 ac_need_defaults=false ;;
21645 ac_configure_extra_args=
21647 if $ac_cs_silent; then
21649 ac_configure_extra_args="$ac_configure_extra_args --silent"
21653 cat >>$CONFIG_STATUS <<_ACEOF
21654 if \$ac_cs_recheck; then
21655 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21656 CONFIG_SHELL=$SHELL
21657 export CONFIG_SHELL
21658 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21662 cat >>$CONFIG_STATUS <<\_ACEOF
21666 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21667 ## Running $as_me. ##
21673 cat >>$CONFIG_STATUS <<_ACEOF
21677 llvm_src="${srcdir}"
21681 cat >>$CONFIG_STATUS <<\_ACEOF
21683 # Handling of arguments.
21684 for ac_config_target in $ac_config_targets
21686 case $ac_config_target in
21687 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21688 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21689 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21690 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21691 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21692 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21693 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21694 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21695 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21696 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21697 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21698 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21699 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21700 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21701 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21702 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21703 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21704 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21705 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21706 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21707 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21708 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21709 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21710 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21711 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21712 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21714 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21715 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21716 { (exit 1); exit 1; }; };;
21721 # If the user did not use the arguments to specify the items to instantiate,
21722 # then the envvar interface is used. Set only those that are not.
21723 # We use the long form for the default assignment because of an extremely
21724 # bizarre bug on SunOS 4.1.3.
21725 if $ac_need_defaults; then
21726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21728 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21731 # Have a temporary directory for convenience. Make it in the build tree
21732 # simply because there is no reason against having it here, and in addition,
21733 # creating and moving files from /tmp can sometimes cause problems.
21734 # Hook for its removal unless debugging.
21735 # Note that there is a small window in which the directory will not be cleaned:
21736 # after its creation but before its name has been assigned to `$tmp'.
21740 trap 'exit_status=$?
21741 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21743 trap '{ (exit 1); exit 1; }' 1 2 13 15
21745 # Create a (secure) tmp directory for tmp files.
21748 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21749 test -n "$tmp" && test -d "$tmp"
21752 tmp=./conf$$-$RANDOM
21753 (umask 077 && mkdir "$tmp")
21756 echo "$me: cannot create a temporary directory in ." >&2
21757 { (exit 1); exit 1; }
21761 # Set up the sed scripts for CONFIG_FILES section.
21764 # No need to generate the scripts if there are no CONFIG_FILES.
21765 # This happens for instance when ./config.status config.h
21766 if test -n "$CONFIG_FILES"; then
21773 for ac_last_try in false false false false false :; do
21774 cat >conf$$subs.sed <<_ACEOF
21775 SHELL!$SHELL$ac_delim
21776 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21777 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21778 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21779 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21780 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21781 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21782 exec_prefix!$exec_prefix$ac_delim
21783 prefix!$prefix$ac_delim
21784 program_transform_name!$program_transform_name$ac_delim
21785 bindir!$bindir$ac_delim
21786 sbindir!$sbindir$ac_delim
21787 libexecdir!$libexecdir$ac_delim
21788 datarootdir!$datarootdir$ac_delim
21789 datadir!$datadir$ac_delim
21790 sysconfdir!$sysconfdir$ac_delim
21791 sharedstatedir!$sharedstatedir$ac_delim
21792 localstatedir!$localstatedir$ac_delim
21793 includedir!$includedir$ac_delim
21794 oldincludedir!$oldincludedir$ac_delim
21795 docdir!$docdir$ac_delim
21796 infodir!$infodir$ac_delim
21797 htmldir!$htmldir$ac_delim
21798 dvidir!$dvidir$ac_delim
21799 pdfdir!$pdfdir$ac_delim
21800 psdir!$psdir$ac_delim
21801 libdir!$libdir$ac_delim
21802 localedir!$localedir$ac_delim
21803 mandir!$mandir$ac_delim
21804 DEFS!$DEFS$ac_delim
21805 ECHO_C!$ECHO_C$ac_delim
21806 ECHO_N!$ECHO_N$ac_delim
21807 ECHO_T!$ECHO_T$ac_delim
21808 LIBS!$LIBS$ac_delim
21809 build_alias!$build_alias$ac_delim
21810 host_alias!$host_alias$ac_delim
21811 target_alias!$target_alias$ac_delim
21812 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21814 CFLAGS!$CFLAGS$ac_delim
21815 LDFLAGS!$LDFLAGS$ac_delim
21816 CPPFLAGS!$CPPFLAGS$ac_delim
21817 ac_ct_CC!$ac_ct_CC$ac_delim
21818 EXEEXT!$EXEEXT$ac_delim
21819 OBJEXT!$OBJEXT$ac_delim
21821 CXXFLAGS!$CXXFLAGS$ac_delim
21822 ac_ct_CXX!$ac_ct_CXX$ac_delim
21824 subdirs!$subdirs$ac_delim
21825 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21826 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21827 build!$build$ac_delim
21828 build_cpu!$build_cpu$ac_delim
21829 build_vendor!$build_vendor$ac_delim
21830 build_os!$build_os$ac_delim
21831 host!$host$ac_delim
21832 host_cpu!$host_cpu$ac_delim
21833 host_vendor!$host_vendor$ac_delim
21834 host_os!$host_os$ac_delim
21835 target!$target$ac_delim
21836 target_cpu!$target_cpu$ac_delim
21837 target_vendor!$target_vendor$ac_delim
21838 target_os!$target_os$ac_delim
21840 HOST_OS!$HOST_OS$ac_delim
21841 TARGET_OS!$TARGET_OS$ac_delim
21842 LINKALL!$LINKALL$ac_delim
21843 NOLINKALL!$NOLINKALL$ac_delim
21844 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21845 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21846 ARCH!$ARCH$ac_delim
21847 ENDIAN!$ENDIAN$ac_delim
21848 GREP!$GREP$ac_delim
21849 EGREP!$EGREP$ac_delim
21850 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21851 BUILD_CC!$BUILD_CC$ac_delim
21852 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21853 BUILD_CXX!$BUILD_CXX$ac_delim
21854 CVSBUILD!$CVSBUILD$ac_delim
21855 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21856 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21857 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21858 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21859 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21860 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21861 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21863 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21864 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21865 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21866 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21867 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21868 ENABLE_PIC!$ENABLE_PIC$ac_delim
21869 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21870 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21871 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21874 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21876 elif $ac_last_try; then
21877 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21878 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21879 { (exit 1); exit 1; }; }
21881 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21885 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21886 if test -n "$ac_eof"; then
21887 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21888 ac_eof=`expr $ac_eof + 1`
21891 cat >>$CONFIG_STATUS <<_ACEOF
21892 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21896 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21897 s/^/s,@/; s/!/@,|#_!!_#|/
21900 s/'"$ac_delim"'$/,g/; t
21902 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21903 ' >>$CONFIG_STATUS <conf$$subs.sed
21904 rm -f conf$$subs.sed
21905 cat >>$CONFIG_STATUS <<_ACEOF
21911 for ac_last_try in false false false false false :; do
21912 cat >conf$$subs.sed <<_ACEOF
21913 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21914 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21915 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21916 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21917 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21918 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21919 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21920 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21921 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21922 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21923 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21925 ifGNUmake!$ifGNUmake$ac_delim
21926 LN_S!$LN_S$ac_delim
21929 DATE!$DATE$ac_delim
21930 FIND!$FIND$ac_delim
21931 MKDIR!$MKDIR$ac_delim
21933 RANLIB!$RANLIB$ac_delim
21938 BINPWD!$BINPWD$ac_delim
21939 GRAPHVIZ!$GRAPHVIZ$ac_delim
21942 NEATO!$NEATO$ac_delim
21943 TWOPI!$TWOPI$ac_delim
21944 CIRCO!$CIRCO$ac_delim
21946 DOTTY!$DOTTY$ac_delim
21947 XDOT_PY!$XDOT_PY$ac_delim
21948 PERL!$PERL$ac_delim
21949 HAVE_PERL!$HAVE_PERL$ac_delim
21950 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21951 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21952 INSTALL_DATA!$INSTALL_DATA$ac_delim
21953 BZIP2!$BZIP2$ac_delim
21955 DOXYGEN!$DOXYGEN$ac_delim
21956 GROFF!$GROFF$ac_delim
21957 GZIPBIN!$GZIPBIN$ac_delim
21958 POD2HTML!$POD2HTML$ac_delim
21959 POD2MAN!$POD2MAN$ac_delim
21960 PDFROFF!$PDFROFF$ac_delim
21961 RUNTEST!$RUNTEST$ac_delim
21962 TCLSH!$TCLSH$ac_delim
21964 OCAMLC!$OCAMLC$ac_delim
21965 OCAMLOPT!$OCAMLOPT$ac_delim
21966 OCAMLDEP!$OCAMLDEP$ac_delim
21967 OCAMLDOC!$OCAMLDOC$ac_delim
21969 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21970 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21971 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21972 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21973 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21974 LIBADD_DL!$LIBADD_DL$ac_delim
21975 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21976 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21977 USE_UDIS86!$USE_UDIS86$ac_delim
21978 USE_OPROFILE!$USE_OPROFILE$ac_delim
21979 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21980 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21981 MMAP_FILE!$MMAP_FILE$ac_delim
21982 SHLIBEXT!$SHLIBEXT$ac_delim
21983 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21984 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21985 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21986 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21987 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21988 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21989 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21990 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21991 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21992 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21993 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21994 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21995 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21996 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21997 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21998 RPATH!$RPATH$ac_delim
21999 RDYNAMIC!$RDYNAMIC$ac_delim
22000 LIBOBJS!$LIBOBJS$ac_delim
22001 LTLIBOBJS!$LTLIBOBJS$ac_delim
22004 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
22006 elif $ac_last_try; then
22007 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22008 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22009 { (exit 1); exit 1; }; }
22011 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22015 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22016 if test -n "$ac_eof"; then
22017 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22018 ac_eof=`expr $ac_eof + 1`
22021 cat >>$CONFIG_STATUS <<_ACEOF
22022 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22023 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22026 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22027 s/^/s,@/; s/!/@,|#_!!_#|/
22030 s/'"$ac_delim"'$/,g/; t
22032 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22033 ' >>$CONFIG_STATUS <conf$$subs.sed
22034 rm -f conf$$subs.sed
22035 cat >>$CONFIG_STATUS <<_ACEOF
22042 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22043 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22044 # trailing colons and then remove the whole line if VPATH becomes empty
22045 # (actually we leave an empty line to preserve line numbers).
22046 if test "x$srcdir" = x.; then
22047 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22048 s/:*\$(srcdir):*/:/
22049 s/:*\${srcdir}:*/:/
22051 s/^\([^=]*=[ ]*\):*/\1/
22057 cat >>$CONFIG_STATUS <<\_ACEOF
22058 fi # test -n "$CONFIG_FILES"
22061 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22064 :[FHLC]) ac_mode=$ac_tag; continue;;
22066 case $ac_mode$ac_tag in
22068 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22069 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22070 { (exit 1); exit 1; }; };;
22071 :[FH]-) ac_tag=-:-;;
22072 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22089 -) ac_f="$tmp/stdin";;
22090 *) # Look for the file first in the build tree, then in the source tree
22091 # (if the path is not absolute). The absolute path cannot be DOS-style,
22092 # because $ac_f cannot contain `:'.
22096 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22098 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22099 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22100 { (exit 1); exit 1; }; };;
22102 ac_file_inputs="$ac_file_inputs $ac_f"
22105 # Let's still pretend it is `configure' which instantiates (i.e., don't
22106 # use $as_me), people would be surprised to read:
22107 # /* config.h. Generated by config.status. */
22108 configure_input="Generated from "`IFS=:
22109 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22110 if test x"$ac_file" != x-; then
22111 configure_input="$ac_file. $configure_input"
22112 { echo "$as_me:$LINENO: creating $ac_file" >&5
22113 echo "$as_me: creating $ac_file" >&6;}
22117 *:-:* | *:-) cat >"$tmp/stdin";;
22122 ac_dir=`$as_dirname -- "$ac_file" ||
22123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22124 X"$ac_file" : 'X\(//\)[^/]' \| \
22125 X"$ac_file" : 'X\(//\)$' \| \
22126 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22132 /^X\(\/\/\)[^/].*/{
22147 -*) as_dir=./$as_dir;;
22149 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22153 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22154 *) as_qdir=$as_dir;;
22156 as_dirs="'$as_qdir' $as_dirs"
22157 as_dir=`$as_dirname -- "$as_dir" ||
22158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22159 X"$as_dir" : 'X\(//\)[^/]' \| \
22160 X"$as_dir" : 'X\(//\)$' \| \
22161 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22167 /^X\(\/\/\)[^/].*/{
22180 test -d "$as_dir" && break
22182 test -z "$as_dirs" || eval "mkdir $as_dirs"
22183 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22184 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22185 { (exit 1); exit 1; }; }; }
22189 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22191 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22192 # A ".." for each directory in $ac_dir_suffix.
22193 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22194 case $ac_top_builddir_sub in
22195 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22196 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22199 ac_abs_top_builddir=$ac_pwd
22200 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22201 # for backward compatibility:
22202 ac_top_builddir=$ac_top_build_prefix
22205 .) # We are building in place.
22207 ac_top_srcdir=$ac_top_builddir_sub
22208 ac_abs_top_srcdir=$ac_pwd ;;
22209 [\\/]* | ?:[\\/]* ) # Absolute name.
22210 ac_srcdir=$srcdir$ac_dir_suffix;
22211 ac_top_srcdir=$srcdir
22212 ac_abs_top_srcdir=$srcdir ;;
22213 *) # Relative name.
22214 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22215 ac_top_srcdir=$ac_top_build_prefix$srcdir
22216 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22218 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22228 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22229 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22233 cat >>$CONFIG_STATUS <<\_ACEOF
22234 # If the template does not know about datarootdir, expand it.
22235 # FIXME: This hack should be removed a few years after 2.60.
22236 ac_datarootdir_hack=; ac_datarootdir_seen=
22238 case `sed -n '/datarootdir/ {
22247 ' $ac_file_inputs` in
22248 *datarootdir*) ac_datarootdir_seen=yes;;
22249 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22250 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22251 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22253 cat >>$CONFIG_STATUS <<_ACEOF
22254 ac_datarootdir_hack='
22255 s&@datadir@&$datadir&g
22256 s&@docdir@&$docdir&g
22257 s&@infodir@&$infodir&g
22258 s&@localedir@&$localedir&g
22259 s&@mandir@&$mandir&g
22260 s&\\\${datarootdir}&$datarootdir&g' ;;
22264 # Neutralize VPATH when `$srcdir' = `.'.
22265 # Shell code in configure.ac might set extrasub.
22266 # FIXME: do we really want to maintain this feature?
22267 cat >>$CONFIG_STATUS <<_ACEOF
22271 cat >>$CONFIG_STATUS <<\_ACEOF
22273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22274 s&@configure_input@&$configure_input&;t t
22275 s&@top_builddir@&$ac_top_builddir_sub&;t t
22276 s&@srcdir@&$ac_srcdir&;t t
22277 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22278 s&@top_srcdir@&$ac_top_srcdir&;t t
22279 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22280 s&@builddir@&$ac_builddir&;t t
22281 s&@abs_builddir@&$ac_abs_builddir&;t t
22282 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22283 s&@INSTALL@&$ac_INSTALL&;t t
22284 $ac_datarootdir_hack
22285 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22287 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22288 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22289 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22290 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22291 which seems to be undefined. Please make sure it is defined." >&5
22292 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22293 which seems to be undefined. Please make sure it is defined." >&2;}
22297 -) cat "$tmp/out"; rm -f "$tmp/out";;
22298 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22307 # Transform confdefs.h into a sed script `conftest.defines', that
22308 # substitutes the proper values into config.h.in to produce config.h.
22309 rm -f conftest.defines conftest.tail
22310 # First, append a space to every undef/define line, to ease matching.
22311 echo 's/$/ /' >conftest.defines
22312 # Then, protect against being on the right side of a sed subst, or in
22313 # an unquoted here document, in config.status. If some macros were
22314 # called several times there might be several #defines for the same
22315 # symbol, which is useless. But do not sort them, since the last
22316 # AC_DEFINE must be honored.
22317 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22318 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22319 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22320 # PARAMS is the parameter list in the macro definition--in most cases, it's
22321 # just an empty string.
22322 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22323 ac_dB='\\)[ (].*,\\1define\\2'
22331 s/^[ ]*#[ ]*define[ ][ ]*//
22336 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22337 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22338 ' >>conftest.defines
22340 # Remove the space that was appended to ease matching.
22341 # Then replace #undef with comments. This is necessary, for
22342 # example, in the case of _POSIX_SOURCE, which is predefined and required
22343 # on some systems where configure will not decide to define it.
22344 # (The regexp can be short, since the line contains either #define or #undef.)
22346 s,^[ #]*u.*,/* & */,' >>conftest.defines
22348 # Break up conftest.defines:
22349 ac_max_sed_lines=50
22351 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22352 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22353 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22355 ac_in='$ac_file_inputs'
22356 ac_out='"$tmp/out1"'
22357 ac_nxt='"$tmp/out2"'
22361 # Write a here document:
22362 cat >>$CONFIG_STATUS <<_ACEOF
22363 # First, check the format of the line:
22364 cat >"\$tmp/defines.sed" <<\\CEOF
22365 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22366 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22370 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22372 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22373 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22374 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22375 grep . conftest.tail >/dev/null || break
22376 rm -f conftest.defines
22377 mv conftest.tail conftest.defines
22379 rm -f conftest.defines conftest.tail
22381 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22382 cat >>$CONFIG_STATUS <<\_ACEOF
22383 if test x"$ac_file" != x-; then
22384 echo "/* $configure_input */" >"$tmp/config.h"
22385 cat "$ac_result" >>"$tmp/config.h"
22386 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22387 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22388 echo "$as_me: $ac_file is unchanged" >&6;}
22391 mv "$tmp/config.h" $ac_file
22394 echo "/* $configure_input */"
22400 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22401 echo "$as_me: executing $ac_file commands" >&6;}
22406 case $ac_file$ac_mode in
22407 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22408 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22409 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22410 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22411 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22412 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22413 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22414 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22415 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22416 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22417 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22418 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22419 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22420 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22421 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22422 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22423 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22424 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22425 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22426 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22427 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22428 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22429 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22430 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22431 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22432 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22438 { (exit 0); exit 0; }
22440 chmod +x $CONFIG_STATUS
22441 ac_clean_files=$ac_clean_files_save
22444 # configure is writing to config.log, and then calls config.status.
22445 # config.status does its own redirection, appending to config.log.
22446 # Unfortunately, on DOS this fails, as config.log is still kept open
22447 # by configure, so config.status won't be able to write to it; its
22448 # output is simply discarded. So we exec the FD to /dev/null,
22449 # effectively closing config.log, so it can be properly (re)opened and
22450 # appended to by config.status. When coming back to configure, we
22451 # need to make the FD available again.
22452 if test "$no_create" != yes; then
22454 ac_config_status_args=
22455 test "$silent" = yes &&
22456 ac_config_status_args="$ac_config_status_args --quiet"
22458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22461 # would make configure fail if this is the last instruction.
22462 $ac_cs_success || { (exit 1); exit 1; }
22466 # CONFIG_SUBDIRS section.
22468 if test "$no_recursion" != yes; then
22470 # Remove --cache-file and --srcdir arguments so they do not pile up.
22471 ac_sub_configure_args=
22473 eval "set x $ac_configure_args"
22477 if test -n "$ac_prev"; then
22482 -cache-file | --cache-file | --cache-fil | --cache-fi \
22483 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22484 ac_prev=cache_file ;;
22485 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22486 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22489 --config-cache | -C)
22491 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22493 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22495 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22497 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22501 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22503 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22507 # Always prepend --prefix to ensure using the same prefix
22508 # in subdir configurations.
22509 ac_arg="--prefix=$prefix"
22511 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22513 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22516 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22518 # Do not complain, so a configure script can configure whichever
22519 # parts of a large source tree are present.
22520 test -d "$srcdir/$ac_dir" || continue
22522 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22523 echo "$as_me:$LINENO: $ac_msg" >&5
22527 -*) as_dir=./$as_dir;;
22529 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22533 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22534 *) as_qdir=$as_dir;;
22536 as_dirs="'$as_qdir' $as_dirs"
22537 as_dir=`$as_dirname -- "$as_dir" ||
22538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22539 X"$as_dir" : 'X\(//\)[^/]' \| \
22540 X"$as_dir" : 'X\(//\)$' \| \
22541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22547 /^X\(\/\/\)[^/].*/{
22560 test -d "$as_dir" && break
22562 test -z "$as_dirs" || eval "mkdir $as_dirs"
22563 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22564 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22565 { (exit 1); exit 1; }; }; }
22569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22571 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22572 # A ".." for each directory in $ac_dir_suffix.
22573 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22574 case $ac_top_builddir_sub in
22575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22579 ac_abs_top_builddir=$ac_pwd
22580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22581 # for backward compatibility:
22582 ac_top_builddir=$ac_top_build_prefix
22585 .) # We are building in place.
22587 ac_top_srcdir=$ac_top_builddir_sub
22588 ac_abs_top_srcdir=$ac_pwd ;;
22589 [\\/]* | ?:[\\/]* ) # Absolute name.
22590 ac_srcdir=$srcdir$ac_dir_suffix;
22591 ac_top_srcdir=$srcdir
22592 ac_abs_top_srcdir=$srcdir ;;
22593 *) # Relative name.
22594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22595 ac_top_srcdir=$ac_top_build_prefix$srcdir
22596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22603 # Check for guested configure; otherwise get Cygnus style configure.
22604 if test -f "$ac_srcdir/configure.gnu"; then
22605 ac_sub_configure=$ac_srcdir/configure.gnu
22606 elif test -f "$ac_srcdir/configure"; then
22607 ac_sub_configure=$ac_srcdir/configure
22608 elif test -f "$ac_srcdir/configure.in"; then
22609 # This should be Cygnus configure.
22610 ac_sub_configure=$ac_aux_dir/configure
22612 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22613 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22617 # The recursion is here.
22618 if test -n "$ac_sub_configure"; then
22619 # Make the cache file name correct relative to the subdirectory.
22620 case $cache_file in
22621 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22622 *) # Relative name.
22623 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22626 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22627 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22628 # The eval makes quoting arguments work.
22629 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22630 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22631 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22632 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22633 { (exit 1); exit 1; }; }