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, ptx, cbe, and cpp (default=all)
1420 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
1424 --enable-libffi Check for the presence of libffi (default is NO)
1425 --enable-ltdl-install install libltdl
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-optimize-option Select the compiler options to use for optimized
1432 --with-extra-options Specify additional options to compile LLVM with
1433 --with-extra-ld-options Specify additional options to link LLVM with
1434 --with-ocaml-libdir Specify install location for ocaml bindings (default
1436 --with-clang-srcdir Directory to the out-of-tree Clang source
1437 --with-clang-resource-dir
1438 Relative directory from the Clang binary for
1440 --with-c-include-dirs Colon separated list of directories clang will
1442 --with-cxx-include-root Directory with the libstdc++ headers.
1443 --with-cxx-include-arch Architecture of the libstdc++ headers.
1444 --with-cxx-include-32bit-dir
1445 32 bit multilib dir.
1446 --with-cxx-include-64bit-dir
1447 64 bit multilib directory.
1448 --with-binutils-include Specify path to binutils/include/ containing
1449 plugin-api.h file for gold plugin.
1450 --with-bug-report-url Specify the URL where bug reports should be
1451 submitted (default=http://llvm.org/bugs/)
1452 --with-tclinclude directory where tcl headers are
1453 --with-udis86=<path> Use udis86 external x86 disassembler library
1454 --with-oprofile=<prefix>
1455 Tell OProfile >= 0.9.4 how to symbolize JIT output
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1471 Report bugs to <llvmbugs@cs.uiuc.edu>.
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" || continue
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1499 .) # We are building in place.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1523 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1532 llvm configure 3.1svn
1533 generated by GNU Autoconf 2.60
1535 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1536 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1540 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1544 cat >config.log <<_ACEOF
1545 This file contains any messages produced by compilers while
1546 running configure, to aid debugging if configure makes a mistake.
1548 It was created by llvm $as_me 3.1svn, which was
1549 generated by GNU Autoconf 2.60. Invocation command line was
1561 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1562 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1563 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1564 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1565 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1568 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1570 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1571 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1572 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1573 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1574 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1575 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1576 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 test -z "$as_dir" && as_dir=.
1585 echo "PATH: $as_dir"
1601 # Keep a trace of the command line.
1602 # Strip out --no-create and --no-recursion so they do not pile up.
1603 # Strip out --silent because we don't want to record it for future runs.
1604 # Also quote any args containing shell meta-characters.
1605 # Make two passes to allow for proper duplicate-argument suppression.
1609 ac_must_keep_next=false
1615 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1617 | -silent | --silent | --silen | --sile | --sil)
1620 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1623 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1625 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1626 if test $ac_must_keep_next = true; then
1627 ac_must_keep_next=false # Got value, back to normal.
1630 *=* | --config-cache | -C | -disable-* | --disable-* \
1631 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1632 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1633 | -with-* | --with-* | -without-* | --without-* | --x)
1634 case "$ac_configure_args0 " in
1635 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638 -* ) ac_must_keep_next=true ;;
1641 ac_configure_args="$ac_configure_args '$ac_arg'"
1646 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1647 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1649 # When interrupted or exit'd, cleanup temporary files, and complete
1650 # config.log. We remove comments because anyway the quotes in there
1651 # would cause problems or look ugly.
1652 # WARNING: Use '\'' to represent an apostrophe within the trap.
1653 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1654 trap 'exit_status=$?
1655 # Save into config.log some information that might help in debugging.
1660 ## ---------------- ##
1661 ## Cache variables. ##
1662 ## ---------------- ##
1665 # The following way of writing the cache mishandles newlines in values,
1667 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1668 eval ac_val=\$$ac_var
1672 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1673 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1676 _ | IFS | as_nl) ;; #(
1677 *) $as_unset $ac_var ;;
1682 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1683 *${as_nl}ac_space=\ *)
1685 "s/'\''/'\''\\\\'\'''\''/g;
1686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1697 ## ----------------- ##
1698 ## Output variables. ##
1699 ## ----------------- ##
1702 for ac_var in $ac_subst_vars
1704 eval ac_val=\$$ac_var
1706 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708 echo "$ac_var='\''$ac_val'\''"
1712 if test -n "$ac_subst_files"; then
1714 ## ------------------- ##
1715 ## File substitutions. ##
1716 ## ------------------- ##
1719 for ac_var in $ac_subst_files
1721 eval ac_val=\$$ac_var
1723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725 echo "$ac_var='\''$ac_val'\''"
1730 if test -s confdefs.h; then
1740 test "$ac_signal" != 0 &&
1741 echo "$as_me: caught signal $ac_signal"
1742 echo "$as_me: exit $exit_status"
1744 rm -f core *.core core.conftest.* &&
1745 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1748 for ac_signal in 1 2 13 15; do
1749 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1753 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1754 rm -f -r conftest* confdefs.h
1756 # Predefined preprocessor variables.
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_NAME "$PACKAGE_NAME"
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_STRING "$PACKAGE_STRING"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1783 # Let the site file select an alternate cache file if it wants to.
1784 # Prefer explicitly selected file to automatically selected ones.
1785 if test -n "$CONFIG_SITE"; then
1786 set x "$CONFIG_SITE"
1787 elif test "x$prefix" != xNONE; then
1788 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1790 set x "$ac_default_prefix/share/config.site" \
1791 "$ac_default_prefix/etc/config.site"
1796 if test -r "$ac_site_file"; then
1797 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1798 echo "$as_me: loading site script $ac_site_file" >&6;}
1799 sed 's/^/| /' "$ac_site_file" >&5
1804 if test -r "$cache_file"; then
1805 # Some versions of bash will fail to source /dev/null (special
1806 # files actually), so we avoid doing that.
1807 if test -f "$cache_file"; then
1808 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1809 echo "$as_me: loading cache $cache_file" >&6;}
1811 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1812 *) . "./$cache_file";;
1816 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1817 echo "$as_me: creating cache $cache_file" >&6;}
1821 # Check that the precious variables saved in the cache have kept the same
1823 ac_cache_corrupted=false
1824 for ac_var in $ac_precious_vars; do
1825 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1826 eval ac_new_set=\$ac_env_${ac_var}_set
1827 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1828 eval ac_new_val=\$ac_env_${ac_var}_value
1829 case $ac_old_set,$ac_new_set in
1831 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1832 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1833 ac_cache_corrupted=: ;;
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1840 if test "x$ac_old_val" != "x$ac_new_val"; then
1841 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1842 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1843 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1844 echo "$as_me: former value: $ac_old_val" >&2;}
1845 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1846 echo "$as_me: current value: $ac_new_val" >&2;}
1847 ac_cache_corrupted=:
1850 # Pass precious variables to config.status.
1851 if test "$ac_new_set" = set; then
1853 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1854 *) ac_arg=$ac_var=$ac_new_val ;;
1856 case " $ac_configure_args " in
1857 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1858 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1862 if $ac_cache_corrupted; then
1863 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1864 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1865 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1866 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1867 { (exit 1); exit 1; }; }
1895 ac_cpp='$CPP $CPPFLAGS'
1896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1911 for ac_dir in autoconf "$srcdir"/autoconf; do
1912 if test -f "$ac_dir/install-sh"; then
1914 ac_install_sh="$ac_aux_dir/install-sh -c"
1916 elif test -f "$ac_dir/install.sh"; then
1918 ac_install_sh="$ac_aux_dir/install.sh -c"
1920 elif test -f "$ac_dir/shtool"; then
1922 ac_install_sh="$ac_aux_dir/shtool install -c"
1926 if test -z "$ac_aux_dir"; then
1927 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1928 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1929 { (exit 1); exit 1; }; }
1932 # These three variables are undocumented and unsupported,
1933 # and are intended to be withdrawn in a future Autoconf release.
1934 # They can cause serious problems if a builder's source tree is in a directory
1935 # whose full name contains unusual characters.
1936 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1937 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1938 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1942 if test ${srcdir} != "." ; then
1943 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1944 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1945 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1946 { (exit 1); exit 1; }; }
1951 ac_cpp='$CPP $CPPFLAGS'
1952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1955 if test -n "$ac_tool_prefix"; then
1956 for ac_prog in clang llvm-gcc gcc
1958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1962 if test "${ac_cv_prog_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 if test -n "$CC"; then
1966 ac_cv_prog_CC="$CC" # Let the user override the test.
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 test -z "$as_dir" && as_dir=.
1973 for ac_exec_ext in '' $ac_executable_extensions; do
1974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 if test -n "$CC"; then
1987 { echo "$as_me:$LINENO: result: $CC" >&5
1988 echo "${ECHO_T}$CC" >&6; }
1990 { echo "$as_me:$LINENO: result: no" >&5
1991 echo "${ECHO_T}no" >&6; }
1995 test -n "$CC" && break
1998 if test -z "$CC"; then
2000 for ac_prog in clang llvm-gcc gcc
2002 # Extract the first word of "$ac_prog", so it can be a program name with args.
2003 set dummy $ac_prog; ac_word=$2
2004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$ac_ct_CC"; then
2010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2019 ac_cv_prog_ac_ct_CC="$ac_prog"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030 if test -n "$ac_ct_CC"; then
2031 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032 echo "${ECHO_T}$ac_ct_CC" >&6; }
2034 { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2039 test -n "$ac_ct_CC" && break
2042 if test "x$ac_ct_CC" = x; then
2045 case $cross_compiling:$ac_tool_warned in
2047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2048 whose name does not start with the host triplet. If you think this
2049 configuration is useful to you, please write to autoconf@gnu.org." >&5
2050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2051 whose name does not start with the host triplet. If you think this
2052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2053 ac_tool_warned=yes ;;
2060 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2061 See \`config.log' for more details." >&5
2062 echo "$as_me: error: no acceptable C compiler found in \$PATH
2063 See \`config.log' for more details." >&2;}
2064 { (exit 1); exit 1; }; }
2066 # Provide some information about the compiler.
2067 echo "$as_me:$LINENO: checking for C compiler version" >&5
2068 ac_compiler=`set X $ac_compile; echo $2`
2069 { (ac_try="$ac_compiler --version >&5"
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2075 (eval "$ac_compiler --version >&5") 2>&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }
2079 { (ac_try="$ac_compiler -v >&5"
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2085 (eval "$ac_compiler -v >&5") 2>&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2089 { (ac_try="$ac_compiler -V >&5"
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler -V >&5") 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2100 cat >conftest.$ac_ext <<_ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2115 ac_clean_files_save=$ac_clean_files
2116 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2117 # Try to create an executable without -o first, disregard a.out.
2118 # It will help us diagnose broken compilers, and finding out an intuition
2120 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2121 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2122 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124 # List of possible output files, starting from the most likely.
2125 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2126 # only as a last resort. b.out is created by i960 compilers.
2127 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2129 # The IRIX 6 linker writes into existing files which may not be
2130 # executable, retaining their permissions. Remove them first so a
2131 # subsequent execution test works.
2133 for ac_file in $ac_files
2136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2142 if { (ac_try="$ac_link_default"
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148 (eval "$ac_link_default") 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }; then
2152 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2153 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2154 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2155 # so that the user can short-circuit this test for compilers unknown to
2157 for ac_file in $ac_files
2159 test -f "$ac_file" || continue
2161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2164 # We found the default executable, but exeext='' is most
2168 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2170 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172 # We set ac_cv_exeext here because the later test for it is not
2173 # safe: cross compilers may not add the suffix if given an `-o'
2174 # argument, so we may need to know it at that point already.
2175 # Even if this section looks crufty: it has the advantage of
2182 test "$ac_cv_exeext" = no && ac_cv_exeext=
2185 echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2188 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: C compiler cannot create executables
2191 See \`config.log' for more details." >&2;}
2192 { (exit 77); exit 77; }; }
2195 ac_exeext=$ac_cv_exeext
2196 { echo "$as_me:$LINENO: result: $ac_file" >&5
2197 echo "${ECHO_T}$ac_file" >&6; }
2199 # Check that the compiler produces executables we can run. If not, either
2200 # the compiler is broken, or we cross compile.
2201 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2202 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2203 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2204 # If not cross compiling, check that we can run a simple program.
2205 if test "$cross_compiling" != yes; then
2206 if { ac_try='./$ac_file'
2207 { (case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2212 (eval "$ac_try") 2>&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2218 if test "$cross_compiling" = maybe; then
2221 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2222 If you meant to cross compile, use \`--host'.
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: cannot run C compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&2;}
2227 { (exit 1); exit 1; }; }
2231 { echo "$as_me:$LINENO: result: yes" >&5
2232 echo "${ECHO_T}yes" >&6; }
2234 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2235 ac_clean_files=$ac_clean_files_save
2236 # Check that the compiler produces executables we can run. If not, either
2237 # the compiler is broken, or we cross compile.
2238 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2239 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2240 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2241 echo "${ECHO_T}$cross_compiling" >&6; }
2243 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2244 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2245 if { (ac_try="$ac_link"
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2251 (eval "$ac_link") 2>&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; then
2255 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2259 for ac_file in conftest.exe conftest conftest.*; do
2260 test -f "$ac_file" || continue
2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2269 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2272 See \`config.log' for more details." >&2;}
2273 { (exit 1); exit 1; }; }
2276 rm -f conftest$ac_cv_exeext
2277 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2278 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2280 rm -f conftest.$ac_ext
2281 EXEEXT=$ac_cv_exeext
2283 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2284 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2285 if test "${ac_cv_objext+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 cat >conftest.$ac_ext <<_ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2303 rm -f conftest.o conftest.obj
2304 if { (ac_try="$ac_compile"
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310 (eval "$ac_compile") 2>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; then
2314 for ac_file in conftest.o conftest.obj conftest.*; do
2315 test -f "$ac_file" || continue;
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2326 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329 See \`config.log' for more details." >&2;}
2330 { (exit 1); exit 1; }; }
2333 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336 echo "${ECHO_T}$ac_cv_objext" >&6; }
2337 OBJEXT=$ac_cv_objext
2339 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2341 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 cat >conftest.$ac_ext <<_ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h. */
2362 rm -f conftest.$ac_objext
2363 if { (ac_try="$ac_compile"
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_compile") 2>conftest.er1
2371 grep -v '^ *+' conftest.er1 >conftest.err
2373 cat conftest.err >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); } &&
2376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2377 { (case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382 (eval "$ac_try") 2>&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_try") 2>&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2408 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2413 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2414 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2415 if test "${ac_cv_prog_cc_g+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 ac_save_c_werror_flag=$ac_c_werror_flag
2419 ac_c_werror_flag=yes
2422 cat >conftest.$ac_ext <<_ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2437 rm -f conftest.$ac_objext
2438 if { (ac_try="$ac_compile"
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444 (eval "$ac_compile") 2>conftest.er1
2446 grep -v '^ *+' conftest.er1 >conftest.err
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2452 { (case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457 (eval "$ac_try") 2>&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_try") 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2473 echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2477 cat >conftest.$ac_ext <<_ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2492 rm -f conftest.$ac_objext
2493 if { (ac_try="$ac_compile"
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_compile") 2>conftest.er1
2501 grep -v '^ *+' conftest.er1 >conftest.err
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2507 { (case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_try") 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2531 ac_c_werror_flag=$ac_save_c_werror_flag
2533 cat >conftest.$ac_ext <<_ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h. */
2548 rm -f conftest.$ac_objext
2549 if { (ac_try="$ac_compile"
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_compile") 2>conftest.er1
2557 grep -v '^ *+' conftest.er1 >conftest.err
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2563 { (case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_try") 2>&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_try") 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 ac_c_werror_flag=$ac_save_c_werror_flag
2599 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2600 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2601 if test "$ac_test_CFLAGS" = set; then
2602 CFLAGS=$ac_save_CFLAGS
2603 elif test $ac_cv_prog_cc_g = yes; then
2604 if test "$GCC" = yes; then
2610 if test "$GCC" = yes; then
2616 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2617 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_cc_c89+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 ac_cv_prog_cc_c89=no
2623 cat >conftest.$ac_ext <<_ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2631 #include <sys/types.h>
2632 #include <sys/stat.h>
2633 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2634 struct buf { int x; };
2635 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2636 static char *e (p, i)
2642 static char *f (char * (*g) (char **, int), char **p, ...)
2647 s = g (p, va_arg (v,int));
2652 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2653 function prototypes and stuff, but not '\xHH' hex character constants.
2654 These don't provoke an error unfortunately, instead are silently treated
2655 as 'x'. The following induces an error, until -std is added to get
2656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2657 array size at least. It's necessary to write '\x00'==0 to get something
2658 that's true only with -std. */
2659 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2661 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2662 inside strings and character constants. */
2664 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2666 int test (int i, double x);
2667 struct s1 {int (*f) (int a);};
2668 struct s2 {int (*f) (double a);};
2669 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2675 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2680 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2681 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2683 CC="$ac_save_CC $ac_arg"
2684 rm -f conftest.$ac_objext
2685 if { (ac_try="$ac_compile"
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compile") 2>conftest.er1
2693 grep -v '^ *+' conftest.er1 >conftest.err
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2699 { (case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_try") 2>&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_try") 2>&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2718 ac_cv_prog_cc_c89=$ac_arg
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2726 rm -f core conftest.err conftest.$ac_objext
2727 test "x$ac_cv_prog_cc_c89" != "xno" && break
2729 rm -f conftest.$ac_ext
2734 case "x$ac_cv_prog_cc_c89" in
2736 { echo "$as_me:$LINENO: result: none needed" >&5
2737 echo "${ECHO_T}none needed" >&6; } ;;
2739 { echo "$as_me:$LINENO: result: unsupported" >&5
2740 echo "${ECHO_T}unsupported" >&6; } ;;
2742 CC="$CC $ac_cv_prog_cc_c89"
2743 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2744 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 ac_cpp='$CXXCPP $CPPFLAGS'
2756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2759 if test -z "$CXX"; then
2760 if test -n "$CCC"; then
2763 if test -n "$ac_tool_prefix"; then
2764 for ac_prog in clang++ llvm-g++ g++
2766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2770 if test "${ac_cv_prog_CXX+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 if test -n "$CXX"; then
2774 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 if test -n "$CXX"; then
2795 { echo "$as_me:$LINENO: result: $CXX" >&5
2796 echo "${ECHO_T}$CXX" >&6; }
2798 { echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6; }
2803 test -n "$CXX" && break
2806 if test -z "$CXX"; then
2808 for ac_prog in clang++ llvm-g++ g++
2810 # Extract the first word of "$ac_prog", so it can be a program name with args.
2811 set dummy $ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 if test -n "$ac_ct_CXX"; then
2818 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_ac_ct_CXX="$ac_prog"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2838 if test -n "$ac_ct_CXX"; then
2839 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2840 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2842 { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2847 test -n "$ac_ct_CXX" && break
2850 if test "x$ac_ct_CXX" = x; then
2853 case $cross_compiling:$ac_tool_warned in
2855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2856 whose name does not start with the host triplet. If you think this
2857 configuration is useful to you, please write to autoconf@gnu.org." >&5
2858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2859 whose name does not start with the host triplet. If you think this
2860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2861 ac_tool_warned=yes ;;
2869 # Provide some information about the compiler.
2870 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2871 ac_compiler=`set X $ac_compile; echo $2`
2872 { (ac_try="$ac_compiler --version >&5"
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compiler --version >&5") 2>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }
2882 { (ac_try="$ac_compiler -v >&5"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compiler -v >&5") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2892 { (ac_try="$ac_compiler -V >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler -V >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2903 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2904 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2905 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 cat >conftest.$ac_ext <<_ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2935 grep -v '^ *+' conftest.er1 >conftest.err
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } &&
2940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2941 { (case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_try") 2>&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_try") 2>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2972 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2973 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2974 GXX=`test $ac_compiler_gnu = yes && echo yes`
2975 ac_test_CXXFLAGS=${CXXFLAGS+set}
2976 ac_save_CXXFLAGS=$CXXFLAGS
2977 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2978 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_cxx_g+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2983 ac_cxx_werror_flag=yes
2986 cat >conftest.$ac_ext <<_ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } &&
3015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3016 { (case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_try") 2>&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; } &&
3025 { ac_try='test -s conftest.$ac_objext'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3035 ac_cv_prog_cxx_g=yes
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3097 cat >conftest.$ac_ext <<_ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3112 rm -f conftest.$ac_objext
3113 if { (ac_try="$ac_compile"
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_compile") 2>conftest.er1
3121 grep -v '^ *+' conftest.er1 >conftest.err
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3127 { (case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_try") 2>&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 ac_cv_prog_cxx_g=yes
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3163 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3164 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3165 if test "$ac_test_CXXFLAGS" = set; then
3166 CXXFLAGS=$ac_save_CXXFLAGS
3167 elif test $ac_cv_prog_cxx_g = yes; then
3168 if test "$GXX" = yes; then
3174 if test "$GXX" = yes; then
3181 ac_cpp='$CPP $CPPFLAGS'
3182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3192 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3193 # On Suns, sometimes $CPP names a directory.
3194 if test -n "$CPP" && test -d "$CPP"; then
3197 if test -z "$CPP"; then
3198 if test "${ac_cv_prog_CPP+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 # Double quotes because CPP needs to be expanded
3202 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3205 for ac_c_preproc_warn_flag in '' yes
3207 # Use a header file that comes with gcc, so configuring glibc
3208 # with a fresh cross-compiler works.
3209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3210 # <limits.h> exists even on freestanding compilers.
3211 # On the NeXT, cc -E runs the code through the compiler's parser,
3212 # not just through cpp. "Syntax error" is here to catch this case.
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3220 # include <limits.h>
3222 # include <assert.h>
3226 if { (ac_try="$ac_cpp conftest.$ac_ext"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3234 grep -v '^ *+' conftest.er1 >conftest.err
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev/null; then
3239 if test -s conftest.err; then
3240 ac_cpp_err=$ac_c_preproc_warn_flag
3241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3248 if test -z "$ac_cpp_err"; then
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 # Broken: fails on valid input.
3258 rm -f conftest.err conftest.$ac_ext
3260 # OK, works on sane cases. Now check whether nonexistent headers
3261 # can be detected and how.
3262 cat >conftest.$ac_ext <<_ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3268 #include <ac_nonexistent.h>
3270 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278 grep -v '^ *+' conftest.er1 >conftest.err
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } >/dev/null; then
3283 if test -s conftest.err; then
3284 ac_cpp_err=$ac_c_preproc_warn_flag
3285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3292 if test -z "$ac_cpp_err"; then
3293 # Broken: success on invalid input.
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 # Passes both tests.
3304 rm -f conftest.err conftest.$ac_ext
3307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3308 rm -f conftest.err conftest.$ac_ext
3309 if $ac_preproc_ok; then
3321 { echo "$as_me:$LINENO: result: $CPP" >&5
3322 echo "${ECHO_T}$CPP" >&6; }
3324 for ac_c_preproc_warn_flag in '' yes
3326 # Use a header file that comes with gcc, so configuring glibc
3327 # with a fresh cross-compiler works.
3328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329 # <limits.h> exists even on freestanding compilers.
3330 # On the NeXT, cc -E runs the code through the compiler's parser,
3331 # not just through cpp. "Syntax error" is here to catch this case.
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3339 # include <limits.h>
3341 # include <assert.h>
3345 if { (ac_try="$ac_cpp conftest.$ac_ext"
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3353 grep -v '^ *+' conftest.er1 >conftest.err
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } >/dev/null; then
3358 if test -s conftest.err; then
3359 ac_cpp_err=$ac_c_preproc_warn_flag
3360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3367 if test -z "$ac_cpp_err"; then
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3373 # Broken: fails on valid input.
3377 rm -f conftest.err conftest.$ac_ext
3379 # OK, works on sane cases. Now check whether nonexistent headers
3380 # can be detected and how.
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3387 #include <ac_nonexistent.h>
3389 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397 grep -v '^ *+' conftest.er1 >conftest.err
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } >/dev/null; then
3402 if test -s conftest.err; then
3403 ac_cpp_err=$ac_c_preproc_warn_flag
3404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411 if test -z "$ac_cpp_err"; then
3412 # Broken: success on invalid input.
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 # Passes both tests.
3423 rm -f conftest.err conftest.$ac_ext
3426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3427 rm -f conftest.err conftest.$ac_ext
3428 if $ac_preproc_ok; then
3431 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3432 See \`config.log' for more details." >&5
3433 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3434 See \`config.log' for more details." >&2;}
3435 { (exit 1); exit 1; }; }
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 if test -d ${srcdir}/projects/llvm-gcc ; then
3448 subdirs="$subdirs projects/llvm-gcc"
3452 if test -d ${srcdir}/projects/test-suite ; then
3453 subdirs="$subdirs projects/test-suite"
3457 if test -d ${srcdir}/projects/llvm-test ; then
3458 subdirs="$subdirs projects/llvm-test"
3462 if test -d ${srcdir}/projects/poolalloc ; then
3463 subdirs="$subdirs projects/poolalloc"
3467 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3468 subdirs="$subdirs projects/llvm-poolalloc"
3472 for i in `ls ${srcdir}/projects`
3474 if test -d ${srcdir}/projects/${i} ; then
3476 sample) subdirs="$subdirs projects/sample"
3478 privbracket) subdirs="$subdirs projects/privbracket"
3480 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3482 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3484 llvm-java) subdirs="$subdirs projects/llvm-java"
3486 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3488 safecode) subdirs="$subdirs projects/safecode"
3490 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3498 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3499 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3505 # Check whether --enable-polly was given.
3506 if test "${enable_polly+set}" = set; then
3507 enableval=$enable_polly;
3512 case "$enableval" in
3517 default) ENABLE_POLLY=1
3519 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3520 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3521 { (exit 1); exit 1; }; } ;;
3525 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3528 subdirs="$subdirs tools/polly"
3533 # Make sure we can run config.sub.
3534 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3535 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3536 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3537 { (exit 1); exit 1; }; }
3539 { echo "$as_me:$LINENO: checking build system type" >&5
3540 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3541 if test "${ac_cv_build+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 ac_build_alias=$build_alias
3545 test "x$ac_build_alias" = x &&
3546 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3547 test "x$ac_build_alias" = x &&
3548 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3549 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3550 { (exit 1); exit 1; }; }
3551 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3552 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3553 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3554 { (exit 1); exit 1; }; }
3557 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3558 echo "${ECHO_T}$ac_cv_build" >&6; }
3559 case $ac_cv_build in
3561 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3562 echo "$as_me: error: invalid value of canonical build" >&2;}
3563 { (exit 1); exit 1; }; };;
3566 ac_save_IFS=$IFS; IFS='-'
3572 # Remember, the first character of IFS is used to create $*,
3573 # except with old shells:
3576 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3579 { echo "$as_me:$LINENO: checking host system type" >&5
3580 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3581 if test "${ac_cv_host+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 if test "x$host_alias" = x; then
3585 ac_cv_host=$ac_cv_build
3587 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3588 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3589 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3590 { (exit 1); exit 1; }; }
3594 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3595 echo "${ECHO_T}$ac_cv_host" >&6; }
3598 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3599 echo "$as_me: error: invalid value of canonical host" >&2;}
3600 { (exit 1); exit 1; }; };;
3603 ac_save_IFS=$IFS; IFS='-'
3609 # Remember, the first character of IFS is used to create $*,
3610 # except with old shells:
3613 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3616 { echo "$as_me:$LINENO: checking target system type" >&5
3617 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3618 if test "${ac_cv_target+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 if test "x$target_alias" = x; then
3622 ac_cv_target=$ac_cv_host
3624 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3625 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3626 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3627 { (exit 1); exit 1; }; }
3631 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3632 echo "${ECHO_T}$ac_cv_target" >&6; }
3633 case $ac_cv_target in
3635 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3636 echo "$as_me: error: invalid value of canonical target" >&2;}
3637 { (exit 1); exit 1; }; };;
3639 target=$ac_cv_target
3640 ac_save_IFS=$IFS; IFS='-'
3646 # Remember, the first character of IFS is used to create $*,
3647 # except with old shells:
3650 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3653 # The aliases save the names the user supplied, while $host etc.
3654 # will get canonicalized.
3655 test -n "$target_alias" &&
3656 test "$program_prefix$program_suffix$program_transform_name" = \
3658 program_prefix=${target_alias}-
3660 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3661 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3662 if test "${llvm_cv_os_type+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 llvm_cv_link_all_option="-Wl,--whole-archive"
3668 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3669 llvm_cv_os_type="AIX"
3670 llvm_cv_platform_type="Unix" ;;
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="IRIX"
3675 llvm_cv_platform_type="Unix" ;;
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="Cygwin"
3680 llvm_cv_platform_type="Unix" ;;
3682 llvm_cv_link_all_option="-Wl,-all_load"
3683 llvm_cv_no_link_all_option="-Wl,-noall_load"
3684 llvm_cv_os_type="Darwin"
3685 llvm_cv_platform_type="Unix" ;;
3687 llvm_cv_link_all_option="-Wl,-all_load"
3688 llvm_cv_no_link_all_option="-Wl,-noall_load"
3689 llvm_cv_os_type="Minix"
3690 llvm_cv_platform_type="Unix" ;;
3692 llvm_cv_link_all_option="-Wl,--whole-archive"
3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694 llvm_cv_os_type="FreeBSD"
3695 llvm_cv_platform_type="Unix" ;;
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="OpenBSD"
3700 llvm_cv_platform_type="Unix" ;;
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="NetBSD"
3705 llvm_cv_platform_type="Unix" ;;
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="DragonFly"
3710 llvm_cv_platform_type="Unix" ;;
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="HP-UX"
3715 llvm_cv_platform_type="Unix" ;;
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="Interix"
3720 llvm_cv_platform_type="Unix" ;;
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="Linux"
3725 llvm_cv_platform_type="Unix" ;;
3727 llvm_cv_link_all_option="-Wl,-z,allextract"
3728 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3729 llvm_cv_os_type="SunOS"
3730 llvm_cv_platform_type="Unix" ;;
3732 llvm_cv_link_all_option="-Wl,-z,allextract"
3733 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3734 llvm_cv_os_type="AuroraUX"
3735 llvm_cv_platform_type="Unix" ;;
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="Win32"
3740 llvm_cv_platform_type="Win32" ;;
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="MingW"
3745 llvm_cv_platform_type="Win32" ;;
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="Haiku"
3750 llvm_cv_platform_type="Unix" ;;
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="Freestanding"
3755 llvm_cv_platform_type="Unix" ;;
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="Freestanding"
3760 llvm_cv_platform_type="Unix" ;;
3762 llvm_cv_link_all_option=""
3763 llvm_cv_no_link_all_option=""
3764 llvm_cv_os_type="Unknown"
3765 llvm_cv_platform_type="Unknown" ;;
3768 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3769 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3771 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3772 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3773 if test "${llvm_cv_target_os_type+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 llvm_cv_target_os_type="AIX" ;;
3780 llvm_cv_target_os_type="IRIX" ;;
3782 llvm_cv_target_os_type="Cygwin" ;;
3784 llvm_cv_target_os_type="Darwin" ;;
3786 llvm_cv_target_os_type="Minix" ;;
3788 llvm_cv_target_os_type="FreeBSD" ;;
3790 llvm_cv_target_os_type="OpenBSD" ;;
3792 llvm_cv_target_os_type="NetBSD" ;;
3794 llvm_cv_target_os_type="DragonFly" ;;
3796 llvm_cv_target_os_type="HP-UX" ;;
3798 llvm_cv_target_os_type="Interix" ;;
3800 llvm_cv_target_os_type="Linux" ;;
3802 llvm_cv_target_os_type="SunOS" ;;
3804 llvm_cv_target_os_type="AuroraUX" ;;
3806 llvm_cv_target_os_type="Win32" ;;
3808 llvm_cv_target_os_type="MingW" ;;
3810 llvm_cv_target_os_type="Haiku" ;;
3812 llvm_cv_target_os_type="RTEMS" ;;
3814 llvm_cv_target_os_type="NativeClient" ;;
3816 llvm_cv_target_os_type="Freestanding" ;;
3818 llvm_cv_target_os_type="Unknown" ;;
3821 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3822 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3824 if test "$llvm_cv_os_type" = "Unknown" ; then
3825 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3826 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3827 { (exit 1); exit 1; }; }
3832 HOST_OS=$llvm_cv_os_type
3834 TARGET_OS=$llvm_cv_target_os_type
3837 LINKALL=$llvm_cv_link_all_option
3839 NOLINKALL=$llvm_cv_no_link_all_option
3842 case $llvm_cv_platform_type in
3845 cat >>confdefs.h <<\_ACEOF
3846 #define LLVM_ON_UNIX 1
3856 cat >>confdefs.h <<\_ACEOF
3857 #define LLVM_ON_WIN32 1
3867 { echo "$as_me:$LINENO: checking target architecture" >&5
3868 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3869 if test "${llvm_cv_target_arch+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 i?86-*) llvm_cv_target_arch="x86" ;;
3874 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3875 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3876 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3877 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3878 arm*-*) llvm_cv_target_arch="ARM" ;;
3879 mips-*) llvm_cv_target_arch="Mips" ;;
3880 xcore-*) llvm_cv_target_arch="XCore" ;;
3881 msp430-*) llvm_cv_target_arch="MSP430" ;;
3882 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3883 ptx-*) llvm_cv_target_arch="PTX" ;;
3884 *) llvm_cv_target_arch="Unknown" ;;
3887 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3888 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3890 if test "$llvm_cv_target_arch" = "Unknown" ; then
3891 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3892 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3895 # Determine the LLVM native architecture for the target
3896 case "$llvm_cv_target_arch" in
3897 x86) LLVM_NATIVE_ARCH="X86" ;;
3898 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3899 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3902 ARCH=$llvm_cv_target_arch
3907 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3908 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3909 if test "${ac_cv_path_GREP+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 # Extract the first word of "grep ggrep" to use in msg output
3913 if test -z "$GREP"; then
3914 set dummy grep ggrep; ac_prog_name=$2
3915 if test "${ac_cv_path_GREP+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 ac_path_GREP_found=false
3919 # Loop through the user's path and test for each of PROGNAME-LIST
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3924 test -z "$as_dir" && as_dir=.
3925 for ac_prog in grep ggrep; do
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3928 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3929 # Check for GNU ac_path_GREP and select it if it is found.
3930 # Check for GNU $ac_path_GREP
3931 case `"$ac_path_GREP" --version 2>&1` in
3933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3936 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3939 cat "conftest.in" "conftest.in" >"conftest.tmp"
3940 mv "conftest.tmp" "conftest.in"
3941 cp "conftest.in" "conftest.nl"
3942 echo 'GREP' >> "conftest.nl"
3943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945 ac_count=`expr $ac_count + 1`
3946 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3947 # Best one so far, save it but keep looking for a better one
3948 ac_cv_path_GREP="$ac_path_GREP"
3949 ac_path_GREP_max=$ac_count
3951 # 10*(2^10) chars as input seems more than enough
3952 test $ac_count -gt 10 && break
3954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3958 $ac_path_GREP_found && break 3
3968 GREP="$ac_cv_path_GREP"
3969 if test -z "$GREP"; then
3970 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3971 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3972 { (exit 1); exit 1; }; }
3976 ac_cv_path_GREP=$GREP
3981 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3982 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3983 GREP="$ac_cv_path_GREP"
3986 { echo "$as_me:$LINENO: checking for egrep" >&5
3987 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3988 if test "${ac_cv_path_EGREP+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3992 then ac_cv_path_EGREP="$GREP -E"
3994 # Extract the first word of "egrep" to use in msg output
3995 if test -z "$EGREP"; then
3996 set dummy egrep; ac_prog_name=$2
3997 if test "${ac_cv_path_EGREP+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 ac_path_EGREP_found=false
4001 # Loop through the user's path and test for each of PROGNAME-LIST
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4006 test -z "$as_dir" && as_dir=.
4007 for ac_prog in egrep; do
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4010 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4011 # Check for GNU ac_path_EGREP and select it if it is found.
4012 # Check for GNU $ac_path_EGREP
4013 case `"$ac_path_EGREP" --version 2>&1` in
4015 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4018 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4021 cat "conftest.in" "conftest.in" >"conftest.tmp"
4022 mv "conftest.tmp" "conftest.in"
4023 cp "conftest.in" "conftest.nl"
4024 echo 'EGREP' >> "conftest.nl"
4025 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4027 ac_count=`expr $ac_count + 1`
4028 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4029 # Best one so far, save it but keep looking for a better one
4030 ac_cv_path_EGREP="$ac_path_EGREP"
4031 ac_path_EGREP_max=$ac_count
4033 # 10*(2^10) chars as input seems more than enough
4034 test $ac_count -gt 10 && break
4036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040 $ac_path_EGREP_found && break 3
4050 EGREP="$ac_cv_path_EGREP"
4051 if test -z "$EGREP"; then
4052 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4053 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4054 { (exit 1); exit 1; }; }
4058 ac_cv_path_EGREP=$EGREP
4064 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4065 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4066 EGREP="$ac_cv_path_EGREP"
4069 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4070 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4071 if test "${ac_cv_header_stdc+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 cat >conftest.$ac_ext <<_ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4093 rm -f conftest.$ac_objext
4094 if { (ac_try="$ac_compile"
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100 (eval "$ac_compile") 2>conftest.er1
4102 grep -v '^ *+' conftest.er1 >conftest.err
4104 cat conftest.err >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } &&
4107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4108 { (case "(($ac_try" in
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4113 (eval "$ac_try") 2>&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; } &&
4117 { ac_try='test -s conftest.$ac_objext'
4118 { (case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_try") 2>&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4127 ac_cv_header_stdc=yes
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4132 ac_cv_header_stdc=no
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 if test $ac_cv_header_stdc = yes; then
4138 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4139 cat >conftest.$ac_ext <<_ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149 $EGREP "memchr" >/dev/null 2>&1; then
4152 ac_cv_header_stdc=no
4158 if test $ac_cv_header_stdc = yes; then
4159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170 $EGREP "free" >/dev/null 2>&1; then
4173 ac_cv_header_stdc=no
4179 if test $ac_cv_header_stdc = yes; then
4180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4181 if test "$cross_compiling" = yes; then
4184 cat >conftest.$ac_ext <<_ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4192 #if ((' ' & 0x0FF) == 0x020)
4193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196 # define ISLOWER(c) \
4197 (('a' <= (c) && (c) <= 'i') \
4198 || ('j' <= (c) && (c) <= 'r') \
4199 || ('s' <= (c) && (c) <= 'z'))
4200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4208 for (i = 0; i < 256; i++)
4209 if (XOR (islower (i), ISLOWER (i))
4210 || toupper (i) != TOUPPER (i))
4215 rm -f conftest$ac_exeext
4216 if { (ac_try="$ac_link"
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_link") 2>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4226 { (case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_try") 2>&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4237 echo "$as_me: program exited with status $ac_status" >&5
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4242 ac_cv_header_stdc=no
4244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4250 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4251 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4252 if test $ac_cv_header_stdc = yes; then
4254 cat >>confdefs.h <<\_ACEOF
4255 #define STDC_HEADERS 1
4260 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4270 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4271 inttypes.h stdint.h unistd.h
4273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 cat >conftest.$ac_ext <<_ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4285 $ac_includes_default
4287 #include <$ac_header>
4289 rm -f conftest.$ac_objext
4290 if { (ac_try="$ac_compile"
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_compile") 2>conftest.er1
4298 grep -v '^ *+' conftest.er1 >conftest.err
4300 cat conftest.err >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } &&
4303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4304 { (case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_try") 2>&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try='test -s conftest.$ac_objext'
4314 { (case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_try") 2>&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 eval "$as_ac_Header=yes"
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 eval "$as_ac_Header=no"
4331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 ac_res=`eval echo '${'$as_ac_Header'}'`
4334 { echo "$as_me:$LINENO: result: $ac_res" >&5
4335 echo "${ECHO_T}$ac_res" >&6; }
4336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4337 cat >>confdefs.h <<_ACEOF
4338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4346 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4347 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4348 if test "${ac_cv_c_bigendian+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 # See if sys/param.h defines the BYTE_ORDER macro.
4352 cat >conftest.$ac_ext <<_ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358 #include <sys/types.h>
4359 #include <sys/param.h>
4364 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4372 rm -f conftest.$ac_objext
4373 if { (ac_try="$ac_compile"
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_compile") 2>conftest.er1
4381 grep -v '^ *+' conftest.er1 >conftest.err
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4387 { (case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392 (eval "$ac_try") 2>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; } &&
4396 { ac_try='test -s conftest.$ac_objext'
4397 { (case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_try") 2>&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 # It does; now see whether it defined to BIG_ENDIAN or not.
4407 cat >conftest.$ac_ext <<_ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <sys/types.h>
4414 #include <sys/param.h>
4419 #if BYTE_ORDER != BIG_ENDIAN
4427 rm -f conftest.$ac_objext
4428 if { (ac_try="$ac_compile"
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4436 grep -v '^ *+' conftest.er1 >conftest.err
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4442 { (case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_try") 2>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; } &&
4451 { ac_try='test -s conftest.$ac_objext'
4452 { (case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_try") 2>&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 ac_cv_c_bigendian=yes
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 ac_cv_c_bigendian=no
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 # It does not; compile a test program.
4475 if test "$cross_compiling" = yes; then
4476 # try to guess the endianness by grepping values into an object file
4477 ac_cv_c_bigendian=unknown
4478 cat >conftest.$ac_ext <<_ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4485 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4486 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4487 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4488 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4489 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4493 _ascii (); _ebcdic ();
4498 rm -f conftest.$ac_objext
4499 if { (ac_try="$ac_compile"
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505 (eval "$ac_compile") 2>conftest.er1
4507 grep -v '^ *+' conftest.er1 >conftest.err
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4513 { (case "(($ac_try" in
4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4518 (eval "$ac_try") 2>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try='test -s conftest.$ac_objext'
4523 { (case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528 (eval "$ac_try") 2>&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4533 ac_cv_c_bigendian=yes
4535 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4536 if test "$ac_cv_c_bigendian" = unknown; then
4537 ac_cv_c_bigendian=no
4539 # finding both strings is unlikely to happen, but who knows?
4540 ac_cv_c_bigendian=unknown
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 cat >conftest.$ac_ext <<_ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4558 $ac_includes_default
4563 /* Are we little or big endian? From Harbison&Steele. */
4567 char c[sizeof (long int)];
4570 return u.c[sizeof (long int) - 1] == 1;
4576 rm -f conftest$ac_exeext
4577 if { (ac_try="$ac_link"
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_link") 2>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4587 { (case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592 (eval "$ac_try") 2>&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 ac_cv_c_bigendian=no
4598 echo "$as_me: program exited with status $ac_status" >&5
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4603 ac_cv_c_bigendian=yes
4605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4614 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4615 case $ac_cv_c_bigendian in
4623 { { echo "$as_me:$LINENO: error: unknown endianness
4624 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4625 echo "$as_me: error: unknown endianness
4626 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4627 { (exit 1); exit 1; }; } ;;
4631 if test "$cross_compiling" = yes; then
4632 LLVM_CROSS_COMPILING=1
4635 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4636 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4637 if test "${ac_cv_build_exeext+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4641 ac_cv_build_exeext=.exe
4643 ac_build_prefix=${build_alias}-
4645 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4646 set dummy ${ac_build_prefix}gcc; ac_word=$2
4647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4649 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 if test -n "$BUILD_CC"; then
4653 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 BUILD_CC=$ac_cv_prog_BUILD_CC
4673 if test -n "$BUILD_CC"; then
4674 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4675 echo "${ECHO_T}$BUILD_CC" >&6; }
4677 { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4682 if test -z "$BUILD_CC"; then
4683 # Extract the first word of "gcc", so it can be a program name with args.
4684 set dummy gcc; ac_word=$2
4685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4687 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 if test -n "$BUILD_CC"; then
4691 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_BUILD_CC="gcc"
4701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 BUILD_CC=$ac_cv_prog_BUILD_CC
4711 if test -n "$BUILD_CC"; then
4712 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4713 echo "${ECHO_T}$BUILD_CC" >&6; }
4715 { echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6; }
4720 if test -z "$BUILD_CC"; then
4721 # Extract the first word of "cc", so it can be a program name with args.
4722 set dummy cc; ac_word=$2
4723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4725 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 if test -n "$BUILD_CC"; then
4729 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4740 ac_prog_rejected=yes
4743 ac_cv_prog_BUILD_CC="cc"
4744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 if test $ac_prog_rejected = yes; then
4752 # We found a bogon in the path, so make sure we never use it.
4753 set dummy $ac_cv_prog_BUILD_CC
4755 if test $# != 0; then
4756 # We chose a different compiler from the bogus one.
4757 # However, it has the same basename, so the bogon will be chosen
4758 # first if we set BUILD_CC to just the basename; use the full file name.
4760 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4765 BUILD_CC=$ac_cv_prog_BUILD_CC
4766 if test -n "$BUILD_CC"; then
4767 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4768 echo "${ECHO_T}$BUILD_CC" >&6; }
4770 { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4777 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4778 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4779 { (exit 1); exit 1; }; }
4780 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4782 echo 'int main () { return 0; }' > conftest.$ac_ext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4785 (eval $ac_build_link) 2>&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; then
4789 for file in conftest.*; do
4791 *.c | *.o | *.obj | *.dSYM) ;;
4792 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4796 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4797 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4798 { (exit 1); exit 1; }; }
4801 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4806 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4807 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4808 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4809 ac_build_exeext=$BUILD_EXEEXT
4811 ac_build_prefix=${build_alias}-
4812 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4813 set dummy ${ac_build_prefix}g++; ac_word=$2
4814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4816 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 if test -n "$BUILD_CXX"; then
4820 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4840 if test -n "$BUILD_CXX"; then
4841 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4842 echo "${ECHO_T}$BUILD_CXX" >&6; }
4844 { echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6; }
4849 if test -z "$BUILD_CXX"; then
4850 # Extract the first word of "g++", so it can be a program name with args.
4851 set dummy g++; ac_word=$2
4852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4854 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 if test -n "$BUILD_CXX"; then
4858 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_prog_BUILD_CXX="g++"
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4878 if test -n "$BUILD_CXX"; then
4879 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4880 echo "${ECHO_T}$BUILD_CXX" >&6; }
4882 { echo "$as_me:$LINENO: result: no" >&5
4883 echo "${ECHO_T}no" >&6; }
4887 if test -z "$BUILD_CXX"; then
4888 # Extract the first word of "c++", so it can be a program name with args.
4889 set dummy c++; ac_word=$2
4890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4892 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 if test -n "$BUILD_CXX"; then
4896 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4907 ac_prog_rejected=yes
4910 ac_cv_prog_BUILD_CXX="c++"
4911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 if test $ac_prog_rejected = yes; then
4919 # We found a bogon in the path, so make sure we never use it.
4920 set dummy $ac_cv_prog_BUILD_CXX
4922 if test $# != 0; then
4923 # We chose a different compiler from the bogus one.
4924 # However, it has the same basename, so the bogon will be chosen
4925 # first if we set BUILD_CXX to just the basename; use the full file name.
4927 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4932 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4933 if test -n "$BUILD_CXX"; then
4934 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4935 echo "${ECHO_T}$BUILD_CXX" >&6; }
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4945 LLVM_CROSS_COMPILING=0
4949 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4960 # Check whether --enable-optimized was given.
4961 if test "${enable_optimized+set}" = set; then
4962 enableval=$enable_optimized;
4967 if test ${enableval} = "no" ; then
4971 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4975 # Check whether --enable-profiling was given.
4976 if test "${enable_profiling+set}" = set; then
4977 enableval=$enable_profiling;
4982 if test ${enableval} = "no" ; then
4986 ENABLE_PROFILING=ENABLE_PROFILING=1
4990 # Check whether --enable-assertions was given.
4991 if test "${enable_assertions+set}" = set; then
4992 enableval=$enable_assertions;
4997 if test ${enableval} = "yes" ; then
5001 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5005 # Check whether --enable-expensive-checks was given.
5006 if test "${enable_expensive_checks+set}" = set; then
5007 enableval=$enable_expensive_checks;
5012 if test ${enableval} = "yes" ; then
5013 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5015 EXPENSIVE_CHECKS=yes
5018 ENABLE_EXPENSIVE_CHECKS=
5024 # Check whether --enable-debug-runtime was given.
5025 if test "${enable_debug_runtime+set}" = set; then
5026 enableval=$enable_debug_runtime;
5031 if test ${enableval} = "no" ; then
5035 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5039 # Check whether --enable-debug-symbols was given.
5040 if test "${enable_debug_symbols+set}" = set; then
5041 enableval=$enable_debug_symbols;
5046 if test ${enableval} = "no" ; then
5050 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5054 # Check whether --enable-jit was given.
5055 if test "${enable_jit+set}" = set; then
5056 enableval=$enable_jit;
5061 if test ${enableval} = "no"
5066 case "$llvm_cv_target_arch" in
5067 x86) TARGET_HAS_JIT=1
5069 Sparc) TARGET_HAS_JIT=0
5071 PowerPC) TARGET_HAS_JIT=1
5073 x86_64) TARGET_HAS_JIT=1
5075 Alpha) TARGET_HAS_JIT=0
5077 ARM) TARGET_HAS_JIT=1
5079 Mips) TARGET_HAS_JIT=1
5081 XCore) TARGET_HAS_JIT=0
5083 MSP430) TARGET_HAS_JIT=0
5085 MBlaze) TARGET_HAS_JIT=0
5087 PTX) TARGET_HAS_JIT=0
5094 # Check whether --enable-docs was given.
5095 if test "${enable_docs+set}" = set; then
5096 enableval=$enable_docs;
5101 case "$enableval" in
5106 default) ENABLE_DOCS=1
5108 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5109 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5110 { (exit 1); exit 1; }; } ;;
5113 # Check whether --enable-doxygen was given.
5114 if test "${enable_doxygen+set}" = set; then
5115 enableval=$enable_doxygen;
5120 case "$enableval" in
5121 yes) ENABLE_DOXYGEN=1
5123 no) ENABLE_DOXYGEN=0
5125 default) ENABLE_DOXYGEN=0
5127 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5128 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5129 { (exit 1); exit 1; }; } ;;
5132 # Check whether --enable-threads was given.
5133 if test "${enable_threads+set}" = set; then
5134 enableval=$enable_threads;
5139 case "$enableval" in
5140 yes) ENABLE_THREADS=1
5142 no) ENABLE_THREADS=0
5144 default) ENABLE_THREADS=1
5146 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5147 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5148 { (exit 1); exit 1; }; } ;;
5151 cat >>confdefs.h <<_ACEOF
5152 #define ENABLE_THREADS $ENABLE_THREADS
5156 # Check whether --enable-pthreads was given.
5157 if test "${enable_pthreads+set}" = set; then
5158 enableval=$enable_pthreads;
5163 case "$enableval" in
5164 yes) ENABLE_PTHREADS=1
5166 no) ENABLE_PTHREADS=0
5168 default) ENABLE_PTHREADS=1
5170 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5172 { (exit 1); exit 1; }; } ;;
5175 # Check whether --enable-pic was given.
5176 if test "${enable_pic+set}" = set; then
5177 enableval=$enable_pic;
5182 case "$enableval" in
5187 default) ENABLE_PIC=1
5189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5191 { (exit 1); exit 1; }; } ;;
5194 cat >>confdefs.h <<_ACEOF
5195 #define ENABLE_PIC $ENABLE_PIC
5199 # Check whether --enable-shared was given.
5200 if test "${enable_shared+set}" = set; then
5201 enableval=$enable_shared;
5206 case "$enableval" in
5207 yes) ENABLE_SHARED=1
5211 default) ENABLE_SHARED=0
5213 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5215 { (exit 1); exit 1; }; } ;;
5218 # Check whether --enable-embed-stdcxx was given.
5219 if test "${enable_embed_stdcxx+set}" = set; then
5220 enableval=$enable_embed_stdcxx;
5225 case "$enableval" in
5226 yes) ENABLE_EMBED_STDCXX=1
5228 no) ENABLE_EMBED_STDCXX=0
5230 default) ENABLE_EMBED_STDCXX=0
5232 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5233 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5234 { (exit 1); exit 1; }; } ;;
5237 # Check whether --enable-timestamps was given.
5238 if test "${enable_timestamps+set}" = set; then
5239 enableval=$enable_timestamps;
5244 case "$enableval" in
5245 yes) ENABLE_TIMESTAMPS=1
5247 no) ENABLE_TIMESTAMPS=0
5249 default) ENABLE_TIMESTAMPS=1
5251 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5252 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5253 { (exit 1); exit 1; }; } ;;
5256 cat >>confdefs.h <<_ACEOF
5257 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5262 # Check whether --enable-targets was given.
5263 if test "${enable_targets+set}" = set; then
5264 enableval=$enable_targets;
5269 if test "$enableval" = host-only ; then
5272 case "$enableval" in
5273 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5274 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5276 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5277 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5278 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5279 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5280 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5281 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5282 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5283 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5284 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5285 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5286 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5287 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5288 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5289 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5290 host) case "$llvm_cv_target_arch" in
5291 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5292 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5293 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5294 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5295 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5296 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5297 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5298 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5299 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5300 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5301 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5302 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5303 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5304 echo "$as_me: error: Can not set target to build" >&2;}
5305 { (exit 1); exit 1; }; } ;;
5307 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5308 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5309 { (exit 1); exit 1; }; } ;;
5314 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5317 # Determine whether we are building LLVM support for the native architecture.
5318 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5319 for a_target in $TARGETS_TO_BUILD; do
5320 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5322 cat >>confdefs.h <<_ACEOF
5323 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5326 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5327 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5328 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5329 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5330 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5331 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5334 cat >>confdefs.h <<_ACEOF
5335 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5339 cat >>confdefs.h <<_ACEOF
5340 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5344 cat >>confdefs.h <<_ACEOF
5345 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5349 cat >>confdefs.h <<_ACEOF
5350 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5353 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5355 cat >>confdefs.h <<_ACEOF
5356 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5363 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5364 # target feature def files.
5365 LLVM_ENUM_TARGETS=""
5366 LLVM_ENUM_ASM_PRINTERS=""
5367 LLVM_ENUM_ASM_PARSERS=""
5368 LLVM_ENUM_DISASSEMBLERS=""
5369 for target_to_build in $TARGETS_TO_BUILD; do
5370 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5371 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5372 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5374 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5375 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5377 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5378 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5386 # Check whether --enable-cbe-printf-a was given.
5387 if test "${enable_cbe_printf_a+set}" = set; then
5388 enableval=$enable_cbe_printf_a;
5393 case "$enableval" in
5394 yes) ENABLE_CBE_PRINTF_A=1
5396 no) ENABLE_CBE_PRINTF_A=0
5398 default) ENABLE_CBE_PRINTF_A=1
5400 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5401 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5402 { (exit 1); exit 1; }; } ;;
5405 cat >>confdefs.h <<_ACEOF
5406 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5411 # Check whether --with-optimize-option was given.
5412 if test "${with_optimize_option+set}" = set; then
5413 withval=$with_optimize_option;
5418 { echo "$as_me:$LINENO: checking optimization flags" >&5
5419 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5422 case "$llvm_cv_os_type" in
5423 FreeBSD) optimize_option=-O2 ;;
5424 MingW) optimize_option=-O2 ;;
5425 *) optimize_option=-O3 ;;
5427 *) optimize_option="$withval" ;;
5429 OPTIMIZE_OPTION=$optimize_option
5431 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5432 echo "${ECHO_T}$optimize_option" >&6; }
5435 # Check whether --with-extra-options was given.
5436 if test "${with_extra_options+set}" = set; then
5437 withval=$with_extra_options;
5443 default) EXTRA_OPTIONS= ;;
5444 *) EXTRA_OPTIONS=$withval ;;
5446 EXTRA_OPTIONS=$EXTRA_OPTIONS
5450 # Check whether --with-extra-ld-options was given.
5451 if test "${with_extra_ld_options+set}" = set; then
5452 withval=$with_extra_ld_options;
5458 default) EXTRA_LD_OPTIONS= ;;
5459 *) EXTRA_LD_OPTIONS=$withval ;;
5461 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5464 # Check whether --enable-bindings was given.
5465 if test "${enable_bindings+set}" = set; then
5466 enableval=$enable_bindings;
5471 BINDINGS_TO_BUILD=""
5472 case "$enableval" in
5473 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5474 all ) BINDINGS_TO_BUILD="ocaml" ;;
5475 none | no) BINDINGS_TO_BUILD="" ;;
5476 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5477 case "$a_binding" in
5478 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5479 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5480 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5481 { (exit 1); exit 1; }; } ;;
5488 # Check whether --with-ocaml-libdir was given.
5489 if test "${with_ocaml_libdir+set}" = set; then
5490 withval=$with_ocaml_libdir;
5496 auto) with_ocaml_libdir="$withval" ;;
5497 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5498 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5499 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5500 { (exit 1); exit 1; }; } ;;
5504 # Check whether --with-clang-srcdir was given.
5505 if test "${with_clang_srcdir+set}" = set; then
5506 withval=$with_clang_srcdir;
5512 -) clang_src_root="" ;;
5513 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5514 *) clang_src_root="$ac_pwd/$withval" ;;
5516 CLANG_SRC_ROOT=$clang_src_root
5520 # Check whether --with-clang-resource-dir was given.
5521 if test "${with_clang_resource_dir+set}" = set; then
5522 withval=$with_clang_resource_dir;
5528 cat >>confdefs.h <<_ACEOF
5529 #define CLANG_RESOURCE_DIR "$withval"
5534 # Check whether --with-c-include-dirs was given.
5535 if test "${with_c_include_dirs+set}" = set; then
5536 withval=$with_c_include_dirs;
5542 cat >>confdefs.h <<_ACEOF
5543 #define C_INCLUDE_DIRS "$withval"
5548 # Check whether --with-cxx-include-root was given.
5549 if test "${with_cxx_include_root+set}" = set; then
5550 withval=$with_cxx_include_root;
5556 cat >>confdefs.h <<_ACEOF
5557 #define CXX_INCLUDE_ROOT "$withval"
5562 # Check whether --with-cxx-include-arch was given.
5563 if test "${with_cxx_include_arch+set}" = set; then
5564 withval=$with_cxx_include_arch;
5570 cat >>confdefs.h <<_ACEOF
5571 #define CXX_INCLUDE_ARCH "$withval"
5576 # Check whether --with-cxx-include-32bit-dir was given.
5577 if test "${with_cxx_include_32bit_dir+set}" = set; then
5578 withval=$with_cxx_include_32bit_dir;
5584 cat >>confdefs.h <<_ACEOF
5585 #define CXX_INCLUDE_32BIT_DIR "$withval"
5590 # Check whether --with-cxx-include-64bit-dir was given.
5591 if test "${with_cxx_include_64bit_dir+set}" = set; then
5592 withval=$with_cxx_include_64bit_dir;
5598 cat >>confdefs.h <<_ACEOF
5599 #define CXX_INCLUDE_64BIT_DIR "$withval"
5604 # Check whether --with-binutils-include was given.
5605 if test "${with_binutils_include+set}" = set; then
5606 withval=$with_binutils_include;
5612 default) WITH_BINUTILS_INCDIR=default ;;
5613 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5614 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5615 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5616 { (exit 1); exit 1; }; } ;;
5618 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5619 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5621 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5622 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5623 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5624 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5625 { (exit 1); exit 1; }; };
5630 # Check whether --with-bug-report-url was given.
5631 if test "${with_bug_report_url+set}" = set; then
5632 withval=$with_bug_report_url;
5634 withval="http://llvm.org/bugs/"
5638 cat >>confdefs.h <<_ACEOF
5639 #define BUG_REPORT_URL "$withval"
5643 # Check whether --enable-libffi was given.
5644 if test "${enable_libffi+set}" = set; then
5645 enableval=$enable_libffi; case "$enableval" in
5646 yes) llvm_cv_enable_libffi="yes" ;;
5647 no) llvm_cv_enable_libffi="no" ;;
5648 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5649 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5650 { (exit 1); exit 1; }; } ;;
5653 llvm_cv_enable_libffi=no
5658 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5659 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5660 if test "${lt_cv_path_NM+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 if test -n "$NM"; then
5664 # Let the user override the test.
5667 lt_nm_to_check="${ac_tool_prefix}nm"
5668 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5669 lt_nm_to_check="$lt_nm_to_check nm"
5671 for lt_tmp_nm in $lt_nm_to_check; do
5672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5673 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5675 test -z "$ac_dir" && ac_dir=.
5676 tmp_nm="$ac_dir/$lt_tmp_nm"
5677 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5678 # Check to see if the nm accepts a BSD-compat flag.
5679 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5680 # nm: unknown option "B" ignored
5681 # Tru64's nm complains that /dev/null is an invalid object file
5682 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5683 */dev/null* | *'Invalid file or object type'*)
5684 lt_cv_path_NM="$tmp_nm -B"
5688 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5690 lt_cv_path_NM="$tmp_nm -p"
5694 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5695 continue # so that we can try to find one that supports BSD flags
5704 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5707 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5708 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5713 { echo "$as_me:$LINENO: checking for GNU make" >&5
5714 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5715 if test "${llvm_cv_gnu_make_command+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 llvm_cv_gnu_make_command=''
5719 for a in "$MAKE" make gmake gnumake ; do
5720 if test -z "$a" ; then continue ; fi ;
5721 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5723 llvm_cv_gnu_make_command=$a ;
5728 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5729 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5730 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5734 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5735 echo "${ECHO_T}\"Not found\"" >&6; };
5739 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5740 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5742 if test "$LN_S" = "ln -s"; then
5743 { echo "$as_me:$LINENO: result: yes" >&5
5744 echo "${ECHO_T}yes" >&6; }
5746 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5747 echo "${ECHO_T}no, using $LN_S" >&6; }
5750 # Extract the first word of "cmp", so it can be a program name with args.
5751 set dummy cmp; ac_word=$2
5752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5754 if test "${ac_cv_path_CMP+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5782 if test -n "$CMP"; then
5783 { echo "$as_me:$LINENO: result: $CMP" >&5
5784 echo "${ECHO_T}$CMP" >&6; }
5786 { echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6; }
5791 # Extract the first word of "cp", so it can be a program name with args.
5792 set dummy cp; ac_word=$2
5793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5795 if test "${ac_cv_path_CP+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5823 if test -n "$CP"; then
5824 { echo "$as_me:$LINENO: result: $CP" >&5
5825 echo "${ECHO_T}$CP" >&6; }
5827 { echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6; }
5832 # Extract the first word of "date", so it can be a program name with args.
5833 set dummy date; ac_word=$2
5834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5836 if test "${ac_cv_path_DATE+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5851 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5863 DATE=$ac_cv_path_DATE
5864 if test -n "$DATE"; then
5865 { echo "$as_me:$LINENO: result: $DATE" >&5
5866 echo "${ECHO_T}$DATE" >&6; }
5868 { echo "$as_me:$LINENO: result: no" >&5
5869 echo "${ECHO_T}no" >&6; }
5873 # Extract the first word of "find", so it can be a program name with args.
5874 set dummy find; ac_word=$2
5875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5877 if test "${ac_cv_path_FIND+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5892 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5904 FIND=$ac_cv_path_FIND
5905 if test -n "$FIND"; then
5906 { echo "$as_me:$LINENO: result: $FIND" >&5
5907 echo "${ECHO_T}$FIND" >&6; }
5909 { echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6; }
5914 # Extract the first word of "grep", so it can be a program name with args.
5915 set dummy grep; ac_word=$2
5916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5918 if test "${ac_cv_path_GREP+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5945 GREP=$ac_cv_path_GREP
5946 if test -n "$GREP"; then
5947 { echo "$as_me:$LINENO: result: $GREP" >&5
5948 echo "${ECHO_T}$GREP" >&6; }
5950 { echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6; }
5955 # Extract the first word of "mkdir", so it can be a program name with args.
5956 set dummy mkdir; ac_word=$2
5957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5959 if test "${ac_cv_path_MKDIR+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 test -z "$as_dir" && as_dir=.
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5974 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5986 MKDIR=$ac_cv_path_MKDIR
5987 if test -n "$MKDIR"; then
5988 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5989 echo "${ECHO_T}$MKDIR" >&6; }
5991 { echo "$as_me:$LINENO: result: no" >&5
5992 echo "${ECHO_T}no" >&6; }
5996 # Extract the first word of "mv", so it can be a program name with args.
5997 set dummy mv; ac_word=$2
5998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6000 if test "${ac_cv_path_MV+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6028 if test -n "$MV"; then
6029 { echo "$as_me:$LINENO: result: $MV" >&5
6030 echo "${ECHO_T}$MV" >&6; }
6032 { echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6; }
6037 if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_RANLIB+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 if test -n "$RANLIB"; then
6046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 RANLIB=$ac_cv_prog_RANLIB
6066 if test -n "$RANLIB"; then
6067 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6068 echo "${ECHO_T}$RANLIB" >&6; }
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6076 if test -z "$ac_cv_prog_RANLIB"; then
6077 ac_ct_RANLIB=$RANLIB
6078 # Extract the first word of "ranlib", so it can be a program name with args.
6079 set dummy ranlib; ac_word=$2
6080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 if test -n "$ac_ct_RANLIB"; then
6086 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_ac_ct_RANLIB="ranlib"
6096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6106 if test -n "$ac_ct_RANLIB"; then
6107 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6108 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6110 { echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6; }
6114 if test "x$ac_ct_RANLIB" = x; then
6117 case $cross_compiling:$ac_tool_warned in
6119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6120 whose name does not start with the host triplet. If you think this
6121 configuration is useful to you, please write to autoconf@gnu.org." >&5
6122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6123 whose name does not start with the host triplet. If you think this
6124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6125 ac_tool_warned=yes ;;
6127 RANLIB=$ac_ct_RANLIB
6130 RANLIB="$ac_cv_prog_RANLIB"
6133 if test -n "$ac_tool_prefix"; then
6134 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}ar; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_AR+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 if test -n "$AR"; then
6142 ac_cv_prog_AR="$AR" # Let the user override the test.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_AR="${ac_tool_prefix}ar"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 if test -n "$AR"; then
6163 { echo "$as_me:$LINENO: result: $AR" >&5
6164 echo "${ECHO_T}$AR" >&6; }
6166 { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6172 if test -z "$ac_cv_prog_AR"; then
6174 # Extract the first word of "ar", so it can be a program name with args.
6175 set dummy ar; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 if test -n "$ac_ct_AR"; then
6182 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6191 ac_cv_prog_ac_ct_AR="ar"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6202 if test -n "$ac_ct_AR"; then
6203 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6204 echo "${ECHO_T}$ac_ct_AR" >&6; }
6206 { echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6; }
6210 if test "x$ac_ct_AR" = x; then
6213 case $cross_compiling:$ac_tool_warned in
6215 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6216 whose name does not start with the host triplet. If you think this
6217 configuration is useful to you, please write to autoconf@gnu.org." >&5
6218 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6219 whose name does not start with the host triplet. If you think this
6220 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6221 ac_tool_warned=yes ;;
6229 # Extract the first word of "rm", so it can be a program name with args.
6230 set dummy rm; ac_word=$2
6231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233 if test "${ac_cv_path_RM+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6261 if test -n "$RM"; then
6262 { echo "$as_me:$LINENO: result: $RM" >&5
6263 echo "${ECHO_T}$RM" >&6; }
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6270 # Extract the first word of "sed", so it can be a program name with args.
6271 set dummy sed; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_path_SED+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6302 if test -n "$SED"; then
6303 { echo "$as_me:$LINENO: result: $SED" >&5
6304 echo "${ECHO_T}$SED" >&6; }
6306 { echo "$as_me:$LINENO: result: no" >&5
6307 echo "${ECHO_T}no" >&6; }
6311 # Extract the first word of "tar", so it can be a program name with args.
6312 set dummy tar; ac_word=$2
6313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315 if test "${ac_cv_path_TAR+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6343 if test -n "$TAR"; then
6344 { echo "$as_me:$LINENO: result: $TAR" >&5
6345 echo "${ECHO_T}$TAR" >&6; }
6347 { echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6; }
6352 # Extract the first word of "pwd", so it can be a program name with args.
6353 set dummy pwd; ac_word=$2
6354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6356 if test "${ac_cv_path_BINPWD+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6383 BINPWD=$ac_cv_path_BINPWD
6384 if test -n "$BINPWD"; then
6385 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6386 echo "${ECHO_T}$BINPWD" >&6; }
6388 { echo "$as_me:$LINENO: result: no" >&5
6389 echo "${ECHO_T}no" >&6; }
6394 # Extract the first word of "Graphviz", so it can be a program name with args.
6395 set dummy Graphviz; ac_word=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6425 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6426 if test -n "$GRAPHVIZ"; then
6427 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6428 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6430 { echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6; }
6435 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6437 cat >>confdefs.h <<\_ACEOF
6438 #define HAVE_GRAPHVIZ 1
6441 if test "$llvm_cv_os_type" = "MingW" ; then
6442 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6445 cat >>confdefs.h <<_ACEOF
6446 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6450 # Extract the first word of "dot", so it can be a program name with args.
6451 set dummy dot; ac_word=$2
6452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6454 if test "${ac_cv_path_DOT+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6482 if test -n "$DOT"; then
6483 { echo "$as_me:$LINENO: result: $DOT" >&5
6484 echo "${ECHO_T}$DOT" >&6; }
6486 { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6491 if test "$DOT" != "echo dot" ; then
6493 cat >>confdefs.h <<\_ACEOF
6497 if test "$llvm_cv_os_type" = "MingW" ; then
6498 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6501 cat >>confdefs.h <<_ACEOF
6502 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6506 # Extract the first word of "fdp", so it can be a program name with args.
6507 set dummy fdp; ac_word=$2
6508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6510 if test "${ac_cv_path_FDP+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6525 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6538 if test -n "$FDP"; then
6539 { echo "$as_me:$LINENO: result: $FDP" >&5
6540 echo "${ECHO_T}$FDP" >&6; }
6542 { echo "$as_me:$LINENO: result: no" >&5
6543 echo "${ECHO_T}no" >&6; }
6547 if test "$FDP" != "echo fdp" ; then
6549 cat >>confdefs.h <<\_ACEOF
6553 if test "$llvm_cv_os_type" = "MingW" ; then
6554 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6557 cat >>confdefs.h <<_ACEOF
6558 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6562 # Extract the first word of "neato", so it can be a program name with args.
6563 set dummy neato; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_path_NEATO+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6593 NEATO=$ac_cv_path_NEATO
6594 if test -n "$NEATO"; then
6595 { echo "$as_me:$LINENO: result: $NEATO" >&5
6596 echo "${ECHO_T}$NEATO" >&6; }
6598 { echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6; }
6603 if test "$NEATO" != "echo neato" ; then
6605 cat >>confdefs.h <<\_ACEOF
6606 #define HAVE_NEATO 1
6609 if test "$llvm_cv_os_type" = "MingW" ; then
6610 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6613 cat >>confdefs.h <<_ACEOF
6614 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6618 # Extract the first word of "twopi", so it can be a program name with args.
6619 set dummy twopi; ac_word=$2
6620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6622 if test "${ac_cv_path_TWOPI+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6637 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6649 TWOPI=$ac_cv_path_TWOPI
6650 if test -n "$TWOPI"; then
6651 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6652 echo "${ECHO_T}$TWOPI" >&6; }
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6659 if test "$TWOPI" != "echo twopi" ; then
6661 cat >>confdefs.h <<\_ACEOF
6662 #define HAVE_TWOPI 1
6665 if test "$llvm_cv_os_type" = "MingW" ; then
6666 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6669 cat >>confdefs.h <<_ACEOF
6670 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6674 # Extract the first word of "circo", so it can be a program name with args.
6675 set dummy circo; ac_word=$2
6676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6678 if test "${ac_cv_path_CIRCO+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6705 CIRCO=$ac_cv_path_CIRCO
6706 if test -n "$CIRCO"; then
6707 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6708 echo "${ECHO_T}$CIRCO" >&6; }
6710 { echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6; }
6715 if test "$CIRCO" != "echo circo" ; then
6717 cat >>confdefs.h <<\_ACEOF
6718 #define HAVE_CIRCO 1
6721 if test "$llvm_cv_os_type" = "MingW" ; then
6722 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6725 cat >>confdefs.h <<_ACEOF
6726 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6730 for ac_prog in gv gsview32
6732 # Extract the first word of "$ac_prog", so it can be a program name with args.
6733 set dummy $ac_prog; ac_word=$2
6734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736 if test "${ac_cv_path_GV+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 if test -n "$GV"; then
6764 { echo "$as_me:$LINENO: result: $GV" >&5
6765 echo "${ECHO_T}$GV" >&6; }
6767 { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6772 test -n "$GV" && break
6774 test -n "$GV" || GV="echo gv"
6776 if test "$GV" != "echo gv" ; then
6778 cat >>confdefs.h <<\_ACEOF
6782 if test "$llvm_cv_os_type" = "MingW" ; then
6783 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6786 cat >>confdefs.h <<_ACEOF
6787 #define LLVM_PATH_GV "$GV${EXEEXT}"
6791 # Extract the first word of "dotty", so it can be a program name with args.
6792 set dummy dotty; ac_word=$2
6793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795 if test "${ac_cv_path_DOTTY+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6810 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6822 DOTTY=$ac_cv_path_DOTTY
6823 if test -n "$DOTTY"; then
6824 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6825 echo "${ECHO_T}$DOTTY" >&6; }
6827 { echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6; }
6832 if test "$DOTTY" != "echo dotty" ; then
6834 cat >>confdefs.h <<\_ACEOF
6835 #define HAVE_DOTTY 1
6838 if test "$llvm_cv_os_type" = "MingW" ; then
6839 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6842 cat >>confdefs.h <<_ACEOF
6843 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6847 # Extract the first word of "xdot.py", so it can be a program name with args.
6848 set dummy xdot.py; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6878 XDOT_PY=$ac_cv_path_XDOT_PY
6879 if test -n "$XDOT_PY"; then
6880 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6881 echo "${ECHO_T}$XDOT_PY" >&6; }
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6888 if test "$XDOT_PY" != "echo xdot.py" ; then
6890 cat >>confdefs.h <<\_ACEOF
6891 #define HAVE_XDOT_PY 1
6894 if test "$llvm_cv_os_type" = "MingW" ; then
6895 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6898 cat >>confdefs.h <<_ACEOF
6899 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6905 # Extract the first word of "perl", so it can be a program name with args.
6906 set dummy perl; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_path_PERL+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6936 PERL=$ac_cv_path_PERL
6937 if test -n "$PERL"; then
6938 { echo "$as_me:$LINENO: result: $PERL" >&5
6939 echo "${ECHO_T}$PERL" >&6; }
6941 { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6946 if test "$PERL" != "none"; then
6947 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6948 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6949 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6950 { echo "$as_me:$LINENO: result: yes" >&5
6951 echo "${ECHO_T}yes" >&6; }
6954 { echo "$as_me:$LINENO: result: not found" >&5
6955 echo "${ECHO_T}not found" >&6; }
6960 if test x"$PERL" = xnone; then
6963 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6964 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6965 { (exit 1); exit 1; }; }
6971 # Find a good install program. We prefer a C program (faster),
6972 # so one script is as good as another. But avoid the broken or
6973 # incompatible versions:
6974 # SysV /etc/install, /usr/sbin/install
6975 # SunOS /usr/etc/install
6976 # IRIX /sbin/install
6978 # AmigaOS /C/install, which installs bootblocks on floppy discs
6979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6982 # OS/2's system install, which has a completely different semantic
6983 # ./install, which can be erroneously created by make from ./install.sh.
6984 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6985 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6986 if test -z "$INSTALL"; then
6987 if test "${ac_cv_path_install+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir=.
6995 # Account for people who put trailing slashes in PATH elements.
6997 ./ | .// | /cC/* | \
6998 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6999 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7002 # OSF1 and SCO ODT 3.0 have their own names for install.
7003 # Don't use installbsd from OSF since it installs stuff as root
7005 for ac_prog in ginstall scoinst install; do
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7008 if test $ac_prog = install &&
7009 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7010 # AIX install. It has an incompatible calling convention.
7012 elif test $ac_prog = install &&
7013 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7014 # program-specific install script used by HP pwplus--don't use.
7017 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7030 if test "${ac_cv_path_install+set}" = set; then
7031 INSTALL=$ac_cv_path_install
7033 # As a last resort, use the slow shell script. Don't cache a
7034 # value for INSTALL within a source directory, because that will
7035 # break other packages using the cache if that directory is
7036 # removed, or if the value is a relative name.
7037 INSTALL=$ac_install_sh
7040 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7041 echo "${ECHO_T}$INSTALL" >&6; }
7043 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7044 # It thinks the first close brace ends the variable substitution.
7045 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7047 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7049 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7052 [\\/$]* | ?:[\\/]* ) ;;
7053 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7056 # Extract the first word of "bzip2", so it can be a program name with args.
7057 set dummy bzip2; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_path_BZIP2+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 BZIP2=$ac_cv_path_BZIP2
7087 if test -n "$BZIP2"; then
7088 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7089 echo "${ECHO_T}$BZIP2" >&6; }
7091 { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7096 # Extract the first word of "cat", so it can be a program name with args.
7097 set dummy cat; ac_word=$2
7098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100 if test "${ac_cv_path_CAT+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 if test -n "$CAT"; then
7128 { echo "$as_me:$LINENO: result: $CAT" >&5
7129 echo "${ECHO_T}$CAT" >&6; }
7131 { echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6; }
7136 # Extract the first word of "doxygen", so it can be a program name with args.
7137 set dummy doxygen; ac_word=$2
7138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 DOXYGEN=$ac_cv_path_DOXYGEN
7167 if test -n "$DOXYGEN"; then
7168 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7169 echo "${ECHO_T}$DOXYGEN" >&6; }
7171 { echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6; }
7176 # Extract the first word of "groff", so it can be a program name with args.
7177 set dummy groff; ac_word=$2
7178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7180 if test "${ac_cv_path_GROFF+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 GROFF=$ac_cv_path_GROFF
7207 if test -n "$GROFF"; then
7208 { echo "$as_me:$LINENO: result: $GROFF" >&5
7209 echo "${ECHO_T}$GROFF" >&6; }
7211 { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7216 # Extract the first word of "gzip", so it can be a program name with args.
7217 set dummy gzip; ac_word=$2
7218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 GZIPBIN=$ac_cv_path_GZIPBIN
7247 if test -n "$GZIPBIN"; then
7248 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7249 echo "${ECHO_T}$GZIPBIN" >&6; }
7251 { echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6; }
7256 # Extract the first word of "pod2html", so it can be a program name with args.
7257 set dummy pod2html; ac_word=$2
7258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260 if test "${ac_cv_path_POD2HTML+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 POD2HTML=$ac_cv_path_POD2HTML
7287 if test -n "$POD2HTML"; then
7288 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7289 echo "${ECHO_T}$POD2HTML" >&6; }
7291 { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7296 # Extract the first word of "pod2man", so it can be a program name with args.
7297 set dummy pod2man; ac_word=$2
7298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300 if test "${ac_cv_path_POD2MAN+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 POD2MAN=$ac_cv_path_POD2MAN
7327 if test -n "$POD2MAN"; then
7328 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7329 echo "${ECHO_T}$POD2MAN" >&6; }
7331 { echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6; }
7336 # Extract the first word of "pdfroff", so it can be a program name with args.
7337 set dummy pdfroff; ac_word=$2
7338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7340 if test "${ac_cv_path_PDFROFF+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7355 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 PDFROFF=$ac_cv_path_PDFROFF
7367 if test -n "$PDFROFF"; then
7368 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7369 echo "${ECHO_T}$PDFROFF" >&6; }
7371 { echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6; }
7376 # Extract the first word of "runtest", so it can be a program name with args.
7377 set dummy runtest; ac_word=$2
7378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380 if test "${ac_cv_path_RUNTEST+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 RUNTEST=$ac_cv_path_RUNTEST
7407 if test -n "$RUNTEST"; then
7408 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7409 echo "${ECHO_T}$RUNTEST" >&6; }
7411 { echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6; }
7418 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7419 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7421 # Check whether --with-tclinclude was given.
7422 if test "${with_tclinclude+set}" = set; then
7423 withval=$with_tclinclude; with_tclinclude=${withval}
7428 if test "${ac_cv_path_tclsh+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 if test x"${with_tclinclude}" != x ; then
7433 if test -f ${with_tclinclude}/tclsh ; then
7434 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7435 elif test -f ${with_tclinclude}/src/tclsh ; then
7436 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7438 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7439 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7440 { (exit 1); exit 1; }; }
7446 if test x"${ac_cv_path_tclsh}" = x ; then
7447 { echo "$as_me:$LINENO: result: none" >&5
7448 echo "${ECHO_T}none" >&6; }
7449 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
7451 # Extract the first word of "$ac_prog", so it can be a program name with args.
7452 set dummy $ac_prog; ac_word=$2
7453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455 if test "${ac_cv_path_TCLSH+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 TCLSH=$ac_cv_path_TCLSH
7482 if test -n "$TCLSH"; then
7483 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7484 echo "${ECHO_T}$TCLSH" >&6; }
7486 { echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6; }
7491 test -n "$TCLSH" && break
7494 if test x"${TCLSH}" = x ; then
7495 ac_cv_path_tclsh='';
7497 ac_cv_path_tclsh="${TCLSH}";
7500 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7501 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7502 TCLSH="${ac_cv_path_tclsh}"
7506 # Extract the first word of "zip", so it can be a program name with args.
7507 set dummy zip; ac_word=$2
7508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510 if test "${ac_cv_path_ZIP+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7525 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 if test -n "$ZIP"; then
7538 { echo "$as_me:$LINENO: result: $ZIP" >&5
7539 echo "${ECHO_T}$ZIP" >&6; }
7541 { echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6; }
7546 for ac_prog in ocamlc
7548 # Extract the first word of "$ac_prog", so it can be a program name with args.
7549 set dummy $ac_prog; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_path_OCAMLC+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 OCAMLC=$ac_cv_path_OCAMLC
7579 if test -n "$OCAMLC"; then
7580 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7581 echo "${ECHO_T}$OCAMLC" >&6; }
7583 { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7588 test -n "$OCAMLC" && break
7591 for ac_prog in ocamlopt
7593 # Extract the first word of "$ac_prog", so it can be a program name with args.
7594 set dummy $ac_prog; ac_word=$2
7595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7597 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7612 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 OCAMLOPT=$ac_cv_path_OCAMLOPT
7624 if test -n "$OCAMLOPT"; then
7625 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7626 echo "${ECHO_T}$OCAMLOPT" >&6; }
7628 { echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6; }
7633 test -n "$OCAMLOPT" && break
7636 for ac_prog in ocamldep
7638 # Extract the first word of "$ac_prog", so it can be a program name with args.
7639 set dummy $ac_prog; ac_word=$2
7640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7642 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 OCAMLDEP=$ac_cv_path_OCAMLDEP
7669 if test -n "$OCAMLDEP"; then
7670 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7671 echo "${ECHO_T}$OCAMLDEP" >&6; }
7673 { echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6; }
7678 test -n "$OCAMLDEP" && break
7681 for ac_prog in ocamldoc
7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy $ac_prog; ac_word=$2
7685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 OCAMLDOC=$ac_cv_path_OCAMLDOC
7714 if test -n "$OCAMLDOC"; then
7715 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7716 echo "${ECHO_T}$OCAMLDOC" >&6; }
7718 { echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6; }
7723 test -n "$OCAMLDOC" && break
7726 for ac_prog in gas as
7728 # Extract the first word of "$ac_prog", so it can be a program name with args.
7729 set dummy $ac_prog; ac_word=$2
7730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7732 if test "${ac_cv_path_GAS+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7747 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 if test -n "$GAS"; then
7760 { echo "$as_me:$LINENO: result: $GAS" >&5
7761 echo "${ECHO_T}$GAS" >&6; }
7763 { echo "$as_me:$LINENO: result: no" >&5
7764 echo "${ECHO_T}no" >&6; }
7768 test -n "$GAS" && break
7772 { echo "$as_me:$LINENO: checking for linker version" >&5
7773 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7774 if test "${llvm_cv_link_version+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 version_string="$(ld -v 2>&1 | head -1)"
7781 if (echo "$version_string" | grep -q "ld64"); then
7782 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7784 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7788 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7789 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7791 cat >>confdefs.h <<_ACEOF
7792 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7797 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7798 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7799 if test "${llvm_cv_link_use_r+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7809 CFLAGS="$CFLAGS -Wl,-R."
7810 cat >conftest.$ac_ext <<_ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (ac_try="$ac_link"
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_link") 2>conftest.er1
7834 grep -v '^ *+' conftest.er1 >conftest.err
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7840 { (case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_try") 2>&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; } &&
7849 { ac_try='test -s conftest$ac_exeext'
7850 { (case "(($ac_try" in
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855 (eval "$ac_try") 2>&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 llvm_cv_link_use_r=yes
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7864 llvm_cv_link_use_r=no
7867 rm -f core conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7871 ac_cpp='$CPP $CPPFLAGS'
7872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7878 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7879 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7880 if test "$llvm_cv_link_use_r" = yes ; then
7882 cat >>confdefs.h <<\_ACEOF
7883 #define HAVE_LINK_R 1
7889 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7890 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7891 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 ac_cpp='$CPP $CPPFLAGS'
7896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7901 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (ac_try="$ac_link"
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924 (eval "$ac_link") 2>conftest.er1
7926 grep -v '^ *+' conftest.er1 >conftest.err
7928 cat conftest.err >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); } &&
7931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7932 { (case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_try") 2>&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; } &&
7941 { ac_try='test -s conftest$ac_exeext'
7942 { (case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_try") 2>&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7951 llvm_cv_link_use_export_dynamic=yes
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7956 llvm_cv_link_use_export_dynamic=no
7959 rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7963 ac_cpp='$CPP $CPPFLAGS'
7964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7970 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7971 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7972 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7974 cat >>confdefs.h <<\_ACEOF
7975 #define HAVE_LINK_EXPORT_DYNAMIC 1
7981 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7982 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7983 if test "${llvm_cv_link_use_version_script+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 ac_cpp='$CPP $CPPFLAGS'
7988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7994 # The following code is from the autoconf manual,
7995 # "11.13: Limitations of Usual Tools".
7996 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7997 # Use mktemp if possible; otherwise fall back on mkdir,
7998 # with $RANDOM to make collisions less likely.
8002 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8004 test -n "$tmp" && test -d "$tmp"
8006 tmp=$TMPDIR/foo$$-$RANDOM
8007 (umask 077 && mkdir "$tmp")
8010 echo "{" > "$tmp/export.map"
8011 echo " global: main;" >> "$tmp/export.map"
8012 echo " local: *;" >> "$tmp/export.map"
8013 echo "};" >> "$tmp/export.map"
8015 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8016 cat >conftest.$ac_ext <<_ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (ac_try="$ac_link"
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_link") 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest$ac_exeext'
8056 { (case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_try") 2>&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 llvm_cv_link_use_version_script=yes
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8070 llvm_cv_link_use_version_script=no
8073 rm -f core conftest.err conftest.$ac_objext \
8074 conftest$ac_exeext conftest.$ac_ext
8075 rm "$tmp/export.map"
8079 ac_cpp='$CPP $CPPFLAGS'
8080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8086 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8087 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8088 if test "$llvm_cv_link_use_version_script" = yes ; then
8089 HAVE_LINK_VERSION_SCRIPT=1
8096 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8097 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8098 if test "${ac_cv_c_const+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8111 /* FIXME: Include the comments suggested by Paul. */
8113 /* Ultrix mips cc rejects this. */
8114 typedef int charset[2];
8116 /* SunOS 4.1.1 cc rejects this. */
8117 char const *const *ccp;
8119 /* NEC SVR4.0.2 mips cc rejects this. */
8120 struct point {int x, y;};
8121 static struct point const zero = {0,0};
8122 /* AIX XL C 1.02.0.0 rejects this.
8123 It does not let you subtract one const X* pointer from another in
8124 an arm of an if-expression whose if-part is not a constant
8126 const char *g = "string";
8127 ccp = &g + (g ? g-g : 0);
8128 /* HPUX 7.0 cc rejects these. */
8131 ccp = (char const *const *) p;
8132 { /* SCO 3.2v4 cc rejects this. */
8134 char const *s = 0 ? (char *) 0 : (char const *) 0;
8139 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8141 const int *foo = &x[0];
8144 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8145 typedef const int *iptr;
8149 { /* AIX XL C 1.02.0.0 rejects this saying
8150 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8151 struct s { int j; const int *ap[3]; };
8152 struct s *b; b->j = 5;
8154 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8158 return !x[0] && !zero.x;
8165 rm -f conftest.$ac_objext
8166 if { (ac_try="$ac_compile"
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_compile") 2>conftest.er1
8174 grep -v '^ *+' conftest.er1 >conftest.err
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } &&
8179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8180 { (case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_try") 2>&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; } &&
8189 { ac_try='test -s conftest.$ac_objext'
8190 { (case "(($ac_try" in
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_try") 2>&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8201 echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8210 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8211 if test $ac_cv_c_const = no; then
8213 cat >>confdefs.h <<\_ACEOF
8225 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8226 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8227 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8228 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 cat >conftest.$ac_ext <<_ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 #include <sys/types.h>
8250 rm -f conftest.$ac_objext
8251 if { (ac_try="$ac_compile"
8253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_compile") 2>conftest.er1
8259 grep -v '^ *+' conftest.er1 >conftest.err
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } &&
8264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8265 { (case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_try") 2>&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; } &&
8274 { ac_try='test -s conftest.$ac_objext'
8275 { (case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_try") 2>&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 eval "$as_ac_Header=yes"
8286 echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8289 eval "$as_ac_Header=no"
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 ac_res=`eval echo '${'$as_ac_Header'}'`
8295 { echo "$as_me:$LINENO: result: $ac_res" >&5
8296 echo "${ECHO_T}$ac_res" >&6; }
8297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8298 cat >>confdefs.h <<_ACEOF
8299 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8302 ac_header_dirent=$ac_hdr; break
8306 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8307 if test $ac_header_dirent = dirent.h; then
8308 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8309 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8310 if test "${ac_cv_search_opendir+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 ac_func_search_save_LIBS=$LIBS
8314 cat >conftest.$ac_ext <<_ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8321 /* Override any GCC internal prototype to avoid an error.
8322 Use char because int might match the return type of a GCC
8323 builtin and then its argument prototype would still apply. */
8336 for ac_lib in '' dir; do
8337 if test -z "$ac_lib"; then
8338 ac_res="none required"
8341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (ac_try="$ac_link"
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_link") 2>conftest.er1
8352 grep -v '^ *+' conftest.er1 >conftest.err
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
8357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358 { (case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_try") 2>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest$ac_exeext'
8368 { (case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_cv_search_opendir=$ac_res
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8385 rm -f core conftest.err conftest.$ac_objext \
8387 if test "${ac_cv_search_opendir+set}" = set; then
8391 if test "${ac_cv_search_opendir+set}" = set; then
8394 ac_cv_search_opendir=no
8397 LIBS=$ac_func_search_save_LIBS
8399 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8400 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8401 ac_res=$ac_cv_search_opendir
8402 if test "$ac_res" != no; then
8403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8408 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8409 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8410 if test "${ac_cv_search_opendir+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 ac_func_search_save_LIBS=$LIBS
8414 cat >conftest.$ac_ext <<_ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8421 /* Override any GCC internal prototype to avoid an error.
8422 Use char because int might match the return type of a GCC
8423 builtin and then its argument prototype would still apply. */
8436 for ac_lib in '' x; do
8437 if test -z "$ac_lib"; then
8438 ac_res="none required"
8441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8443 rm -f conftest.$ac_objext conftest$ac_exeext
8444 if { (ac_try="$ac_link"
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_link") 2>conftest.er1
8452 grep -v '^ *+' conftest.er1 >conftest.err
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8458 { (case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_try") 2>&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_try") 2>&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; }; then
8477 ac_cv_search_opendir=$ac_res
8479 echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8485 rm -f core conftest.err conftest.$ac_objext \
8487 if test "${ac_cv_search_opendir+set}" = set; then
8491 if test "${ac_cv_search_opendir+set}" = set; then
8494 ac_cv_search_opendir=no
8497 LIBS=$ac_func_search_save_LIBS
8499 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8500 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8501 ac_res=$ac_cv_search_opendir
8502 if test "$ac_res" != no; then
8503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8510 for ac_header in dlfcn.h
8512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 ac_res=`eval echo '${'$as_ac_Header'}'`
8520 { echo "$as_me:$LINENO: result: $ac_res" >&5
8521 echo "${ECHO_T}$ac_res" >&6; }
8523 # Is the header compilable?
8524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8526 cat >conftest.$ac_ext <<_ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 $ac_includes_default
8533 #include <$ac_header>
8535 rm -f conftest.$ac_objext
8536 if { (ac_try="$ac_compile"
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_compile") 2>conftest.er1
8544 grep -v '^ *+' conftest.er1 >conftest.err
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8550 { (case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_try") 2>&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try='test -s conftest.$ac_objext'
8560 { (case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_try") 2>&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 ac_header_compiler=yes
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 ac_header_compiler=no
8577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8579 echo "${ECHO_T}$ac_header_compiler" >&6; }
8581 # Is the header present?
8582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8584 cat >conftest.$ac_ext <<_ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8590 #include <$ac_header>
8592 if { (ac_try="$ac_cpp conftest.$ac_ext"
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8600 grep -v '^ *+' conftest.er1 >conftest.err
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } >/dev/null; then
8605 if test -s conftest.err; then
8606 ac_cpp_err=$ac_c_preproc_warn_flag
8607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8614 if test -z "$ac_cpp_err"; then
8615 ac_header_preproc=yes
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 ac_header_preproc=no
8623 rm -f conftest.err conftest.$ac_ext
8624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8625 echo "${ECHO_T}$ac_header_preproc" >&6; }
8627 # So? What about this header?
8628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8634 ac_header_preproc=yes
8637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8650 ## ----------------------------------- ##
8651 ## Report this to llvmbugs@cs.uiuc.edu ##
8652 ## ----------------------------------- ##
8654 ) | sed "s/^/$as_me: WARNING: /" >&2
8657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 eval "$as_ac_Header=\$ac_header_preproc"
8664 ac_res=`eval echo '${'$as_ac_Header'}'`
8665 { echo "$as_me:$LINENO: result: $ac_res" >&5
8666 echo "${ECHO_T}$ac_res" >&6; }
8669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8670 cat >>confdefs.h <<_ACEOF
8671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8678 # Check whether --enable-ltdl-install was given.
8679 if test "${enable_ltdl_install+set}" = set; then
8680 enableval=$enable_ltdl_install;
8686 if test x"${enable_ltdl_install-no}" != xno; then
8688 INSTALL_LTDL_FALSE='#'
8690 INSTALL_LTDL_TRUE='#'
8696 if test x"${enable_ltdl_convenience-no}" != xno; then
8697 CONVENIENCE_LTDL_TRUE=
8698 CONVENIENCE_LTDL_FALSE='#'
8700 CONVENIENCE_LTDL_TRUE='#'
8701 CONVENIENCE_LTDL_FALSE=
8705 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8706 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8708 libname_spec='lib$name'
8716 shlibpath_overrides_runpath=unknown
8718 dynamic_linker="$host_os ld.so"
8719 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8720 if test "$GCC" = yes; then
8721 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8722 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8723 # if the path contains ";" then we assume it to be the separator
8724 # otherwise default to the standard path separator (i.e. ":") - it is
8725 # assumed that no part of a normal pathname contains ";" but that should
8726 # okay in the real world where ";" in dirpaths is itself problematic.
8727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8732 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8734 need_lib_prefix=unknown
8735 hardcode_into_libs=no
8737 # when you set need_version to no, make sure it does not cause -set_version
8738 # flags to be left without arguments
8739 need_version=unknown
8744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8745 shlibpath_var=LIBPATH
8747 # AIX 3 has no versioning support, so we append a major version to the name.
8748 soname_spec='${libname}${release}${shared_ext}$major'
8755 hardcode_into_libs=yes
8756 if test "$host_cpu" = ia64; then
8757 # AIX 5 supports IA64
8758 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8759 shlibpath_var=LD_LIBRARY_PATH
8761 # With GCC up to 2.95.x, collect2 would create an import file
8762 # for dependence libraries. The import file would start with
8763 # the line `#! .'. This would cause the generated library to
8764 # depend on `.', always an invalid library. This was fixed in
8765 # development snapshots of GCC prior to 3.0.
8767 aix4 | aix4.[01] | aix4.[01].*)
8768 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8770 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8777 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8778 # soname into executable. Probably we can add versioning support to
8779 # collect2, so additional links can be useful in future.
8780 if test "$aix_use_runtimelinking" = yes; then
8781 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8782 # instead of lib<name>.a to let people know that these are not
8783 # typical AIX shared libraries.
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786 # We preserve .a as extension for shared libraries through AIX4.2
8787 # and later when we are not doing run time linking.
8788 library_names_spec='${libname}${release}.a $libname.a'
8789 soname_spec='${libname}${release}${shared_ext}$major'
8791 shlibpath_var=LIBPATH
8796 library_names_spec='$libname.ixlibrary $libname.a'
8797 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8798 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'
8802 library_names_spec='${libname}${shared_ext}'
8803 dynamic_linker="$host_os ld.so"
8804 shlibpath_var=LIBRARY_PATH
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8813 shlibpath_var=LD_LIBRARY_PATH
8814 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8815 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8816 # the default ld.so.conf also contains /usr/contrib/lib and
8817 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8818 # libtool to hard-code these into programs
8821 cygwin* | mingw* | pw32*)
8822 version_type=windows
8827 case $GCC,$host_os in
8828 yes,cygwin* | yes,mingw* | yes,pw32*)
8829 library_names_spec='$libname.dll.a'
8830 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8831 postinstall_cmds='base_file=`basename \${file}`~
8832 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8833 dldir=$destdir/`dirname \$dlpath`~
8834 test -d \$dldir || mkdir -p \$dldir~
8835 $install_prog $dir/$dlname \$dldir/$dlname~
8836 chmod a+x \$dldir/$dlname'
8837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8838 dlpath=$dir/\$dldll~
8840 shlibpath_overrides_runpath=yes
8844 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8845 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8846 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8849 # MinGW DLLs use traditional 'lib' prefix
8850 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8851 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8852 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8853 # It is most probably a Windows format PATH printed by
8854 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8855 # path with ; separators, and with drive letters. We can handle the
8856 # drive letters (cygwin fileutils understands them), so leave them,
8857 # especially as we might pass files found there to a mingw objdump,
8858 # which wouldn't understand a cygwinified path. Ahh.
8859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8865 # pw32 DLLs use 'pw' prefix rather than 'lib'
8866 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8872 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8875 dynamic_linker='Win32 ld.exe'
8876 # FIXME: first we should search . and the directory the executable is in
8880 darwin* | rhapsody*)
8881 dynamic_linker="$host_os dyld"
8885 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8886 soname_spec='${libname}${release}${major}$shared_ext'
8887 shlibpath_overrides_runpath=yes
8888 shlibpath_var=DYLD_LIBRARY_PATH
8889 shrext_cmds='.dylib'
8890 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8891 if test "$GCC" = yes; then
8892 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"`
8894 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8896 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 shlibpath_var=LD_LIBRARY_PATH
8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8917 soname_spec='${libname}${release}${shared_ext}$major'
8918 shlibpath_var=LD_LIBRARY_PATH
8919 shlibpath_overrides_runpath=no
8920 hardcode_into_libs=yes
8921 dynamic_linker='GNU ld.so'
8924 freebsd* | dragonfly*)
8925 # DragonFly does not have aout. When/if they implement a new
8926 # versioning mechanism, adjust this.
8927 if test -x /usr/bin/objformat; then
8928 objformat=`/usr/bin/objformat`
8931 freebsd[123].*) objformat=aout ;;
8935 version_type=freebsd-$objformat
8936 case $version_type in
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8947 shlibpath_var=LD_LIBRARY_PATH
8950 shlibpath_overrides_runpath=yes
8952 freebsd3.[01]* | freebsdelf3.[01]*)
8953 shlibpath_overrides_runpath=yes
8954 hardcode_into_libs=yes
8956 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8957 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8958 shlibpath_overrides_runpath=no
8959 hardcode_into_libs=yes
8961 freebsd*) # from 4.6 on
8962 shlibpath_overrides_runpath=yes
8963 hardcode_into_libs=yes
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8973 soname_spec='${libname}${release}${shared_ext}$major'
8974 shlibpath_var=LD_LIBRARY_PATH
8975 hardcode_into_libs=yes
8978 hpux9* | hpux10* | hpux11*)
8979 # Give a soname corresponding to the major version so that dld.sl refuses to
8980 # link against other versions.
8987 hardcode_into_libs=yes
8988 dynamic_linker="$host_os dld.so"
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992 soname_spec='${libname}${release}${shared_ext}$major'
8993 if test "X$HPUX_IA64_MODE" = X32; then
8994 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8996 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9002 hardcode_into_libs=yes
9003 dynamic_linker="$host_os dld.sl"
9004 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9005 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9013 dynamic_linker="$host_os dld.sl"
9014 shlibpath_var=SHLIB_PATH
9015 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 soname_spec='${libname}${release}${shared_ext}$major'
9020 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9021 postinstall_cmds='chmod 555 $lib'
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=no
9033 hardcode_into_libs=yes
9036 irix5* | irix6* | nonstopux*)
9038 nonstopux*) version_type=nonstopux ;;
9040 if test "$lt_cv_prog_gnu_ld" = yes; then
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9051 irix5* | nonstopux*)
9055 case $LD in # libtool.m4 will add one of these switches to LD
9056 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9057 libsuff= shlibsuff= libmagic=32-bit;;
9058 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9059 libsuff=32 shlibsuff=N32 libmagic=N32;;
9060 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9061 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9062 *) libsuff= shlibsuff= libmagic=never-match;;
9066 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9067 shlibpath_overrides_runpath=no
9068 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9069 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9070 hardcode_into_libs=yes
9073 # No shared lib support for Linux oldld, aout, or coff.
9074 linux*oldld* | linux*aout* | linux*coff*)
9078 # This must be Linux ELF.
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084 soname_spec='${libname}${release}${shared_ext}$major'
9085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 shlibpath_overrides_runpath=no
9088 # This implies no fast_install, which is unacceptable.
9089 # Some rework will be needed to allow for fast_install
9090 # before this can be enabled.
9091 hardcode_into_libs=yes
9093 # Append ld.so.conf contents to the search path
9094 if test -f /etc/ld.so.conf; then
9095 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' ' '`
9096 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9099 # We used to test for /lib/ld.so.1 and disable shared libraries on
9100 # powerpc, because MkLinux only supported shared libraries with the
9101 # GNU dynamic linker. Since this was broken with cross compilers,
9102 # most powerpc-linux boxes support dynamic linking these days and
9103 # people can always --disable-shared, the test was removed, and we
9104 # assume the GNU/Linux dynamic linker is in use.
9105 dynamic_linker='GNU/Linux ld.so'
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 shlibpath_var=LD_LIBRARY_PATH
9115 shlibpath_overrides_runpath=no
9116 hardcode_into_libs=yes
9117 dynamic_linker='GNU ld.so'
9124 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9127 dynamic_linker='NetBSD (a.out) ld.so'
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 dynamic_linker='NetBSD ld.elf_so'
9133 shlibpath_var=LD_LIBRARY_PATH
9134 shlibpath_overrides_runpath=yes
9135 hardcode_into_libs=yes
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 shlibpath_overrides_runpath=yes
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 shlibpath_overrides_runpath=yes
9157 sys_lib_dlsearch_path_spec="/usr/lib"
9159 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9161 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9162 *) need_version=no ;;
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9166 shlibpath_var=LD_LIBRARY_PATH
9167 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9169 openbsd2.[89] | openbsd2.[89].*)
9170 shlibpath_overrides_runpath=no
9173 shlibpath_overrides_runpath=yes
9177 shlibpath_overrides_runpath=yes
9182 libname_spec='$name'
9185 library_names_spec='$libname${shared_ext} $libname.a'
9186 dynamic_linker='OS/2 ld.exe'
9187 shlibpath_var=LIBPATH
9190 osf3* | osf4* | osf5*)
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9196 shlibpath_var=LD_LIBRARY_PATH
9197 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9198 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9206 soname_spec='${libname}${release}${shared_ext}$major'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=yes
9209 hardcode_into_libs=yes
9210 # ldd complains unless libraries are executable
9211 postinstall_cmds='chmod +x $lib'
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9217 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=yes
9220 if test "$with_gnu_ld" = yes; then
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 case $host_vendor in
9233 shlibpath_overrides_runpath=no
9235 export_dynamic_flag_spec='${wl}-Blargedynsym'
9236 runpath_var=LD_RUN_PATH
9244 shlibpath_overrides_runpath=no
9245 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9251 if test -d /usr/nec ;then
9253 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9254 soname_spec='$libname${shared_ext}.$major'
9255 shlibpath_var=LD_LIBRARY_PATH
9259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9260 version_type=freebsd-elf
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 shlibpath_var=LD_LIBRARY_PATH
9266 hardcode_into_libs=yes
9267 if test "$with_gnu_ld" = yes; then
9268 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9269 shlibpath_overrides_runpath=no
9271 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9272 shlibpath_overrides_runpath=yes
9275 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9279 sys_lib_dlsearch_path_spec='/usr/lib'
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9286 shlibpath_var=LD_LIBRARY_PATH
9293 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9294 echo "${ECHO_T}$dynamic_linker" >&6; }
9295 test "$dynamic_linker" = no && can_build_shared=no
9297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9298 if test "$GCC" = yes; then
9299 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9303 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9304 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9305 if test "${libltdl_cv_shlibext+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 eval libltdl_cv_shlibext=$shrext_cmds
9313 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9314 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9315 if test -n "$libltdl_cv_shlibext"; then
9317 cat >>confdefs.h <<_ACEOF
9318 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9324 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9325 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9326 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 libltdl_cv_shlibpath_var="$shlibpath_var"
9331 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9332 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9333 if test -n "$libltdl_cv_shlibpath_var"; then
9335 cat >>confdefs.h <<_ACEOF
9336 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9342 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9343 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9344 if test "${libltdl_cv_sys_search_path+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9349 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9350 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9351 if test -n "$libltdl_cv_sys_search_path"; then
9353 for dir in $libltdl_cv_sys_search_path; do
9354 if test -z "$sys_search_path"; then
9355 sys_search_path="$dir"
9357 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9361 cat >>confdefs.h <<_ACEOF
9362 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9367 { echo "$as_me:$LINENO: checking for objdir" >&5
9368 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9369 if test "${libltdl_cv_objdir+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 libltdl_cv_objdir="$objdir"
9373 if test -n "$objdir"; then
9376 rm -f .libs 2>/dev/null
9377 mkdir .libs 2>/dev/null
9378 if test -d .libs; then
9379 libltdl_cv_objdir=.libs
9381 # MS-DOS does not allow filenames that begin with a dot.
9382 libltdl_cv_objdir=_libs
9384 rmdir .libs 2>/dev/null
9388 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9389 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9391 cat >>confdefs.h <<_ACEOF
9392 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9400 # Check for command to grab the raw symbol name followed by C symbol from nm.
9401 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9402 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9403 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 # These are sane defaults that work on at least a few old systems.
9408 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9410 # Character class describing NM global symbol codes.
9411 symcode='[BCDEGRST]'
9413 # Regexp to match symbols that can be accessed directly from C.
9414 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9416 # Transform an extracted symbol line into a proper C declaration
9417 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9419 # Transform an extracted symbol line into symbol name and symbol address
9420 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'"
9422 # Define system-specific variables.
9427 cygwin* | mingw* | pw32*)
9428 symcode='[ABCDGISTW]'
9430 hpux*) # Its linker distinguishes data from code symbols
9431 if test "$host_cpu" = ia64; then
9432 symcode='[ABCDEGRST]'
9434 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9435 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'"
9438 if test "$host_cpu" = ia64; then
9439 symcode='[ABCDGIRSTW]'
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'"
9445 symcode='[BCDEGRST]'
9448 symcode='[BCDEGQRST]'
9459 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9467 # Handle CRLF in mingw tool chain
9471 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9475 # If we're using GNU nm, then use its standard symbol codes.
9476 case `$NM -V 2>&1` in
9477 *GNU* | *'with BFD'*)
9478 symcode='[ABCDGIRSTW]' ;;
9481 # Try without a prefix undercore, then with it.
9482 for ac_symprfx in "" "_"; do
9484 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9485 symxfrm="\\1 $ac_symprfx\\2 \\2"
9487 # Write the raw and C identifiers.
9488 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9490 # Check to see that the pipe works correctly.
9494 cat > conftest.$ac_ext <<EOF
9499 void nm_test_func(){}
9503 int main(){nm_test_var='a';nm_test_func();return(0);}
9506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9507 (eval $ac_compile) 2>&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; then
9511 # Now try to grab the symbols.
9513 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9514 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && test -s "$nlist"; then
9518 # Try sorting and uniquifying the output.
9519 if sort "$nlist" | uniq > "$nlist"T; then
9520 mv -f "$nlist"T "$nlist"
9525 # Make sure that we snagged all the symbols we need.
9526 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9527 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9528 cat <<EOF > conftest.$ac_ext
9534 # Now generate the symbol file.
9535 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9537 cat <<EOF >> conftest.$ac_ext
9538 #if defined (__STDC__) && __STDC__
9539 # define lt_ptr_t void *
9541 # define lt_ptr_t char *
9545 /* The mapping between symbol names and symbols. */
9550 lt_preloaded_symbols[] =
9553 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9554 cat <<\EOF >> conftest.$ac_ext
9562 # Now try linking the two files.
9563 mv conftest.$ac_objext conftstm.$ac_objext
9564 lt_save_LIBS="$LIBS"
9565 lt_save_CFLAGS="$CFLAGS"
9566 LIBS="conftstm.$ac_objext"
9567 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9569 (eval $ac_link) 2>&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9575 LIBS="$lt_save_LIBS"
9576 CFLAGS="$lt_save_CFLAGS"
9578 echo "cannot find nm_test_func in $nlist" >&5
9581 echo "cannot find nm_test_var in $nlist" >&5
9584 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9587 echo "$progname: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9590 rm -f conftest* conftst*
9592 # Do not use the global_symbol_pipe unless it works.
9593 if test "$pipe_works" = yes; then
9596 lt_cv_sys_global_symbol_pipe=
9602 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9603 lt_cv_sys_global_symbol_to_cdecl=
9605 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9606 { echo "$as_me:$LINENO: result: failed" >&5
9607 echo "${ECHO_T}failed" >&6; }
9609 { echo "$as_me:$LINENO: result: ok" >&5
9610 echo "${ECHO_T}ok" >&6; }
9614 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9615 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9616 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9620 libltdl_cv_preloaded_symbols=yes
9622 libltdl_cv_preloaded_symbols=no
9626 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9627 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9628 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9630 cat >>confdefs.h <<\_ACEOF
9631 #define HAVE_PRELOADED_SYMBOLS 1
9639 ac_cpp='$CPP $CPPFLAGS'
9640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9645 { echo "$as_me:$LINENO: checking for shl_load" >&5
9646 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9647 if test "${ac_cv_func_shl_load+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 cat >conftest.$ac_ext <<_ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9658 #define shl_load innocuous_shl_load
9660 /* System header to define __stub macros and hopefully few prototypes,
9661 which can conflict with char shl_load (); below.
9662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9663 <limits.h> exists even on freestanding compilers. */
9666 # include <limits.h>
9668 # include <assert.h>
9673 /* Override any GCC internal prototype to avoid an error.
9674 Use char because int might match the return type of a GCC
9675 builtin and then its argument prototype would still apply. */
9680 /* The GNU C library defines this for functions which it implements
9681 to always fail with ENOSYS. Some functions are actually named
9682 something starting with __ and the normal name is an alias. */
9683 #if defined __stub_shl_load || defined __stub___shl_load
9695 rm -f conftest.$ac_objext conftest$ac_exeext
9696 if { (ac_try="$ac_link"
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_link") 2>conftest.er1
9704 grep -v '^ *+' conftest.er1 >conftest.err
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9710 { (case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_try") 2>&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; } &&
9719 { ac_try='test -s conftest$ac_exeext'
9720 { (case "(($ac_try" in
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_try") 2>&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729 ac_cv_func_shl_load=yes
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9734 ac_cv_func_shl_load=no
9737 rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9740 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9741 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9742 if test $ac_cv_func_shl_load = yes; then
9744 cat >>confdefs.h <<\_ACEOF
9745 #define HAVE_SHL_LOAD 1
9749 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9750 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9751 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 ac_check_lib_save_LIBS=$LIBS
9756 cat >conftest.$ac_ext <<_ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9763 /* Override any GCC internal prototype to avoid an error.
9764 Use char because int might match the return type of a GCC
9765 builtin and then its argument prototype would still apply. */
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (ac_try="$ac_link"
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_link") 2>conftest.er1
9787 grep -v '^ *+' conftest.er1 >conftest.err
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } &&
9792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9793 { (case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_try") 2>&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; } &&
9802 { ac_try='test -s conftest$ac_exeext'
9803 { (case "(($ac_try" in
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_try") 2>&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 ac_cv_lib_dld_shl_load=yes
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 ac_cv_lib_dld_shl_load=no
9820 rm -f core conftest.err conftest.$ac_objext \
9821 conftest$ac_exeext conftest.$ac_ext
9822 LIBS=$ac_check_lib_save_LIBS
9824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9825 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9826 if test $ac_cv_lib_dld_shl_load = yes; then
9828 cat >>confdefs.h <<\_ACEOF
9829 #define HAVE_SHL_LOAD 1
9832 LIBADD_DL="$LIBADD_DL -ldld"
9834 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9835 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 ac_check_lib_save_LIBS=$LIBS
9841 cat >conftest.$ac_ext <<_ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9848 /* Override any GCC internal prototype to avoid an error.
9849 Use char because int might match the return type of a GCC
9850 builtin and then its argument prototype would still apply. */
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
9872 grep -v '^ *+' conftest.er1 >conftest.err
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_cv_lib_dl_dlopen=yes
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_cv_lib_dl_dlopen=no
9905 rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 LIBS=$ac_check_lib_save_LIBS
9909 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9910 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9911 if test $ac_cv_lib_dl_dlopen = yes; then
9913 cat >>confdefs.h <<\_ACEOF
9914 #define HAVE_LIBDL 1
9917 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9919 cat >conftest.$ac_ext <<_ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (ac_try="$ac_link"
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_link") 2>conftest.er1
9946 grep -v '^ *+' conftest.er1 >conftest.err
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9952 { (case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_try") 2>&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_try") 2>&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9972 cat >>confdefs.h <<\_ACEOF
9973 #define HAVE_LIBDL 1
9975 libltdl_cv_func_dlopen="yes"
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9980 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9981 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9982 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 ac_check_lib_save_LIBS=$LIBS
9987 cat >conftest.$ac_ext <<_ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9994 /* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (ac_try="$ac_link"
10011 case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_link") 2>conftest.er1
10018 grep -v '^ *+' conftest.er1 >conftest.err
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_try") 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 ac_cv_lib_svld_dlopen=yes
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_cv_lib_svld_dlopen=no
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053 LIBS=$ac_check_lib_save_LIBS
10055 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10056 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10057 if test $ac_cv_lib_svld_dlopen = yes; then
10059 cat >>confdefs.h <<\_ACEOF
10060 #define HAVE_LIBDL 1
10063 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10065 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10066 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10067 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 ac_check_lib_save_LIBS=$LIBS
10072 cat >conftest.$ac_ext <<_ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10079 /* Override any GCC internal prototype to avoid an error.
10080 Use char because int might match the return type of a GCC
10081 builtin and then its argument prototype would still apply. */
10089 return dld_link ();
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (ac_try="$ac_link"
10096 case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_link") 2>conftest.er1
10103 grep -v '^ *+' conftest.er1 >conftest.err
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10109 { (case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_try") 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; } &&
10118 { ac_try='test -s conftest$ac_exeext'
10119 { (case "(($ac_try" in
10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_try") 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_lib_dld_dld_link=yes
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10133 ac_cv_lib_dld_dld_link=no
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10140 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10141 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10142 if test $ac_cv_lib_dld_dld_link = yes; then
10144 cat >>confdefs.h <<\_ACEOF
10148 LIBADD_DL="$LIBADD_DL -ldld"
10150 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10151 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10152 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 cat >conftest.$ac_ext <<_ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10161 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10163 #define _dyld_func_lookup innocuous__dyld_func_lookup
10165 /* System header to define __stub macros and hopefully few prototypes,
10166 which can conflict with char _dyld_func_lookup (); below.
10167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10168 <limits.h> exists even on freestanding compilers. */
10171 # include <limits.h>
10173 # include <assert.h>
10176 #undef _dyld_func_lookup
10178 /* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
10184 char _dyld_func_lookup ();
10185 /* The GNU C library defines this for functions which it implements
10186 to always fail with ENOSYS. Some functions are actually named
10187 something starting with __ and the normal name is an alias. */
10188 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10195 return _dyld_func_lookup ();
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (ac_try="$ac_link"
10202 case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_link") 2>conftest.er1
10209 grep -v '^ *+' conftest.er1 >conftest.err
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } &&
10214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10215 { (case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_try") 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest$ac_exeext'
10225 { (case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_try") 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; }; then
10234 ac_cv_func__dyld_func_lookup=yes
10236 echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10239 ac_cv_func__dyld_func_lookup=no
10242 rm -f core conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10245 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10246 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10247 if test $ac_cv_func__dyld_func_lookup = yes; then
10249 cat >>confdefs.h <<\_ACEOF
10250 #define HAVE_DYLD 1
10264 rm -f core conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
10276 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10278 lt_save_LIBS="$LIBS"
10279 LIBS="$LIBS $LIBADD_DL"
10281 for ac_func in dlerror
10283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 cat >conftest.$ac_ext <<_ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10297 #define $ac_func innocuous_$ac_func
10299 /* System header to define __stub macros and hopefully few prototypes,
10300 which can conflict with char $ac_func (); below.
10301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10302 <limits.h> exists even on freestanding compilers. */
10305 # include <limits.h>
10307 # include <assert.h>
10312 /* Override any GCC internal prototype to avoid an error.
10313 Use char because int might match the return type of a GCC
10314 builtin and then its argument prototype would still apply. */
10319 /* The GNU C library defines this for functions which it implements
10320 to always fail with ENOSYS. Some functions are actually named
10321 something starting with __ and the normal name is an alias. */
10322 #if defined __stub_$ac_func || defined __stub___$ac_func
10329 return $ac_func ();
10334 rm -f conftest.$ac_objext conftest$ac_exeext
10335 if { (ac_try="$ac_link"
10336 case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_link") 2>conftest.er1
10343 grep -v '^ *+' conftest.er1 >conftest.err
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10349 { (case "(($ac_try" in
10350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351 *) ac_try_echo=$ac_try;;
10353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354 (eval "$ac_try") 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try='test -s conftest$ac_exeext'
10359 { (case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_try") 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; }; then
10368 eval "$as_ac_var=yes"
10370 echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10373 eval "$as_ac_var=no"
10376 rm -f core conftest.err conftest.$ac_objext \
10377 conftest$ac_exeext conftest.$ac_ext
10379 ac_res=`eval echo '${'$as_ac_var'}'`
10380 { echo "$as_me:$LINENO: result: $ac_res" >&5
10381 echo "${ECHO_T}$ac_res" >&6; }
10382 if test `eval echo '${'$as_ac_var'}'` = yes; then
10383 cat >>confdefs.h <<_ACEOF
10384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10390 LIBS="$lt_save_LIBS"
10393 ac_cpp='$CPP $CPPFLAGS'
10394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10400 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10401 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10402 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 ac_cv_sys_symbol_underscore=no
10406 cat > conftest.$ac_ext <<EOF
10407 void nm_test_func(){}
10408 int main(){nm_test_func;return 0;}
10410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10411 (eval $ac_compile) 2>&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; then
10415 # Now try to grab the symbols.
10416 ac_nlist=conftest.nm
10417 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10418 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } && test -s "$ac_nlist"; then
10422 # See whether the symbols have a leading underscore.
10423 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10424 ac_cv_sys_symbol_underscore=yes
10426 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10429 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10433 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10436 echo "configure: failed program was:" >&5
10442 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10443 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10446 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10447 if test x"$libltdl_cv_func_dlopen" = xyes ||
10448 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10449 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10450 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10451 if test "${libltdl_cv_need_uscore+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 libltdl_cv_need_uscore=unknown
10456 LIBS="$LIBS $LIBADD_DL"
10457 if test "$cross_compiling" = yes; then :
10458 libltdl_cv_need_uscore=cross
10460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10461 lt_status=$lt_dlunknown
10462 cat > conftest.$ac_ext <<EOF
10463 #line 10463 "configure"
10464 #include "confdefs.h"
10473 # define LT_DLGLOBAL RTLD_GLOBAL
10476 # define LT_DLGLOBAL DL_GLOBAL
10478 # define LT_DLGLOBAL 0
10482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10483 find out it does not work in some platform. */
10484 #ifndef LT_DLLAZY_OR_NOW
10486 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10489 # define LT_DLLAZY_OR_NOW DL_LAZY
10492 # define LT_DLLAZY_OR_NOW RTLD_NOW
10495 # define LT_DLLAZY_OR_NOW DL_NOW
10497 # define LT_DLLAZY_OR_NOW 0
10505 extern "C" void exit (int);
10508 void fnord() { int i=42;}
10511 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10512 int status = $lt_dlunknown;
10516 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10517 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10518 /* dlclose (self); */
10526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527 (eval $ac_link) 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10531 (./conftest; exit; ) >&5 2>/dev/null
10533 case x$lt_status in
10534 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10535 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10536 x$lt_dlunknown|x*) ;;
10539 # compilation failed
10548 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10549 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10553 if test x"$libltdl_cv_need_uscore" = xyes; then
10555 cat >>confdefs.h <<\_ACEOF
10556 #define NEED_USCORE 1
10562 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10563 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10564 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 # PORTME does your system automatically load deplibs for dlopen?
10568 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10569 # For now, we just catch OSes we know something about -- in the
10570 # future, we'll try test this programmatically.
10571 libltdl_cv_sys_dlopen_deplibs=unknown
10573 aix3*|aix4.1.*|aix4.2.*)
10574 # Unknown whether this is true for these versions of AIX, but
10575 # we want this `case' here to explicitly catch those versions.
10576 libltdl_cv_sys_dlopen_deplibs=unknown
10579 libltdl_cv_sys_dlopen_deplibs=yes
10582 # Assuming the user has installed a libdl from somewhere, this is true
10583 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10584 libltdl_cv_sys_dlopen_deplibs=yes
10586 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10587 # GNU and its variants, using gnu ld.so (Glibc)
10588 libltdl_cv_sys_dlopen_deplibs=yes
10591 libltdl_cv_sys_dlopen_deplibs=yes
10594 libltdl_cv_sys_dlopen_deplibs=yes
10596 irix[12345]*|irix6.[01]*)
10597 # Catch all versions of IRIX before 6.2, and indicate that we don't
10598 # know how it worked for any of those versions.
10599 libltdl_cv_sys_dlopen_deplibs=unknown
10602 # The case above catches anything before 6.2, and it's known that
10603 # at 6.2 and later dlopen does load deplibs.
10604 libltdl_cv_sys_dlopen_deplibs=yes
10607 libltdl_cv_sys_dlopen_deplibs=yes
10610 libltdl_cv_sys_dlopen_deplibs=yes
10613 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10614 # it did *not* use an RPATH in a shared library to find objects the
10615 # library depends on, so we explicitly say `no'.
10616 libltdl_cv_sys_dlopen_deplibs=no
10618 osf5.0|osf5.0a|osf5.1)
10619 # dlopen *does* load deplibs and with the right loader patch applied
10620 # it even uses RPATH in a shared library to search for shared objects
10621 # that the library depends on, but there's no easy way to know if that
10622 # patch is installed. Since this is the case, all we can really
10623 # say is unknown -- it depends on the patch being installed. If
10624 # it is, this changes to `yes'. Without it, it would be `no'.
10625 libltdl_cv_sys_dlopen_deplibs=unknown
10628 # the two cases above should catch all versions of osf <= 5.1. Read
10629 # the comments above for what we know about them.
10630 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10631 # is used to find them so we can finally say `yes'.
10632 libltdl_cv_sys_dlopen_deplibs=yes
10635 libltdl_cv_sys_dlopen_deplibs=yes
10637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10638 libltdl_cv_sys_dlopen_deplibs=yes
10643 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10644 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10645 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10647 cat >>confdefs.h <<\_ACEOF
10648 #define LTDL_DLOPEN_DEPLIBS 1
10654 for ac_header in argz.h
10656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 ac_res=`eval echo '${'$as_ac_Header'}'`
10664 { echo "$as_me:$LINENO: result: $ac_res" >&5
10665 echo "${ECHO_T}$ac_res" >&6; }
10667 # Is the header compilable?
10668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10670 cat >conftest.$ac_ext <<_ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 $ac_includes_default
10677 #include <$ac_header>
10679 rm -f conftest.$ac_objext
10680 if { (ac_try="$ac_compile"
10681 case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686 (eval "$ac_compile") 2>conftest.er1
10688 grep -v '^ *+' conftest.er1 >conftest.err
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10694 { (case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_try") 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; } &&
10703 { ac_try='test -s conftest.$ac_objext'
10704 { (case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_try") 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; }; then
10713 ac_header_compiler=yes
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10718 ac_header_compiler=no
10721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10723 echo "${ECHO_T}$ac_header_compiler" >&6; }
10725 # Is the header present?
10726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10728 cat >conftest.$ac_ext <<_ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 #include <$ac_header>
10736 if { (ac_try="$ac_cpp conftest.$ac_ext"
10737 case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10744 grep -v '^ *+' conftest.er1 >conftest.err
10746 cat conftest.err >&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } >/dev/null; then
10749 if test -s conftest.err; then
10750 ac_cpp_err=$ac_c_preproc_warn_flag
10751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10758 if test -z "$ac_cpp_err"; then
10759 ac_header_preproc=yes
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 ac_header_preproc=no
10767 rm -f conftest.err conftest.$ac_ext
10768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10769 echo "${ECHO_T}$ac_header_preproc" >&6; }
10771 # So? What about this header?
10772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10778 ac_header_preproc=yes
10781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10794 ## ----------------------------------- ##
10795 ## Report this to llvmbugs@cs.uiuc.edu ##
10796 ## ----------------------------------- ##
10798 ) | sed "s/^/$as_me: WARNING: /" >&2
10801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 eval "$as_ac_Header=\$ac_header_preproc"
10808 ac_res=`eval echo '${'$as_ac_Header'}'`
10809 { echo "$as_me:$LINENO: result: $ac_res" >&5
10810 echo "${ECHO_T}$ac_res" >&6; }
10813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10814 cat >>confdefs.h <<_ACEOF
10815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10823 { echo "$as_me:$LINENO: checking for error_t" >&5
10824 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10825 if test "${ac_cv_type_error_t+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 cat >conftest.$ac_ext <<_ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10838 typedef error_t ac__type_new_;
10842 if ((ac__type_new_ *) 0)
10844 if (sizeof (ac__type_new_))
10850 rm -f conftest.$ac_objext
10851 if { (ac_try="$ac_compile"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_compile") 2>conftest.er1
10859 grep -v '^ *+' conftest.er1 >conftest.err
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest.$ac_objext'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 ac_cv_type_error_t=yes
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 ac_cv_type_error_t=no
10892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10894 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10895 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10896 if test $ac_cv_type_error_t = yes; then
10898 cat >>confdefs.h <<_ACEOF
10899 #define HAVE_ERROR_T 1
10905 cat >>confdefs.h <<\_ACEOF
10906 #define error_t int
10917 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 cat >conftest.$ac_ext <<_ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10933 #define $ac_func innocuous_$ac_func
10935 /* System header to define __stub macros and hopefully few prototypes,
10936 which can conflict with char $ac_func (); below.
10937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10938 <limits.h> exists even on freestanding compilers. */
10941 # include <limits.h>
10943 # include <assert.h>
10948 /* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10955 /* The GNU C library defines this for functions which it implements
10956 to always fail with ENOSYS. Some functions are actually named
10957 something starting with __ and the normal name is an alias. */
10958 #if defined __stub_$ac_func || defined __stub___$ac_func
10965 return $ac_func ();
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (ac_try="$ac_link"
10972 case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_link") 2>conftest.er1
10979 grep -v '^ *+' conftest.er1 >conftest.err
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10985 { (case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_try") 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; } &&
10994 { ac_try='test -s conftest$ac_exeext'
10995 { (case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_try") 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
11004 eval "$as_ac_var=yes"
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 eval "$as_ac_var=no"
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11015 ac_res=`eval echo '${'$as_ac_var'}'`
11016 { echo "$as_me:$LINENO: result: $ac_res" >&5
11017 echo "${ECHO_T}$ac_res" >&6; }
11018 if test `eval echo '${'$as_ac_var'}'` = yes; then
11019 cat >>confdefs.h <<_ACEOF
11020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11053 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 ac_res=`eval echo '${'$as_ac_Header'}'`
11064 { echo "$as_me:$LINENO: result: $ac_res" >&5
11065 echo "${ECHO_T}$ac_res" >&6; }
11067 # Is the header compilable?
11068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11070 cat >conftest.$ac_ext <<_ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 $ac_includes_default
11077 #include <$ac_header>
11079 rm -f conftest.$ac_objext
11080 if { (ac_try="$ac_compile"
11081 case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086 (eval "$ac_compile") 2>conftest.er1
11088 grep -v '^ *+' conftest.er1 >conftest.err
11090 cat conftest.err >&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } &&
11093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11094 { (case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_try") 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; } &&
11103 { ac_try='test -s conftest.$ac_objext'
11104 { (case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_try") 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
11113 ac_header_compiler=yes
11115 echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11118 ac_header_compiler=no
11121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11123 echo "${ECHO_T}$ac_header_compiler" >&6; }
11125 # Is the header present?
11126 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11128 cat >conftest.$ac_ext <<_ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h. */
11134 #include <$ac_header>
11136 if { (ac_try="$ac_cpp conftest.$ac_ext"
11137 case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11144 grep -v '^ *+' conftest.er1 >conftest.err
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } >/dev/null; then
11149 if test -s conftest.err; then
11150 ac_cpp_err=$ac_c_preproc_warn_flag
11151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11158 if test -z "$ac_cpp_err"; then
11159 ac_header_preproc=yes
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11164 ac_header_preproc=no
11167 rm -f conftest.err conftest.$ac_ext
11168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11169 echo "${ECHO_T}$ac_header_preproc" >&6; }
11171 # So? What about this header?
11172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11178 ac_header_preproc=yes
11181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11194 ## ----------------------------------- ##
11195 ## Report this to llvmbugs@cs.uiuc.edu ##
11196 ## ----------------------------------- ##
11198 ) | sed "s/^/$as_me: WARNING: /" >&2
11201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 eval "$as_ac_Header=\$ac_header_preproc"
11208 ac_res=`eval echo '${'$as_ac_Header'}'`
11209 { echo "$as_me:$LINENO: result: $ac_res" >&5
11210 echo "${ECHO_T}$ac_res" >&6; }
11213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11214 cat >>confdefs.h <<_ACEOF
11215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11226 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 ac_res=`eval echo '${'$as_ac_Header'}'`
11236 { echo "$as_me:$LINENO: result: $ac_res" >&5
11237 echo "${ECHO_T}$ac_res" >&6; }
11239 # Is the header compilable?
11240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11242 cat >conftest.$ac_ext <<_ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 $ac_includes_default
11249 #include <$ac_header>
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11260 grep -v '^ *+' conftest.er1 >conftest.err
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11266 { (case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest.$ac_objext'
11276 { (case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_try") 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_header_compiler=yes
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11290 ac_header_compiler=no
11293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11295 echo "${ECHO_T}$ac_header_compiler" >&6; }
11297 # Is the header present?
11298 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11300 cat >conftest.$ac_ext <<_ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 #include <$ac_header>
11308 if { (ac_try="$ac_cpp conftest.$ac_ext"
11309 case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11316 grep -v '^ *+' conftest.er1 >conftest.err
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } >/dev/null; then
11321 if test -s conftest.err; then
11322 ac_cpp_err=$ac_c_preproc_warn_flag
11323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11330 if test -z "$ac_cpp_err"; then
11331 ac_header_preproc=yes
11333 echo "$as_me: failed program was:" >&5
11334 sed 's/^/| /' conftest.$ac_ext >&5
11336 ac_header_preproc=no
11339 rm -f conftest.err conftest.$ac_ext
11340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11341 echo "${ECHO_T}$ac_header_preproc" >&6; }
11343 # So? What about this header?
11344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11350 ac_header_preproc=yes
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11366 ## ----------------------------------- ##
11367 ## Report this to llvmbugs@cs.uiuc.edu ##
11368 ## ----------------------------------- ##
11370 ) | sed "s/^/$as_me: WARNING: /" >&2
11373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 eval "$as_ac_Header=\$ac_header_preproc"
11380 ac_res=`eval echo '${'$as_ac_Header'}'`
11381 { echo "$as_me:$LINENO: result: $ac_res" >&5
11382 echo "${ECHO_T}$ac_res" >&6; }
11385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11386 cat >>confdefs.h <<_ACEOF
11387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11396 for ac_header in string.h strings.h
11398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 ac_res=`eval echo '${'$as_ac_Header'}'`
11406 { echo "$as_me:$LINENO: result: $ac_res" >&5
11407 echo "${ECHO_T}$ac_res" >&6; }
11409 # Is the header compilable?
11410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11412 cat >conftest.$ac_ext <<_ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 $ac_includes_default
11419 #include <$ac_header>
11421 rm -f conftest.$ac_objext
11422 if { (ac_try="$ac_compile"
11423 case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_compile") 2>conftest.er1
11430 grep -v '^ *+' conftest.er1 >conftest.err
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11436 { (case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441 (eval "$ac_try") 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; } &&
11445 { ac_try='test -s conftest.$ac_objext'
11446 { (case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_try") 2>&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455 ac_header_compiler=yes
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ac_header_compiler=no
11463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11465 echo "${ECHO_T}$ac_header_compiler" >&6; }
11467 # Is the header present?
11468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11470 cat >conftest.$ac_ext <<_ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 #include <$ac_header>
11478 if { (ac_try="$ac_cpp conftest.$ac_ext"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11486 grep -v '^ *+' conftest.er1 >conftest.err
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } >/dev/null; then
11491 if test -s conftest.err; then
11492 ac_cpp_err=$ac_c_preproc_warn_flag
11493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11500 if test -z "$ac_cpp_err"; then
11501 ac_header_preproc=yes
11503 echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11506 ac_header_preproc=no
11509 rm -f conftest.err conftest.$ac_ext
11510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11511 echo "${ECHO_T}$ac_header_preproc" >&6; }
11513 # So? What about this header?
11514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11520 ac_header_preproc=yes
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11536 ## ----------------------------------- ##
11537 ## Report this to llvmbugs@cs.uiuc.edu ##
11538 ## ----------------------------------- ##
11540 ) | sed "s/^/$as_me: WARNING: /" >&2
11543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 eval "$as_ac_Header=\$ac_header_preproc"
11550 ac_res=`eval echo '${'$as_ac_Header'}'`
11551 { echo "$as_me:$LINENO: result: $ac_res" >&5
11552 echo "${ECHO_T}$ac_res" >&6; }
11555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11556 cat >>confdefs.h <<_ACEOF
11557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11567 for ac_func in strchr index
11569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 cat >conftest.$ac_ext <<_ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11583 #define $ac_func innocuous_$ac_func
11585 /* System header to define __stub macros and hopefully few prototypes,
11586 which can conflict with char $ac_func (); below.
11587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11588 <limits.h> exists even on freestanding compilers. */
11591 # include <limits.h>
11593 # include <assert.h>
11598 /* Override any GCC internal prototype to avoid an error.
11599 Use char because int might match the return type of a GCC
11600 builtin and then its argument prototype would still apply. */
11605 /* The GNU C library defines this for functions which it implements
11606 to always fail with ENOSYS. Some functions are actually named
11607 something starting with __ and the normal name is an alias. */
11608 #if defined __stub_$ac_func || defined __stub___$ac_func
11615 return $ac_func ();
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (ac_try="$ac_link"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_link") 2>conftest.er1
11629 grep -v '^ *+' conftest.er1 >conftest.err
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
11634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11635 { (case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_try") 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest$ac_exeext'
11645 { (case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_try") 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 eval "$as_ac_var=yes"
11656 echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11659 eval "$as_ac_var=no"
11662 rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11665 ac_res=`eval echo '${'$as_ac_var'}'`
11666 { echo "$as_me:$LINENO: result: $ac_res" >&5
11667 echo "${ECHO_T}$ac_res" >&6; }
11668 if test `eval echo '${'$as_ac_var'}'` = yes; then
11669 cat >>confdefs.h <<_ACEOF
11670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11678 for ac_func in strrchr rindex
11680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 cat >conftest.$ac_ext <<_ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11694 #define $ac_func innocuous_$ac_func
11696 /* System header to define __stub macros and hopefully few prototypes,
11697 which can conflict with char $ac_func (); below.
11698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11699 <limits.h> exists even on freestanding compilers. */
11702 # include <limits.h>
11704 # include <assert.h>
11709 /* Override any GCC internal prototype to avoid an error.
11710 Use char because int might match the return type of a GCC
11711 builtin and then its argument prototype would still apply. */
11716 /* The GNU C library defines this for functions which it implements
11717 to always fail with ENOSYS. Some functions are actually named
11718 something starting with __ and the normal name is an alias. */
11719 #if defined __stub_$ac_func || defined __stub___$ac_func
11726 return $ac_func ();
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (ac_try="$ac_link"
11733 case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_link") 2>conftest.er1
11740 grep -v '^ *+' conftest.er1 >conftest.err
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
11745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11746 { (case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_try") 2>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; } &&
11755 { ac_try='test -s conftest$ac_exeext'
11756 { (case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_try") 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 eval "$as_ac_var=yes"
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11770 eval "$as_ac_var=no"
11773 rm -f core conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11776 ac_res=`eval echo '${'$as_ac_var'}'`
11777 { echo "$as_me:$LINENO: result: $ac_res" >&5
11778 echo "${ECHO_T}$ac_res" >&6; }
11779 if test `eval echo '${'$as_ac_var'}'` = yes; then
11780 cat >>confdefs.h <<_ACEOF
11781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11789 for ac_func in memcpy bcopy
11791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11792 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 cat >conftest.$ac_ext <<_ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h. */
11803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11805 #define $ac_func innocuous_$ac_func
11807 /* System header to define __stub macros and hopefully few prototypes,
11808 which can conflict with char $ac_func (); below.
11809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810 <limits.h> exists even on freestanding compilers. */
11813 # include <limits.h>
11815 # include <assert.h>
11820 /* Override any GCC internal prototype to avoid an error.
11821 Use char because int might match the return type of a GCC
11822 builtin and then its argument prototype would still apply. */
11827 /* The GNU C library defines this for functions which it implements
11828 to always fail with ENOSYS. Some functions are actually named
11829 something starting with __ and the normal name is an alias. */
11830 #if defined __stub_$ac_func || defined __stub___$ac_func
11837 return $ac_func ();
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (ac_try="$ac_link"
11844 case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_link") 2>conftest.er1
11851 grep -v '^ *+' conftest.er1 >conftest.err
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11857 { (case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_try") 2>&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; } &&
11866 { ac_try='test -s conftest$ac_exeext'
11867 { (case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_try") 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 eval "$as_ac_var=yes"
11878 echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11881 eval "$as_ac_var=no"
11884 rm -f core conftest.err conftest.$ac_objext \
11885 conftest$ac_exeext conftest.$ac_ext
11887 ac_res=`eval echo '${'$as_ac_var'}'`
11888 { echo "$as_me:$LINENO: result: $ac_res" >&5
11889 echo "${ECHO_T}$ac_res" >&6; }
11890 if test `eval echo '${'$as_ac_var'}'` = yes; then
11891 cat >>confdefs.h <<_ACEOF
11892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11900 for ac_func in memmove strcmp
11902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 cat >conftest.$ac_ext <<_ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11916 #define $ac_func innocuous_$ac_func
11918 /* System header to define __stub macros and hopefully few prototypes,
11919 which can conflict with char $ac_func (); below.
11920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 <limits.h> exists even on freestanding compilers. */
11924 # include <limits.h>
11926 # include <assert.h>
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11938 /* The GNU C library defines this for functions which it implements
11939 to always fail with ENOSYS. Some functions are actually named
11940 something starting with __ and the normal name is an alias. */
11941 #if defined __stub_$ac_func || defined __stub___$ac_func
11948 return $ac_func ();
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (ac_try="$ac_link"
11955 case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_link") 2>conftest.er1
11962 grep -v '^ *+' conftest.er1 >conftest.err
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } &&
11967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11968 { (case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_try") 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; } &&
11977 { ac_try='test -s conftest$ac_exeext'
11978 { (case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_try") 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 eval "$as_ac_var=yes"
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11992 eval "$as_ac_var=no"
11995 rm -f core conftest.err conftest.$ac_objext \
11996 conftest$ac_exeext conftest.$ac_ext
11998 ac_res=`eval echo '${'$as_ac_var'}'`
11999 { echo "$as_me:$LINENO: result: $ac_res" >&5
12000 echo "${ECHO_T}$ac_res" >&6; }
12001 if test `eval echo '${'$as_ac_var'}'` = yes; then
12002 cat >>confdefs.h <<_ACEOF
12003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12012 for ac_func in closedir opendir readdir
12014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 cat >conftest.$ac_ext <<_ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12028 #define $ac_func innocuous_$ac_func
12030 /* System header to define __stub macros and hopefully few prototypes,
12031 which can conflict with char $ac_func (); below.
12032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12033 <limits.h> exists even on freestanding compilers. */
12036 # include <limits.h>
12038 # include <assert.h>
12043 /* Override any GCC internal prototype to avoid an error.
12044 Use char because int might match the return type of a GCC
12045 builtin and then its argument prototype would still apply. */
12050 /* The GNU C library defines this for functions which it implements
12051 to always fail with ENOSYS. Some functions are actually named
12052 something starting with __ and the normal name is an alias. */
12053 #if defined __stub_$ac_func || defined __stub___$ac_func
12060 return $ac_func ();
12065 rm -f conftest.$ac_objext conftest$ac_exeext
12066 if { (ac_try="$ac_link"
12067 case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_link") 2>conftest.er1
12074 grep -v '^ *+' conftest.er1 >conftest.err
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
12079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12080 { (case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_try") 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest$ac_exeext'
12090 { (case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_try") 2>&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 eval "$as_ac_var=yes"
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 eval "$as_ac_var=no"
12107 rm -f core conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12110 ac_res=`eval echo '${'$as_ac_var'}'`
12111 { echo "$as_me:$LINENO: result: $ac_res" >&5
12112 echo "${ECHO_T}$ac_res" >&6; }
12113 if test `eval echo '${'$as_ac_var'}'` = yes; then
12114 cat >>confdefs.h <<_ACEOF
12115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12123 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12124 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12137 if test "$GCC" != "yes" && test "$ICC" != "yes"
12139 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12140 echo "$as_me: error: gcc|icc required but not found" >&2;}
12141 { (exit 1); exit 1; }; }
12144 if test "$GXX" != "yes" && test "$IXX" != "yes"
12146 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12147 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12148 { (exit 1); exit 1; }; }
12151 if test "$GCC" = "yes"
12153 cat >conftest.$ac_ext <<_ACEOF
12154 #if !defined(__GNUC__) || __GNUC__ < 3
12155 #error Unsupported GCC version
12159 rm -f conftest.$ac_objext
12160 if { (ac_try="$ac_compile"
12161 case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_compile") 2>conftest.er1
12168 grep -v '^ *+' conftest.er1 >conftest.err
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } &&
12173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12174 { (case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_try") 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; } &&
12183 { ac_try='test -s conftest.$ac_objext'
12184 { (case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_try") 2>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12198 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12199 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12200 { (exit 1); exit 1; }; }
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12206 if test -z "$llvm_cv_gnu_make_command"
12208 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12209 echo "$as_me: error: GNU Make required but not found" >&2;}
12210 { (exit 1); exit 1; }; }
12213 { echo "$as_me:$LINENO: result: ok" >&5
12214 echo "${ECHO_T}ok" >&6; }
12216 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12217 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12218 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12220 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12222 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12223 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12227 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12228 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12229 if test "${ac_cv_lib_m_sin+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 ac_check_lib_save_LIBS=$LIBS
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12241 /* Override any GCC internal prototype to avoid an error.
12242 Use char because int might match the return type of a GCC
12243 builtin and then its argument prototype would still apply. */
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (ac_try="$ac_link"
12258 case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_link") 2>conftest.er1
12265 grep -v '^ *+' conftest.er1 >conftest.err
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12271 { (case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276 (eval "$ac_try") 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; } &&
12280 { ac_try='test -s conftest$ac_exeext'
12281 { (case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_try") 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12290 ac_cv_lib_m_sin=yes
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12298 rm -f core conftest.err conftest.$ac_objext \
12299 conftest$ac_exeext conftest.$ac_ext
12300 LIBS=$ac_check_lib_save_LIBS
12302 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12303 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12304 if test $ac_cv_lib_m_sin = yes; then
12305 cat >>confdefs.h <<_ACEOF
12306 #define HAVE_LIBM 1
12313 if test "$llvm_cv_os_type" = "MingW" ; then
12315 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12316 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12317 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12320 ac_check_lib_save_LIBS=$LIBS
12321 LIBS="-limagehlp $LIBS"
12322 cat >conftest.$ac_ext <<_ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (ac_try="$ac_link"
12340 case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_link") 2>conftest.er1
12347 grep -v '^ *+' conftest.er1 >conftest.err
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } &&
12352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12353 { (case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_try") 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; } &&
12362 { ac_try='test -s conftest$ac_exeext'
12363 { (case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_try") 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; }; then
12372 ac_cv_lib_imagehlp_main=yes
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12377 ac_cv_lib_imagehlp_main=no
12380 rm -f core conftest.err conftest.$ac_objext \
12381 conftest$ac_exeext conftest.$ac_ext
12382 LIBS=$ac_check_lib_save_LIBS
12384 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12385 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12386 if test $ac_cv_lib_imagehlp_main = yes; then
12387 cat >>confdefs.h <<_ACEOF
12388 #define HAVE_LIBIMAGEHLP 1
12391 LIBS="-limagehlp $LIBS"
12396 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12397 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12398 if test "${ac_cv_lib_psapi_main+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 ac_check_lib_save_LIBS=$LIBS
12402 LIBS="-lpsapi $LIBS"
12403 cat >conftest.$ac_ext <<_ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (ac_try="$ac_link"
12421 case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_link") 2>conftest.er1
12428 grep -v '^ *+' conftest.er1 >conftest.err
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } &&
12433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12434 { (case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_try") 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest$ac_exeext'
12444 { (case "(($ac_try" in
12445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446 *) ac_try_echo=$ac_try;;
12448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449 (eval "$ac_try") 2>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453 ac_cv_lib_psapi_main=yes
12455 echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12458 ac_cv_lib_psapi_main=no
12461 rm -f core conftest.err conftest.$ac_objext \
12462 conftest$ac_exeext conftest.$ac_ext
12463 LIBS=$ac_check_lib_save_LIBS
12465 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12466 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12467 if test $ac_cv_lib_psapi_main = yes; then
12468 cat >>confdefs.h <<_ACEOF
12469 #define HAVE_LIBPSAPI 1
12472 LIBS="-lpsapi $LIBS"
12478 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12479 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12480 if test "${ac_cv_search_dlopen+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 ac_func_search_save_LIBS=$LIBS
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12491 /* Override any GCC internal prototype to avoid an error.
12492 Use char because int might match the return type of a GCC
12493 builtin and then its argument prototype would still apply. */
12506 for ac_lib in '' dl; do
12507 if test -z "$ac_lib"; then
12508 ac_res="none required"
12511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12513 rm -f conftest.$ac_objext conftest$ac_exeext
12514 if { (ac_try="$ac_link"
12515 case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_link") 2>conftest.er1
12522 grep -v '^ *+' conftest.er1 >conftest.err
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12528 { (case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_try") 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_try") 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 ac_cv_search_dlopen=$ac_res
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12555 rm -f core conftest.err conftest.$ac_objext \
12557 if test "${ac_cv_search_dlopen+set}" = set; then
12561 if test "${ac_cv_search_dlopen+set}" = set; then
12564 ac_cv_search_dlopen=no
12566 rm conftest.$ac_ext
12567 LIBS=$ac_func_search_save_LIBS
12569 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12570 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12571 ac_res=$ac_cv_search_dlopen
12572 if test "$ac_res" != no; then
12573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12575 cat >>confdefs.h <<\_ACEOF
12576 #define HAVE_DLOPEN 1
12580 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12581 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12585 if test "$llvm_cv_enable_libffi" = "yes" ; then
12586 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12587 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12588 if test "${ac_cv_search_ffi_call+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 ac_func_search_save_LIBS=$LIBS
12592 cat >conftest.$ac_ext <<_ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12599 /* Override any GCC internal prototype to avoid an error.
12600 Use char because int might match the return type of a GCC
12601 builtin and then its argument prototype would still apply. */
12609 return ffi_call ();
12614 for ac_lib in '' ffi; do
12615 if test -z "$ac_lib"; then
12616 ac_res="none required"
12619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_link") 2>conftest.er1
12630 grep -v '^ *+' conftest.er1 >conftest.err
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } &&
12635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12636 { (case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try='test -s conftest$ac_exeext'
12646 { (case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_try") 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12655 ac_cv_search_ffi_call=$ac_res
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12663 rm -f core conftest.err conftest.$ac_objext \
12665 if test "${ac_cv_search_ffi_call+set}" = set; then
12669 if test "${ac_cv_search_ffi_call+set}" = set; then
12672 ac_cv_search_ffi_call=no
12674 rm conftest.$ac_ext
12675 LIBS=$ac_func_search_save_LIBS
12677 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12678 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12679 ac_res=$ac_cv_search_ffi_call
12680 if test "$ac_res" != no; then
12681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12683 cat >>confdefs.h <<\_ACEOF
12684 #define HAVE_FFI_CALL 1
12688 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12689 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12690 { (exit 1); exit 1; }; }
12695 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12696 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12697 if test "${ac_cv_search_mallinfo+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 ac_func_search_save_LIBS=$LIBS
12701 cat >conftest.$ac_ext <<_ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12718 return mallinfo ();
12723 for ac_lib in '' malloc; do
12724 if test -z "$ac_lib"; then
12725 ac_res="none required"
12728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12730 rm -f conftest.$ac_objext conftest$ac_exeext
12731 if { (ac_try="$ac_link"
12732 case "(($ac_try" in
12733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734 *) ac_try_echo=$ac_try;;
12736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12737 (eval "$ac_link") 2>conftest.er1
12739 grep -v '^ *+' conftest.er1 >conftest.err
12741 cat conftest.err >&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12745 { (case "(($ac_try" in
12746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750 (eval "$ac_try") 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; } &&
12754 { ac_try='test -s conftest$ac_exeext'
12755 { (case "(($ac_try" in
12756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757 *) ac_try_echo=$ac_try;;
12759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760 (eval "$ac_try") 2>&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 ac_cv_search_mallinfo=$ac_res
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12772 rm -f core conftest.err conftest.$ac_objext \
12774 if test "${ac_cv_search_mallinfo+set}" = set; then
12778 if test "${ac_cv_search_mallinfo+set}" = set; then
12781 ac_cv_search_mallinfo=no
12783 rm conftest.$ac_ext
12784 LIBS=$ac_func_search_save_LIBS
12786 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12787 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12788 ac_res=$ac_cv_search_mallinfo
12789 if test "$ac_res" != no; then
12790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12792 cat >>confdefs.h <<\_ACEOF
12793 #define HAVE_MALLINFO 1
12799 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12801 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12802 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12803 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12806 ac_check_lib_save_LIBS=$LIBS
12807 LIBS="-lpthread $LIBS"
12808 cat >conftest.$ac_ext <<_ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12815 /* Override any GCC internal prototype to avoid an error.
12816 Use char because int might match the return type of a GCC
12817 builtin and then its argument prototype would still apply. */
12821 char pthread_mutex_init ();
12825 return pthread_mutex_init ();
12830 rm -f conftest.$ac_objext conftest$ac_exeext
12831 if { (ac_try="$ac_link"
12832 case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_link") 2>conftest.er1
12839 grep -v '^ *+' conftest.er1 >conftest.err
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
12844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12845 { (case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_try") 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try='test -s conftest$ac_exeext'
12855 { (case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860 (eval "$ac_try") 2>&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; }; then
12864 ac_cv_lib_pthread_pthread_mutex_init=yes
12866 echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12869 ac_cv_lib_pthread_pthread_mutex_init=no
12872 rm -f core conftest.err conftest.$ac_objext \
12873 conftest$ac_exeext conftest.$ac_ext
12874 LIBS=$ac_check_lib_save_LIBS
12876 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12877 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12878 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12879 cat >>confdefs.h <<_ACEOF
12880 #define HAVE_LIBPTHREAD 1
12883 LIBS="-lpthread $LIBS"
12887 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12888 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12889 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12890 echo $ECHO_N "(cached) $ECHO_C" >&6
12892 ac_func_search_save_LIBS=$LIBS
12893 cat >conftest.$ac_ext <<_ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12900 /* Override any GCC internal prototype to avoid an error.
12901 Use char because int might match the return type of a GCC
12902 builtin and then its argument prototype would still apply. */
12906 char pthread_mutex_lock ();
12910 return pthread_mutex_lock ();
12915 for ac_lib in '' pthread; do
12916 if test -z "$ac_lib"; then
12917 ac_res="none required"
12920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12922 rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (ac_try="$ac_link"
12924 case "(($ac_try" in
12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 (eval "$ac_link") 2>conftest.er1
12931 grep -v '^ *+' conftest.er1 >conftest.err
12933 cat conftest.err >&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } &&
12936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12937 { (case "(($ac_try" in
12938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939 *) ac_try_echo=$ac_try;;
12941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12942 (eval "$ac_try") 2>&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; } &&
12946 { ac_try='test -s conftest$ac_exeext'
12947 { (case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12952 (eval "$ac_try") 2>&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; }; then
12956 ac_cv_search_pthread_mutex_lock=$ac_res
12958 echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12964 rm -f core conftest.err conftest.$ac_objext \
12966 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12970 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12973 ac_cv_search_pthread_mutex_lock=no
12975 rm conftest.$ac_ext
12976 LIBS=$ac_func_search_save_LIBS
12978 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12979 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12980 ac_res=$ac_cv_search_pthread_mutex_lock
12981 if test "$ac_res" != no; then
12982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12984 cat >>confdefs.h <<\_ACEOF
12985 #define HAVE_PTHREAD_MUTEX_LOCK 1
12990 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12991 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12992 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12995 ac_func_search_save_LIBS=$LIBS
12996 cat >conftest.$ac_ext <<_ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h. */
13003 /* Override any GCC internal prototype to avoid an error.
13004 Use char because int might match the return type of a GCC
13005 builtin and then its argument prototype would still apply. */
13009 char pthread_rwlock_init ();
13013 return pthread_rwlock_init ();
13018 for ac_lib in '' pthread; do
13019 if test -z "$ac_lib"; then
13020 ac_res="none required"
13023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13025 rm -f conftest.$ac_objext conftest$ac_exeext
13026 if { (ac_try="$ac_link"
13027 case "(($ac_try" in
13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_link") 2>conftest.er1
13034 grep -v '^ *+' conftest.er1 >conftest.err
13036 cat conftest.err >&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } &&
13039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13040 { (case "(($ac_try" in
13041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045 (eval "$ac_try") 2>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; } &&
13049 { ac_try='test -s conftest$ac_exeext'
13050 { (case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_try") 2>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 ac_cv_search_pthread_rwlock_init=$ac_res
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13067 rm -f core conftest.err conftest.$ac_objext \
13069 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13073 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13076 ac_cv_search_pthread_rwlock_init=no
13078 rm conftest.$ac_ext
13079 LIBS=$ac_func_search_save_LIBS
13081 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13082 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13083 ac_res=$ac_cv_search_pthread_rwlock_init
13084 if test "$ac_res" != no; then
13085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13087 cat >>confdefs.h <<\_ACEOF
13088 #define HAVE_PTHREAD_RWLOCK_INIT 1
13093 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13094 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13095 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13098 ac_func_search_save_LIBS=$LIBS
13099 cat >conftest.$ac_ext <<_ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13106 /* Override any GCC internal prototype to avoid an error.
13107 Use char because int might match the return type of a GCC
13108 builtin and then its argument prototype would still apply. */
13112 char pthread_getspecific ();
13116 return pthread_getspecific ();
13121 for ac_lib in '' pthread; do
13122 if test -z "$ac_lib"; then
13123 ac_res="none required"
13126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13128 rm -f conftest.$ac_objext conftest$ac_exeext
13129 if { (ac_try="$ac_link"
13130 case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_link") 2>conftest.er1
13137 grep -v '^ *+' conftest.er1 >conftest.err
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13143 { (case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_try") 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_try") 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_search_pthread_getspecific=$ac_res
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13170 rm -f core conftest.err conftest.$ac_objext \
13172 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13176 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13179 ac_cv_search_pthread_getspecific=no
13181 rm conftest.$ac_ext
13182 LIBS=$ac_func_search_save_LIBS
13184 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13185 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13186 ac_res=$ac_cv_search_pthread_getspecific
13187 if test "$ac_res" != no; then
13188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13190 cat >>confdefs.h <<\_ACEOF
13191 #define HAVE_PTHREAD_GETSPECIFIC 1
13199 # Check whether --with-udis86 was given.
13200 if test "${with_udis86+set}" = set; then
13201 withval=$with_udis86;
13206 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13209 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13210 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13211 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-ludis86 $LIBS"
13216 cat >conftest.$ac_ext <<_ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13223 /* Override any GCC internal prototype to avoid an error.
13224 Use char because int might match the return type of a GCC
13225 builtin and then its argument prototype would still apply. */
13238 rm -f conftest.$ac_objext conftest$ac_exeext
13239 if { (ac_try="$ac_link"
13240 case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_link") 2>conftest.er1
13247 grep -v '^ *+' conftest.er1 >conftest.err
13249 cat conftest.err >&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } &&
13252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13253 { (case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_try") 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; } &&
13262 { ac_try='test -s conftest$ac_exeext'
13263 { (case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_try") 2>&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13272 ac_cv_lib_udis86_ud_init=yes
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13277 ac_cv_lib_udis86_ud_init=no
13280 rm -f core conftest.err conftest.$ac_objext \
13281 conftest$ac_exeext conftest.$ac_ext
13282 LIBS=$ac_check_lib_save_LIBS
13284 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13285 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13286 if test $ac_cv_lib_udis86_ud_init = yes; then
13287 cat >>confdefs.h <<_ACEOF
13288 #define HAVE_LIBUDIS86 1
13291 LIBS="-ludis86 $LIBS"
13295 echo "Error! You need to have libudis86 around."
13307 cat >>confdefs.h <<_ACEOF
13308 #define USE_UDIS86 $USE_UDIS86
13313 # Check whether --with-oprofile was given.
13314 if test "${with_oprofile+set}" = set; then
13315 withval=$with_oprofile;
13319 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13320 no) llvm_cv_oppath=
13323 *) llvm_cv_oppath="${withval}/lib/oprofile"
13324 CPPFLAGS="-I${withval}/include";;
13326 if test -n "$llvm_cv_oppath" ; then
13327 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13328 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13329 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13330 if test "${ac_cv_search_bfd_init+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13333 ac_func_search_save_LIBS=$LIBS
13334 cat >conftest.$ac_ext <<_ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h. */
13341 /* Override any GCC internal prototype to avoid an error.
13342 Use char because int might match the return type of a GCC
13343 builtin and then its argument prototype would still apply. */
13351 return bfd_init ();
13356 for ac_lib in '' bfd; do
13357 if test -z "$ac_lib"; then
13358 ac_res="none required"
13361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13363 rm -f conftest.$ac_objext conftest$ac_exeext
13364 if { (ac_try="$ac_link"
13365 case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_link") 2>conftest.er1
13372 grep -v '^ *+' conftest.er1 >conftest.err
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } &&
13377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13378 { (case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_try") 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } &&
13387 { ac_try='test -s conftest$ac_exeext'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 ac_cv_search_bfd_init=$ac_res
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13405 rm -f core conftest.err conftest.$ac_objext \
13407 if test "${ac_cv_search_bfd_init+set}" = set; then
13411 if test "${ac_cv_search_bfd_init+set}" = set; then
13414 ac_cv_search_bfd_init=no
13416 rm conftest.$ac_ext
13417 LIBS=$ac_func_search_save_LIBS
13419 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13420 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13421 ac_res=$ac_cv_search_bfd_init
13422 if test "$ac_res" != no; then
13423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13427 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13428 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13429 if test "${ac_cv_search_op_open_agent+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 ac_func_search_save_LIBS=$LIBS
13433 cat >conftest.$ac_ext <<_ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13440 /* Override any GCC internal prototype to avoid an error.
13441 Use char because int might match the return type of a GCC
13442 builtin and then its argument prototype would still apply. */
13446 char op_open_agent ();
13450 return op_open_agent ();
13455 for ac_lib in '' opagent; do
13456 if test -z "$ac_lib"; then
13457 ac_res="none required"
13460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13462 rm -f conftest.$ac_objext conftest$ac_exeext
13463 if { (ac_try="$ac_link"
13464 case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_link") 2>conftest.er1
13471 grep -v '^ *+' conftest.er1 >conftest.err
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } &&
13476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13477 { (case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_try") 2>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; } &&
13486 { ac_try='test -s conftest$ac_exeext'
13487 { (case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_try") 2>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 ac_cv_search_op_open_agent=$ac_res
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13504 rm -f core conftest.err conftest.$ac_objext \
13506 if test "${ac_cv_search_op_open_agent+set}" = set; then
13510 if test "${ac_cv_search_op_open_agent+set}" = set; then
13513 ac_cv_search_op_open_agent=no
13515 rm conftest.$ac_ext
13516 LIBS=$ac_func_search_save_LIBS
13518 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13519 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13520 ac_res=$ac_cv_search_op_open_agent
13521 if test "$ac_res" != no; then
13522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13526 echo "Error! You need to have libopagent around."
13531 if test "${ac_cv_header_opagent_h+set}" = set; then
13532 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13533 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13534 if test "${ac_cv_header_opagent_h+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13538 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13540 # Is the header compilable?
13541 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13542 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13543 cat >conftest.$ac_ext <<_ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13549 $ac_includes_default
13550 #include <opagent.h>
13552 rm -f conftest.$ac_objext
13553 if { (ac_try="$ac_compile"
13554 case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_compile") 2>conftest.er1
13561 grep -v '^ *+' conftest.er1 >conftest.err
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } &&
13566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13567 { (case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_try") 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } &&
13576 { ac_try='test -s conftest.$ac_objext'
13577 { (case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_try") 2>&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
13586 ac_header_compiler=yes
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 ac_header_compiler=no
13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13596 echo "${ECHO_T}$ac_header_compiler" >&6; }
13598 # Is the header present?
13599 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13600 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13601 cat >conftest.$ac_ext <<_ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607 #include <opagent.h>
13609 if { (ac_try="$ac_cpp conftest.$ac_ext"
13610 case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13617 grep -v '^ *+' conftest.er1 >conftest.err
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } >/dev/null; then
13622 if test -s conftest.err; then
13623 ac_cpp_err=$ac_c_preproc_warn_flag
13624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13631 if test -z "$ac_cpp_err"; then
13632 ac_header_preproc=yes
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13637 ac_header_preproc=no
13640 rm -f conftest.err conftest.$ac_ext
13641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13642 echo "${ECHO_T}$ac_header_preproc" >&6; }
13644 # So? What about this header?
13645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13647 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13648 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13650 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13651 ac_header_preproc=yes
13654 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13655 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13657 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13659 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13661 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13663 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13664 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13665 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13667 ## ----------------------------------- ##
13668 ## Report this to llvmbugs@cs.uiuc.edu ##
13669 ## ----------------------------------- ##
13671 ) | sed "s/^/$as_me: WARNING: /" >&2
13674 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13675 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13676 if test "${ac_cv_header_opagent_h+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 ac_cv_header_opagent_h=$ac_header_preproc
13681 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13682 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13685 if test $ac_cv_header_opagent_h = yes; then
13689 echo "Error! You need to have opagent.h around."
13705 cat >>confdefs.h <<_ACEOF
13706 #define USE_OPROFILE $USE_OPROFILE
13716 ac_header_dirent=no
13717 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13718 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13719 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13720 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 cat >conftest.$ac_ext <<_ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 #include <sys/types.h>
13742 rm -f conftest.$ac_objext
13743 if { (ac_try="$ac_compile"
13744 case "(($ac_try" in
13745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746 *) ac_try_echo=$ac_try;;
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749 (eval "$ac_compile") 2>conftest.er1
13751 grep -v '^ *+' conftest.er1 >conftest.err
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13757 { (case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_try") 2>&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; } &&
13766 { ac_try='test -s conftest.$ac_objext'
13767 { (case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_try") 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 eval "$as_ac_Header=yes"
13778 echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13781 eval "$as_ac_Header=no"
13784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13786 ac_res=`eval echo '${'$as_ac_Header'}'`
13787 { echo "$as_me:$LINENO: result: $ac_res" >&5
13788 echo "${ECHO_T}$ac_res" >&6; }
13789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13790 cat >>confdefs.h <<_ACEOF
13791 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13794 ac_header_dirent=$ac_hdr; break
13798 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13799 if test $ac_header_dirent = dirent.h; then
13800 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13801 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13802 if test "${ac_cv_search_opendir+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13805 ac_func_search_save_LIBS=$LIBS
13806 cat >conftest.$ac_ext <<_ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h. */
13813 /* Override any GCC internal prototype to avoid an error.
13814 Use char because int might match the return type of a GCC
13815 builtin and then its argument prototype would still apply. */
13828 for ac_lib in '' dir; do
13829 if test -z "$ac_lib"; then
13830 ac_res="none required"
13833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (ac_try="$ac_link"
13837 case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_link") 2>conftest.er1
13844 grep -v '^ *+' conftest.er1 >conftest.err
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13850 { (case "(($ac_try" in
13851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852 *) ac_try_echo=$ac_try;;
13854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855 (eval "$ac_try") 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } &&
13859 { ac_try='test -s conftest$ac_exeext'
13860 { (case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_try") 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; }; then
13869 ac_cv_search_opendir=$ac_res
13871 echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13877 rm -f core conftest.err conftest.$ac_objext \
13879 if test "${ac_cv_search_opendir+set}" = set; then
13883 if test "${ac_cv_search_opendir+set}" = set; then
13886 ac_cv_search_opendir=no
13888 rm conftest.$ac_ext
13889 LIBS=$ac_func_search_save_LIBS
13891 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13892 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13893 ac_res=$ac_cv_search_opendir
13894 if test "$ac_res" != no; then
13895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13900 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13901 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13902 if test "${ac_cv_search_opendir+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 ac_func_search_save_LIBS=$LIBS
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13913 /* Override any GCC internal prototype to avoid an error.
13914 Use char because int might match the return type of a GCC
13915 builtin and then its argument prototype would still apply. */
13928 for ac_lib in '' x; do
13929 if test -z "$ac_lib"; then
13930 ac_res="none required"
13933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13935 rm -f conftest.$ac_objext conftest$ac_exeext
13936 if { (ac_try="$ac_link"
13937 case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_link") 2>conftest.er1
13944 grep -v '^ *+' conftest.er1 >conftest.err
13946 cat conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } &&
13949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13950 { (case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_try") 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; } &&
13959 { ac_try='test -s conftest$ac_exeext'
13960 { (case "(($ac_try" in
13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962 *) ac_try_echo=$ac_try;;
13964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965 (eval "$ac_try") 2>&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; }; then
13969 ac_cv_search_opendir=$ac_res
13971 echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13977 rm -f core conftest.err conftest.$ac_objext \
13979 if test "${ac_cv_search_opendir+set}" = set; then
13983 if test "${ac_cv_search_opendir+set}" = set; then
13986 ac_cv_search_opendir=no
13988 rm conftest.$ac_ext
13989 LIBS=$ac_func_search_save_LIBS
13991 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13992 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13993 ac_res=$ac_cv_search_opendir
13994 if test "$ac_res" != no; then
13995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14001 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14002 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14003 if test "${ac_cv_header_mmap_anon+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14007 ac_cpp='$CPP $CPPFLAGS'
14008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14012 cat >conftest.$ac_ext <<_ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h. */
14018 #include <sys/mman.h>
14019 #include <unistd.h>
14024 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14029 rm -f conftest.$ac_objext
14030 if { (ac_try="$ac_compile"
14031 case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_compile") 2>conftest.er1
14038 grep -v '^ *+' conftest.er1 >conftest.err
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14044 { (case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_try") 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; } &&
14053 { ac_try='test -s conftest.$ac_objext'
14054 { (case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_try") 2>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
14063 ac_cv_header_mmap_anon=yes
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14068 ac_cv_header_mmap_anon=no
14071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14073 ac_cpp='$CPP $CPPFLAGS'
14074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14080 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14081 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14082 if test "$ac_cv_header_mmap_anon" = yes; then
14084 cat >>confdefs.h <<\_ACEOF
14085 #define HAVE_MMAP_ANONYMOUS 1
14090 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14091 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14092 if test "${ac_cv_header_stat_broken+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 cat >conftest.$ac_ext <<_ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h. */
14101 #include <sys/types.h>
14102 #include <sys/stat.h>
14104 #if defined S_ISBLK && defined S_IFDIR
14105 # if S_ISBLK (S_IFDIR)
14110 #if defined S_ISBLK && defined S_IFCHR
14111 # if S_ISBLK (S_IFCHR)
14116 #if defined S_ISLNK && defined S_IFREG
14117 # if S_ISLNK (S_IFREG)
14122 #if defined S_ISSOCK && defined S_IFREG
14123 # if S_ISSOCK (S_IFREG)
14129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14130 $EGREP "You lose" >/dev/null 2>&1; then
14131 ac_cv_header_stat_broken=yes
14133 ac_cv_header_stat_broken=no
14138 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14139 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14140 if test $ac_cv_header_stat_broken = yes; then
14142 cat >>confdefs.h <<\_ACEOF
14143 #define STAT_MACROS_BROKEN 1
14148 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14149 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14150 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 cat >conftest.$ac_ext <<_ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14159 #include <sys/types.h>
14160 #include <sys/wait.h>
14161 #ifndef WEXITSTATUS
14162 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14165 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14173 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14178 rm -f conftest.$ac_objext
14179 if { (ac_try="$ac_compile"
14180 case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_compile") 2>conftest.er1
14187 grep -v '^ *+' conftest.er1 >conftest.err
14189 cat conftest.err >&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } &&
14192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14193 { (case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198 (eval "$ac_try") 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; } &&
14202 { ac_try='test -s conftest.$ac_objext'
14203 { (case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_try") 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 ac_cv_header_sys_wait_h=yes
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14217 ac_cv_header_sys_wait_h=no
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14223 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14224 if test $ac_cv_header_sys_wait_h = yes; then
14226 cat >>confdefs.h <<\_ACEOF
14227 #define HAVE_SYS_WAIT_H 1
14232 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14233 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14234 if test "${ac_cv_header_time+set}" = set; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 cat >conftest.$ac_ext <<_ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243 #include <sys/types.h>
14244 #include <sys/time.h>
14250 if ((struct tm *) 0)
14256 rm -f conftest.$ac_objext
14257 if { (ac_try="$ac_compile"
14258 case "(($ac_try" in
14259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14260 *) ac_try_echo=$ac_try;;
14262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14263 (eval "$ac_compile") 2>conftest.er1
14265 grep -v '^ *+' conftest.er1 >conftest.err
14267 cat conftest.err >&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } &&
14270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14271 { (case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_try") 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest.$ac_objext'
14281 { (case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_try") 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14290 ac_cv_header_time=yes
14292 echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14295 ac_cv_header_time=no
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14301 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14302 if test $ac_cv_header_time = yes; then
14304 cat >>confdefs.h <<\_ACEOF
14305 #define TIME_WITH_SYS_TIME 1
14317 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 ac_res=`eval echo '${'$as_ac_Header'}'`
14327 { echo "$as_me:$LINENO: result: $ac_res" >&5
14328 echo "${ECHO_T}$ac_res" >&6; }
14330 # Is the header compilable?
14331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14333 cat >conftest.$ac_ext <<_ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 $ac_includes_default
14340 #include <$ac_header>
14342 rm -f conftest.$ac_objext
14343 if { (ac_try="$ac_compile"
14344 case "(($ac_try" in
14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349 (eval "$ac_compile") 2>conftest.er1
14351 grep -v '^ *+' conftest.er1 >conftest.err
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14357 { (case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_try") 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; } &&
14366 { ac_try='test -s conftest.$ac_objext'
14367 { (case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_try") 2>&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 ac_header_compiler=yes
14378 echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14381 ac_header_compiler=no
14384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14386 echo "${ECHO_T}$ac_header_compiler" >&6; }
14388 # Is the header present?
14389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14391 cat >conftest.$ac_ext <<_ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 #include <$ac_header>
14399 if { (ac_try="$ac_cpp conftest.$ac_ext"
14400 case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } >/dev/null; then
14412 if test -s conftest.err; then
14413 ac_cpp_err=$ac_c_preproc_warn_flag
14414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14421 if test -z "$ac_cpp_err"; then
14422 ac_header_preproc=yes
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 ac_header_preproc=no
14430 rm -f conftest.err conftest.$ac_ext
14431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14432 echo "${ECHO_T}$ac_header_preproc" >&6; }
14434 # So? What about this header?
14435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14441 ac_header_preproc=yes
14444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14457 ## ----------------------------------- ##
14458 ## Report this to llvmbugs@cs.uiuc.edu ##
14459 ## ----------------------------------- ##
14461 ) | sed "s/^/$as_me: WARNING: /" >&2
14464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 eval "$as_ac_Header=\$ac_header_preproc"
14471 ac_res=`eval echo '${'$as_ac_Header'}'`
14472 { echo "$as_me:$LINENO: result: $ac_res" >&5
14473 echo "${ECHO_T}$ac_res" >&6; }
14476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14477 cat >>confdefs.h <<_ACEOF
14478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14491 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 ac_res=`eval echo '${'$as_ac_Header'}'`
14501 { echo "$as_me:$LINENO: result: $ac_res" >&5
14502 echo "${ECHO_T}$ac_res" >&6; }
14504 # Is the header compilable?
14505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14507 cat >conftest.$ac_ext <<_ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h. */
14513 $ac_includes_default
14514 #include <$ac_header>
14516 rm -f conftest.$ac_objext
14517 if { (ac_try="$ac_compile"
14518 case "(($ac_try" in
14519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520 *) ac_try_echo=$ac_try;;
14522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14523 (eval "$ac_compile") 2>conftest.er1
14525 grep -v '^ *+' conftest.er1 >conftest.err
14527 cat conftest.err >&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
14530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14531 { (case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_try") 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; } &&
14540 { ac_try='test -s conftest.$ac_objext'
14541 { (case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546 (eval "$ac_try") 2>&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; }; then
14550 ac_header_compiler=yes
14552 echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14555 ac_header_compiler=no
14558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14560 echo "${ECHO_T}$ac_header_compiler" >&6; }
14562 # Is the header present?
14563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14565 cat >conftest.$ac_ext <<_ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 #include <$ac_header>
14573 if { (ac_try="$ac_cpp conftest.$ac_ext"
14574 case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14581 grep -v '^ *+' conftest.er1 >conftest.err
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } >/dev/null; then
14586 if test -s conftest.err; then
14587 ac_cpp_err=$ac_c_preproc_warn_flag
14588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14595 if test -z "$ac_cpp_err"; then
14596 ac_header_preproc=yes
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14601 ac_header_preproc=no
14604 rm -f conftest.err conftest.$ac_ext
14605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14606 echo "${ECHO_T}$ac_header_preproc" >&6; }
14608 # So? What about this header?
14609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14615 ac_header_preproc=yes
14618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14631 ## ----------------------------------- ##
14632 ## Report this to llvmbugs@cs.uiuc.edu ##
14633 ## ----------------------------------- ##
14635 ) | sed "s/^/$as_me: WARNING: /" >&2
14638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14643 eval "$as_ac_Header=\$ac_header_preproc"
14645 ac_res=`eval echo '${'$as_ac_Header'}'`
14646 { echo "$as_me:$LINENO: result: $ac_res" >&5
14647 echo "${ECHO_T}$ac_res" >&6; }
14650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14651 cat >>confdefs.h <<_ACEOF
14652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14661 for ac_header in utime.h windows.h
14663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14670 ac_res=`eval echo '${'$as_ac_Header'}'`
14671 { echo "$as_me:$LINENO: result: $ac_res" >&5
14672 echo "${ECHO_T}$ac_res" >&6; }
14674 # Is the header compilable?
14675 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14677 cat >conftest.$ac_ext <<_ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 $ac_includes_default
14684 #include <$ac_header>
14686 rm -f conftest.$ac_objext
14687 if { (ac_try="$ac_compile"
14688 case "(($ac_try" in
14689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693 (eval "$ac_compile") 2>conftest.er1
14695 grep -v '^ *+' conftest.er1 >conftest.err
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14701 { (case "(($ac_try" in
14702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_try") 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; } &&
14710 { ac_try='test -s conftest.$ac_objext'
14711 { (case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716 (eval "$ac_try") 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14720 ac_header_compiler=yes
14722 echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14725 ac_header_compiler=no
14728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14730 echo "${ECHO_T}$ac_header_compiler" >&6; }
14732 # Is the header present?
14733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14735 cat >conftest.$ac_ext <<_ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 #include <$ac_header>
14743 if { (ac_try="$ac_cpp conftest.$ac_ext"
14744 case "(($ac_try" in
14745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746 *) ac_try_echo=$ac_try;;
14748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14751 grep -v '^ *+' conftest.er1 >conftest.err
14753 cat conftest.err >&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } >/dev/null; then
14756 if test -s conftest.err; then
14757 ac_cpp_err=$ac_c_preproc_warn_flag
14758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14765 if test -z "$ac_cpp_err"; then
14766 ac_header_preproc=yes
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771 ac_header_preproc=no
14774 rm -f conftest.err conftest.$ac_ext
14775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14776 echo "${ECHO_T}$ac_header_preproc" >&6; }
14778 # So? What about this header?
14779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14785 ac_header_preproc=yes
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14801 ## ----------------------------------- ##
14802 ## Report this to llvmbugs@cs.uiuc.edu ##
14803 ## ----------------------------------- ##
14805 ) | sed "s/^/$as_me: WARNING: /" >&2
14808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 eval "$as_ac_Header=\$ac_header_preproc"
14815 ac_res=`eval echo '${'$as_ac_Header'}'`
14816 { echo "$as_me:$LINENO: result: $ac_res" >&5
14817 echo "${ECHO_T}$ac_res" >&6; }
14820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14821 cat >>confdefs.h <<_ACEOF
14822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14834 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 ac_res=`eval echo '${'$as_ac_Header'}'`
14844 { echo "$as_me:$LINENO: result: $ac_res" >&5
14845 echo "${ECHO_T}$ac_res" >&6; }
14847 # Is the header compilable?
14848 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14850 cat >conftest.$ac_ext <<_ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14856 $ac_includes_default
14857 #include <$ac_header>
14859 rm -f conftest.$ac_objext
14860 if { (ac_try="$ac_compile"
14861 case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_compile") 2>conftest.er1
14868 grep -v '^ *+' conftest.er1 >conftest.err
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
14873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14874 { (case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_try") 2>&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try='test -s conftest.$ac_objext'
14884 { (case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_try") 2>&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }; then
14893 ac_header_compiler=yes
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14898 ac_header_compiler=no
14901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14903 echo "${ECHO_T}$ac_header_compiler" >&6; }
14905 # Is the header present?
14906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14908 cat >conftest.$ac_ext <<_ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14914 #include <$ac_header>
14916 if { (ac_try="$ac_cpp conftest.$ac_ext"
14917 case "(($ac_try" in
14918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14919 *) ac_try_echo=$ac_try;;
14921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14924 grep -v '^ *+' conftest.er1 >conftest.err
14926 cat conftest.err >&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } >/dev/null; then
14929 if test -s conftest.err; then
14930 ac_cpp_err=$ac_c_preproc_warn_flag
14931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14938 if test -z "$ac_cpp_err"; then
14939 ac_header_preproc=yes
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14944 ac_header_preproc=no
14947 rm -f conftest.err conftest.$ac_ext
14948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14949 echo "${ECHO_T}$ac_header_preproc" >&6; }
14951 # So? What about this header?
14952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14958 ac_header_preproc=yes
14961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14974 ## ----------------------------------- ##
14975 ## Report this to llvmbugs@cs.uiuc.edu ##
14976 ## ----------------------------------- ##
14978 ) | sed "s/^/$as_me: WARNING: /" >&2
14981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 eval "$as_ac_Header=\$ac_header_preproc"
14988 ac_res=`eval echo '${'$as_ac_Header'}'`
14989 { echo "$as_me:$LINENO: result: $ac_res" >&5
14990 echo "${ECHO_T}$ac_res" >&6; }
14993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14994 cat >>confdefs.h <<_ACEOF
14995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15006 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 ac_res=`eval echo '${'$as_ac_Header'}'`
15016 { echo "$as_me:$LINENO: result: $ac_res" >&5
15017 echo "${ECHO_T}$ac_res" >&6; }
15019 # Is the header compilable?
15020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15022 cat >conftest.$ac_ext <<_ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15028 $ac_includes_default
15029 #include <$ac_header>
15031 rm -f conftest.$ac_objext
15032 if { (ac_try="$ac_compile"
15033 case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_compile") 2>conftest.er1
15040 grep -v '^ *+' conftest.er1 >conftest.err
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15046 { (case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_try") 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try='test -s conftest.$ac_objext'
15056 { (case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_try") 2>&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; }; then
15065 ac_header_compiler=yes
15067 echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15070 ac_header_compiler=no
15073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15075 echo "${ECHO_T}$ac_header_compiler" >&6; }
15077 # Is the header present?
15078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15080 cat >conftest.$ac_ext <<_ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 #include <$ac_header>
15088 if { (ac_try="$ac_cpp conftest.$ac_ext"
15089 case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15096 grep -v '^ *+' conftest.er1 >conftest.err
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } >/dev/null; then
15101 if test -s conftest.err; then
15102 ac_cpp_err=$ac_c_preproc_warn_flag
15103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15110 if test -z "$ac_cpp_err"; then
15111 ac_header_preproc=yes
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15116 ac_header_preproc=no
15119 rm -f conftest.err conftest.$ac_ext
15120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15121 echo "${ECHO_T}$ac_header_preproc" >&6; }
15123 # So? What about this header?
15124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15130 ac_header_preproc=yes
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15146 ## ----------------------------------- ##
15147 ## Report this to llvmbugs@cs.uiuc.edu ##
15148 ## ----------------------------------- ##
15150 ) | sed "s/^/$as_me: WARNING: /" >&2
15153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15156 echo $ECHO_N "(cached) $ECHO_C" >&6
15158 eval "$as_ac_Header=\$ac_header_preproc"
15160 ac_res=`eval echo '${'$as_ac_Header'}'`
15161 { echo "$as_me:$LINENO: result: $ac_res" >&5
15162 echo "${ECHO_T}$ac_res" >&6; }
15165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15166 cat >>confdefs.h <<_ACEOF
15167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15175 for ac_header in valgrind/valgrind.h
15177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 ac_res=`eval echo '${'$as_ac_Header'}'`
15185 { echo "$as_me:$LINENO: result: $ac_res" >&5
15186 echo "${ECHO_T}$ac_res" >&6; }
15188 # Is the header compilable?
15189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15191 cat >conftest.$ac_ext <<_ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 $ac_includes_default
15198 #include <$ac_header>
15200 rm -f conftest.$ac_objext
15201 if { (ac_try="$ac_compile"
15202 case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_compile") 2>conftest.er1
15209 grep -v '^ *+' conftest.er1 >conftest.err
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15215 { (case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220 (eval "$ac_try") 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; } &&
15224 { ac_try='test -s conftest.$ac_objext'
15225 { (case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_try") 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
15234 ac_header_compiler=yes
15236 echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15239 ac_header_compiler=no
15242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15244 echo "${ECHO_T}$ac_header_compiler" >&6; }
15246 # Is the header present?
15247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15249 cat >conftest.$ac_ext <<_ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255 #include <$ac_header>
15257 if { (ac_try="$ac_cpp conftest.$ac_ext"
15258 case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15265 grep -v '^ *+' conftest.er1 >conftest.err
15267 cat conftest.err >&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } >/dev/null; then
15270 if test -s conftest.err; then
15271 ac_cpp_err=$ac_c_preproc_warn_flag
15272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15279 if test -z "$ac_cpp_err"; then
15280 ac_header_preproc=yes
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15285 ac_header_preproc=no
15288 rm -f conftest.err conftest.$ac_ext
15289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15290 echo "${ECHO_T}$ac_header_preproc" >&6; }
15292 # So? What about this header?
15293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15299 ac_header_preproc=yes
15302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15315 ## ----------------------------------- ##
15316 ## Report this to llvmbugs@cs.uiuc.edu ##
15317 ## ----------------------------------- ##
15319 ) | sed "s/^/$as_me: WARNING: /" >&2
15322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15325 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 eval "$as_ac_Header=\$ac_header_preproc"
15329 ac_res=`eval echo '${'$as_ac_Header'}'`
15330 { echo "$as_me:$LINENO: result: $ac_res" >&5
15331 echo "${ECHO_T}$ac_res" >&6; }
15334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15335 cat >>confdefs.h <<_ACEOF
15336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15344 for ac_header in fenv.h
15346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15353 ac_res=`eval echo '${'$as_ac_Header'}'`
15354 { echo "$as_me:$LINENO: result: $ac_res" >&5
15355 echo "${ECHO_T}$ac_res" >&6; }
15357 # Is the header compilable?
15358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15360 cat >conftest.$ac_ext <<_ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15366 $ac_includes_default
15367 #include <$ac_header>
15369 rm -f conftest.$ac_objext
15370 if { (ac_try="$ac_compile"
15371 case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_compile") 2>conftest.er1
15378 grep -v '^ *+' conftest.er1 >conftest.err
15380 cat conftest.err >&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } &&
15383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15384 { (case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_try") 2>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; } &&
15393 { ac_try='test -s conftest.$ac_objext'
15394 { (case "(($ac_try" in
15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396 *) ac_try_echo=$ac_try;;
15398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399 (eval "$ac_try") 2>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 ac_header_compiler=yes
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15408 ac_header_compiler=no
15411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15413 echo "${ECHO_T}$ac_header_compiler" >&6; }
15415 # Is the header present?
15416 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15418 cat >conftest.$ac_ext <<_ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424 #include <$ac_header>
15426 if { (ac_try="$ac_cpp conftest.$ac_ext"
15427 case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15434 grep -v '^ *+' conftest.er1 >conftest.err
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } >/dev/null; then
15439 if test -s conftest.err; then
15440 ac_cpp_err=$ac_c_preproc_warn_flag
15441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15448 if test -z "$ac_cpp_err"; then
15449 ac_header_preproc=yes
15451 echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15454 ac_header_preproc=no
15457 rm -f conftest.err conftest.$ac_ext
15458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15459 echo "${ECHO_T}$ac_header_preproc" >&6; }
15461 # So? What about this header?
15462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15468 ac_header_preproc=yes
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15484 ## ----------------------------------- ##
15485 ## Report this to llvmbugs@cs.uiuc.edu ##
15486 ## ----------------------------------- ##
15488 ) | sed "s/^/$as_me: WARNING: /" >&2
15491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15494 echo $ECHO_N "(cached) $ECHO_C" >&6
15496 eval "$as_ac_Header=\$ac_header_preproc"
15498 ac_res=`eval echo '${'$as_ac_Header'}'`
15499 { echo "$as_me:$LINENO: result: $ac_res" >&5
15500 echo "${ECHO_T}$ac_res" >&6; }
15503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15504 cat >>confdefs.h <<_ACEOF
15505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15512 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15514 for ac_header in pthread.h
15516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15523 ac_res=`eval echo '${'$as_ac_Header'}'`
15524 { echo "$as_me:$LINENO: result: $ac_res" >&5
15525 echo "${ECHO_T}$ac_res" >&6; }
15527 # Is the header compilable?
15528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15530 cat >conftest.$ac_ext <<_ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15536 $ac_includes_default
15537 #include <$ac_header>
15539 rm -f conftest.$ac_objext
15540 if { (ac_try="$ac_compile"
15541 case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_compile") 2>conftest.er1
15548 grep -v '^ *+' conftest.er1 >conftest.err
15550 cat conftest.err >&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } &&
15553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15554 { (case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559 (eval "$ac_try") 2>&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; } &&
15563 { ac_try='test -s conftest.$ac_objext'
15564 { (case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_try") 2>&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 ac_header_compiler=yes
15575 echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15578 ac_header_compiler=no
15581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15583 echo "${ECHO_T}$ac_header_compiler" >&6; }
15585 # Is the header present?
15586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15588 cat >conftest.$ac_ext <<_ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15594 #include <$ac_header>
15596 if { (ac_try="$ac_cpp conftest.$ac_ext"
15597 case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15604 grep -v '^ *+' conftest.er1 >conftest.err
15606 cat conftest.err >&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } >/dev/null; then
15609 if test -s conftest.err; then
15610 ac_cpp_err=$ac_c_preproc_warn_flag
15611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15618 if test -z "$ac_cpp_err"; then
15619 ac_header_preproc=yes
15621 echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15624 ac_header_preproc=no
15627 rm -f conftest.err conftest.$ac_ext
15628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15629 echo "${ECHO_T}$ac_header_preproc" >&6; }
15631 # So? What about this header?
15632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15638 ac_header_preproc=yes
15641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15654 ## ----------------------------------- ##
15655 ## Report this to llvmbugs@cs.uiuc.edu ##
15656 ## ----------------------------------- ##
15658 ) | sed "s/^/$as_me: WARNING: /" >&2
15661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15666 eval "$as_ac_Header=\$ac_header_preproc"
15668 ac_res=`eval echo '${'$as_ac_Header'}'`
15669 { echo "$as_me:$LINENO: result: $ac_res" >&5
15670 echo "${ECHO_T}$ac_res" >&6; }
15673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15674 cat >>confdefs.h <<_ACEOF
15675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15691 if test "$llvm_cv_enable_libffi" = "yes" ; then
15694 for ac_header in ffi.h ffi/ffi.h
15696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 ac_res=`eval echo '${'$as_ac_Header'}'`
15704 { echo "$as_me:$LINENO: result: $ac_res" >&5
15705 echo "${ECHO_T}$ac_res" >&6; }
15707 # Is the header compilable?
15708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15710 cat >conftest.$ac_ext <<_ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h. */
15716 $ac_includes_default
15717 #include <$ac_header>
15719 rm -f conftest.$ac_objext
15720 if { (ac_try="$ac_compile"
15721 case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726 (eval "$ac_compile") 2>conftest.er1
15728 grep -v '^ *+' conftest.er1 >conftest.err
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } &&
15733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15734 { (case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_try") 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; } &&
15743 { ac_try='test -s conftest.$ac_objext'
15744 { (case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_try") 2>&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15753 ac_header_compiler=yes
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 ac_header_compiler=no
15761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15763 echo "${ECHO_T}$ac_header_compiler" >&6; }
15765 # Is the header present?
15766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15768 cat >conftest.$ac_ext <<_ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15774 #include <$ac_header>
15776 if { (ac_try="$ac_cpp conftest.$ac_ext"
15777 case "(($ac_try" in
15778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15779 *) ac_try_echo=$ac_try;;
15781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15784 grep -v '^ *+' conftest.er1 >conftest.err
15786 cat conftest.err >&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } >/dev/null; then
15789 if test -s conftest.err; then
15790 ac_cpp_err=$ac_c_preproc_warn_flag
15791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15798 if test -z "$ac_cpp_err"; then
15799 ac_header_preproc=yes
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 ac_header_preproc=no
15807 rm -f conftest.err conftest.$ac_ext
15808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15809 echo "${ECHO_T}$ac_header_preproc" >&6; }
15811 # So? What about this header?
15812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15818 ac_header_preproc=yes
15821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15834 ## ----------------------------------- ##
15835 ## Report this to llvmbugs@cs.uiuc.edu ##
15836 ## ----------------------------------- ##
15838 ) | sed "s/^/$as_me: WARNING: /" >&2
15841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15846 eval "$as_ac_Header=\$ac_header_preproc"
15848 ac_res=`eval echo '${'$as_ac_Header'}'`
15849 { echo "$as_me:$LINENO: result: $ac_res" >&5
15850 echo "${ECHO_T}$ac_res" >&6; }
15853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15854 cat >>confdefs.h <<_ACEOF
15855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15865 for ac_header in CrashReporterClient.h
15867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15874 ac_res=`eval echo '${'$as_ac_Header'}'`
15875 { echo "$as_me:$LINENO: result: $ac_res" >&5
15876 echo "${ECHO_T}$ac_res" >&6; }
15878 # Is the header compilable?
15879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15881 cat >conftest.$ac_ext <<_ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 $ac_includes_default
15888 #include <$ac_header>
15890 rm -f conftest.$ac_objext
15891 if { (ac_try="$ac_compile"
15892 case "(($ac_try" in
15893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894 *) ac_try_echo=$ac_try;;
15896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15897 (eval "$ac_compile") 2>conftest.er1
15899 grep -v '^ *+' conftest.er1 >conftest.err
15901 cat conftest.err >&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
15904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15905 { (case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910 (eval "$ac_try") 2>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; } &&
15914 { ac_try='test -s conftest.$ac_objext'
15915 { (case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_try") 2>&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }; then
15924 ac_header_compiler=yes
15926 echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15929 ac_header_compiler=no
15932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15934 echo "${ECHO_T}$ac_header_compiler" >&6; }
15936 # Is the header present?
15937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15939 cat >conftest.$ac_ext <<_ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945 #include <$ac_header>
15947 if { (ac_try="$ac_cpp conftest.$ac_ext"
15948 case "(($ac_try" in
15949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15955 grep -v '^ *+' conftest.er1 >conftest.err
15957 cat conftest.err >&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } >/dev/null; then
15960 if test -s conftest.err; then
15961 ac_cpp_err=$ac_c_preproc_warn_flag
15962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15969 if test -z "$ac_cpp_err"; then
15970 ac_header_preproc=yes
15972 echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15975 ac_header_preproc=no
15978 rm -f conftest.err conftest.$ac_ext
15979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15980 echo "${ECHO_T}$ac_header_preproc" >&6; }
15982 # So? What about this header?
15983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15989 ac_header_preproc=yes
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16005 ## ----------------------------------- ##
16006 ## Report this to llvmbugs@cs.uiuc.edu ##
16007 ## ----------------------------------- ##
16009 ) | sed "s/^/$as_me: WARNING: /" >&2
16012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16017 eval "$as_ac_Header=\$ac_header_preproc"
16019 ac_res=`eval echo '${'$as_ac_Header'}'`
16020 { echo "$as_me:$LINENO: result: $ac_res" >&5
16021 echo "${ECHO_T}$ac_res" >&6; }
16024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16025 cat >>confdefs.h <<_ACEOF
16026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16034 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16035 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16036 cat >conftest.$ac_ext <<_ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 extern const char *__crashreporter_info__;
16044 __crashreporter_info__ = "test";
16049 rm -f conftest.$ac_objext conftest$ac_exeext
16050 if { (ac_try="$ac_link"
16051 case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_link") 2>conftest.er1
16058 grep -v '^ *+' conftest.er1 >conftest.err
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } &&
16063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16064 { (case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_try") 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; } &&
16073 { ac_try='test -s conftest$ac_exeext'
16074 { (case "(($ac_try" in
16075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076 *) ac_try_echo=$ac_try;;
16078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16079 (eval "$ac_try") 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 { echo "$as_me:$LINENO: result: yes" >&5
16084 echo "${ECHO_T}yes" >&6; }
16086 cat >>confdefs.h <<\_ACEOF
16087 #define HAVE_CRASHREPORTER_INFO 1
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 { echo "$as_me:$LINENO: result: no" >&5
16095 echo "${ECHO_T}no" >&6; }
16097 cat >>confdefs.h <<\_ACEOF
16098 #define HAVE_CRASHREPORTER_INFO 0
16103 rm -f core conftest.err conftest.$ac_objext \
16104 conftest$ac_exeext conftest.$ac_ext
16109 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16110 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16111 if test "${ac_cv_huge_val_sanity+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 ac_cpp='$CXXCPP $CPPFLAGS'
16117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16121 ac_save_CXXFLAGS=$CXXFLAGS
16123 if test "$cross_compiling" = yes; then
16124 ac_cv_huge_val_sanity=yes
16126 cat >conftest.$ac_ext <<_ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16136 double x = HUGE_VAL; return x != x;
16141 rm -f conftest$ac_exeext
16142 if { (ac_try="$ac_link"
16143 case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148 (eval "$ac_link") 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16152 { (case "(($ac_try" in
16153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16154 *) ac_try_echo=$ac_try;;
16156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16157 (eval "$ac_try") 2>&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }; then
16161 ac_cv_huge_val_sanity=yes
16163 echo "$as_me: program exited with status $ac_status" >&5
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16167 ( exit $ac_status )
16168 ac_cv_huge_val_sanity=no
16170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16174 CXXFLAGS=$ac_save_CXXFLAGS
16176 ac_cpp='$CPP $CPPFLAGS'
16177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16183 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16184 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16185 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16188 { echo "$as_me:$LINENO: checking for pid_t" >&5
16189 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16190 if test "${ac_cv_type_pid_t+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 cat >conftest.$ac_ext <<_ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16199 $ac_includes_default
16200 typedef pid_t ac__type_new_;
16204 if ((ac__type_new_ *) 0)
16206 if (sizeof (ac__type_new_))
16212 rm -f conftest.$ac_objext
16213 if { (ac_try="$ac_compile"
16214 case "(($ac_try" in
16215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16216 *) ac_try_echo=$ac_try;;
16218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16219 (eval "$ac_compile") 2>conftest.er1
16221 grep -v '^ *+' conftest.er1 >conftest.err
16223 cat conftest.err >&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } &&
16226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16227 { (case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232 (eval "$ac_try") 2>&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; } &&
16236 { ac_try='test -s conftest.$ac_objext'
16237 { (case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242 (eval "$ac_try") 2>&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; }; then
16246 ac_cv_type_pid_t=yes
16248 echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16251 ac_cv_type_pid_t=no
16254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16257 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16258 if test $ac_cv_type_pid_t = yes; then
16262 cat >>confdefs.h <<_ACEOF
16268 { echo "$as_me:$LINENO: checking for size_t" >&5
16269 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16270 if test "${ac_cv_type_size_t+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16273 cat >conftest.$ac_ext <<_ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h. */
16279 $ac_includes_default
16280 typedef size_t ac__type_new_;
16284 if ((ac__type_new_ *) 0)
16286 if (sizeof (ac__type_new_))
16292 rm -f conftest.$ac_objext
16293 if { (ac_try="$ac_compile"
16294 case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_compile") 2>conftest.er1
16301 grep -v '^ *+' conftest.er1 >conftest.err
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
16306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16307 { (case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_try") 2>&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } &&
16316 { ac_try='test -s conftest.$ac_objext'
16317 { (case "(($ac_try" in
16318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322 (eval "$ac_try") 2>&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_cv_type_size_t=yes
16328 echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16331 ac_cv_type_size_t=no
16334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16337 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16338 if test $ac_cv_type_size_t = yes; then
16342 cat >>confdefs.h <<_ACEOF
16343 #define size_t unsigned int
16349 cat >>confdefs.h <<_ACEOF
16350 #define RETSIGTYPE void
16353 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16354 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16355 if test "${ac_cv_struct_tm+set}" = set; then
16356 echo $ECHO_N "(cached) $ECHO_C" >&6
16358 cat >conftest.$ac_ext <<_ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h. */
16364 #include <sys/types.h>
16370 struct tm *tp; tp->tm_sec;
16375 rm -f conftest.$ac_objext
16376 if { (ac_try="$ac_compile"
16377 case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_compile") 2>conftest.er1
16384 grep -v '^ *+' conftest.er1 >conftest.err
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16390 { (case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395 (eval "$ac_try") 2>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; } &&
16399 { ac_try='test -s conftest.$ac_objext'
16400 { (case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_try") 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 ac_cv_struct_tm=time.h
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16414 ac_cv_struct_tm=sys/time.h
16417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16419 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16420 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16421 if test $ac_cv_struct_tm = sys/time.h; then
16423 cat >>confdefs.h <<\_ACEOF
16424 #define TM_IN_SYS_TIME 1
16429 { echo "$as_me:$LINENO: checking for int64_t" >&5
16430 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16431 if test "${ac_cv_type_int64_t+set}" = set; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16434 cat >conftest.$ac_ext <<_ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16440 $ac_includes_default
16441 typedef int64_t ac__type_new_;
16445 if ((ac__type_new_ *) 0)
16447 if (sizeof (ac__type_new_))
16453 rm -f conftest.$ac_objext
16454 if { (ac_try="$ac_compile"
16455 case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_compile") 2>conftest.er1
16462 grep -v '^ *+' conftest.er1 >conftest.err
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16468 { (case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_try") 2>&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; } &&
16477 { ac_try='test -s conftest.$ac_objext'
16478 { (case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_try") 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_type_int64_t=yes
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16492 ac_cv_type_int64_t=no
16495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16497 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16498 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16499 if test $ac_cv_type_int64_t = yes; then
16501 cat >>confdefs.h <<_ACEOF
16502 #define HAVE_INT64_T 1
16507 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16508 echo "$as_me: error: Type int64_t required but not found" >&2;}
16509 { (exit 1); exit 1; }; }
16512 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16513 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16514 if test "${ac_cv_type_uint64_t+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 cat >conftest.$ac_ext <<_ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16523 $ac_includes_default
16524 typedef uint64_t ac__type_new_;
16528 if ((ac__type_new_ *) 0)
16530 if (sizeof (ac__type_new_))
16536 rm -f conftest.$ac_objext
16537 if { (ac_try="$ac_compile"
16538 case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543 (eval "$ac_compile") 2>conftest.er1
16545 grep -v '^ *+' conftest.er1 >conftest.err
16547 cat conftest.err >&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } &&
16550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16551 { (case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_try") 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_try") 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 ac_cv_type_uint64_t=yes
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16575 ac_cv_type_uint64_t=no
16578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16581 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16582 if test $ac_cv_type_uint64_t = yes; then
16584 cat >>confdefs.h <<_ACEOF
16585 #define HAVE_UINT64_T 1
16590 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16591 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16592 if test "${ac_cv_type_u_int64_t+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16595 cat >conftest.$ac_ext <<_ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 $ac_includes_default
16602 typedef u_int64_t ac__type_new_;
16606 if ((ac__type_new_ *) 0)
16608 if (sizeof (ac__type_new_))
16614 rm -f conftest.$ac_objext
16615 if { (ac_try="$ac_compile"
16616 case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_compile") 2>conftest.er1
16623 grep -v '^ *+' conftest.er1 >conftest.err
16625 cat conftest.err >&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } &&
16628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16629 { (case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_try") 2>&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
16639 { (case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_try") 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 ac_cv_type_u_int64_t=yes
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 ac_cv_type_u_int64_t=no
16656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16659 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16660 if test $ac_cv_type_u_int64_t = yes; then
16662 cat >>confdefs.h <<_ACEOF
16663 #define HAVE_U_INT64_T 1
16668 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16669 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16670 { (exit 1); exit 1; }; }
16684 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 cat >conftest.$ac_ext <<_ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16700 #define $ac_func innocuous_$ac_func
16702 /* System header to define __stub macros and hopefully few prototypes,
16703 which can conflict with char $ac_func (); below.
16704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16705 <limits.h> exists even on freestanding compilers. */
16708 # include <limits.h>
16710 # include <assert.h>
16715 /* Override any GCC internal prototype to avoid an error.
16716 Use char because int might match the return type of a GCC
16717 builtin and then its argument prototype would still apply. */
16722 /* The GNU C library defines this for functions which it implements
16723 to always fail with ENOSYS. Some functions are actually named
16724 something starting with __ and the normal name is an alias. */
16725 #if defined __stub_$ac_func || defined __stub___$ac_func
16732 return $ac_func ();
16737 rm -f conftest.$ac_objext conftest$ac_exeext
16738 if { (ac_try="$ac_link"
16739 case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_link") 2>conftest.er1
16746 grep -v '^ *+' conftest.er1 >conftest.err
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16752 { (case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_try") 2>&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try='test -s conftest$ac_exeext'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 eval "$as_ac_var=yes"
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 eval "$as_ac_var=no"
16779 rm -f core conftest.err conftest.$ac_objext \
16780 conftest$ac_exeext conftest.$ac_ext
16782 ac_res=`eval echo '${'$as_ac_var'}'`
16783 { echo "$as_me:$LINENO: result: $ac_res" >&5
16784 echo "${ECHO_T}$ac_res" >&6; }
16785 if test `eval echo '${'$as_ac_var'}'` = yes; then
16786 cat >>confdefs.h <<_ACEOF
16787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16797 for ac_func in powf fmodf strtof round
16799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16805 cat >conftest.$ac_ext <<_ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h. */
16811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16813 #define $ac_func innocuous_$ac_func
16815 /* System header to define __stub macros and hopefully few prototypes,
16816 which can conflict with char $ac_func (); below.
16817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16818 <limits.h> exists even on freestanding compilers. */
16821 # include <limits.h>
16823 # include <assert.h>
16828 /* Override any GCC internal prototype to avoid an error.
16829 Use char because int might match the return type of a GCC
16830 builtin and then its argument prototype would still apply. */
16835 /* The GNU C library defines this for functions which it implements
16836 to always fail with ENOSYS. Some functions are actually named
16837 something starting with __ and the normal name is an alias. */
16838 #if defined __stub_$ac_func || defined __stub___$ac_func
16845 return $ac_func ();
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (ac_try="$ac_link"
16852 case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_link") 2>conftest.er1
16859 grep -v '^ *+' conftest.er1 >conftest.err
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } &&
16864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16865 { (case "(($ac_try" in
16866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867 *) ac_try_echo=$ac_try;;
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_try") 2>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; } &&
16874 { ac_try='test -s conftest$ac_exeext'
16875 { (case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_try") 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; }; then
16884 eval "$as_ac_var=yes"
16886 echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16889 eval "$as_ac_var=no"
16892 rm -f core conftest.err conftest.$ac_objext \
16893 conftest$ac_exeext conftest.$ac_ext
16895 ac_res=`eval echo '${'$as_ac_var'}'`
16896 { echo "$as_me:$LINENO: result: $ac_res" >&5
16897 echo "${ECHO_T}$ac_res" >&6; }
16898 if test `eval echo '${'$as_ac_var'}'` = yes; then
16899 cat >>confdefs.h <<_ACEOF
16900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16911 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16917 echo $ECHO_N "(cached) $ECHO_C" >&6
16919 cat >conftest.$ac_ext <<_ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16927 #define $ac_func innocuous_$ac_func
16929 /* System header to define __stub macros and hopefully few prototypes,
16930 which can conflict with char $ac_func (); below.
16931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16932 <limits.h> exists even on freestanding compilers. */
16935 # include <limits.h>
16937 # include <assert.h>
16942 /* Override any GCC internal prototype to avoid an error.
16943 Use char because int might match the return type of a GCC
16944 builtin and then its argument prototype would still apply. */
16949 /* The GNU C library defines this for functions which it implements
16950 to always fail with ENOSYS. Some functions are actually named
16951 something starting with __ and the normal name is an alias. */
16952 #if defined __stub_$ac_func || defined __stub___$ac_func
16959 return $ac_func ();
16964 rm -f conftest.$ac_objext conftest$ac_exeext
16965 if { (ac_try="$ac_link"
16966 case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971 (eval "$ac_link") 2>conftest.er1
16973 grep -v '^ *+' conftest.er1 >conftest.err
16975 cat conftest.err >&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } &&
16978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16979 { (case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_try") 2>&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; } &&
16988 { ac_try='test -s conftest$ac_exeext'
16989 { (case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_try") 2>&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; }; then
16998 eval "$as_ac_var=yes"
17000 echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17003 eval "$as_ac_var=no"
17006 rm -f core conftest.err conftest.$ac_objext \
17007 conftest$ac_exeext conftest.$ac_ext
17009 ac_res=`eval echo '${'$as_ac_var'}'`
17010 { echo "$as_me:$LINENO: result: $ac_res" >&5
17011 echo "${ECHO_T}$ac_res" >&6; }
17012 if test `eval echo '${'$as_ac_var'}'` = yes; then
17013 cat >>confdefs.h <<_ACEOF
17014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17023 for ac_func in isatty mkdtemp mkstemp
17025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 cat >conftest.$ac_ext <<_ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17039 #define $ac_func innocuous_$ac_func
17041 /* System header to define __stub macros and hopefully few prototypes,
17042 which can conflict with char $ac_func (); below.
17043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17044 <limits.h> exists even on freestanding compilers. */
17047 # include <limits.h>
17049 # include <assert.h>
17054 /* Override any GCC internal prototype to avoid an error.
17055 Use char because int might match the return type of a GCC
17056 builtin and then its argument prototype would still apply. */
17061 /* The GNU C library defines this for functions which it implements
17062 to always fail with ENOSYS. Some functions are actually named
17063 something starting with __ and the normal name is an alias. */
17064 #if defined __stub_$ac_func || defined __stub___$ac_func
17071 return $ac_func ();
17076 rm -f conftest.$ac_objext conftest$ac_exeext
17077 if { (ac_try="$ac_link"
17078 case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_link") 2>conftest.er1
17085 grep -v '^ *+' conftest.er1 >conftest.err
17087 cat conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } &&
17090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17091 { (case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_try") 2>&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; } &&
17100 { ac_try='test -s conftest$ac_exeext'
17101 { (case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_try") 2>&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; }; then
17110 eval "$as_ac_var=yes"
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17115 eval "$as_ac_var=no"
17118 rm -f core conftest.err conftest.$ac_objext \
17119 conftest$ac_exeext conftest.$ac_ext
17121 ac_res=`eval echo '${'$as_ac_var'}'`
17122 { echo "$as_me:$LINENO: result: $ac_res" >&5
17123 echo "${ECHO_T}$ac_res" >&6; }
17124 if test `eval echo '${'$as_ac_var'}'` = yes; then
17125 cat >>confdefs.h <<_ACEOF
17126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17138 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17146 cat >conftest.$ac_ext <<_ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17154 #define $ac_func innocuous_$ac_func
17156 /* System header to define __stub macros and hopefully few prototypes,
17157 which can conflict with char $ac_func (); below.
17158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17159 <limits.h> exists even on freestanding compilers. */
17162 # include <limits.h>
17164 # include <assert.h>
17169 /* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17176 /* The GNU C library defines this for functions which it implements
17177 to always fail with ENOSYS. Some functions are actually named
17178 something starting with __ and the normal name is an alias. */
17179 #if defined __stub_$ac_func || defined __stub___$ac_func
17186 return $ac_func ();
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (ac_try="$ac_link"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_link") 2>conftest.er1
17200 grep -v '^ *+' conftest.er1 >conftest.err
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; } &&
17215 { ac_try='test -s conftest$ac_exeext'
17216 { (case "(($ac_try" in
17217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218 *) ac_try_echo=$ac_try;;
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221 (eval "$ac_try") 2>&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 eval "$as_ac_var=yes"
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17230 eval "$as_ac_var=no"
17233 rm -f core conftest.err conftest.$ac_objext \
17234 conftest$ac_exeext conftest.$ac_ext
17236 ac_res=`eval echo '${'$as_ac_var'}'`
17237 { echo "$as_me:$LINENO: result: $ac_res" >&5
17238 echo "${ECHO_T}$ac_res" >&6; }
17239 if test `eval echo '${'$as_ac_var'}'` = yes; then
17240 cat >>confdefs.h <<_ACEOF
17241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17250 for ac_func in strerror strerror_r setenv
17252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17256 echo $ECHO_N "(cached) $ECHO_C" >&6
17258 cat >conftest.$ac_ext <<_ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h. */
17264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17266 #define $ac_func innocuous_$ac_func
17268 /* System header to define __stub macros and hopefully few prototypes,
17269 which can conflict with char $ac_func (); below.
17270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17271 <limits.h> exists even on freestanding compilers. */
17274 # include <limits.h>
17276 # include <assert.h>
17281 /* Override any GCC internal prototype to avoid an error.
17282 Use char because int might match the return type of a GCC
17283 builtin and then its argument prototype would still apply. */
17288 /* The GNU C library defines this for functions which it implements
17289 to always fail with ENOSYS. Some functions are actually named
17290 something starting with __ and the normal name is an alias. */
17291 #if defined __stub_$ac_func || defined __stub___$ac_func
17298 return $ac_func ();
17303 rm -f conftest.$ac_objext conftest$ac_exeext
17304 if { (ac_try="$ac_link"
17305 case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_link") 2>conftest.er1
17312 grep -v '^ *+' conftest.er1 >conftest.err
17314 cat conftest.err >&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest$ac_exeext'
17328 { (case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_try") 2>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 eval "$as_ac_var=yes"
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17342 eval "$as_ac_var=no"
17345 rm -f core conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17348 ac_res=`eval echo '${'$as_ac_var'}'`
17349 { echo "$as_me:$LINENO: result: $ac_res" >&5
17350 echo "${ECHO_T}$ac_res" >&6; }
17351 if test `eval echo '${'$as_ac_var'}'` = yes; then
17352 cat >>confdefs.h <<_ACEOF
17353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17363 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17368 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 cat >conftest.$ac_ext <<_ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17379 #define $ac_func innocuous_$ac_func
17381 /* System header to define __stub macros and hopefully few prototypes,
17382 which can conflict with char $ac_func (); below.
17383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17384 <limits.h> exists even on freestanding compilers. */
17387 # include <limits.h>
17389 # include <assert.h>
17394 /* Override any GCC internal prototype to avoid an error.
17395 Use char because int might match the return type of a GCC
17396 builtin and then its argument prototype would still apply. */
17401 /* The GNU C library defines this for functions which it implements
17402 to always fail with ENOSYS. Some functions are actually named
17403 something starting with __ and the normal name is an alias. */
17404 #if defined __stub_$ac_func || defined __stub___$ac_func
17411 return $ac_func ();
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (ac_try="$ac_link"
17418 case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_link") 2>conftest.er1
17425 grep -v '^ *+' conftest.er1 >conftest.err
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
17430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17431 { (case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_try") 2>&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try='test -s conftest$ac_exeext'
17441 { (case "(($ac_try" in
17442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443 *) ac_try_echo=$ac_try;;
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446 (eval "$ac_try") 2>&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; }; then
17450 eval "$as_ac_var=yes"
17452 echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17455 eval "$as_ac_var=no"
17458 rm -f core conftest.err conftest.$ac_objext \
17459 conftest$ac_exeext conftest.$ac_ext
17461 ac_res=`eval echo '${'$as_ac_var'}'`
17462 { echo "$as_me:$LINENO: result: $ac_res" >&5
17463 echo "${ECHO_T}$ac_res" >&6; }
17464 if test `eval echo '${'$as_ac_var'}'` = yes; then
17465 cat >>confdefs.h <<_ACEOF
17466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17477 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17480 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17485 cat >conftest.$ac_ext <<_ACEOF
17488 cat confdefs.h >>conftest.$ac_ext
17489 cat >>conftest.$ac_ext <<_ACEOF
17490 /* end confdefs.h. */
17491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17493 #define $ac_func innocuous_$ac_func
17495 /* System header to define __stub macros and hopefully few prototypes,
17496 which can conflict with char $ac_func (); below.
17497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17498 <limits.h> exists even on freestanding compilers. */
17501 # include <limits.h>
17503 # include <assert.h>
17508 /* Override any GCC internal prototype to avoid an error.
17509 Use char because int might match the return type of a GCC
17510 builtin and then its argument prototype would still apply. */
17515 /* The GNU C library defines this for functions which it implements
17516 to always fail with ENOSYS. Some functions are actually named
17517 something starting with __ and the normal name is an alias. */
17518 #if defined __stub_$ac_func || defined __stub___$ac_func
17525 return $ac_func ();
17530 rm -f conftest.$ac_objext conftest$ac_exeext
17531 if { (ac_try="$ac_link"
17532 case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_link") 2>conftest.er1
17539 grep -v '^ *+' conftest.er1 >conftest.err
17541 cat conftest.err >&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } &&
17544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17545 { (case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_try") 2>&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; } &&
17554 { ac_try='test -s conftest$ac_exeext'
17555 { (case "(($ac_try" in
17556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557 *) ac_try_echo=$ac_try;;
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560 (eval "$ac_try") 2>&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 eval "$as_ac_var=yes"
17566 echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17569 eval "$as_ac_var=no"
17572 rm -f core conftest.err conftest.$ac_objext \
17573 conftest$ac_exeext conftest.$ac_ext
17575 ac_res=`eval echo '${'$as_ac_var'}'`
17576 { echo "$as_me:$LINENO: result: $ac_res" >&5
17577 echo "${ECHO_T}$ac_res" >&6; }
17578 if test `eval echo '${'$as_ac_var'}'` = yes; then
17579 cat >>confdefs.h <<_ACEOF
17580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17586 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17587 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17588 if test "${llvm_cv_c_printf_a+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 ac_cpp='$CPP $CPPFLAGS'
17593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17597 if test "$cross_compiling" = yes; then
17598 llvmac_cv_c_printf_a=no
17600 cat >conftest.$ac_ext <<_ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17609 #include <stdlib.h>
17615 volatile double A, B;
17619 sprintf(Buffer, "%a", A);
17623 if (A != 0x1.999999999999ap-4)
17630 rm -f conftest$ac_exeext
17631 if { (ac_try="$ac_link"
17632 case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_link") 2>&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17641 { (case "(($ac_try" in
17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646 (eval "$ac_try") 2>&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; }; then
17650 llvm_cv_c_printf_a=yes
17652 echo "$as_me: program exited with status $ac_status" >&5
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17656 ( exit $ac_status )
17657 llvmac_cv_c_printf_a=no
17659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17664 ac_cpp='$CPP $CPPFLAGS'
17665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17670 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17671 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17672 if test "$llvm_cv_c_printf_a" = "yes"; then
17674 cat >>confdefs.h <<\_ACEOF
17675 #define HAVE_PRINTF_A 1
17681 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17682 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17683 if test "${ac_cv_func_rand48+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17687 ac_cpp='$CXXCPP $CPPFLAGS'
17688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17692 cat >conftest.$ac_ext <<_ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h. */
17698 #include <stdlib.h>
17702 srand48(0);lrand48();drand48();
17707 rm -f conftest.$ac_objext
17708 if { (ac_try="$ac_compile"
17709 case "(($ac_try" in
17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_compile") 2>conftest.er1
17716 grep -v '^ *+' conftest.er1 >conftest.err
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17722 { (case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; } &&
17731 { ac_try='test -s conftest.$ac_objext'
17732 { (case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_try") 2>&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
17741 ac_cv_func_rand48=yes
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17746 ac_cv_func_rand48=no
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17751 ac_cpp='$CPP $CPPFLAGS'
17752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17757 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17758 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17760 if test "$ac_cv_func_rand48" = "yes" ; then
17762 cat >>confdefs.h <<\_ACEOF
17763 #define HAVE_RAND48 1
17769 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17770 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17771 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17774 cat >conftest.$ac_ext <<_ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h. */
17780 $ac_includes_default
17785 char *p = (char *) strerror_s;
17793 rm -f conftest.$ac_objext
17794 if { (ac_try="$ac_compile"
17795 case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800 (eval "$ac_compile") 2>conftest.er1
17802 grep -v '^ *+' conftest.er1 >conftest.err
17804 cat conftest.err >&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
17807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17808 { (case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_try") 2>&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try='test -s conftest.$ac_objext'
17818 { (case "(($ac_try" in
17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_try") 2>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 ac_cv_have_decl_strerror_s=yes
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 ac_cv_have_decl_strerror_s=no
17835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17837 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17838 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17839 if test $ac_cv_have_decl_strerror_s = yes; then
17841 cat >>confdefs.h <<_ACEOF
17842 #define HAVE_DECL_STRERROR_S 1
17847 cat >>confdefs.h <<_ACEOF
17848 #define HAVE_DECL_STRERROR_S 0
17856 if test "$llvm_cv_os_type" = "MingW" ; then
17857 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17858 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17859 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17860 echo $ECHO_N "(cached) $ECHO_C" >&6
17862 ac_check_lib_save_LIBS=$LIBS
17864 cat >conftest.$ac_ext <<_ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17871 /* Override any GCC internal prototype to avoid an error.
17872 Use char because int might match the return type of a GCC
17873 builtin and then its argument prototype would still apply. */
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (ac_try="$ac_link"
17888 case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_link") 2>conftest.er1
17895 grep -v '^ *+' conftest.er1 >conftest.err
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17901 { (case "(($ac_try" in
17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903 *) ac_try_echo=$ac_try;;
17905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906 (eval "$ac_try") 2>&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; } &&
17910 { ac_try='test -s conftest$ac_exeext'
17911 { (case "(($ac_try" in
17912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913 *) ac_try_echo=$ac_try;;
17915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916 (eval "$ac_try") 2>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 ac_cv_lib_gcc__alloca=yes
17922 echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17925 ac_cv_lib_gcc__alloca=no
17928 rm -f core conftest.err conftest.$ac_objext \
17929 conftest$ac_exeext conftest.$ac_ext
17930 LIBS=$ac_check_lib_save_LIBS
17932 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17933 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17934 if test $ac_cv_lib_gcc__alloca = yes; then
17936 cat >>confdefs.h <<\_ACEOF
17937 #define HAVE__ALLOCA 1
17942 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17943 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17944 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17947 ac_check_lib_save_LIBS=$LIBS
17949 cat >conftest.$ac_ext <<_ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17956 /* Override any GCC internal prototype to avoid an error.
17957 Use char because int might match the return type of a GCC
17958 builtin and then its argument prototype would still apply. */
17966 return __alloca ();
17971 rm -f conftest.$ac_objext conftest$ac_exeext
17972 if { (ac_try="$ac_link"
17973 case "(($ac_try" in
17974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975 *) ac_try_echo=$ac_try;;
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978 (eval "$ac_link") 2>conftest.er1
17980 grep -v '^ *+' conftest.er1 >conftest.err
17982 cat conftest.err >&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17986 { (case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_try") 2>&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try='test -s conftest$ac_exeext'
17996 { (case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_try") 2>&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005 ac_cv_lib_gcc___alloca=yes
18007 echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18010 ac_cv_lib_gcc___alloca=no
18013 rm -f core conftest.err conftest.$ac_objext \
18014 conftest$ac_exeext conftest.$ac_ext
18015 LIBS=$ac_check_lib_save_LIBS
18017 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18018 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18019 if test $ac_cv_lib_gcc___alloca = yes; then
18021 cat >>confdefs.h <<\_ACEOF
18022 #define HAVE___ALLOCA 1
18027 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18028 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18029 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 ac_check_lib_save_LIBS=$LIBS
18034 cat >conftest.$ac_ext <<_ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h. */
18041 /* Override any GCC internal prototype to avoid an error.
18042 Use char because int might match the return type of a GCC
18043 builtin and then its argument prototype would still apply. */
18051 return __chkstk ();
18056 rm -f conftest.$ac_objext conftest$ac_exeext
18057 if { (ac_try="$ac_link"
18058 case "(($ac_try" in
18059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060 *) ac_try_echo=$ac_try;;
18062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063 (eval "$ac_link") 2>conftest.er1
18065 grep -v '^ *+' conftest.er1 >conftest.err
18067 cat conftest.err >&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
18070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18071 { (case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_try") 2>&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; } &&
18080 { ac_try='test -s conftest$ac_exeext'
18081 { (case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_try") 2>&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; }; then
18090 ac_cv_lib_gcc___chkstk=yes
18092 echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18095 ac_cv_lib_gcc___chkstk=no
18098 rm -f core conftest.err conftest.$ac_objext \
18099 conftest$ac_exeext conftest.$ac_ext
18100 LIBS=$ac_check_lib_save_LIBS
18102 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18103 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18104 if test $ac_cv_lib_gcc___chkstk = yes; then
18106 cat >>confdefs.h <<\_ACEOF
18107 #define HAVE___CHKSTK 1
18112 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18113 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18114 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18117 ac_check_lib_save_LIBS=$LIBS
18119 cat >conftest.$ac_ext <<_ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h. */
18126 /* Override any GCC internal prototype to avoid an error.
18127 Use char because int might match the return type of a GCC
18128 builtin and then its argument prototype would still apply. */
18136 return ___chkstk ();
18141 rm -f conftest.$ac_objext conftest$ac_exeext
18142 if { (ac_try="$ac_link"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_link") 2>conftest.er1
18150 grep -v '^ *+' conftest.er1 >conftest.err
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
18155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18156 { (case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_try") 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; } &&
18165 { ac_try='test -s conftest$ac_exeext'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_cv_lib_gcc____chkstk=yes
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18180 ac_cv_lib_gcc____chkstk=no
18183 rm -f core conftest.err conftest.$ac_objext \
18184 conftest$ac_exeext conftest.$ac_ext
18185 LIBS=$ac_check_lib_save_LIBS
18187 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18188 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18189 if test $ac_cv_lib_gcc____chkstk = yes; then
18191 cat >>confdefs.h <<\_ACEOF
18192 #define HAVE____CHKSTK 1
18198 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18199 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18200 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18201 echo $ECHO_N "(cached) $ECHO_C" >&6
18203 ac_check_lib_save_LIBS=$LIBS
18205 cat >conftest.$ac_ext <<_ACEOF
18208 cat confdefs.h >>conftest.$ac_ext
18209 cat >>conftest.$ac_ext <<_ACEOF
18210 /* end confdefs.h. */
18212 /* Override any GCC internal prototype to avoid an error.
18213 Use char because int might match the return type of a GCC
18214 builtin and then its argument prototype would still apply. */
18222 return __ashldi3 ();
18227 rm -f conftest.$ac_objext conftest$ac_exeext
18228 if { (ac_try="$ac_link"
18229 case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_link") 2>conftest.er1
18236 grep -v '^ *+' conftest.er1 >conftest.err
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } &&
18241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18242 { (case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_try") 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; } &&
18251 { ac_try='test -s conftest$ac_exeext'
18252 { (case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_try") 2>&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; }; then
18261 ac_cv_lib_gcc___ashldi3=yes
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18266 ac_cv_lib_gcc___ashldi3=no
18269 rm -f core conftest.err conftest.$ac_objext \
18270 conftest$ac_exeext conftest.$ac_ext
18271 LIBS=$ac_check_lib_save_LIBS
18273 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18274 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18275 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18277 cat >>confdefs.h <<\_ACEOF
18278 #define HAVE___ASHLDI3 1
18283 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18284 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18285 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18288 ac_check_lib_save_LIBS=$LIBS
18290 cat >conftest.$ac_ext <<_ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h. */
18297 /* Override any GCC internal prototype to avoid an error.
18298 Use char because int might match the return type of a GCC
18299 builtin and then its argument prototype would still apply. */
18307 return __ashrdi3 ();
18312 rm -f conftest.$ac_objext conftest$ac_exeext
18313 if { (ac_try="$ac_link"
18314 case "(($ac_try" in
18315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316 *) ac_try_echo=$ac_try;;
18318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18319 (eval "$ac_link") 2>conftest.er1
18321 grep -v '^ *+' conftest.er1 >conftest.err
18323 cat conftest.err >&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } &&
18326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18327 { (case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_try") 2>&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; } &&
18336 { ac_try='test -s conftest$ac_exeext'
18337 { (case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_try") 2>&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; }; then
18346 ac_cv_lib_gcc___ashrdi3=yes
18348 echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18351 ac_cv_lib_gcc___ashrdi3=no
18354 rm -f core conftest.err conftest.$ac_objext \
18355 conftest$ac_exeext conftest.$ac_ext
18356 LIBS=$ac_check_lib_save_LIBS
18358 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18359 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18360 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18362 cat >>confdefs.h <<\_ACEOF
18363 #define HAVE___ASHRDI3 1
18368 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18369 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18370 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18371 echo $ECHO_N "(cached) $ECHO_C" >&6
18373 ac_check_lib_save_LIBS=$LIBS
18375 cat >conftest.$ac_ext <<_ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18382 /* Override any GCC internal prototype to avoid an error.
18383 Use char because int might match the return type of a GCC
18384 builtin and then its argument prototype would still apply. */
18392 return __divdi3 ();
18397 rm -f conftest.$ac_objext conftest$ac_exeext
18398 if { (ac_try="$ac_link"
18399 case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_link") 2>conftest.er1
18406 grep -v '^ *+' conftest.er1 >conftest.err
18408 cat conftest.err >&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } &&
18411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18412 { (case "(($ac_try" in
18413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414 *) ac_try_echo=$ac_try;;
18416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417 (eval "$ac_try") 2>&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; } &&
18421 { ac_try='test -s conftest$ac_exeext'
18422 { (case "(($ac_try" in
18423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424 *) ac_try_echo=$ac_try;;
18426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427 (eval "$ac_try") 2>&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18431 ac_cv_lib_gcc___divdi3=yes
18433 echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18436 ac_cv_lib_gcc___divdi3=no
18439 rm -f core conftest.err conftest.$ac_objext \
18440 conftest$ac_exeext conftest.$ac_ext
18441 LIBS=$ac_check_lib_save_LIBS
18443 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18444 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18445 if test $ac_cv_lib_gcc___divdi3 = yes; then
18447 cat >>confdefs.h <<\_ACEOF
18448 #define HAVE___DIVDI3 1
18453 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18454 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18455 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
18458 ac_check_lib_save_LIBS=$LIBS
18460 cat >conftest.$ac_ext <<_ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18467 /* Override any GCC internal prototype to avoid an error.
18468 Use char because int might match the return type of a GCC
18469 builtin and then its argument prototype would still apply. */
18477 return __fixdfdi ();
18482 rm -f conftest.$ac_objext conftest$ac_exeext
18483 if { (ac_try="$ac_link"
18484 case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_link") 2>conftest.er1
18491 grep -v '^ *+' conftest.er1 >conftest.err
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } &&
18496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_try") 2>&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try='test -s conftest$ac_exeext'
18507 { (case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_try") 2>&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 ac_cv_lib_gcc___fixdfdi=yes
18518 echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18521 ac_cv_lib_gcc___fixdfdi=no
18524 rm -f core conftest.err conftest.$ac_objext \
18525 conftest$ac_exeext conftest.$ac_ext
18526 LIBS=$ac_check_lib_save_LIBS
18528 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18529 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18530 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18532 cat >>confdefs.h <<\_ACEOF
18533 #define HAVE___FIXDFDI 1
18538 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18539 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18540 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18543 ac_check_lib_save_LIBS=$LIBS
18545 cat >conftest.$ac_ext <<_ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18552 /* Override any GCC internal prototype to avoid an error.
18553 Use char because int might match the return type of a GCC
18554 builtin and then its argument prototype would still apply. */
18562 return __fixsfdi ();
18567 rm -f conftest.$ac_objext conftest$ac_exeext
18568 if { (ac_try="$ac_link"
18569 case "(($ac_try" in
18570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571 *) ac_try_echo=$ac_try;;
18573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574 (eval "$ac_link") 2>conftest.er1
18576 grep -v '^ *+' conftest.er1 >conftest.err
18578 cat conftest.err >&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
18581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18582 { (case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_try") 2>&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; } &&
18591 { ac_try='test -s conftest$ac_exeext'
18592 { (case "(($ac_try" in
18593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594 *) ac_try_echo=$ac_try;;
18596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597 (eval "$ac_try") 2>&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_cv_lib_gcc___fixsfdi=yes
18603 echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18606 ac_cv_lib_gcc___fixsfdi=no
18609 rm -f core conftest.err conftest.$ac_objext \
18610 conftest$ac_exeext conftest.$ac_ext
18611 LIBS=$ac_check_lib_save_LIBS
18613 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18614 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18615 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18617 cat >>confdefs.h <<\_ACEOF
18618 #define HAVE___FIXSFDI 1
18623 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18624 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18625 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18628 ac_check_lib_save_LIBS=$LIBS
18630 cat >conftest.$ac_ext <<_ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18637 /* Override any GCC internal prototype to avoid an error.
18638 Use char because int might match the return type of a GCC
18639 builtin and then its argument prototype would still apply. */
18643 char __floatdidf ();
18647 return __floatdidf ();
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (ac_try="$ac_link"
18654 case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_link") 2>conftest.er1
18661 grep -v '^ *+' conftest.er1 >conftest.err
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18667 { (case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_try") 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest$ac_exeext'
18677 { (case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_try") 2>&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; }; then
18686 ac_cv_lib_gcc___floatdidf=yes
18688 echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.$ac_ext >&5
18691 ac_cv_lib_gcc___floatdidf=no
18694 rm -f core conftest.err conftest.$ac_objext \
18695 conftest$ac_exeext conftest.$ac_ext
18696 LIBS=$ac_check_lib_save_LIBS
18698 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18699 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18700 if test $ac_cv_lib_gcc___floatdidf = yes; then
18702 cat >>confdefs.h <<\_ACEOF
18703 #define HAVE___FLOATDIDF 1
18708 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18709 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18710 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 ac_check_lib_save_LIBS=$LIBS
18715 cat >conftest.$ac_ext <<_ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h. */
18722 /* Override any GCC internal prototype to avoid an error.
18723 Use char because int might match the return type of a GCC
18724 builtin and then its argument prototype would still apply. */
18732 return __lshrdi3 ();
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (ac_try="$ac_link"
18739 case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_link") 2>conftest.er1
18746 grep -v '^ *+' conftest.er1 >conftest.err
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18752 { (case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_try") 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest$ac_exeext'
18762 { (case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_try") 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 ac_cv_lib_gcc___lshrdi3=yes
18773 echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18776 ac_cv_lib_gcc___lshrdi3=no
18779 rm -f core conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18781 LIBS=$ac_check_lib_save_LIBS
18783 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18784 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18785 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18787 cat >>confdefs.h <<\_ACEOF
18788 #define HAVE___LSHRDI3 1
18793 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18794 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18795 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18798 ac_check_lib_save_LIBS=$LIBS
18800 cat >conftest.$ac_ext <<_ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h. */
18807 /* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18817 return __moddi3 ();
18822 rm -f conftest.$ac_objext conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_link") 2>conftest.er1
18831 grep -v '^ *+' conftest.er1 >conftest.err
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } &&
18836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18837 { (case "(($ac_try" in
18838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839 *) ac_try_echo=$ac_try;;
18841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842 (eval "$ac_try") 2>&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; } &&
18846 { ac_try='test -s conftest$ac_exeext'
18847 { (case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_try") 2>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_cv_lib_gcc___moddi3=yes
18858 echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18861 ac_cv_lib_gcc___moddi3=no
18864 rm -f core conftest.err conftest.$ac_objext \
18865 conftest$ac_exeext conftest.$ac_ext
18866 LIBS=$ac_check_lib_save_LIBS
18868 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18869 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18870 if test $ac_cv_lib_gcc___moddi3 = yes; then
18872 cat >>confdefs.h <<\_ACEOF
18873 #define HAVE___MODDI3 1
18878 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18879 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18880 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18883 ac_check_lib_save_LIBS=$LIBS
18885 cat >conftest.$ac_ext <<_ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18892 /* Override any GCC internal prototype to avoid an error.
18893 Use char because int might match the return type of a GCC
18894 builtin and then its argument prototype would still apply. */
18902 return __udivdi3 ();
18907 rm -f conftest.$ac_objext conftest$ac_exeext
18908 if { (ac_try="$ac_link"
18909 case "(($ac_try" in
18910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911 *) ac_try_echo=$ac_try;;
18913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914 (eval "$ac_link") 2>conftest.er1
18916 grep -v '^ *+' conftest.er1 >conftest.err
18918 cat conftest.err >&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } &&
18921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18922 { (case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_try") 2>&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; } &&
18931 { ac_try='test -s conftest$ac_exeext'
18932 { (case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_try") 2>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; }; then
18941 ac_cv_lib_gcc___udivdi3=yes
18943 echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18946 ac_cv_lib_gcc___udivdi3=no
18949 rm -f core conftest.err conftest.$ac_objext \
18950 conftest$ac_exeext conftest.$ac_ext
18951 LIBS=$ac_check_lib_save_LIBS
18953 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18954 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18955 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18957 cat >>confdefs.h <<\_ACEOF
18958 #define HAVE___UDIVDI3 1
18963 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18964 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18965 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 ac_check_lib_save_LIBS=$LIBS
18970 cat >conftest.$ac_ext <<_ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18977 /* Override any GCC internal prototype to avoid an error.
18978 Use char because int might match the return type of a GCC
18979 builtin and then its argument prototype would still apply. */
18987 return __umoddi3 ();
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (ac_try="$ac_link"
18994 case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999 (eval "$ac_link") 2>conftest.er1
19001 grep -v '^ *+' conftest.er1 >conftest.err
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
19006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19007 { (case "(($ac_try" in
19008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009 *) ac_try_echo=$ac_try;;
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012 (eval "$ac_try") 2>&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; } &&
19016 { ac_try='test -s conftest$ac_exeext'
19017 { (case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_try") 2>&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19026 ac_cv_lib_gcc___umoddi3=yes
19028 echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.$ac_ext >&5
19031 ac_cv_lib_gcc___umoddi3=no
19034 rm -f core conftest.err conftest.$ac_objext \
19035 conftest$ac_exeext conftest.$ac_ext
19036 LIBS=$ac_check_lib_save_LIBS
19038 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19039 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19040 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19042 cat >>confdefs.h <<\_ACEOF
19043 #define HAVE___UMODDI3 1
19049 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19050 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19051 if test "${ac_cv_lib_gcc___main+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19054 ac_check_lib_save_LIBS=$LIBS
19056 cat >conftest.$ac_ext <<_ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19063 /* Override any GCC internal prototype to avoid an error.
19064 Use char because int might match the return type of a GCC
19065 builtin and then its argument prototype would still apply. */
19078 rm -f conftest.$ac_objext conftest$ac_exeext
19079 if { (ac_try="$ac_link"
19080 case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_link") 2>conftest.er1
19087 grep -v '^ *+' conftest.er1 >conftest.err
19089 cat conftest.err >&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } &&
19092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19093 { (case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_try") 2>&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; } &&
19102 { ac_try='test -s conftest$ac_exeext'
19103 { (case "(($ac_try" in
19104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105 *) ac_try_echo=$ac_try;;
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108 (eval "$ac_try") 2>&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
19112 ac_cv_lib_gcc___main=yes
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 ac_cv_lib_gcc___main=no
19120 rm -f core conftest.err conftest.$ac_objext \
19121 conftest$ac_exeext conftest.$ac_ext
19122 LIBS=$ac_check_lib_save_LIBS
19124 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19125 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19126 if test $ac_cv_lib_gcc___main = yes; then
19128 cat >>confdefs.h <<\_ACEOF
19129 #define HAVE___MAIN 1
19134 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19135 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19136 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19139 ac_check_lib_save_LIBS=$LIBS
19141 cat >conftest.$ac_ext <<_ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19148 /* Override any GCC internal prototype to avoid an error.
19149 Use char because int might match the return type of a GCC
19150 builtin and then its argument prototype would still apply. */
19158 return __cmpdi2 ();
19163 rm -f conftest.$ac_objext conftest$ac_exeext
19164 if { (ac_try="$ac_link"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_link") 2>conftest.er1
19172 grep -v '^ *+' conftest.er1 >conftest.err
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19178 { (case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_try") 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest$ac_exeext'
19188 { (case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_try") 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_cv_lib_gcc___cmpdi2=yes
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_cv_lib_gcc___cmpdi2=no
19205 rm -f core conftest.err conftest.$ac_objext \
19206 conftest$ac_exeext conftest.$ac_ext
19207 LIBS=$ac_check_lib_save_LIBS
19209 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19210 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19211 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19213 cat >>confdefs.h <<\_ACEOF
19214 #define HAVE___CMPDI2 1
19221 if test "$llvm_cv_os_type" = "MingW" ; then
19222 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19223 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19224 cat >conftest.$ac_ext <<_ACEOF
19225 #include <windows.h>
19226 #include <imagehlp.h>
19227 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19228 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19230 rm -f conftest.$ac_objext
19231 if { (ac_try="$ac_compile"
19232 case "(($ac_try" in
19233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234 *) ac_try_echo=$ac_try;;
19236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19237 (eval "$ac_compile") 2>conftest.er1
19239 grep -v '^ *+' conftest.er1 >conftest.err
19241 cat conftest.err >&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); } &&
19244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19245 { (case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_try") 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest.$ac_objext'
19255 { (case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_try") 2>&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; }; then
19265 { echo "$as_me:$LINENO: result: yes" >&5
19266 echo "${ECHO_T}yes" >&6; }
19267 llvm_cv_win32_elmcb_pcstr="PCSTR"
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19274 { echo "$as_me:$LINENO: result: no" >&5
19275 echo "${ECHO_T}no" >&6; }
19276 llvm_cv_win32_elmcb_pcstr="PSTR"
19280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282 cat >>confdefs.h <<_ACEOF
19283 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19289 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19290 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19291 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 ac_cpp='$CXXCPP $CPPFLAGS'
19296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19300 cat >conftest.$ac_ext <<_ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19315 rm -f conftest.$ac_objext
19316 if { (ac_try="$ac_compile"
19317 case "(($ac_try" in
19318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19319 *) ac_try_echo=$ac_try;;
19321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19322 (eval "$ac_compile") 2>conftest.er1
19324 grep -v '^ *+' conftest.er1 >conftest.err
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19330 { (case "(($ac_try" in
19331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19332 *) ac_try_echo=$ac_try;;
19334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19335 (eval "$ac_try") 2>&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try='test -s conftest.$ac_objext'
19340 { (case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_try") 2>&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
19349 ac_cv_func_isnan_in_math_h=yes
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19354 ac_cv_func_isnan_in_math_h=no
19357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19359 ac_cpp='$CPP $CPPFLAGS'
19360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19365 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19366 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19369 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19371 cat >>confdefs.h <<\_ACEOF
19372 #define HAVE_ISNAN_IN_MATH_H 1
19377 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19378 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19379 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 ac_cpp='$CXXCPP $CPPFLAGS'
19384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19388 cat >conftest.$ac_ext <<_ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19403 rm -f conftest.$ac_objext
19404 if { (ac_try="$ac_compile"
19405 case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_compile") 2>conftest.er1
19412 grep -v '^ *+' conftest.er1 >conftest.err
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } &&
19417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19418 { (case "(($ac_try" in
19419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420 *) ac_try_echo=$ac_try;;
19422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19423 (eval "$ac_try") 2>&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; } &&
19427 { ac_try='test -s conftest.$ac_objext'
19428 { (case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_try") 2>&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
19437 ac_cv_func_isnan_in_cmath=yes
19439 echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19442 ac_cv_func_isnan_in_cmath=no
19445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19447 ac_cpp='$CPP $CPPFLAGS'
19448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19453 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19454 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19456 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19458 cat >>confdefs.h <<\_ACEOF
19459 #define HAVE_ISNAN_IN_CMATH 1
19464 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19465 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19466 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 ac_cpp='$CXXCPP $CPPFLAGS'
19471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19475 cat >conftest.$ac_ext <<_ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19485 float f; std::isnan(f);
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_compile") 2>conftest.er1
19499 grep -v '^ *+' conftest.er1 >conftest.err
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
19504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19505 { (case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_try") 2>&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; } &&
19514 { ac_try='test -s conftest.$ac_objext'
19515 { (case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_try") 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_cv_func_std_isnan_in_cmath=yes
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19529 ac_cv_func_std_isnan_in_cmath=no
19532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19534 ac_cpp='$CPP $CPPFLAGS'
19535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19540 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19541 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19543 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19545 cat >>confdefs.h <<\_ACEOF
19546 #define HAVE_STD_ISNAN_IN_CMATH 1
19552 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19553 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19554 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19558 ac_cpp='$CXXCPP $CPPFLAGS'
19559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19563 cat >conftest.$ac_ext <<_ACEOF
19566 cat confdefs.h >>conftest.$ac_ext
19567 cat >>conftest.$ac_ext <<_ACEOF
19568 /* end confdefs.h. */
19578 rm -f conftest.$ac_objext
19579 if { (ac_try="$ac_compile"
19580 case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_compile") 2>conftest.er1
19587 grep -v '^ *+' conftest.er1 >conftest.err
19589 cat conftest.err >&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19593 { (case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_try") 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest.$ac_objext'
19603 { (case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_try") 2>&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612 ac_cv_func_isinf_in_math_h=yes
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 ac_cv_func_isinf_in_math_h=no
19620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19622 ac_cpp='$CPP $CPPFLAGS'
19623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19628 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19629 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19631 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19633 cat >>confdefs.h <<\_ACEOF
19634 #define HAVE_ISINF_IN_MATH_H 1
19639 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19640 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19641 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19645 ac_cpp='$CXXCPP $CPPFLAGS'
19646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19650 cat >conftest.$ac_ext <<_ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19665 rm -f conftest.$ac_objext
19666 if { (ac_try="$ac_compile"
19667 case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_compile") 2>conftest.er1
19674 grep -v '^ *+' conftest.er1 >conftest.err
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
19679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19680 { (case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_try") 2>&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest.$ac_objext'
19690 { (case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_try") 2>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; }; then
19699 ac_cv_func_isinf_in_cmath=yes
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19704 ac_cv_func_isinf_in_cmath=no
19707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19709 ac_cpp='$CPP $CPPFLAGS'
19710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19715 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19716 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19718 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19720 cat >>confdefs.h <<\_ACEOF
19721 #define HAVE_ISINF_IN_CMATH 1
19726 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19727 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19728 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19729 echo $ECHO_N "(cached) $ECHO_C" >&6
19732 ac_cpp='$CXXCPP $CPPFLAGS'
19733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19737 cat >conftest.$ac_ext <<_ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h. */
19747 float f; std::isinf(f)}
19752 rm -f conftest.$ac_objext
19753 if { (ac_try="$ac_compile"
19754 case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759 (eval "$ac_compile") 2>conftest.er1
19761 grep -v '^ *+' conftest.er1 >conftest.err
19763 cat conftest.err >&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } &&
19766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19767 { (case "(($ac_try" in
19768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769 *) ac_try_echo=$ac_try;;
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772 (eval "$ac_try") 2>&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; } &&
19776 { ac_try='test -s conftest.$ac_objext'
19777 { (case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_try") 2>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19786 ac_cv_func_std_isinf_in_cmath=yes
19788 echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19791 ac_cv_func_std_isinf_in_cmath=no
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19796 ac_cpp='$CPP $CPPFLAGS'
19797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19802 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19803 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19805 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19807 cat >>confdefs.h <<\_ACEOF
19808 #define HAVE_STD_ISINF_IN_CMATH 1
19813 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19814 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19815 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19819 ac_cpp='$CXXCPP $CPPFLAGS'
19820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19824 cat >conftest.$ac_ext <<_ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 #include <ieeefp.h>
19834 float f; finite(f);
19839 rm -f conftest.$ac_objext
19840 if { (ac_try="$ac_compile"
19841 case "(($ac_try" in
19842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843 *) ac_try_echo=$ac_try;;
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846 (eval "$ac_compile") 2>conftest.er1
19848 grep -v '^ *+' conftest.er1 >conftest.err
19850 cat conftest.err >&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } &&
19853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19854 { (case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_try") 2>&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; } &&
19863 { ac_try='test -s conftest.$ac_objext'
19864 { (case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_try") 2>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 ac_cv_func_finite_in_ieeefp_h=yes
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19878 ac_cv_func_finite_in_ieeefp_h=no
19881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19883 ac_cpp='$CPP $CPPFLAGS'
19884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19889 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19890 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19892 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19894 cat >>confdefs.h <<\_ACEOF
19895 #define HAVE_FINITE_IN_IEEEFP_H 1
19902 if test "$llvm_cv_platform_type" = "Unix" ; then
19905 for ac_header in stdlib.h unistd.h
19907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19914 ac_res=`eval echo '${'$as_ac_Header'}'`
19915 { echo "$as_me:$LINENO: result: $ac_res" >&5
19916 echo "${ECHO_T}$ac_res" >&6; }
19918 # Is the header compilable?
19919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 $ac_includes_default
19928 #include <$ac_header>
19930 rm -f conftest.$ac_objext
19931 if { (ac_try="$ac_compile"
19932 case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_compile") 2>conftest.er1
19939 grep -v '^ *+' conftest.er1 >conftest.err
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19945 { (case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_try") 2>&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; } &&
19954 { ac_try='test -s conftest.$ac_objext'
19955 { (case "(($ac_try" in
19956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957 *) ac_try_echo=$ac_try;;
19959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960 (eval "$ac_try") 2>&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); }; }; then
19964 ac_header_compiler=yes
19966 echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19969 ac_header_compiler=no
19972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19974 echo "${ECHO_T}$ac_header_compiler" >&6; }
19976 # Is the header present?
19977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19979 cat >conftest.$ac_ext <<_ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h. */
19985 #include <$ac_header>
19987 if { (ac_try="$ac_cpp conftest.$ac_ext"
19988 case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19995 grep -v '^ *+' conftest.er1 >conftest.err
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } >/dev/null; then
20000 if test -s conftest.err; then
20001 ac_cpp_err=$ac_c_preproc_warn_flag
20002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20009 if test -z "$ac_cpp_err"; then
20010 ac_header_preproc=yes
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 ac_header_preproc=no
20018 rm -f conftest.err conftest.$ac_ext
20019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20020 echo "${ECHO_T}$ac_header_preproc" >&6; }
20022 # So? What about this header?
20023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20029 ac_header_preproc=yes
20032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20045 ## ----------------------------------- ##
20046 ## Report this to llvmbugs@cs.uiuc.edu ##
20047 ## ----------------------------------- ##
20049 ) | sed "s/^/$as_me: WARNING: /" >&2
20052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 eval "$as_ac_Header=\$ac_header_preproc"
20059 ac_res=`eval echo '${'$as_ac_Header'}'`
20060 { echo "$as_me:$LINENO: result: $ac_res" >&5
20061 echo "${ECHO_T}$ac_res" >&6; }
20064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20065 cat >>confdefs.h <<_ACEOF
20066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20074 for ac_func in getpagesize
20076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20082 cat >conftest.$ac_ext <<_ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20090 #define $ac_func innocuous_$ac_func
20092 /* System header to define __stub macros and hopefully few prototypes,
20093 which can conflict with char $ac_func (); below.
20094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20095 <limits.h> exists even on freestanding compilers. */
20098 # include <limits.h>
20100 # include <assert.h>
20105 /* Override any GCC internal prototype to avoid an error.
20106 Use char because int might match the return type of a GCC
20107 builtin and then its argument prototype would still apply. */
20112 /* The GNU C library defines this for functions which it implements
20113 to always fail with ENOSYS. Some functions are actually named
20114 something starting with __ and the normal name is an alias. */
20115 #if defined __stub_$ac_func || defined __stub___$ac_func
20122 return $ac_func ();
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_link") 2>conftest.er1
20136 grep -v '^ *+' conftest.er1 >conftest.err
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } &&
20141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20142 { (case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_try") 2>&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; } &&
20151 { ac_try='test -s conftest$ac_exeext'
20152 { (case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_try") 2>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 eval "$as_ac_var=yes"
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20166 eval "$as_ac_var=no"
20169 rm -f core conftest.err conftest.$ac_objext \
20170 conftest$ac_exeext conftest.$ac_ext
20172 ac_res=`eval echo '${'$as_ac_var'}'`
20173 { echo "$as_me:$LINENO: result: $ac_res" >&5
20174 echo "${ECHO_T}$ac_res" >&6; }
20175 if test `eval echo '${'$as_ac_var'}'` = yes; then
20176 cat >>confdefs.h <<_ACEOF
20177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20183 { echo "$as_me:$LINENO: checking for working mmap" >&5
20184 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20185 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 if test "$cross_compiling" = yes; then
20189 ac_cv_func_mmap_fixed_mapped=no
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20197 $ac_includes_default
20198 /* malloc might have been renamed as rpl_malloc. */
20201 /* Thanks to Mike Haertel and Jim Avera for this test.
20202 Here is a matrix of mmap possibilities:
20203 mmap private not fixed
20204 mmap private fixed at somewhere currently unmapped
20205 mmap private fixed at somewhere already mapped
20206 mmap shared not fixed
20207 mmap shared fixed at somewhere currently unmapped
20208 mmap shared fixed at somewhere already mapped
20209 For private mappings, we should verify that changes cannot be read()
20210 back from the file, nor mmap's back from the file at a different
20211 address. (There have been systems where private was not correctly
20212 implemented like the infamous i386 svr4.0, and systems where the
20213 VM page cache was not coherent with the file system buffer cache
20214 like early versions of FreeBSD and possibly contemporary NetBSD.)
20215 For shared mappings, we should conversely verify that changes get
20216 propagated back to all the places they're supposed to be.
20218 Grep wants private fixed already mapped.
20219 The main things grep needs to know about mmap are:
20220 * does it exist and is it safe to write into the mmap'd area
20221 * how to use it (BSD variants) */
20224 #include <sys/mman.h>
20226 #if !STDC_HEADERS && !HAVE_STDLIB_H
20230 /* This mess was copied from the GNU getpagesize.h. */
20231 #if !HAVE_GETPAGESIZE
20232 /* Assume that all systems that can run configure have sys/param.h. */
20233 # if !HAVE_SYS_PARAM_H
20234 # define HAVE_SYS_PARAM_H 1
20237 # ifdef _SC_PAGESIZE
20238 # define getpagesize() sysconf(_SC_PAGESIZE)
20239 # else /* no _SC_PAGESIZE */
20240 # if HAVE_SYS_PARAM_H
20241 # include <sys/param.h>
20242 # ifdef EXEC_PAGESIZE
20243 # define getpagesize() EXEC_PAGESIZE
20244 # else /* no EXEC_PAGESIZE */
20246 # define getpagesize() NBPG * CLSIZE
20249 # endif /* no CLSIZE */
20250 # else /* no NBPG */
20252 # define getpagesize() NBPC
20253 # else /* no NBPC */
20255 # define getpagesize() PAGESIZE
20256 # endif /* PAGESIZE */
20257 # endif /* no NBPC */
20258 # endif /* no NBPG */
20259 # endif /* no EXEC_PAGESIZE */
20260 # else /* no HAVE_SYS_PARAM_H */
20261 # define getpagesize() 8192 /* punt totally */
20262 # endif /* no HAVE_SYS_PARAM_H */
20263 # endif /* no _SC_PAGESIZE */
20265 #endif /* no HAVE_GETPAGESIZE */
20270 char *data, *data2, *data3;
20274 pagesize = getpagesize ();
20276 /* First, make a file with some known garbage in it. */
20277 data = (char *) malloc (pagesize);
20280 for (i = 0; i < pagesize; ++i)
20281 *(data + i) = rand ();
20283 fd = creat ("conftest.mmap", 0600);
20286 if (write (fd, data, pagesize) != pagesize)
20290 /* Next, try to mmap the file at a fixed address which already has
20291 something else allocated at it. If we can, also make sure that
20292 we see the same garbage. */
20293 fd = open ("conftest.mmap", O_RDWR);
20296 data2 = (char *) malloc (2 * pagesize);
20299 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20300 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20301 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20303 for (i = 0; i < pagesize; ++i)
20304 if (*(data + i) != *(data2 + i))
20307 /* Finally, make sure that changes to the mapped area do not
20308 percolate back to the file as seen by read(). (This is a bug on
20309 some variants of i386 svr4.0.) */
20310 for (i = 0; i < pagesize; ++i)
20311 *(data2 + i) = *(data2 + i) + 1;
20312 data3 = (char *) malloc (pagesize);
20315 if (read (fd, data3, pagesize) != pagesize)
20317 for (i = 0; i < pagesize; ++i)
20318 if (*(data + i) != *(data3 + i))
20324 rm -f conftest$ac_exeext
20325 if { (ac_try="$ac_link"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_link") 2>&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20335 { (case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_try") 2>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
20344 ac_cv_func_mmap_fixed_mapped=yes
20346 echo "$as_me: program exited with status $ac_status" >&5
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 ( exit $ac_status )
20351 ac_cv_func_mmap_fixed_mapped=no
20353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20358 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20359 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20360 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20362 cat >>confdefs.h <<\_ACEOF
20363 #define HAVE_MMAP 1
20367 rm -f conftest.mmap
20369 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20370 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20371 if test "${ac_cv_func_mmap_file+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20375 ac_cpp='$CPP $CPPFLAGS'
20376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20380 if test "$cross_compiling" = yes; then
20381 ac_cv_func_mmap_file=no
20383 cat >conftest.$ac_ext <<_ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h. */
20391 #include <sys/types.h>
20392 #include <sys/mman.h>
20400 fd = creat ("foo",0777);
20401 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20403 return (fd != (int) MAP_FAILED);
20408 rm -f conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_link") 2>&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20419 { (case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_try") 2>&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; }; then
20428 ac_cv_func_mmap_file=yes
20430 echo "$as_me: program exited with status $ac_status" >&5
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20434 ( exit $ac_status )
20435 ac_cv_func_mmap_file=no
20437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20442 ac_cpp='$CPP $CPPFLAGS'
20443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20449 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20450 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20451 if test "$ac_cv_func_mmap_file" = yes; then
20453 cat >>confdefs.h <<\_ACEOF
20454 #define HAVE_MMAP_FILE
20461 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20462 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20463 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
20466 if test "$llvm_cv_os_type" = "Interix" ; then
20467 ac_cv_need_dev_zero_for_mmap=yes
20469 ac_cv_need_dev_zero_for_mmap=no
20473 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20474 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20475 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20477 cat >>confdefs.h <<\_ACEOF
20478 #define NEED_DEV_ZERO_FOR_MMAP 1
20483 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20485 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20486 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20488 if test "$ac_cv_func_mmap_file" = "no"
20490 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20491 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20495 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20496 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20498 ac_cpp='$CXXCPP $CPPFLAGS'
20499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20503 cat >conftest.$ac_ext <<_ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20510 volatile unsigned long val = 1;
20511 __sync_synchronize();
20512 __sync_val_compare_and_swap(&val, 1, 0);
20513 __sync_add_and_fetch(&val, 1);
20514 __sync_sub_and_fetch(&val, 1);
20519 rm -f conftest.$ac_objext conftest$ac_exeext
20520 if { (ac_try="$ac_link"
20521 case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_link") 2>conftest.er1
20528 grep -v '^ *+' conftest.er1 >conftest.err
20530 cat conftest.err >&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } &&
20533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20534 { (case "(($ac_try" in
20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536 *) ac_try_echo=$ac_try;;
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539 (eval "$ac_try") 2>&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; } &&
20543 { ac_try='test -s conftest$ac_exeext'
20544 { (case "(($ac_try" in
20545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549 (eval "$ac_try") 2>&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; }; then
20554 ac_cpp='$CPP $CPPFLAGS'
20555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20559 { echo "$as_me:$LINENO: result: yes" >&5
20560 echo "${ECHO_T}yes" >&6; }
20562 cat >>confdefs.h <<\_ACEOF
20563 #define LLVM_HAS_ATOMICS 1
20567 echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20570 { echo "$as_me:$LINENO: result: no" >&5
20571 echo "${ECHO_T}no" >&6; }
20573 cat >>confdefs.h <<\_ACEOF
20574 #define LLVM_HAS_ATOMICS 0
20577 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20578 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20581 rm -f core conftest.err conftest.$ac_objext \
20582 conftest$ac_exeext conftest.$ac_ext
20585 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20586 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20587 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20588 if test "${llvm_cv_linux_mixed+set}" = set; then
20589 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 ac_cpp='$CPP $CPPFLAGS'
20593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20597 cat >conftest.$ac_ext <<_ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h. */
20604 error: Not x86-64 even if uname says so!
20615 rm -f conftest.$ac_objext
20616 if { (ac_try="$ac_compile"
20617 case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_compile") 2>conftest.er1
20624 grep -v '^ *+' conftest.er1 >conftest.err
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20630 { (case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_try") 2>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; } &&
20639 { ac_try='test -s conftest.$ac_objext'
20640 { (case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_try") 2>&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
20649 llvm_cv_linux_mixed=no
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 llvm_cv_linux_mixed=yes
20657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20659 ac_cpp='$CPP $CPPFLAGS'
20660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20666 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20667 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20669 if test "$llvm_cv_linux_mixed" = "yes"; then
20670 llvm_cv_target_arch="x86"
20676 for ac_func in __dso_handle
20678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20682 echo $ECHO_N "(cached) $ECHO_C" >&6
20684 cat >conftest.$ac_ext <<_ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20692 #define $ac_func innocuous_$ac_func
20694 /* System header to define __stub macros and hopefully few prototypes,
20695 which can conflict with char $ac_func (); below.
20696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20697 <limits.h> exists even on freestanding compilers. */
20700 # include <limits.h>
20702 # include <assert.h>
20707 /* Override any GCC internal prototype to avoid an error.
20708 Use char because int might match the return type of a GCC
20709 builtin and then its argument prototype would still apply. */
20714 /* The GNU C library defines this for functions which it implements
20715 to always fail with ENOSYS. Some functions are actually named
20716 something starting with __ and the normal name is an alias. */
20717 #if defined __stub_$ac_func || defined __stub___$ac_func
20724 return $ac_func ();
20729 rm -f conftest.$ac_objext conftest$ac_exeext
20730 if { (ac_try="$ac_link"
20731 case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_link") 2>conftest.er1
20738 grep -v '^ *+' conftest.er1 >conftest.err
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } &&
20743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20744 { (case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_try") 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; } &&
20753 { ac_try='test -s conftest$ac_exeext'
20754 { (case "(($ac_try" in
20755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756 *) ac_try_echo=$ac_try;;
20758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20759 (eval "$ac_try") 2>&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); }; }; then
20763 eval "$as_ac_var=yes"
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20768 eval "$as_ac_var=no"
20771 rm -f core conftest.err conftest.$ac_objext \
20772 conftest$ac_exeext conftest.$ac_ext
20774 ac_res=`eval echo '${'$as_ac_var'}'`
20775 { echo "$as_me:$LINENO: result: $ac_res" >&5
20776 echo "${ECHO_T}$ac_res" >&6; }
20777 if test `eval echo '${'$as_ac_var'}'` = yes; then
20778 cat >>confdefs.h <<_ACEOF
20779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20786 SHLIBEXT=$libltdl_cv_shlibext
20789 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20792 # Translate the various configuration directories and other basic
20793 # information into substitutions that will end up in Makefile.config.in
20794 # that these configured values can be used by the makefiles
20795 if test "${prefix}" = "NONE" ; then
20796 prefix="/usr/local"
20798 eval LLVM_PREFIX="${prefix}";
20799 eval LLVM_BINDIR="${prefix}/bin";
20800 eval LLVM_LIBDIR="${prefix}/lib";
20801 eval LLVM_DATADIR="${prefix}/share/llvm";
20802 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20803 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20804 eval LLVM_INCLUDEDIR="${prefix}/include";
20805 eval LLVM_INFODIR="${prefix}/info";
20806 eval LLVM_MANDIR="${prefix}/man";
20807 LLVM_CONFIGTIME=`date`
20819 # Place the various directores into the config.h file as #defines so that we
20820 # can know about the installation paths within LLVM.
20822 cat >>confdefs.h <<_ACEOF
20823 #define LLVM_PREFIX "$LLVM_PREFIX"
20827 cat >>confdefs.h <<_ACEOF
20828 #define LLVM_BINDIR "$LLVM_BINDIR"
20832 cat >>confdefs.h <<_ACEOF
20833 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20837 cat >>confdefs.h <<_ACEOF
20838 #define LLVM_DATADIR "$LLVM_DATADIR"
20842 cat >>confdefs.h <<_ACEOF
20843 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20847 cat >>confdefs.h <<_ACEOF
20848 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20852 cat >>confdefs.h <<_ACEOF
20853 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20857 cat >>confdefs.h <<_ACEOF
20858 #define LLVM_INFODIR "$LLVM_INFODIR"
20862 cat >>confdefs.h <<_ACEOF
20863 #define LLVM_MANDIR "$LLVM_MANDIR"
20867 cat >>confdefs.h <<_ACEOF
20868 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20872 cat >>confdefs.h <<_ACEOF
20873 #define LLVM_HOSTTRIPLE "$host"
20877 # Determine which bindings to build.
20878 if test "$BINDINGS_TO_BUILD" = auto ; then
20879 BINDINGS_TO_BUILD=""
20880 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20881 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20884 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20887 # This isn't really configurey, but it avoids having to repeat the list in
20892 # Do any work necessary to ensure that bindings have what they need.
20893 binding_prereqs_failed=0
20894 for a_binding in $BINDINGS_TO_BUILD ; do
20895 case "$a_binding" in
20897 if test "x$OCAMLC" = x ; then
20898 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20899 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20900 binding_prereqs_failed=1
20902 if test "x$OCAMLDEP" = x ; then
20903 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20904 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20905 binding_prereqs_failed=1
20907 if test "x$OCAMLOPT" = x ; then
20908 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20909 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20911 if test "x$with_ocaml_libdir" != xauto ; then
20912 OCAML_LIBDIR=$with_ocaml_libdir
20915 ocaml_stdlib="`"$OCAMLC" -where`"
20916 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20918 # ocaml stdlib is beneath our prefix; use stdlib
20919 OCAML_LIBDIR=$ocaml_stdlib
20922 # ocaml stdlib is outside our prefix; use libdir/ocaml
20923 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20930 if test "$binding_prereqs_failed" = 1 ; then
20931 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20932 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20933 { (exit 1); exit 1; }; }
20936 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20937 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20938 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20939 echo $ECHO_N "(cached) $ECHO_C" >&6
20942 ac_cpp='$CXXCPP $CPPFLAGS'
20943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20947 oldcxxflags="$CXXFLAGS"
20948 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20949 cat >conftest.$ac_ext <<_ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20964 rm -f conftest.$ac_objext
20965 if { (ac_try="$ac_compile"
20966 case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_compile") 2>conftest.er1
20973 grep -v '^ *+' conftest.er1 >conftest.err
20975 cat conftest.err >&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } &&
20978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20979 { (case "(($ac_try" in
20980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981 *) ac_try_echo=$ac_try;;
20983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20984 (eval "$ac_try") 2>&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; } &&
20988 { ac_try='test -s conftest.$ac_objext'
20989 { (case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994 (eval "$ac_try") 2>&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); }; }; then
20998 llvm_cv_cxx_visibility_inlines_hidden=yes
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 llvm_cv_cxx_visibility_inlines_hidden=no
21006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007 CXXFLAGS="$oldcxxflags"
21009 ac_cpp='$CPP $CPPFLAGS'
21010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21016 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21017 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21018 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21019 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21022 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21027 if test "$llvm_cv_link_use_r" = "yes" ; then
21034 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21035 RDYNAMIC="-Wl,-export-dynamic"
21042 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21049 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21051 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21053 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21055 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21057 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21060 ac_config_files="$ac_config_files Makefile.config"
21063 ac_config_files="$ac_config_files llvm.spec"
21066 ac_config_files="$ac_config_files docs/doxygen.cfg"
21068 if test -f ${srcdir}/tools/clang/README.txt; then
21069 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21073 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21076 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21079 ac_config_commands="$ac_config_commands setup"
21081 ac_config_commands="$ac_config_commands Makefile"
21084 ac_config_commands="$ac_config_commands Makefile.common"
21087 ac_config_commands="$ac_config_commands examples/Makefile"
21090 ac_config_commands="$ac_config_commands lib/Makefile"
21093 ac_config_commands="$ac_config_commands runtime/Makefile"
21096 ac_config_commands="$ac_config_commands test/Makefile"
21099 ac_config_commands="$ac_config_commands test/Makefile.tests"
21102 ac_config_commands="$ac_config_commands unittests/Makefile"
21105 ac_config_commands="$ac_config_commands tools/Makefile"
21108 ac_config_commands="$ac_config_commands utils/Makefile"
21111 ac_config_commands="$ac_config_commands projects/Makefile"
21114 ac_config_commands="$ac_config_commands bindings/Makefile"
21117 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21121 cat >confcache <<\_ACEOF
21122 # This file is a shell script that caches the results of configure
21123 # tests run on this system so they can be shared between configure
21124 # scripts and configure runs, see configure's option --config-cache.
21125 # It is not useful on other systems. If it contains results you don't
21126 # want to keep, you may remove or edit it.
21128 # config.status only pays attention to the cache file if you give it
21129 # the --recheck option to rerun configure.
21131 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21132 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21133 # following values.
21137 # The following way of writing the cache mishandles newlines in values,
21138 # but we know of no workaround that is simple, portable, and efficient.
21139 # So, we kill variables containing newlines.
21140 # Ultrix sh set writes to stderr and can't be redirected directly,
21141 # and sets the high bit in the cache file unless we assign to the vars.
21143 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21144 eval ac_val=\$$ac_var
21148 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21149 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21152 _ | IFS | as_nl) ;; #(
21153 *) $as_unset $ac_var ;;
21159 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21160 *${as_nl}ac_space=\ *)
21161 # `set' does not quote correctly, so add quotes (double-quote
21162 # substitution turns \\\\ into \\, and sed turns \\ into \).
21165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21168 # `set' quotes correctly as required by POSIX, so do not add quotes.
21169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21178 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21180 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21182 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21183 if test -w "$cache_file"; then
21184 test "x$cache_file" != "x/dev/null" &&
21185 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21186 echo "$as_me: updating cache $cache_file" >&6;}
21187 cat confcache >$cache_file
21189 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21190 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21195 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21196 # Let make expand exec_prefix.
21197 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21199 DEFS=-DHAVE_CONFIG_H
21203 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21204 # 1. Remove the extension, and $U if already installed.
21205 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21206 ac_i=`echo "$ac_i" | sed "$ac_script"`
21207 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21208 # will be set to the directory where LIBOBJS objects are built.
21209 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21210 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21212 LIBOBJS=$ac_libobjs
21214 LTLIBOBJS=$ac_ltlibobjs
21217 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21218 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21219 Usually this means the macro was only invoked conditionally." >&5
21220 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21221 Usually this means the macro was only invoked conditionally." >&2;}
21222 { (exit 1); exit 1; }; }
21224 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21225 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21226 Usually this means the macro was only invoked conditionally." >&5
21227 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21228 Usually this means the macro was only invoked conditionally." >&2;}
21229 { (exit 1); exit 1; }; }
21232 : ${CONFIG_STATUS=./config.status}
21233 ac_clean_files_save=$ac_clean_files
21234 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21235 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21236 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21237 cat >$CONFIG_STATUS <<_ACEOF
21239 # Generated by $as_me.
21240 # Run this file to recreate the current configuration.
21241 # Compiler output produced by configure, useful for debugging
21242 # configure, is in config.log if it exists.
21245 ac_cs_recheck=false
21247 SHELL=\${CONFIG_SHELL-$SHELL}
21250 cat >>$CONFIG_STATUS <<\_ACEOF
21251 ## --------------------- ##
21252 ## M4sh Initialization. ##
21253 ## --------------------- ##
21255 # Be Bourne compatible
21256 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21259 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21260 # is contrary to our usage. Disable this feature.
21261 alias -g '${1+"$@"}'='"$@"'
21262 setopt NO_GLOB_SUBST
21264 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21266 BIN_SH=xpg4; export BIN_SH # for Tru64
21267 DUALCASE=1; export DUALCASE # for MKS sh
21271 # Avoid depending upon Character Ranges.
21272 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21273 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21274 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21275 as_cr_digits='0123456789'
21276 as_cr_alnum=$as_cr_Letters$as_cr_digits
21278 # The user is always right.
21279 if test "${PATH_SEPARATOR+set}" != set; then
21280 echo "#! /bin/sh" >conf$$.sh
21281 echo "exit 0" >>conf$$.sh
21283 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21291 # Support unset when possible.
21292 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21300 # We need space, tab and new line, in precisely that order. Quoting is
21301 # there to prevent editors from complaining about space-tab.
21302 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21303 # splitting by setting IFS to empty value.)
21308 # Find who we are. Look in the path if we contain no directory separator.
21310 *[\\/]* ) as_myself=$0 ;;
21311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21312 for as_dir in $PATH
21315 test -z "$as_dir" && as_dir=.
21316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21322 # We did not find ourselves, most probably we were run as `sh COMMAND'
21323 # in which case we are not to be found in the path.
21324 if test "x$as_myself" = x; then
21327 if test ! -f "$as_myself"; then
21328 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21329 { (exit 1); exit 1; }
21332 # Work around bugs in pre-3.0 UWIN ksh.
21333 for as_var in ENV MAIL MAILPATH
21334 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21342 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21343 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21344 LC_TELEPHONE LC_TIME
21346 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21347 eval $as_var=C; export $as_var
21349 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21353 # Required to use basename.
21354 if expr a : '\(a\)' >/dev/null 2>&1 &&
21355 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21361 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21362 as_basename=basename
21368 # Name of the executable.
21369 as_me=`$as_basename -- "$0" ||
21370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21371 X"$0" : 'X\(//\)$' \| \
21372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21374 sed '/^.*\/\([^/][^/]*\)\/*$/{
21393 as_lineno_1=$LINENO
21394 as_lineno_2=$LINENO
21395 test "x$as_lineno_1" != "x$as_lineno_2" &&
21396 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21398 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21399 # uniformly replaced by the line number. The first 'sed' inserts a
21400 # line-number line after each line using $LINENO; the second 'sed'
21401 # does the real work. The second script uses 'N' to pair each
21402 # line-number line with the line containing $LINENO, and appends
21403 # trailing '-' during substitution so that $LINENO is not a special
21404 # case at line end.
21405 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21406 # scripts with optimization help from Paolo Bonzini. Blame Lee
21407 # E. McMahon (1931-1989) for sed's syntax. :-)
21419 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21422 ' >$as_me.lineno &&
21423 chmod +x "$as_me.lineno" ||
21424 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21425 { (exit 1); exit 1; }; }
21427 # Don't try to exec as it changes $[0], causing all sort of problems
21428 # (the dirname of $[0] is not the place where we might find the
21429 # original and so on. Autoconf is especially sensitive to this).
21430 . "./$as_me.lineno"
21431 # Exit status is that of the last command.
21436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21442 ECHO_C= ECHO_N= ECHO_T=
21443 case `echo -n x` in
21445 case `echo 'x\c'` in
21446 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21453 if expr a : '\(a\)' >/dev/null 2>&1 &&
21454 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21460 rm -f conf$$ conf$$.exe conf$$.file
21461 if test -d conf$$.dir; then
21462 rm -f conf$$.dir/conf$$.file
21468 if ln -s conf$$.file conf$$ 2>/dev/null; then
21470 # ... but there are two gotchas:
21471 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21472 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21473 # In both cases, we have to default to `cp -p'.
21474 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21476 elif ln conf$$.file conf$$ 2>/dev/null; then
21481 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21482 rmdir conf$$.dir 2>/dev/null
21484 if mkdir -p . 2>/dev/null; then
21487 test -d ./-p && rmdir ./-p
21491 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21492 # systems may use methods other than mode bits to determine executability.
21493 cat >conf$$.file <<_ASEOF
21497 chmod +x conf$$.file
21498 if test -x conf$$.file >/dev/null 2>&1; then
21499 as_executable_p="test -x"
21505 # Sed expression to map a string onto a valid CPP name.
21506 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21508 # Sed expression to map a string onto a valid variable name.
21509 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21514 # Save the log message, to keep $[0] and so on meaningful, and to
21515 # report actual input values of CONFIG_FILES etc. instead of their
21516 # values after options handling.
21518 This file was extended by llvm $as_me 3.1svn, which was
21519 generated by GNU Autoconf 2.60. Invocation command line was
21521 CONFIG_FILES = $CONFIG_FILES
21522 CONFIG_HEADERS = $CONFIG_HEADERS
21523 CONFIG_LINKS = $CONFIG_LINKS
21524 CONFIG_COMMANDS = $CONFIG_COMMANDS
21527 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21532 cat >>$CONFIG_STATUS <<_ACEOF
21533 # Files that config.status was made for.
21534 config_files="$ac_config_files"
21535 config_headers="$ac_config_headers"
21536 config_commands="$ac_config_commands"
21540 cat >>$CONFIG_STATUS <<\_ACEOF
21542 \`$as_me' instantiates files from templates according to the
21543 current configuration.
21545 Usage: $0 [OPTIONS] [FILE]...
21547 -h, --help print this help, then exit
21548 -V, --version print version number, then exit
21549 -q, --quiet do not print progress messages
21550 -d, --debug don't remove temporary files
21551 --recheck update $as_me by reconfiguring in the same conditions
21552 --file=FILE[:TEMPLATE]
21553 instantiate the configuration file FILE
21554 --header=FILE[:TEMPLATE]
21555 instantiate the configuration header FILE
21557 Configuration files:
21560 Configuration headers:
21563 Configuration commands:
21566 Report bugs to <bug-autoconf@gnu.org>."
21569 cat >>$CONFIG_STATUS <<_ACEOF
21571 llvm config.status 3.1svn
21572 configured by $0, generated by GNU Autoconf 2.60,
21573 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21575 Copyright (C) 2006 Free Software Foundation, Inc.
21576 This config.status script is free software; the Free Software Foundation
21577 gives unlimited permission to copy, distribute and modify it."
21584 cat >>$CONFIG_STATUS <<\_ACEOF
21585 # If no file are specified by the user, then we need to provide default
21586 # value. By we need to know if files were specified by the user.
21592 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21593 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21604 # Handling of the options.
21605 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21607 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21608 echo "$ac_cs_version"; exit ;;
21609 --debug | --debu | --deb | --de | --d | -d )
21611 --file | --fil | --fi | --f )
21613 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21614 ac_need_defaults=false;;
21615 --header | --heade | --head | --hea )
21617 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21618 ac_need_defaults=false;;
21620 # Conflict between --help and --header
21621 { echo "$as_me: error: ambiguous option: $1
21622 Try \`$0 --help' for more information." >&2
21623 { (exit 1); exit 1; }; };;
21624 --help | --hel | -h )
21625 echo "$ac_cs_usage"; exit ;;
21626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21627 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21630 # This is an error.
21631 -*) { echo "$as_me: error: unrecognized option: $1
21632 Try \`$0 --help' for more information." >&2
21633 { (exit 1); exit 1; }; } ;;
21635 *) ac_config_targets="$ac_config_targets $1"
21636 ac_need_defaults=false ;;
21642 ac_configure_extra_args=
21644 if $ac_cs_silent; then
21646 ac_configure_extra_args="$ac_configure_extra_args --silent"
21650 cat >>$CONFIG_STATUS <<_ACEOF
21651 if \$ac_cs_recheck; then
21652 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21653 CONFIG_SHELL=$SHELL
21654 export CONFIG_SHELL
21655 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21659 cat >>$CONFIG_STATUS <<\_ACEOF
21663 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21664 ## Running $as_me. ##
21670 cat >>$CONFIG_STATUS <<_ACEOF
21674 llvm_src="${srcdir}"
21678 cat >>$CONFIG_STATUS <<\_ACEOF
21680 # Handling of arguments.
21681 for ac_config_target in $ac_config_targets
21683 case $ac_config_target in
21684 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21685 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21686 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21687 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21688 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21689 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21690 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21691 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21692 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21693 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21694 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21695 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21696 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21697 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21698 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21699 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21700 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21701 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21702 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21703 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21704 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21705 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21706 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21707 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21708 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21709 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21710 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21712 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21713 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21714 { (exit 1); exit 1; }; };;
21719 # If the user did not use the arguments to specify the items to instantiate,
21720 # then the envvar interface is used. Set only those that are not.
21721 # We use the long form for the default assignment because of an extremely
21722 # bizarre bug on SunOS 4.1.3.
21723 if $ac_need_defaults; then
21724 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21725 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21726 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21729 # Have a temporary directory for convenience. Make it in the build tree
21730 # simply because there is no reason against having it here, and in addition,
21731 # creating and moving files from /tmp can sometimes cause problems.
21732 # Hook for its removal unless debugging.
21733 # Note that there is a small window in which the directory will not be cleaned:
21734 # after its creation but before its name has been assigned to `$tmp'.
21738 trap 'exit_status=$?
21739 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21741 trap '{ (exit 1); exit 1; }' 1 2 13 15
21743 # Create a (secure) tmp directory for tmp files.
21746 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21747 test -n "$tmp" && test -d "$tmp"
21750 tmp=./conf$$-$RANDOM
21751 (umask 077 && mkdir "$tmp")
21754 echo "$me: cannot create a temporary directory in ." >&2
21755 { (exit 1); exit 1; }
21759 # Set up the sed scripts for CONFIG_FILES section.
21762 # No need to generate the scripts if there are no CONFIG_FILES.
21763 # This happens for instance when ./config.status config.h
21764 if test -n "$CONFIG_FILES"; then
21771 for ac_last_try in false false false false false :; do
21772 cat >conf$$subs.sed <<_ACEOF
21773 SHELL!$SHELL$ac_delim
21774 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21775 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21776 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21777 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21778 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21779 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21780 exec_prefix!$exec_prefix$ac_delim
21781 prefix!$prefix$ac_delim
21782 program_transform_name!$program_transform_name$ac_delim
21783 bindir!$bindir$ac_delim
21784 sbindir!$sbindir$ac_delim
21785 libexecdir!$libexecdir$ac_delim
21786 datarootdir!$datarootdir$ac_delim
21787 datadir!$datadir$ac_delim
21788 sysconfdir!$sysconfdir$ac_delim
21789 sharedstatedir!$sharedstatedir$ac_delim
21790 localstatedir!$localstatedir$ac_delim
21791 includedir!$includedir$ac_delim
21792 oldincludedir!$oldincludedir$ac_delim
21793 docdir!$docdir$ac_delim
21794 infodir!$infodir$ac_delim
21795 htmldir!$htmldir$ac_delim
21796 dvidir!$dvidir$ac_delim
21797 pdfdir!$pdfdir$ac_delim
21798 psdir!$psdir$ac_delim
21799 libdir!$libdir$ac_delim
21800 localedir!$localedir$ac_delim
21801 mandir!$mandir$ac_delim
21802 DEFS!$DEFS$ac_delim
21803 ECHO_C!$ECHO_C$ac_delim
21804 ECHO_N!$ECHO_N$ac_delim
21805 ECHO_T!$ECHO_T$ac_delim
21806 LIBS!$LIBS$ac_delim
21807 build_alias!$build_alias$ac_delim
21808 host_alias!$host_alias$ac_delim
21809 target_alias!$target_alias$ac_delim
21810 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21812 CFLAGS!$CFLAGS$ac_delim
21813 LDFLAGS!$LDFLAGS$ac_delim
21814 CPPFLAGS!$CPPFLAGS$ac_delim
21815 ac_ct_CC!$ac_ct_CC$ac_delim
21816 EXEEXT!$EXEEXT$ac_delim
21817 OBJEXT!$OBJEXT$ac_delim
21819 CXXFLAGS!$CXXFLAGS$ac_delim
21820 ac_ct_CXX!$ac_ct_CXX$ac_delim
21822 subdirs!$subdirs$ac_delim
21823 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21824 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21825 build!$build$ac_delim
21826 build_cpu!$build_cpu$ac_delim
21827 build_vendor!$build_vendor$ac_delim
21828 build_os!$build_os$ac_delim
21829 host!$host$ac_delim
21830 host_cpu!$host_cpu$ac_delim
21831 host_vendor!$host_vendor$ac_delim
21832 host_os!$host_os$ac_delim
21833 target!$target$ac_delim
21834 target_cpu!$target_cpu$ac_delim
21835 target_vendor!$target_vendor$ac_delim
21836 target_os!$target_os$ac_delim
21838 HOST_OS!$HOST_OS$ac_delim
21839 TARGET_OS!$TARGET_OS$ac_delim
21840 LINKALL!$LINKALL$ac_delim
21841 NOLINKALL!$NOLINKALL$ac_delim
21842 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21843 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21844 ARCH!$ARCH$ac_delim
21845 ENDIAN!$ENDIAN$ac_delim
21846 GREP!$GREP$ac_delim
21847 EGREP!$EGREP$ac_delim
21848 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21849 BUILD_CC!$BUILD_CC$ac_delim
21850 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21851 BUILD_CXX!$BUILD_CXX$ac_delim
21852 CVSBUILD!$CVSBUILD$ac_delim
21853 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21854 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21855 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21856 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21857 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21858 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21859 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21861 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21862 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21863 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21864 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21865 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21866 ENABLE_PIC!$ENABLE_PIC$ac_delim
21867 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21868 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21869 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21872 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21874 elif $ac_last_try; then
21875 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21876 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21877 { (exit 1); exit 1; }; }
21879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21883 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21884 if test -n "$ac_eof"; then
21885 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21886 ac_eof=`expr $ac_eof + 1`
21889 cat >>$CONFIG_STATUS <<_ACEOF
21890 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21894 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21895 s/^/s,@/; s/!/@,|#_!!_#|/
21898 s/'"$ac_delim"'$/,g/; t
21900 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21901 ' >>$CONFIG_STATUS <conf$$subs.sed
21902 rm -f conf$$subs.sed
21903 cat >>$CONFIG_STATUS <<_ACEOF
21909 for ac_last_try in false false false false false :; do
21910 cat >conf$$subs.sed <<_ACEOF
21911 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21912 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21913 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21914 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21915 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21916 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21917 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21918 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21919 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21920 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21921 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21923 ifGNUmake!$ifGNUmake$ac_delim
21924 LN_S!$LN_S$ac_delim
21927 DATE!$DATE$ac_delim
21928 FIND!$FIND$ac_delim
21929 MKDIR!$MKDIR$ac_delim
21931 RANLIB!$RANLIB$ac_delim
21936 BINPWD!$BINPWD$ac_delim
21937 GRAPHVIZ!$GRAPHVIZ$ac_delim
21940 NEATO!$NEATO$ac_delim
21941 TWOPI!$TWOPI$ac_delim
21942 CIRCO!$CIRCO$ac_delim
21944 DOTTY!$DOTTY$ac_delim
21945 XDOT_PY!$XDOT_PY$ac_delim
21946 PERL!$PERL$ac_delim
21947 HAVE_PERL!$HAVE_PERL$ac_delim
21948 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21949 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21950 INSTALL_DATA!$INSTALL_DATA$ac_delim
21951 BZIP2!$BZIP2$ac_delim
21953 DOXYGEN!$DOXYGEN$ac_delim
21954 GROFF!$GROFF$ac_delim
21955 GZIPBIN!$GZIPBIN$ac_delim
21956 POD2HTML!$POD2HTML$ac_delim
21957 POD2MAN!$POD2MAN$ac_delim
21958 PDFROFF!$PDFROFF$ac_delim
21959 RUNTEST!$RUNTEST$ac_delim
21960 TCLSH!$TCLSH$ac_delim
21962 OCAMLC!$OCAMLC$ac_delim
21963 OCAMLOPT!$OCAMLOPT$ac_delim
21964 OCAMLDEP!$OCAMLDEP$ac_delim
21965 OCAMLDOC!$OCAMLDOC$ac_delim
21967 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21968 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21969 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21970 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21971 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21972 LIBADD_DL!$LIBADD_DL$ac_delim
21973 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21974 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21975 USE_UDIS86!$USE_UDIS86$ac_delim
21976 USE_OPROFILE!$USE_OPROFILE$ac_delim
21977 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21978 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21979 MMAP_FILE!$MMAP_FILE$ac_delim
21980 SHLIBEXT!$SHLIBEXT$ac_delim
21981 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21982 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21983 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21984 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21985 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21986 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21987 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21988 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21989 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21990 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21991 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21992 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21993 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21994 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21995 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21996 RPATH!$RPATH$ac_delim
21997 RDYNAMIC!$RDYNAMIC$ac_delim
21998 LIBOBJS!$LIBOBJS$ac_delim
21999 LTLIBOBJS!$LTLIBOBJS$ac_delim
22002 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
22004 elif $ac_last_try; then
22005 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22006 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22007 { (exit 1); exit 1; }; }
22009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22013 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22014 if test -n "$ac_eof"; then
22015 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22016 ac_eof=`expr $ac_eof + 1`
22019 cat >>$CONFIG_STATUS <<_ACEOF
22020 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22021 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22024 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22025 s/^/s,@/; s/!/@,|#_!!_#|/
22028 s/'"$ac_delim"'$/,g/; t
22030 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22031 ' >>$CONFIG_STATUS <conf$$subs.sed
22032 rm -f conf$$subs.sed
22033 cat >>$CONFIG_STATUS <<_ACEOF
22040 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22041 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22042 # trailing colons and then remove the whole line if VPATH becomes empty
22043 # (actually we leave an empty line to preserve line numbers).
22044 if test "x$srcdir" = x.; then
22045 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22046 s/:*\$(srcdir):*/:/
22047 s/:*\${srcdir}:*/:/
22049 s/^\([^=]*=[ ]*\):*/\1/
22055 cat >>$CONFIG_STATUS <<\_ACEOF
22056 fi # test -n "$CONFIG_FILES"
22059 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22062 :[FHLC]) ac_mode=$ac_tag; continue;;
22064 case $ac_mode$ac_tag in
22066 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22067 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22068 { (exit 1); exit 1; }; };;
22069 :[FH]-) ac_tag=-:-;;
22070 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22087 -) ac_f="$tmp/stdin";;
22088 *) # Look for the file first in the build tree, then in the source tree
22089 # (if the path is not absolute). The absolute path cannot be DOS-style,
22090 # because $ac_f cannot contain `:'.
22094 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22096 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22097 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22098 { (exit 1); exit 1; }; };;
22100 ac_file_inputs="$ac_file_inputs $ac_f"
22103 # Let's still pretend it is `configure' which instantiates (i.e., don't
22104 # use $as_me), people would be surprised to read:
22105 # /* config.h. Generated by config.status. */
22106 configure_input="Generated from "`IFS=:
22107 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22108 if test x"$ac_file" != x-; then
22109 configure_input="$ac_file. $configure_input"
22110 { echo "$as_me:$LINENO: creating $ac_file" >&5
22111 echo "$as_me: creating $ac_file" >&6;}
22115 *:-:* | *:-) cat >"$tmp/stdin";;
22120 ac_dir=`$as_dirname -- "$ac_file" ||
22121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22122 X"$ac_file" : 'X\(//\)[^/]' \| \
22123 X"$ac_file" : 'X\(//\)$' \| \
22124 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22130 /^X\(\/\/\)[^/].*/{
22145 -*) as_dir=./$as_dir;;
22147 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22151 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22152 *) as_qdir=$as_dir;;
22154 as_dirs="'$as_qdir' $as_dirs"
22155 as_dir=`$as_dirname -- "$as_dir" ||
22156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22157 X"$as_dir" : 'X\(//\)[^/]' \| \
22158 X"$as_dir" : 'X\(//\)$' \| \
22159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22165 /^X\(\/\/\)[^/].*/{
22178 test -d "$as_dir" && break
22180 test -z "$as_dirs" || eval "mkdir $as_dirs"
22181 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22182 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22183 { (exit 1); exit 1; }; }; }
22187 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22189 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22190 # A ".." for each directory in $ac_dir_suffix.
22191 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22192 case $ac_top_builddir_sub in
22193 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22194 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22197 ac_abs_top_builddir=$ac_pwd
22198 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22199 # for backward compatibility:
22200 ac_top_builddir=$ac_top_build_prefix
22203 .) # We are building in place.
22205 ac_top_srcdir=$ac_top_builddir_sub
22206 ac_abs_top_srcdir=$ac_pwd ;;
22207 [\\/]* | ?:[\\/]* ) # Absolute name.
22208 ac_srcdir=$srcdir$ac_dir_suffix;
22209 ac_top_srcdir=$srcdir
22210 ac_abs_top_srcdir=$srcdir ;;
22211 *) # Relative name.
22212 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22213 ac_top_srcdir=$ac_top_build_prefix$srcdir
22214 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22216 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22226 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22227 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22231 cat >>$CONFIG_STATUS <<\_ACEOF
22232 # If the template does not know about datarootdir, expand it.
22233 # FIXME: This hack should be removed a few years after 2.60.
22234 ac_datarootdir_hack=; ac_datarootdir_seen=
22236 case `sed -n '/datarootdir/ {
22245 ' $ac_file_inputs` in
22246 *datarootdir*) ac_datarootdir_seen=yes;;
22247 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22248 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22249 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22251 cat >>$CONFIG_STATUS <<_ACEOF
22252 ac_datarootdir_hack='
22253 s&@datadir@&$datadir&g
22254 s&@docdir@&$docdir&g
22255 s&@infodir@&$infodir&g
22256 s&@localedir@&$localedir&g
22257 s&@mandir@&$mandir&g
22258 s&\\\${datarootdir}&$datarootdir&g' ;;
22262 # Neutralize VPATH when `$srcdir' = `.'.
22263 # Shell code in configure.ac might set extrasub.
22264 # FIXME: do we really want to maintain this feature?
22265 cat >>$CONFIG_STATUS <<_ACEOF
22269 cat >>$CONFIG_STATUS <<\_ACEOF
22271 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22272 s&@configure_input@&$configure_input&;t t
22273 s&@top_builddir@&$ac_top_builddir_sub&;t t
22274 s&@srcdir@&$ac_srcdir&;t t
22275 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22276 s&@top_srcdir@&$ac_top_srcdir&;t t
22277 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22278 s&@builddir@&$ac_builddir&;t t
22279 s&@abs_builddir@&$ac_abs_builddir&;t t
22280 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22281 s&@INSTALL@&$ac_INSTALL&;t t
22282 $ac_datarootdir_hack
22283 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22285 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22286 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22287 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22288 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22289 which seems to be undefined. Please make sure it is defined." >&5
22290 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22291 which seems to be undefined. Please make sure it is defined." >&2;}
22295 -) cat "$tmp/out"; rm -f "$tmp/out";;
22296 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22305 # Transform confdefs.h into a sed script `conftest.defines', that
22306 # substitutes the proper values into config.h.in to produce config.h.
22307 rm -f conftest.defines conftest.tail
22308 # First, append a space to every undef/define line, to ease matching.
22309 echo 's/$/ /' >conftest.defines
22310 # Then, protect against being on the right side of a sed subst, or in
22311 # an unquoted here document, in config.status. If some macros were
22312 # called several times there might be several #defines for the same
22313 # symbol, which is useless. But do not sort them, since the last
22314 # AC_DEFINE must be honored.
22315 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22316 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22317 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22318 # PARAMS is the parameter list in the macro definition--in most cases, it's
22319 # just an empty string.
22320 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22321 ac_dB='\\)[ (].*,\\1define\\2'
22329 s/^[ ]*#[ ]*define[ ][ ]*//
22334 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22335 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22336 ' >>conftest.defines
22338 # Remove the space that was appended to ease matching.
22339 # Then replace #undef with comments. This is necessary, for
22340 # example, in the case of _POSIX_SOURCE, which is predefined and required
22341 # on some systems where configure will not decide to define it.
22342 # (The regexp can be short, since the line contains either #define or #undef.)
22344 s,^[ #]*u.*,/* & */,' >>conftest.defines
22346 # Break up conftest.defines:
22347 ac_max_sed_lines=50
22349 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22350 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22351 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22353 ac_in='$ac_file_inputs'
22354 ac_out='"$tmp/out1"'
22355 ac_nxt='"$tmp/out2"'
22359 # Write a here document:
22360 cat >>$CONFIG_STATUS <<_ACEOF
22361 # First, check the format of the line:
22362 cat >"\$tmp/defines.sed" <<\\CEOF
22363 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22364 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22368 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22370 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22371 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22372 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22373 grep . conftest.tail >/dev/null || break
22374 rm -f conftest.defines
22375 mv conftest.tail conftest.defines
22377 rm -f conftest.defines conftest.tail
22379 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22380 cat >>$CONFIG_STATUS <<\_ACEOF
22381 if test x"$ac_file" != x-; then
22382 echo "/* $configure_input */" >"$tmp/config.h"
22383 cat "$ac_result" >>"$tmp/config.h"
22384 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22385 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22386 echo "$as_me: $ac_file is unchanged" >&6;}
22389 mv "$tmp/config.h" $ac_file
22392 echo "/* $configure_input */"
22398 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22399 echo "$as_me: executing $ac_file commands" >&6;}
22404 case $ac_file$ac_mode in
22405 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22406 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22407 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22408 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22409 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22410 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22411 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22412 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22413 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22414 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22415 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22416 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22417 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22418 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22419 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22420 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22421 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22422 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22423 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22424 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22425 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22426 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22427 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22428 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22429 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22430 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22436 { (exit 0); exit 0; }
22438 chmod +x $CONFIG_STATUS
22439 ac_clean_files=$ac_clean_files_save
22442 # configure is writing to config.log, and then calls config.status.
22443 # config.status does its own redirection, appending to config.log.
22444 # Unfortunately, on DOS this fails, as config.log is still kept open
22445 # by configure, so config.status won't be able to write to it; its
22446 # output is simply discarded. So we exec the FD to /dev/null,
22447 # effectively closing config.log, so it can be properly (re)opened and
22448 # appended to by config.status. When coming back to configure, we
22449 # need to make the FD available again.
22450 if test "$no_create" != yes; then
22452 ac_config_status_args=
22453 test "$silent" = yes &&
22454 ac_config_status_args="$ac_config_status_args --quiet"
22456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22459 # would make configure fail if this is the last instruction.
22460 $ac_cs_success || { (exit 1); exit 1; }
22464 # CONFIG_SUBDIRS section.
22466 if test "$no_recursion" != yes; then
22468 # Remove --cache-file and --srcdir arguments so they do not pile up.
22469 ac_sub_configure_args=
22471 eval "set x $ac_configure_args"
22475 if test -n "$ac_prev"; then
22480 -cache-file | --cache-file | --cache-fil | --cache-fi \
22481 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22482 ac_prev=cache_file ;;
22483 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22484 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22487 --config-cache | -C)
22489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22493 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22495 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22499 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22501 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22505 # Always prepend --prefix to ensure using the same prefix
22506 # in subdir configurations.
22507 ac_arg="--prefix=$prefix"
22509 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22511 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22514 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22516 # Do not complain, so a configure script can configure whichever
22517 # parts of a large source tree are present.
22518 test -d "$srcdir/$ac_dir" || continue
22520 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22521 echo "$as_me:$LINENO: $ac_msg" >&5
22525 -*) as_dir=./$as_dir;;
22527 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22531 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22532 *) as_qdir=$as_dir;;
22534 as_dirs="'$as_qdir' $as_dirs"
22535 as_dir=`$as_dirname -- "$as_dir" ||
22536 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22537 X"$as_dir" : 'X\(//\)[^/]' \| \
22538 X"$as_dir" : 'X\(//\)$' \| \
22539 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22545 /^X\(\/\/\)[^/].*/{
22558 test -d "$as_dir" && break
22560 test -z "$as_dirs" || eval "mkdir $as_dirs"
22561 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22562 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22563 { (exit 1); exit 1; }; }; }
22567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22569 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22570 # A ".." for each directory in $ac_dir_suffix.
22571 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22572 case $ac_top_builddir_sub in
22573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22577 ac_abs_top_builddir=$ac_pwd
22578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22579 # for backward compatibility:
22580 ac_top_builddir=$ac_top_build_prefix
22583 .) # We are building in place.
22585 ac_top_srcdir=$ac_top_builddir_sub
22586 ac_abs_top_srcdir=$ac_pwd ;;
22587 [\\/]* | ?:[\\/]* ) # Absolute name.
22588 ac_srcdir=$srcdir$ac_dir_suffix;
22589 ac_top_srcdir=$srcdir
22590 ac_abs_top_srcdir=$srcdir ;;
22591 *) # Relative name.
22592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22593 ac_top_srcdir=$ac_top_build_prefix$srcdir
22594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22601 # Check for guested configure; otherwise get Cygnus style configure.
22602 if test -f "$ac_srcdir/configure.gnu"; then
22603 ac_sub_configure=$ac_srcdir/configure.gnu
22604 elif test -f "$ac_srcdir/configure"; then
22605 ac_sub_configure=$ac_srcdir/configure
22606 elif test -f "$ac_srcdir/configure.in"; then
22607 # This should be Cygnus configure.
22608 ac_sub_configure=$ac_aux_dir/configure
22610 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22611 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22615 # The recursion is here.
22616 if test -n "$ac_sub_configure"; then
22617 # Make the cache file name correct relative to the subdirectory.
22618 case $cache_file in
22619 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22620 *) # Relative name.
22621 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22624 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22625 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22626 # The eval makes quoting arguments work.
22627 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22628 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22629 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22630 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22631 { (exit 1); exit 1; }; }