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
689 ENABLE_EXPENSIVE_CHECKS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
767 NO_MISSING_FIELD_INITIALIZERS
788 ENABLE_VISIBILITY_INLINES_HIDDEN
794 ac_precious_vars='build_alias
805 ac_subdirs_all='projects/llvm-gcc
809 projects/llvm-poolalloc
812 projects/llvm-stacker
820 # Initialize some variables set by options.
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
832 program_transform_name=s,x,x,
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
906 cache_file=config.cache ;;
908 -datadir | --datadir | --datadi | --datad)
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
920 -disable-* | --disable-*)
921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 -enable-* | --enable-*)
940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
961 -help | --help | --hel | --he | -h)
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 sbindir=$ac_optarg ;;
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 sharedstatedir=$ac_optarg ;;
1108 -site | --site | --sit)
1110 -site=* | --site=* | --sit=*)
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
1155 # Obsolete; use --with-x.
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
1203 # Be sure to have absolute directory names.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1223 target=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1284 ac_srcdir_defaulted=no
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of llvm 3.1svn:";;
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-polly Use polly if available (default is YES)
1394 --enable-libcpp Use libc++ if available (default is NO)
1395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1399 --enable-expensive-checks
1400 Compile with expensive debug checks enabled (default
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
1406 --enable-jit Enable Just In Time Compiling (default is YES)
1407 --enable-docs Build documents (default is YES)
1408 --enable-doxygen Build doxygen documentation (default is NO)
1409 --enable-threads Use threads if available (default is YES)
1410 --enable-pthreads Use pthreads if available (default is YES)
1411 --enable-pic Build LLVM with Position Independent Code (default
1413 --enable-shared Build a shared library and link tools against it
1415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1416 Win32 DLL (default is NO)
1417 --enable-timestamps Enable embedding timestamp information in build
1419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
1421 x86_64, sparc, powerpc, arm, mips, spu, xcore,
1422 msp430, ptx, cbe, and cpp (default=all)
1423 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1425 --enable-bindings Build specific language bindings:
1426 all,auto,none,{binding-name} (default=auto)
1427 --enable-libffi Check for the presence of libffi (default is NO)
1428 --enable-ltdl-install install libltdl
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-optimize-option Select the compiler options to use for optimized
1435 --with-extra-options Specify additional options to compile LLVM with
1436 --with-extra-ld-options Specify additional options to link LLVM with
1437 --with-ocaml-libdir Specify install location for ocaml bindings (default
1439 --with-clang-srcdir Directory to the out-of-tree Clang source
1440 --with-clang-resource-dir
1441 Relative directory from the Clang binary for
1443 --with-c-include-dirs Colon separated list of directories clang will
1445 --with-cxx-include-root Directory with the libstdc++ headers.
1446 --with-cxx-include-arch Architecture of the libstdc++ headers.
1447 --with-cxx-include-32bit-dir
1448 32 bit multilib dir.
1449 --with-cxx-include-64bit-dir
1450 64 bit multilib directory.
1451 --with-binutils-include Specify path to binutils/include/ containing
1452 plugin-api.h file for gold plugin.
1453 --with-bug-report-url Specify the URL where bug reports should be
1454 submitted (default=http://llvm.org/bugs/)
1455 --with-internal-prefix Installation directory for internal files
1456 --with-tclinclude directory where tcl headers are
1457 --with-udis86=<path> Use udis86 external x86 disassembler library
1458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" || continue
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1503 .) # We are building in place.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 llvm configure 3.1svn
1537 generated by GNU Autoconf 2.60
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1544 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by llvm $as_me 3.1svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next=false
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next=true ;;
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1716 if test -n "$ac_subst_files"; then
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1723 for ac_var in $ac_subst_files
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1734 if test -s confdefs.h; then
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 for ac_signal in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1825 # Check that the precious variables saved in the cache have kept the same
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
1831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg=$ac_var=$ac_new_val ;;
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916 if test -f "$ac_dir/install-sh"; then
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 elif test -f "$ac_dir/install.sh"; then
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 elif test -f "$ac_dir/shtool"; then
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959 if test -n "$ac_tool_prefix"; then
1960 for ac_prog in clang llvm-gcc gcc
1962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 if test -n "$CC"; then
1991 { echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6; }
1994 { echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6; }
1999 test -n "$CC" && break
2002 if test -z "$CC"; then
2004 for ac_prog in clang llvm-gcc gcc
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$ac_ct_CC"; then
2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_ac_ct_CC="$ac_prog"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6; }
2038 { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2043 test -n "$ac_ct_CC" && break
2046 if test "x$ac_ct_CC" = x; then
2049 case $cross_compiling:$ac_tool_warned in
2051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet. If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&5
2054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055 whose name does not start with the host triplet. If you think this
2056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2057 ac_tool_warned=yes ;;
2064 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO: checking for C compiler version" >&5
2072 ac_compiler=`set X $ac_compile; echo $2`
2073 { (ac_try="$ac_compiler --version >&5"
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079 (eval "$ac_compiler --version >&5") 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083 { (ac_try="$ac_compiler -v >&5"
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_compiler -v >&5") 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093 { (ac_try="$ac_compiler -V >&5"
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler -V >&5") 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2104 cat >conftest.$ac_ext <<_ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2119 ac_clean_files_save=$ac_clean_files
2120 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2121 # Try to create an executable without -o first, disregard a.out.
2122 # It will help us diagnose broken compilers, and finding out an intuition
2124 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2125 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2126 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2128 # List of possible output files, starting from the most likely.
2129 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2130 # only as a last resort. b.out is created by i960 compilers.
2131 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2133 # The IRIX 6 linker writes into existing files which may not be
2134 # executable, retaining their permissions. Remove them first so a
2135 # subsequent execution test works.
2137 for ac_file in $ac_files
2140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2141 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2146 if { (ac_try="$ac_link_default"
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2152 (eval "$ac_link_default") 2>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
2156 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2158 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2159 # so that the user can short-circuit this test for compilers unknown to
2161 for ac_file in $ac_files
2163 test -f "$ac_file" || continue
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2168 # We found the default executable, but exeext='' is most
2172 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2174 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176 # We set ac_cv_exeext here because the later test for it is not
2177 # safe: cross compilers may not add the suffix if given an `-o'
2178 # argument, so we may need to know it at that point already.
2179 # Even if this section looks crufty: it has the advantage of
2186 test "$ac_cv_exeext" = no && ac_cv_exeext=
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2192 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: C compiler cannot create executables
2195 See \`config.log' for more details." >&2;}
2196 { (exit 77); exit 77; }; }
2199 ac_exeext=$ac_cv_exeext
2200 { echo "$as_me:$LINENO: result: $ac_file" >&5
2201 echo "${ECHO_T}$ac_file" >&6; }
2203 # Check that the compiler produces executables we can run. If not, either
2204 # the compiler is broken, or we cross compile.
2205 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2207 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208 # If not cross compiling, check that we can run a simple program.
2209 if test "$cross_compiling" != yes; then
2210 if { ac_try='./$ac_file'
2211 { (case "(($ac_try" in
2212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213 *) ac_try_echo=$ac_try;;
2215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216 (eval "$ac_try") 2>&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2222 if test "$cross_compiling" = maybe; then
2225 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&2;}
2231 { (exit 1); exit 1; }; }
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6; }
2238 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2239 ac_clean_files=$ac_clean_files_save
2240 # Check that the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2244 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245 echo "${ECHO_T}$cross_compiling" >&6; }
2247 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2249 if { (ac_try="$ac_link"
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_link") 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
2259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2261 # work properly (i.e., refer to `conftest.exe'), while it won't with
2263 for ac_file in conftest.exe conftest conftest.*; do
2264 test -f "$ac_file" || continue
2266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
2280 rm -f conftest$ac_cv_exeext
2281 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2284 rm -f conftest.$ac_ext
2285 EXEEXT=$ac_cv_exeext
2287 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2289 if test "${ac_cv_objext+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 cat >conftest.$ac_ext <<_ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 rm -f conftest.o conftest.obj
2308 if { (ac_try="$ac_compile"
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314 (eval "$ac_compile") 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
2318 for ac_file in conftest.o conftest.obj conftest.*; do
2319 test -f "$ac_file" || continue;
2321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2330 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2339 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340 echo "${ECHO_T}$ac_cv_objext" >&6; }
2341 OBJEXT=$ac_cv_objext
2343 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2345 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 cat >conftest.$ac_ext <<_ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2366 rm -f conftest.$ac_objext
2367 if { (ac_try="$ac_compile"
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compile") 2>conftest.er1
2375 grep -v '^ *+' conftest.er1 >conftest.err
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381 { (case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_try") 2>&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_try") 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2412 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2417 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_cc_g+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 ac_save_c_werror_flag=$ac_c_werror_flag
2423 ac_c_werror_flag=yes
2426 cat >conftest.$ac_ext <<_ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2441 rm -f conftest.$ac_objext
2442 if { (ac_try="$ac_compile"
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448 (eval "$ac_compile") 2>conftest.er1
2450 grep -v '^ *+' conftest.er1 >conftest.err
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2456 { (case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_try") 2>&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 rm -f conftest.$ac_objext
2497 if { (ac_try="$ac_compile"
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2505 grep -v '^ *+' conftest.er1 >conftest.err
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511 { (case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_try") 2>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; } &&
2520 { ac_try='test -s conftest.$ac_objext'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2532 echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2535 ac_c_werror_flag=$ac_save_c_werror_flag
2537 cat >conftest.$ac_ext <<_ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2552 rm -f conftest.$ac_objext
2553 if { (ac_try="$ac_compile"
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compile") 2>conftest.er1
2561 grep -v '^ *+' conftest.er1 >conftest.err
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 ac_c_werror_flag=$ac_save_c_werror_flag
2603 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2605 if test "$ac_test_CFLAGS" = set; then
2606 CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608 if test "$GCC" = yes; then
2614 if test "$GCC" = yes; then
2620 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2621 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_cc_c89+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 ac_cv_prog_cc_c89=no
2627 cat >conftest.$ac_ext <<_ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2635 #include <sys/types.h>
2636 #include <sys/stat.h>
2637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2638 struct buf { int x; };
2639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640 static char *e (p, i)
2646 static char *f (char * (*g) (char **, int), char **p, ...)
2651 s = g (p, va_arg (v,int));
2656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2657 function prototypes and stuff, but not '\xHH' hex character constants.
2658 These don't provoke an error unfortunately, instead are silently treated
2659 as 'x'. The following induces an error, until -std is added to get
2660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2661 array size at least. It's necessary to write '\x00'==0 to get something
2662 that's true only with -std. */
2663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2665 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2666 inside strings and character constants. */
2668 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2670 int test (int i, double x);
2671 struct s1 {int (*f) (int a);};
2672 struct s2 {int (*f) (double a);};
2673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2687 CC="$ac_save_CC $ac_arg"
2688 rm -f conftest.$ac_objext
2689 if { (ac_try="$ac_compile"
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compile") 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_try") 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_try") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 ac_cv_prog_cc_c89=$ac_arg
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2730 rm -f core conftest.err conftest.$ac_objext
2731 test "x$ac_cv_prog_cc_c89" != "xno" && break
2733 rm -f conftest.$ac_ext
2738 case "x$ac_cv_prog_cc_c89" in
2740 { echo "$as_me:$LINENO: result: none needed" >&5
2741 echo "${ECHO_T}none needed" >&6; } ;;
2743 { echo "$as_me:$LINENO: result: unsupported" >&5
2744 echo "${ECHO_T}unsupported" >&6; } ;;
2746 CC="$CC $ac_cv_prog_cc_c89"
2747 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2748 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759 ac_cpp='$CXXCPP $CPPFLAGS'
2760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2763 if test -z "$CXX"; then
2764 if test -n "$CCC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in clang++ llvm-g++ g++
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_CXX+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 if test -n "$CXX"; then
2778 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$CXX"; then
2799 { echo "$as_me:$LINENO: result: $CXX" >&5
2800 echo "${ECHO_T}$CXX" >&6; }
2802 { echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6; }
2807 test -n "$CXX" && break
2810 if test -z "$CXX"; then
2812 for ac_prog in clang++ llvm-g++ g++
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 if test -n "$ac_ct_CXX"; then
2822 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CXX="$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2842 if test -n "$ac_ct_CXX"; then
2843 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2844 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2846 { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2851 test -n "$ac_ct_CXX" && break
2854 if test "x$ac_ct_CXX" = x; then
2857 case $cross_compiling:$ac_tool_warned in
2859 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet. If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&5
2862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863 whose name does not start with the host triplet. If you think this
2864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865 ac_tool_warned=yes ;;
2873 # Provide some information about the compiler.
2874 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2875 ac_compiler=`set X $ac_compile; echo $2`
2876 { (ac_try="$ac_compiler --version >&5"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compiler --version >&5") 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886 { (ac_try="$ac_compiler -v >&5"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler -v >&5") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896 { (ac_try="$ac_compiler -V >&5"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler -V >&5") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2907 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2908 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2909 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 cat >conftest.$ac_ext <<_ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2945 { (case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_try") 2>&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2976 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2978 GXX=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CXXFLAGS=${CXXFLAGS+set}
2980 ac_save_CXXFLAGS=$CXXFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2982 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cxx_g+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2987 ac_cxx_werror_flag=yes
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_prog_cxx_g=yes
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3045 cat >conftest.$ac_ext <<_ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3069 grep -v '^ *+' conftest.er1 >conftest.err
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3125 grep -v '^ *+' conftest.er1 >conftest.err
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_prog_cxx_g=yes
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3167 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3168 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3169 if test "$ac_test_CXXFLAGS" = set; then
3170 CXXFLAGS=$ac_save_CXXFLAGS
3171 elif test $ac_cv_prog_cxx_g = yes; then
3172 if test "$GXX" = yes; then
3178 if test "$GXX" = yes; then
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3197 # On Suns, sometimes $CPP names a directory.
3198 if test -n "$CPP" && test -d "$CPP"; then
3201 if test -z "$CPP"; then
3202 if test "${ac_cv_prog_CPP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3209 for ac_c_preproc_warn_flag in '' yes
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error" is here to catch this case.
3217 cat >conftest.$ac_ext <<_ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3224 # include <limits.h>
3226 # include <assert.h>
3230 if { (ac_try="$ac_cpp conftest.$ac_ext"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null; then
3243 if test -s conftest.err; then
3244 ac_cpp_err=$ac_c_preproc_warn_flag
3245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252 if test -z "$ac_cpp_err"; then
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 # Broken: fails on valid input.
3262 rm -f conftest.err conftest.$ac_ext
3264 # OK, works on sane cases. Now check whether nonexistent headers
3265 # can be detected and how.
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3272 #include <ac_nonexistent.h>
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3296 if test -z "$ac_cpp_err"; then
3297 # Broken: success on invalid input.
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 # Passes both tests.
3308 rm -f conftest.err conftest.$ac_ext
3311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312 rm -f conftest.err conftest.$ac_ext
3313 if $ac_preproc_ok; then
3325 { echo "$as_me:$LINENO: result: $CPP" >&5
3326 echo "${ECHO_T}$CPP" >&6; }
3328 for ac_c_preproc_warn_flag in '' yes
3330 # Use a header file that comes with gcc, so configuring glibc
3331 # with a fresh cross-compiler works.
3332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333 # <limits.h> exists even on freestanding compilers.
3334 # On the NeXT, cc -E runs the code through the compiler's parser,
3335 # not just through cpp. "Syntax error" is here to catch this case.
3336 cat >conftest.$ac_ext <<_ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3343 # include <limits.h>
3345 # include <assert.h>
3349 if { (ac_try="$ac_cpp conftest.$ac_ext"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3357 grep -v '^ *+' conftest.er1 >conftest.err
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3371 if test -z "$ac_cpp_err"; then
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 # Broken: fails on valid input.
3381 rm -f conftest.err conftest.$ac_ext
3383 # OK, works on sane cases. Now check whether nonexistent headers
3384 # can be detected and how.
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 #include <ac_nonexistent.h>
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3415 if test -z "$ac_cpp_err"; then
3416 # Broken: success on invalid input.
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 # Passes both tests.
3427 rm -f conftest.err conftest.$ac_ext
3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431 rm -f conftest.err conftest.$ac_ext
3432 if $ac_preproc_ok; then
3435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&5
3437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438 See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 if test -d ${srcdir}/projects/llvm-gcc ; then
3452 subdirs="$subdirs projects/llvm-gcc"
3456 if test -d ${srcdir}/projects/test-suite ; then
3457 subdirs="$subdirs projects/test-suite"
3461 if test -d ${srcdir}/projects/llvm-test ; then
3462 subdirs="$subdirs projects/llvm-test"
3466 if test -d ${srcdir}/projects/poolalloc ; then
3467 subdirs="$subdirs projects/poolalloc"
3471 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3472 subdirs="$subdirs projects/llvm-poolalloc"
3476 for i in `ls ${srcdir}/projects`
3478 if test -d ${srcdir}/projects/${i} ; then
3480 sample) subdirs="$subdirs projects/sample"
3482 privbracket) subdirs="$subdirs projects/privbracket"
3484 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3486 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3488 llvm-java) subdirs="$subdirs projects/llvm-java"
3490 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3492 safecode) subdirs="$subdirs projects/safecode"
3494 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3503 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3504 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3510 # Check whether --enable-polly was given.
3511 if test "${enable_polly+set}" = set; then
3512 enableval=$enable_polly;
3517 case "$enableval" in
3522 default) ENABLE_POLLY=1
3524 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3525 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3526 { (exit 1); exit 1; }; } ;;
3530 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3533 subdirs="$subdirs tools/polly"
3538 # Make sure we can run config.sub.
3539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3540 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3541 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3542 { (exit 1); exit 1; }; }
3544 { echo "$as_me:$LINENO: checking build system type" >&5
3545 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3546 if test "${ac_cv_build+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 ac_build_alias=$build_alias
3550 test "x$ac_build_alias" = x &&
3551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3552 test "x$ac_build_alias" = x &&
3553 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3554 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3555 { (exit 1); exit 1; }; }
3556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3558 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3559 { (exit 1); exit 1; }; }
3562 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3563 echo "${ECHO_T}$ac_cv_build" >&6; }
3564 case $ac_cv_build in
3566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3567 echo "$as_me: error: invalid value of canonical build" >&2;}
3568 { (exit 1); exit 1; }; };;
3571 ac_save_IFS=$IFS; IFS='-'
3577 # Remember, the first character of IFS is used to create $*,
3578 # except with old shells:
3581 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3584 { echo "$as_me:$LINENO: checking host system type" >&5
3585 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3586 if test "${ac_cv_host+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 if test "x$host_alias" = x; then
3590 ac_cv_host=$ac_cv_build
3592 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3593 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3594 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3595 { (exit 1); exit 1; }; }
3599 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3600 echo "${ECHO_T}$ac_cv_host" >&6; }
3603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3604 echo "$as_me: error: invalid value of canonical host" >&2;}
3605 { (exit 1); exit 1; }; };;
3608 ac_save_IFS=$IFS; IFS='-'
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3618 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3621 { echo "$as_me:$LINENO: checking target system type" >&5
3622 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3623 if test "${ac_cv_target+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 if test "x$target_alias" = x; then
3627 ac_cv_target=$ac_cv_host
3629 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3630 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3631 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3632 { (exit 1); exit 1; }; }
3636 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3637 echo "${ECHO_T}$ac_cv_target" >&6; }
3638 case $ac_cv_target in
3640 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3641 echo "$as_me: error: invalid value of canonical target" >&2;}
3642 { (exit 1); exit 1; }; };;
3644 target=$ac_cv_target
3645 ac_save_IFS=$IFS; IFS='-'
3651 # Remember, the first character of IFS is used to create $*,
3652 # except with old shells:
3655 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3658 # The aliases save the names the user supplied, while $host etc.
3659 # will get canonicalized.
3660 test -n "$target_alias" &&
3661 test "$program_prefix$program_suffix$program_transform_name" = \
3663 program_prefix=${target_alias}-
3665 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3666 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3667 if test "${llvm_cv_os_type+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
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="AIX"
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="IRIX"
3680 llvm_cv_platform_type="Unix" ;;
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="Cygwin"
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="Darwin"
3690 llvm_cv_platform_type="Unix" ;;
3692 llvm_cv_link_all_option="-Wl,-all_load"
3693 llvm_cv_no_link_all_option="-Wl,-noall_load"
3694 llvm_cv_os_type="Minix"
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="FreeBSD"
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="OpenBSD"
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="NetBSD"
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="DragonFly"
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="HP-UX"
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="Interix"
3725 llvm_cv_platform_type="Unix" ;;
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="Linux"
3730 llvm_cv_platform_type="Unix" ;;
3732 llvm_cv_link_all_option="-Wl,-z,allextract"
3733 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3734 llvm_cv_os_type="SunOS"
3735 llvm_cv_platform_type="Unix" ;;
3737 llvm_cv_link_all_option="-Wl,-z,allextract"
3738 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3739 llvm_cv_os_type="AuroraUX"
3740 llvm_cv_platform_type="Unix" ;;
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="Win32"
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="MingW"
3750 llvm_cv_platform_type="Win32" ;;
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="Haiku"
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="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="Freestanding"
3765 llvm_cv_platform_type="Unix" ;;
3767 llvm_cv_link_all_option=""
3768 llvm_cv_no_link_all_option=""
3769 llvm_cv_os_type="Unknown"
3770 llvm_cv_platform_type="Unknown" ;;
3773 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3774 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3776 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3777 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3778 if test "${llvm_cv_target_os_type+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 llvm_cv_target_os_type="AIX" ;;
3785 llvm_cv_target_os_type="IRIX" ;;
3787 llvm_cv_target_os_type="Cygwin" ;;
3789 llvm_cv_target_os_type="Darwin" ;;
3791 llvm_cv_target_os_type="Minix" ;;
3793 llvm_cv_target_os_type="FreeBSD" ;;
3795 llvm_cv_target_os_type="OpenBSD" ;;
3797 llvm_cv_target_os_type="NetBSD" ;;
3799 llvm_cv_target_os_type="DragonFly" ;;
3801 llvm_cv_target_os_type="HP-UX" ;;
3803 llvm_cv_target_os_type="Interix" ;;
3805 llvm_cv_target_os_type="Linux" ;;
3807 llvm_cv_target_os_type="SunOS" ;;
3809 llvm_cv_target_os_type="AuroraUX" ;;
3811 llvm_cv_target_os_type="Win32" ;;
3813 llvm_cv_target_os_type="MingW" ;;
3815 llvm_cv_target_os_type="Haiku" ;;
3817 llvm_cv_target_os_type="RTEMS" ;;
3819 llvm_cv_target_os_type="NativeClient" ;;
3821 llvm_cv_target_os_type="Freestanding" ;;
3823 llvm_cv_target_os_type="Unknown" ;;
3826 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3827 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3829 if test "$llvm_cv_os_type" = "Unknown" ; then
3830 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3831 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3832 { (exit 1); exit 1; }; }
3837 HOST_OS=$llvm_cv_os_type
3839 TARGET_OS=$llvm_cv_target_os_type
3842 LINKALL=$llvm_cv_link_all_option
3844 NOLINKALL=$llvm_cv_no_link_all_option
3847 case $llvm_cv_platform_type in
3850 cat >>confdefs.h <<\_ACEOF
3851 #define LLVM_ON_UNIX 1
3861 cat >>confdefs.h <<\_ACEOF
3862 #define LLVM_ON_WIN32 1
3872 { echo "$as_me:$LINENO: checking target architecture" >&5
3873 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3874 if test "${llvm_cv_target_arch+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 i?86-*) llvm_cv_target_arch="x86" ;;
3879 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3880 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3881 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3882 arm*-*) llvm_cv_target_arch="ARM" ;;
3883 mips-*) llvm_cv_target_arch="Mips" ;;
3884 xcore-*) llvm_cv_target_arch="XCore" ;;
3885 msp430-*) llvm_cv_target_arch="MSP430" ;;
3886 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3887 ptx-*) llvm_cv_target_arch="PTX" ;;
3888 *) llvm_cv_target_arch="Unknown" ;;
3891 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3892 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3894 if test "$llvm_cv_target_arch" = "Unknown" ; then
3895 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3896 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3899 # Determine the LLVM native architecture for the target
3900 case "$llvm_cv_target_arch" in
3901 x86) LLVM_NATIVE_ARCH="X86" ;;
3902 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3903 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3906 ARCH=$llvm_cv_target_arch
3911 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3912 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3913 if test "${ac_cv_path_GREP+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 # Extract the first word of "grep ggrep" to use in msg output
3917 if test -z "$GREP"; then
3918 set dummy grep ggrep; ac_prog_name=$2
3919 if test "${ac_cv_path_GREP+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 ac_path_GREP_found=false
3923 # Loop through the user's path and test for each of PROGNAME-LIST
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3928 test -z "$as_dir" && as_dir=.
3929 for ac_prog in grep ggrep; do
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3932 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3933 # Check for GNU ac_path_GREP and select it if it is found.
3934 # Check for GNU $ac_path_GREP
3935 case `"$ac_path_GREP" --version 2>&1` in
3937 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3940 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3943 cat "conftest.in" "conftest.in" >"conftest.tmp"
3944 mv "conftest.tmp" "conftest.in"
3945 cp "conftest.in" "conftest.nl"
3946 echo 'GREP' >> "conftest.nl"
3947 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3949 ac_count=`expr $ac_count + 1`
3950 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3951 # Best one so far, save it but keep looking for a better one
3952 ac_cv_path_GREP="$ac_path_GREP"
3953 ac_path_GREP_max=$ac_count
3955 # 10*(2^10) chars as input seems more than enough
3956 test $ac_count -gt 10 && break
3958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3962 $ac_path_GREP_found && break 3
3972 GREP="$ac_cv_path_GREP"
3973 if test -z "$GREP"; then
3974 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3975 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3976 { (exit 1); exit 1; }; }
3980 ac_cv_path_GREP=$GREP
3985 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3986 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3987 GREP="$ac_cv_path_GREP"
3990 { echo "$as_me:$LINENO: checking for egrep" >&5
3991 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3992 if test "${ac_cv_path_EGREP+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3996 then ac_cv_path_EGREP="$GREP -E"
3998 # Extract the first word of "egrep" to use in msg output
3999 if test -z "$EGREP"; then
4000 set dummy egrep; ac_prog_name=$2
4001 if test "${ac_cv_path_EGREP+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 ac_path_EGREP_found=false
4005 # Loop through the user's path and test for each of PROGNAME-LIST
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4010 test -z "$as_dir" && as_dir=.
4011 for ac_prog in egrep; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4014 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4015 # Check for GNU ac_path_EGREP and select it if it is found.
4016 # Check for GNU $ac_path_EGREP
4017 case `"$ac_path_EGREP" --version 2>&1` in
4019 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4022 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4025 cat "conftest.in" "conftest.in" >"conftest.tmp"
4026 mv "conftest.tmp" "conftest.in"
4027 cp "conftest.in" "conftest.nl"
4028 echo 'EGREP' >> "conftest.nl"
4029 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031 ac_count=`expr $ac_count + 1`
4032 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4033 # Best one so far, save it but keep looking for a better one
4034 ac_cv_path_EGREP="$ac_path_EGREP"
4035 ac_path_EGREP_max=$ac_count
4037 # 10*(2^10) chars as input seems more than enough
4038 test $ac_count -gt 10 && break
4040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4044 $ac_path_EGREP_found && break 3
4054 EGREP="$ac_cv_path_EGREP"
4055 if test -z "$EGREP"; then
4056 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4057 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4058 { (exit 1); exit 1; }; }
4062 ac_cv_path_EGREP=$EGREP
4068 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4069 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4070 EGREP="$ac_cv_path_EGREP"
4073 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4074 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4075 if test "${ac_cv_header_stdc+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4097 rm -f conftest.$ac_objext
4098 if { (ac_try="$ac_compile"
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104 (eval "$ac_compile") 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4112 { (case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_try") 2>&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (case "(($ac_try" in
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4127 (eval "$ac_try") 2>&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 ac_cv_header_stdc=yes
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4136 ac_cv_header_stdc=no
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 if test $ac_cv_header_stdc = yes; then
4142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4143 cat >conftest.$ac_ext <<_ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4153 $EGREP "memchr" >/dev/null 2>&1; then
4156 ac_cv_header_stdc=no
4162 if test $ac_cv_header_stdc = yes; then
4163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174 $EGREP "free" >/dev/null 2>&1; then
4177 ac_cv_header_stdc=no
4183 if test $ac_cv_header_stdc = yes; then
4184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4185 if test "$cross_compiling" = yes; then
4188 cat >conftest.$ac_ext <<_ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4196 #if ((' ' & 0x0FF) == 0x020)
4197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4200 # define ISLOWER(c) \
4201 (('a' <= (c) && (c) <= 'i') \
4202 || ('j' <= (c) && (c) <= 'r') \
4203 || ('s' <= (c) && (c) <= 'z'))
4204 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4207 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4212 for (i = 0; i < 256; i++)
4213 if (XOR (islower (i), ISLOWER (i))
4214 || toupper (i) != TOUPPER (i))
4219 rm -f conftest$ac_exeext
4220 if { (ac_try="$ac_link"
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_link") 2>&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4230 { (case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_try") 2>&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4241 echo "$as_me: program exited with status $ac_status" >&5
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4246 ac_cv_header_stdc=no
4248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4254 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4255 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4256 if test $ac_cv_header_stdc = yes; then
4258 cat >>confdefs.h <<\_ACEOF
4259 #define STDC_HEADERS 1
4264 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4274 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4275 inttypes.h stdint.h unistd.h
4277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 cat >conftest.$ac_ext <<_ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4289 $ac_includes_default
4291 #include <$ac_header>
4293 rm -f conftest.$ac_objext
4294 if { (ac_try="$ac_compile"
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_compile") 2>conftest.er1
4302 grep -v '^ *+' conftest.er1 >conftest.err
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } &&
4307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4308 { (case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_try") 2>&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; } &&
4317 { ac_try='test -s conftest.$ac_objext'
4318 { (case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_try") 2>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 eval "$as_ac_Header=yes"
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4332 eval "$as_ac_Header=no"
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 ac_res=`eval echo '${'$as_ac_Header'}'`
4338 { echo "$as_me:$LINENO: result: $ac_res" >&5
4339 echo "${ECHO_T}$ac_res" >&6; }
4340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4341 cat >>confdefs.h <<_ACEOF
4342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4350 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4351 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4352 if test "${ac_cv_c_bigendian+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 # See if sys/param.h defines the BYTE_ORDER macro.
4356 cat >conftest.$ac_ext <<_ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 #include <sys/types.h>
4363 #include <sys/param.h>
4368 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4376 rm -f conftest.$ac_objext
4377 if { (ac_try="$ac_compile"
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4385 grep -v '^ *+' conftest.er1 >conftest.err
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } &&
4390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4391 { (case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_try") 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_try") 2>&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 # It does; now see whether it defined to BIG_ENDIAN or not.
4411 cat >conftest.$ac_ext <<_ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4417 #include <sys/types.h>
4418 #include <sys/param.h>
4423 #if BYTE_ORDER != BIG_ENDIAN
4431 rm -f conftest.$ac_objext
4432 if { (ac_try="$ac_compile"
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4438 (eval "$ac_compile") 2>conftest.er1
4440 grep -v '^ *+' conftest.er1 >conftest.err
4442 cat conftest.err >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } &&
4445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4446 { (case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451 (eval "$ac_try") 2>&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; } &&
4455 { ac_try='test -s conftest.$ac_objext'
4456 { (case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_try") 2>&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 ac_cv_c_bigendian=yes
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 ac_cv_c_bigendian=no
4473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 # It does not; compile a test program.
4479 if test "$cross_compiling" = yes; then
4480 # try to guess the endianness by grepping values into an object file
4481 ac_cv_c_bigendian=unknown
4482 cat >conftest.$ac_ext <<_ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4489 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4490 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4491 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4492 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4493 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4497 _ascii (); _ebcdic ();
4502 rm -f conftest.$ac_objext
4503 if { (ac_try="$ac_compile"
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_compile") 2>conftest.er1
4511 grep -v '^ *+' conftest.er1 >conftest.err
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4517 { (case "(($ac_try" in
4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4522 (eval "$ac_try") 2>&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; } &&
4526 { ac_try='test -s conftest.$ac_objext'
4527 { (case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4532 (eval "$ac_try") 2>&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4537 ac_cv_c_bigendian=yes
4539 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4540 if test "$ac_cv_c_bigendian" = unknown; then
4541 ac_cv_c_bigendian=no
4543 # finding both strings is unlikely to happen, but who knows?
4544 ac_cv_c_bigendian=unknown
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 cat >conftest.$ac_ext <<_ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4562 $ac_includes_default
4567 /* Are we little or big endian? From Harbison&Steele. */
4571 char c[sizeof (long int)];
4574 return u.c[sizeof (long int) - 1] == 1;
4580 rm -f conftest$ac_exeext
4581 if { (ac_try="$ac_link"
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587 (eval "$ac_link") 2>&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4591 { (case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_try") 2>&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 ac_cv_c_bigendian=no
4602 echo "$as_me: program exited with status $ac_status" >&5
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4607 ac_cv_c_bigendian=yes
4609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4618 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4619 case $ac_cv_c_bigendian in
4627 { { echo "$as_me:$LINENO: error: unknown endianness
4628 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4629 echo "$as_me: error: unknown endianness
4630 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4631 { (exit 1); exit 1; }; } ;;
4635 if test "$cross_compiling" = yes; then
4636 LLVM_CROSS_COMPILING=1
4639 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4640 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4641 if test "${ac_cv_build_exeext+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4645 ac_cv_build_exeext=.exe
4647 ac_build_prefix=${build_alias}-
4649 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4650 set dummy ${ac_build_prefix}gcc; ac_word=$2
4651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 if test -n "$BUILD_CC"; then
4657 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4666 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 BUILD_CC=$ac_cv_prog_BUILD_CC
4677 if test -n "$BUILD_CC"; then
4678 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4679 echo "${ECHO_T}$BUILD_CC" >&6; }
4681 { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4686 if test -z "$BUILD_CC"; then
4687 # Extract the first word of "gcc", so it can be a program name with args.
4688 set dummy gcc; ac_word=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 if test -n "$BUILD_CC"; then
4695 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_BUILD_CC="gcc"
4705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 BUILD_CC=$ac_cv_prog_BUILD_CC
4715 if test -n "$BUILD_CC"; then
4716 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4717 echo "${ECHO_T}$BUILD_CC" >&6; }
4719 { echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6; }
4724 if test -z "$BUILD_CC"; then
4725 # Extract the first word of "cc", so it can be a program name with args.
4726 set dummy cc; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 if test -n "$BUILD_CC"; then
4733 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4744 ac_prog_rejected=yes
4747 ac_cv_prog_BUILD_CC="cc"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 if test $ac_prog_rejected = yes; then
4756 # We found a bogon in the path, so make sure we never use it.
4757 set dummy $ac_cv_prog_BUILD_CC
4759 if test $# != 0; then
4760 # We chose a different compiler from the bogus one.
4761 # However, it has the same basename, so the bogon will be chosen
4762 # first if we set BUILD_CC to just the basename; use the full file name.
4764 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4769 BUILD_CC=$ac_cv_prog_BUILD_CC
4770 if test -n "$BUILD_CC"; then
4771 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4772 echo "${ECHO_T}$BUILD_CC" >&6; }
4774 { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4781 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4782 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4783 { (exit 1); exit 1; }; }
4784 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4786 echo 'int main () { return 0; }' > conftest.$ac_ext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4789 (eval $ac_build_link) 2>&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; then
4793 for file in conftest.*; do
4795 *.c | *.o | *.obj | *.dSYM) ;;
4796 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4800 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4801 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4802 { (exit 1); exit 1; }; }
4805 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4810 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4811 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4812 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4813 ac_build_exeext=$BUILD_EXEEXT
4815 ac_build_prefix=${build_alias}-
4816 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4817 set dummy ${ac_build_prefix}g++; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 if test -n "$BUILD_CXX"; then
4824 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4844 if test -n "$BUILD_CXX"; then
4845 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4846 echo "${ECHO_T}$BUILD_CXX" >&6; }
4848 { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4853 if test -z "$BUILD_CXX"; then
4854 # Extract the first word of "g++", so it can be a program name with args.
4855 set dummy g++; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 if test -n "$BUILD_CXX"; then
4862 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_BUILD_CXX="g++"
4872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4882 if test -n "$BUILD_CXX"; then
4883 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4884 echo "${ECHO_T}$BUILD_CXX" >&6; }
4886 { echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6; }
4891 if test -z "$BUILD_CXX"; then
4892 # Extract the first word of "c++", so it can be a program name with args.
4893 set dummy c++; ac_word=$2
4894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4896 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 if test -n "$BUILD_CXX"; then
4900 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4911 ac_prog_rejected=yes
4914 ac_cv_prog_BUILD_CXX="c++"
4915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 if test $ac_prog_rejected = yes; then
4923 # We found a bogon in the path, so make sure we never use it.
4924 set dummy $ac_cv_prog_BUILD_CXX
4926 if test $# != 0; then
4927 # We chose a different compiler from the bogus one.
4928 # However, it has the same basename, so the bogon will be chosen
4929 # first if we set BUILD_CXX to just the basename; use the full file name.
4931 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4936 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4937 if test -n "$BUILD_CXX"; then
4938 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4939 echo "${ECHO_T}$BUILD_CXX" >&6; }
4941 { echo "$as_me:$LINENO: result: no" >&5
4942 echo "${ECHO_T}no" >&6; }
4949 LLVM_CROSS_COMPILING=0
4953 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4964 # Check whether --enable-libcpp was given.
4965 if test "${enable_libcpp+set}" = set; then
4966 enableval=$enable_libcpp;
4971 case "$enableval" in
4972 yes) ENABLE_LIBCPP=1
4976 default) ENABLE_LIBCPP=0
4978 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4979 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4980 { (exit 1); exit 1; }; } ;;
4983 # Check whether --enable-optimized was given.
4984 if test "${enable_optimized+set}" = set; then
4985 enableval=$enable_optimized;
4990 if test ${enableval} = "no" ; then
4994 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4998 # Check whether --enable-profiling was given.
4999 if test "${enable_profiling+set}" = set; then
5000 enableval=$enable_profiling;
5005 if test ${enableval} = "no" ; then
5009 ENABLE_PROFILING=ENABLE_PROFILING=1
5013 # Check whether --enable-assertions was given.
5014 if test "${enable_assertions+set}" = set; then
5015 enableval=$enable_assertions;
5020 if test ${enableval} = "yes" ; then
5024 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5028 # Check whether --enable-expensive-checks was given.
5029 if test "${enable_expensive_checks+set}" = set; then
5030 enableval=$enable_expensive_checks;
5035 if test ${enableval} = "yes" ; then
5036 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5038 EXPENSIVE_CHECKS=yes
5041 ENABLE_EXPENSIVE_CHECKS=
5047 # Check whether --enable-debug-runtime was given.
5048 if test "${enable_debug_runtime+set}" = set; then
5049 enableval=$enable_debug_runtime;
5054 if test ${enableval} = "no" ; then
5058 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5062 # Check whether --enable-debug-symbols was given.
5063 if test "${enable_debug_symbols+set}" = set; then
5064 enableval=$enable_debug_symbols;
5069 if test ${enableval} = "no" ; then
5073 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5077 # Check whether --enable-jit was given.
5078 if test "${enable_jit+set}" = set; then
5079 enableval=$enable_jit;
5084 if test ${enableval} = "no"
5089 case "$llvm_cv_target_arch" in
5090 x86) TARGET_HAS_JIT=1
5092 Sparc) TARGET_HAS_JIT=0
5094 PowerPC) TARGET_HAS_JIT=1
5096 x86_64) TARGET_HAS_JIT=1
5098 ARM) TARGET_HAS_JIT=1
5100 Mips) TARGET_HAS_JIT=1
5102 XCore) TARGET_HAS_JIT=0
5104 MSP430) TARGET_HAS_JIT=0
5106 MBlaze) TARGET_HAS_JIT=0
5108 PTX) TARGET_HAS_JIT=0
5115 # Check whether --enable-docs was given.
5116 if test "${enable_docs+set}" = set; then
5117 enableval=$enable_docs;
5122 case "$enableval" in
5127 default) ENABLE_DOCS=1
5129 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5130 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5131 { (exit 1); exit 1; }; } ;;
5134 # Check whether --enable-doxygen was given.
5135 if test "${enable_doxygen+set}" = set; then
5136 enableval=$enable_doxygen;
5141 case "$enableval" in
5142 yes) ENABLE_DOXYGEN=1
5144 no) ENABLE_DOXYGEN=0
5146 default) ENABLE_DOXYGEN=0
5148 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5149 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5150 { (exit 1); exit 1; }; } ;;
5153 # Check whether --enable-threads was given.
5154 if test "${enable_threads+set}" = set; then
5155 enableval=$enable_threads;
5160 case "$enableval" in
5161 yes) LLVM_ENABLE_THREADS=1
5163 no) LLVM_ENABLE_THREADS=0
5165 default) LLVM_ENABLE_THREADS=1
5167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5168 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5169 { (exit 1); exit 1; }; } ;;
5172 cat >>confdefs.h <<_ACEOF
5173 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5177 # Check whether --enable-pthreads was given.
5178 if test "${enable_pthreads+set}" = set; then
5179 enableval=$enable_pthreads;
5184 case "$enableval" in
5185 yes) ENABLE_PTHREADS=1
5187 no) ENABLE_PTHREADS=0
5189 default) ENABLE_PTHREADS=1
5191 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5192 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5193 { (exit 1); exit 1; }; } ;;
5196 # Check whether --enable-pic was given.
5197 if test "${enable_pic+set}" = set; then
5198 enableval=$enable_pic;
5203 case "$enableval" in
5208 default) ENABLE_PIC=1
5210 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5211 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5212 { (exit 1); exit 1; }; } ;;
5215 cat >>confdefs.h <<_ACEOF
5216 #define ENABLE_PIC $ENABLE_PIC
5220 # Check whether --enable-shared was given.
5221 if test "${enable_shared+set}" = set; then
5222 enableval=$enable_shared;
5227 case "$enableval" in
5228 yes) ENABLE_SHARED=1
5232 default) ENABLE_SHARED=0
5234 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5235 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5236 { (exit 1); exit 1; }; } ;;
5239 # Check whether --enable-embed-stdcxx was given.
5240 if test "${enable_embed_stdcxx+set}" = set; then
5241 enableval=$enable_embed_stdcxx;
5246 case "$enableval" in
5247 yes) ENABLE_EMBED_STDCXX=1
5249 no) ENABLE_EMBED_STDCXX=0
5251 default) ENABLE_EMBED_STDCXX=0
5253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
5258 # Check whether --enable-timestamps was given.
5259 if test "${enable_timestamps+set}" = set; then
5260 enableval=$enable_timestamps;
5265 case "$enableval" in
5266 yes) ENABLE_TIMESTAMPS=1
5268 no) ENABLE_TIMESTAMPS=0
5270 default) ENABLE_TIMESTAMPS=1
5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5277 cat >>confdefs.h <<_ACEOF
5278 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5283 # Check whether --enable-targets was given.
5284 if test "${enable_targets+set}" = set; then
5285 enableval=$enable_targets;
5290 if test "$enableval" = host-only ; then
5293 case "$enableval" in
5294 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5295 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5297 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5298 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5299 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5300 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5301 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5302 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5303 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5304 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5305 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5306 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5307 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5308 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5309 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5310 host) case "$llvm_cv_target_arch" in
5311 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5312 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5313 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5314 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5315 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5316 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5317 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5318 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5319 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5320 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5321 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5322 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5323 echo "$as_me: error: Can not set target to build" >&2;}
5324 { (exit 1); exit 1; }; } ;;
5326 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5327 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5328 { (exit 1); exit 1; }; } ;;
5333 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5336 # Determine whether we are building LLVM support for the native architecture.
5337 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5338 for a_target in $TARGETS_TO_BUILD; do
5339 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5341 cat >>confdefs.h <<_ACEOF
5342 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5345 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5346 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5347 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5348 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5349 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5350 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5353 cat >>confdefs.h <<_ACEOF
5354 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5358 cat >>confdefs.h <<_ACEOF
5359 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5363 cat >>confdefs.h <<_ACEOF
5364 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5368 cat >>confdefs.h <<_ACEOF
5369 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5372 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5374 cat >>confdefs.h <<_ACEOF
5375 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5382 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5383 # target feature def files.
5384 LLVM_ENUM_TARGETS=""
5385 LLVM_ENUM_ASM_PRINTERS=""
5386 LLVM_ENUM_ASM_PARSERS=""
5387 LLVM_ENUM_DISASSEMBLERS=""
5388 for target_to_build in $TARGETS_TO_BUILD; do
5389 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5390 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5391 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5393 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5394 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5396 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5397 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5405 # Check whether --enable-cbe-printf-a was given.
5406 if test "${enable_cbe_printf_a+set}" = set; then
5407 enableval=$enable_cbe_printf_a;
5412 case "$enableval" in
5413 yes) ENABLE_CBE_PRINTF_A=1
5415 no) ENABLE_CBE_PRINTF_A=0
5417 default) ENABLE_CBE_PRINTF_A=1
5419 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5420 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5421 { (exit 1); exit 1; }; } ;;
5424 cat >>confdefs.h <<_ACEOF
5425 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5430 # Check whether --with-optimize-option was given.
5431 if test "${with_optimize_option+set}" = set; then
5432 withval=$with_optimize_option;
5437 { echo "$as_me:$LINENO: checking optimization flags" >&5
5438 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5441 case "$llvm_cv_os_type" in
5442 FreeBSD) optimize_option=-O2 ;;
5443 MingW) optimize_option=-O2 ;;
5444 *) optimize_option=-O3 ;;
5446 *) optimize_option="$withval" ;;
5448 OPTIMIZE_OPTION=$optimize_option
5450 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5451 echo "${ECHO_T}$optimize_option" >&6; }
5454 # Check whether --with-extra-options was given.
5455 if test "${with_extra_options+set}" = set; then
5456 withval=$with_extra_options;
5462 default) EXTRA_OPTIONS= ;;
5463 *) EXTRA_OPTIONS=$withval ;;
5465 EXTRA_OPTIONS=$EXTRA_OPTIONS
5469 # Check whether --with-extra-ld-options was given.
5470 if test "${with_extra_ld_options+set}" = set; then
5471 withval=$with_extra_ld_options;
5477 default) EXTRA_LD_OPTIONS= ;;
5478 *) EXTRA_LD_OPTIONS=$withval ;;
5480 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5483 # Check whether --enable-bindings was given.
5484 if test "${enable_bindings+set}" = set; then
5485 enableval=$enable_bindings;
5490 BINDINGS_TO_BUILD=""
5491 case "$enableval" in
5492 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5493 all ) BINDINGS_TO_BUILD="ocaml" ;;
5494 none | no) BINDINGS_TO_BUILD="" ;;
5495 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5496 case "$a_binding" in
5497 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5498 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5499 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5500 { (exit 1); exit 1; }; } ;;
5507 # Check whether --with-ocaml-libdir was given.
5508 if test "${with_ocaml_libdir+set}" = set; then
5509 withval=$with_ocaml_libdir;
5515 auto) with_ocaml_libdir="$withval" ;;
5516 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5517 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5518 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5519 { (exit 1); exit 1; }; } ;;
5523 # Check whether --with-clang-srcdir was given.
5524 if test "${with_clang_srcdir+set}" = set; then
5525 withval=$with_clang_srcdir;
5531 -) clang_src_root="" ;;
5532 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5533 *) clang_src_root="$ac_pwd/$withval" ;;
5535 CLANG_SRC_ROOT=$clang_src_root
5539 # Check whether --with-clang-resource-dir was given.
5540 if test "${with_clang_resource_dir+set}" = set; then
5541 withval=$with_clang_resource_dir;
5547 cat >>confdefs.h <<_ACEOF
5548 #define CLANG_RESOURCE_DIR "$withval"
5553 # Check whether --with-c-include-dirs was given.
5554 if test "${with_c_include_dirs+set}" = set; then
5555 withval=$with_c_include_dirs;
5561 cat >>confdefs.h <<_ACEOF
5562 #define C_INCLUDE_DIRS "$withval"
5567 # Check whether --with-cxx-include-root was given.
5568 if test "${with_cxx_include_root+set}" = set; then
5569 withval=$with_cxx_include_root;
5575 cat >>confdefs.h <<_ACEOF
5576 #define CXX_INCLUDE_ROOT "$withval"
5581 # Check whether --with-cxx-include-arch was given.
5582 if test "${with_cxx_include_arch+set}" = set; then
5583 withval=$with_cxx_include_arch;
5589 cat >>confdefs.h <<_ACEOF
5590 #define CXX_INCLUDE_ARCH "$withval"
5595 # Check whether --with-cxx-include-32bit-dir was given.
5596 if test "${with_cxx_include_32bit_dir+set}" = set; then
5597 withval=$with_cxx_include_32bit_dir;
5603 cat >>confdefs.h <<_ACEOF
5604 #define CXX_INCLUDE_32BIT_DIR "$withval"
5609 # Check whether --with-cxx-include-64bit-dir was given.
5610 if test "${with_cxx_include_64bit_dir+set}" = set; then
5611 withval=$with_cxx_include_64bit_dir;
5617 cat >>confdefs.h <<_ACEOF
5618 #define CXX_INCLUDE_64BIT_DIR "$withval"
5623 # Check whether --with-binutils-include was given.
5624 if test "${with_binutils_include+set}" = set; then
5625 withval=$with_binutils_include;
5631 default) WITH_BINUTILS_INCDIR=default ;;
5632 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5633 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5634 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5635 { (exit 1); exit 1; }; } ;;
5637 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5638 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5640 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5641 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5642 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5643 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5644 { (exit 1); exit 1; }; };
5649 # Check whether --with-bug-report-url was given.
5650 if test "${with_bug_report_url+set}" = set; then
5651 withval=$with_bug_report_url;
5653 withval="http://llvm.org/bugs/"
5657 cat >>confdefs.h <<_ACEOF
5658 #define BUG_REPORT_URL "$withval"
5662 # Check whether --enable-libffi was given.
5663 if test "${enable_libffi+set}" = set; then
5664 enableval=$enable_libffi; case "$enableval" in
5665 yes) llvm_cv_enable_libffi="yes" ;;
5666 no) llvm_cv_enable_libffi="no" ;;
5667 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5668 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5669 { (exit 1); exit 1; }; } ;;
5672 llvm_cv_enable_libffi=no
5677 # Check whether --with-internal-prefix was given.
5678 if test "${with_internal_prefix+set}" = set; then
5679 withval=$with_internal_prefix;
5684 INTERNAL_PREFIX=$withval
5688 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5689 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5690 if test "${lt_cv_path_NM+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 if test -n "$NM"; then
5694 # Let the user override the test.
5697 lt_nm_to_check="${ac_tool_prefix}nm"
5698 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5699 lt_nm_to_check="$lt_nm_to_check nm"
5701 for lt_tmp_nm in $lt_nm_to_check; do
5702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5703 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5705 test -z "$ac_dir" && ac_dir=.
5706 tmp_nm="$ac_dir/$lt_tmp_nm"
5707 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5708 # Check to see if the nm accepts a BSD-compat flag.
5709 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5710 # nm: unknown option "B" ignored
5711 # Tru64's nm complains that /dev/null is an invalid object file
5712 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5713 */dev/null* | *'Invalid file or object type'*)
5714 lt_cv_path_NM="$tmp_nm -B"
5718 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5720 lt_cv_path_NM="$tmp_nm -p"
5724 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5725 continue # so that we can try to find one that supports BSD flags
5734 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5737 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5738 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5743 { echo "$as_me:$LINENO: checking for GNU make" >&5
5744 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5745 if test "${llvm_cv_gnu_make_command+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 llvm_cv_gnu_make_command=''
5749 for a in "$MAKE" make gmake gnumake ; do
5750 if test -z "$a" ; then continue ; fi ;
5751 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5753 llvm_cv_gnu_make_command=$a ;
5758 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5759 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5760 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5764 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5765 echo "${ECHO_T}\"Not found\"" >&6; };
5769 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5770 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5772 if test "$LN_S" = "ln -s"; then
5773 { echo "$as_me:$LINENO: result: yes" >&5
5774 echo "${ECHO_T}yes" >&6; }
5776 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5777 echo "${ECHO_T}no, using $LN_S" >&6; }
5780 # Extract the first word of "cmp", so it can be a program name with args.
5781 set dummy cmp; ac_word=$2
5782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5784 if test "${ac_cv_path_CMP+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5799 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5812 if test -n "$CMP"; then
5813 { echo "$as_me:$LINENO: result: $CMP" >&5
5814 echo "${ECHO_T}$CMP" >&6; }
5816 { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5821 # Extract the first word of "cp", so it can be a program name with args.
5822 set dummy cp; ac_word=$2
5823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5825 if test "${ac_cv_path_CP+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5840 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5853 if test -n "$CP"; then
5854 { echo "$as_me:$LINENO: result: $CP" >&5
5855 echo "${ECHO_T}$CP" >&6; }
5857 { echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6; }
5862 # Extract the first word of "date", so it can be a program name with args.
5863 set dummy date; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_path_DATE+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5893 DATE=$ac_cv_path_DATE
5894 if test -n "$DATE"; then
5895 { echo "$as_me:$LINENO: result: $DATE" >&5
5896 echo "${ECHO_T}$DATE" >&6; }
5898 { echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6; }
5903 # Extract the first word of "find", so it can be a program name with args.
5904 set dummy find; ac_word=$2
5905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907 if test "${ac_cv_path_FIND+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5922 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5934 FIND=$ac_cv_path_FIND
5935 if test -n "$FIND"; then
5936 { echo "$as_me:$LINENO: result: $FIND" >&5
5937 echo "${ECHO_T}$FIND" >&6; }
5939 { echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6; }
5944 # Extract the first word of "grep", so it can be a program name with args.
5945 set dummy grep; ac_word=$2
5946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5948 if test "${ac_cv_path_GREP+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5963 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5975 GREP=$ac_cv_path_GREP
5976 if test -n "$GREP"; then
5977 { echo "$as_me:$LINENO: result: $GREP" >&5
5978 echo "${ECHO_T}$GREP" >&6; }
5980 { echo "$as_me:$LINENO: result: no" >&5
5981 echo "${ECHO_T}no" >&6; }
5985 # Extract the first word of "mkdir", so it can be a program name with args.
5986 set dummy mkdir; ac_word=$2
5987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5989 if test "${ac_cv_path_MKDIR+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6016 MKDIR=$ac_cv_path_MKDIR
6017 if test -n "$MKDIR"; then
6018 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6019 echo "${ECHO_T}$MKDIR" >&6; }
6021 { echo "$as_me:$LINENO: result: no" >&5
6022 echo "${ECHO_T}no" >&6; }
6026 # Extract the first word of "mv", so it can be a program name with args.
6027 set dummy mv; ac_word=$2
6028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6030 if test "${ac_cv_path_MV+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6058 if test -n "$MV"; then
6059 { echo "$as_me:$LINENO: result: $MV" >&5
6060 echo "${ECHO_T}$MV" >&6; }
6062 { echo "$as_me:$LINENO: result: no" >&5
6063 echo "${ECHO_T}no" >&6; }
6067 if test -n "$ac_tool_prefix"; then
6068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6069 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6072 if test "${ac_cv_prog_RANLIB+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 if test -n "$RANLIB"; then
6076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 RANLIB=$ac_cv_prog_RANLIB
6096 if test -n "$RANLIB"; then
6097 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6098 echo "${ECHO_T}$RANLIB" >&6; }
6100 { echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6; }
6106 if test -z "$ac_cv_prog_RANLIB"; then
6107 ac_ct_RANLIB=$RANLIB
6108 # Extract the first word of "ranlib", so it can be a program name with args.
6109 set dummy ranlib; ac_word=$2
6110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6112 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 if test -n "$ac_ct_RANLIB"; then
6116 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_ac_ct_RANLIB="ranlib"
6126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6136 if test -n "$ac_ct_RANLIB"; then
6137 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6138 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6140 { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6144 if test "x$ac_ct_RANLIB" = x; then
6147 case $cross_compiling:$ac_tool_warned in
6149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6150 whose name does not start with the host triplet. If you think this
6151 configuration is useful to you, please write to autoconf@gnu.org." >&5
6152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6153 whose name does not start with the host triplet. If you think this
6154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6155 ac_tool_warned=yes ;;
6157 RANLIB=$ac_ct_RANLIB
6160 RANLIB="$ac_cv_prog_RANLIB"
6163 if test -n "$ac_tool_prefix"; then
6164 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6165 set dummy ${ac_tool_prefix}ar; ac_word=$2
6166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6168 if test "${ac_cv_prog_AR+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 if test -n "$AR"; then
6172 ac_cv_prog_AR="$AR" # Let the user override the test.
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_AR="${ac_tool_prefix}ar"
6182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 if test -n "$AR"; then
6193 { echo "$as_me:$LINENO: result: $AR" >&5
6194 echo "${ECHO_T}$AR" >&6; }
6196 { echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6; }
6202 if test -z "$ac_cv_prog_AR"; then
6204 # Extract the first word of "ar", so it can be a program name with args.
6205 set dummy ar; ac_word=$2
6206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6208 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 if test -n "$ac_ct_AR"; then
6212 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_ac_ct_AR="ar"
6222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6232 if test -n "$ac_ct_AR"; then
6233 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6234 echo "${ECHO_T}$ac_ct_AR" >&6; }
6236 { echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6; }
6240 if test "x$ac_ct_AR" = x; then
6243 case $cross_compiling:$ac_tool_warned in
6245 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6246 whose name does not start with the host triplet. If you think this
6247 configuration is useful to you, please write to autoconf@gnu.org." >&5
6248 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6249 whose name does not start with the host triplet. If you think this
6250 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6251 ac_tool_warned=yes ;;
6259 # Extract the first word of "rm", so it can be a program name with args.
6260 set dummy rm; ac_word=$2
6261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6263 if test "${ac_cv_path_RM+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6291 if test -n "$RM"; then
6292 { echo "$as_me:$LINENO: result: $RM" >&5
6293 echo "${ECHO_T}$RM" >&6; }
6295 { echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6; }
6300 # Extract the first word of "sed", so it can be a program name with args.
6301 set dummy sed; ac_word=$2
6302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6304 if test "${ac_cv_path_SED+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6332 if test -n "$SED"; then
6333 { echo "$as_me:$LINENO: result: $SED" >&5
6334 echo "${ECHO_T}$SED" >&6; }
6336 { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6341 # Extract the first word of "tar", so it can be a program name with args.
6342 set dummy tar; ac_word=$2
6343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6345 if test "${ac_cv_path_TAR+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6360 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6373 if test -n "$TAR"; then
6374 { echo "$as_me:$LINENO: result: $TAR" >&5
6375 echo "${ECHO_T}$TAR" >&6; }
6377 { echo "$as_me:$LINENO: result: no" >&5
6378 echo "${ECHO_T}no" >&6; }
6382 # Extract the first word of "pwd", so it can be a program name with args.
6383 set dummy pwd; ac_word=$2
6384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386 if test "${ac_cv_path_BINPWD+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6413 BINPWD=$ac_cv_path_BINPWD
6414 if test -n "$BINPWD"; then
6415 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6416 echo "${ECHO_T}$BINPWD" >&6; }
6418 { echo "$as_me:$LINENO: result: no" >&5
6419 echo "${ECHO_T}no" >&6; }
6424 # Extract the first word of "Graphviz", so it can be a program name with args.
6425 set dummy Graphviz; ac_word=$2
6426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6428 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6443 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6455 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6456 if test -n "$GRAPHVIZ"; then
6457 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6458 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6460 { echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6; }
6465 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6467 cat >>confdefs.h <<\_ACEOF
6468 #define HAVE_GRAPHVIZ 1
6471 if test "$llvm_cv_os_type" = "MingW" ; then
6472 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6475 cat >>confdefs.h <<_ACEOF
6476 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6480 # Extract the first word of "dot", so it can be a program name with args.
6481 set dummy dot; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_path_DOT+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6512 if test -n "$DOT"; then
6513 { echo "$as_me:$LINENO: result: $DOT" >&5
6514 echo "${ECHO_T}$DOT" >&6; }
6516 { echo "$as_me:$LINENO: result: no" >&5
6517 echo "${ECHO_T}no" >&6; }
6521 if test "$DOT" != "echo dot" ; then
6523 cat >>confdefs.h <<\_ACEOF
6527 if test "$llvm_cv_os_type" = "MingW" ; then
6528 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6531 cat >>confdefs.h <<_ACEOF
6532 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6536 # Extract the first word of "fdp", so it can be a program name with args.
6537 set dummy fdp; ac_word=$2
6538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540 if test "${ac_cv_path_FDP+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6568 if test -n "$FDP"; then
6569 { echo "$as_me:$LINENO: result: $FDP" >&5
6570 echo "${ECHO_T}$FDP" >&6; }
6572 { echo "$as_me:$LINENO: result: no" >&5
6573 echo "${ECHO_T}no" >&6; }
6577 if test "$FDP" != "echo fdp" ; then
6579 cat >>confdefs.h <<\_ACEOF
6583 if test "$llvm_cv_os_type" = "MingW" ; then
6584 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6587 cat >>confdefs.h <<_ACEOF
6588 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6592 # Extract the first word of "neato", so it can be a program name with args.
6593 set dummy neato; ac_word=$2
6594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596 if test "${ac_cv_path_NEATO+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6623 NEATO=$ac_cv_path_NEATO
6624 if test -n "$NEATO"; then
6625 { echo "$as_me:$LINENO: result: $NEATO" >&5
6626 echo "${ECHO_T}$NEATO" >&6; }
6628 { echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6; }
6633 if test "$NEATO" != "echo neato" ; then
6635 cat >>confdefs.h <<\_ACEOF
6636 #define HAVE_NEATO 1
6639 if test "$llvm_cv_os_type" = "MingW" ; then
6640 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6643 cat >>confdefs.h <<_ACEOF
6644 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6648 # Extract the first word of "twopi", so it can be a program name with args.
6649 set dummy twopi; ac_word=$2
6650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652 if test "${ac_cv_path_TWOPI+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6679 TWOPI=$ac_cv_path_TWOPI
6680 if test -n "$TWOPI"; then
6681 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6682 echo "${ECHO_T}$TWOPI" >&6; }
6684 { echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6; }
6689 if test "$TWOPI" != "echo twopi" ; then
6691 cat >>confdefs.h <<\_ACEOF
6692 #define HAVE_TWOPI 1
6695 if test "$llvm_cv_os_type" = "MingW" ; then
6696 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6699 cat >>confdefs.h <<_ACEOF
6700 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6704 # Extract the first word of "circo", so it can be a program name with args.
6705 set dummy circo; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_CIRCO+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6735 CIRCO=$ac_cv_path_CIRCO
6736 if test -n "$CIRCO"; then
6737 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6738 echo "${ECHO_T}$CIRCO" >&6; }
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6745 if test "$CIRCO" != "echo circo" ; then
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_CIRCO 1
6751 if test "$llvm_cv_os_type" = "MingW" ; then
6752 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6755 cat >>confdefs.h <<_ACEOF
6756 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6760 for ac_prog in gv gsview32
6762 # Extract the first word of "$ac_prog", so it can be a program name with args.
6763 set dummy $ac_prog; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_GV+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 if test -n "$GV"; then
6794 { echo "$as_me:$LINENO: result: $GV" >&5
6795 echo "${ECHO_T}$GV" >&6; }
6797 { echo "$as_me:$LINENO: result: no" >&5
6798 echo "${ECHO_T}no" >&6; }
6802 test -n "$GV" && break
6804 test -n "$GV" || GV="echo gv"
6806 if test "$GV" != "echo gv" ; then
6808 cat >>confdefs.h <<\_ACEOF
6812 if test "$llvm_cv_os_type" = "MingW" ; then
6813 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6816 cat >>confdefs.h <<_ACEOF
6817 #define LLVM_PATH_GV "$GV${EXEEXT}"
6821 # Extract the first word of "dotty", so it can be a program name with args.
6822 set dummy dotty; ac_word=$2
6823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825 if test "${ac_cv_path_DOTTY+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6852 DOTTY=$ac_cv_path_DOTTY
6853 if test -n "$DOTTY"; then
6854 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6855 echo "${ECHO_T}$DOTTY" >&6; }
6857 { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6862 if test "$DOTTY" != "echo dotty" ; then
6864 cat >>confdefs.h <<\_ACEOF
6865 #define HAVE_DOTTY 1
6868 if test "$llvm_cv_os_type" = "MingW" ; then
6869 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6872 cat >>confdefs.h <<_ACEOF
6873 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6877 # Extract the first word of "xdot.py", so it can be a program name with args.
6878 set dummy xdot.py; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6908 XDOT_PY=$ac_cv_path_XDOT_PY
6909 if test -n "$XDOT_PY"; then
6910 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6911 echo "${ECHO_T}$XDOT_PY" >&6; }
6913 { echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6; }
6918 if test "$XDOT_PY" != "echo xdot.py" ; then
6920 cat >>confdefs.h <<\_ACEOF
6921 #define HAVE_XDOT_PY 1
6924 if test "$llvm_cv_os_type" = "MingW" ; then
6925 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6928 cat >>confdefs.h <<_ACEOF
6929 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6935 # Extract the first word of "perl", so it can be a program name with args.
6936 set dummy perl; ac_word=$2
6937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939 if test "${ac_cv_path_PERL+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6966 PERL=$ac_cv_path_PERL
6967 if test -n "$PERL"; then
6968 { echo "$as_me:$LINENO: result: $PERL" >&5
6969 echo "${ECHO_T}$PERL" >&6; }
6971 { echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6; }
6976 if test "$PERL" != "none"; then
6977 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6978 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6979 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6980 { echo "$as_me:$LINENO: result: yes" >&5
6981 echo "${ECHO_T}yes" >&6; }
6984 { echo "$as_me:$LINENO: result: not found" >&5
6985 echo "${ECHO_T}not found" >&6; }
6990 if test x"$PERL" = xnone; then
6993 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6994 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6995 { (exit 1); exit 1; }; }
7001 # Find a good install program. We prefer a C program (faster),
7002 # so one script is as good as another. But avoid the broken or
7003 # incompatible versions:
7004 # SysV /etc/install, /usr/sbin/install
7005 # SunOS /usr/etc/install
7006 # IRIX /sbin/install
7008 # AmigaOS /C/install, which installs bootblocks on floppy discs
7009 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7012 # OS/2's system install, which has a completely different semantic
7013 # ./install, which can be erroneously created by make from ./install.sh.
7014 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7015 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7016 if test -z "$INSTALL"; then
7017 if test "${ac_cv_path_install+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir=.
7025 # Account for people who put trailing slashes in PATH elements.
7027 ./ | .// | /cC/* | \
7028 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7029 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7032 # OSF1 and SCO ODT 3.0 have their own names for install.
7033 # Don't use installbsd from OSF since it installs stuff as root
7035 for ac_prog in ginstall scoinst install; do
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7038 if test $ac_prog = install &&
7039 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7040 # AIX install. It has an incompatible calling convention.
7042 elif test $ac_prog = install &&
7043 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7044 # program-specific install script used by HP pwplus--don't use.
7047 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7060 if test "${ac_cv_path_install+set}" = set; then
7061 INSTALL=$ac_cv_path_install
7063 # As a last resort, use the slow shell script. Don't cache a
7064 # value for INSTALL within a source directory, because that will
7065 # break other packages using the cache if that directory is
7066 # removed, or if the value is a relative name.
7067 INSTALL=$ac_install_sh
7070 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7071 echo "${ECHO_T}$INSTALL" >&6; }
7073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7074 # It thinks the first close brace ends the variable substitution.
7075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7077 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7079 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7082 [\\/$]* | ?:[\\/]* ) ;;
7083 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7086 # Extract the first word of "bzip2", so it can be a program name with args.
7087 set dummy bzip2; ac_word=$2
7088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090 if test "${ac_cv_path_BZIP2+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 BZIP2=$ac_cv_path_BZIP2
7117 if test -n "$BZIP2"; then
7118 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7119 echo "${ECHO_T}$BZIP2" >&6; }
7121 { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7126 # Extract the first word of "cat", so it can be a program name with args.
7127 set dummy cat; ac_word=$2
7128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130 if test "${ac_cv_path_CAT+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 if test -n "$CAT"; then
7158 { echo "$as_me:$LINENO: result: $CAT" >&5
7159 echo "${ECHO_T}$CAT" >&6; }
7161 { echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6; }
7166 # Extract the first word of "doxygen", so it can be a program name with args.
7167 set dummy doxygen; ac_word=$2
7168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 DOXYGEN=$ac_cv_path_DOXYGEN
7197 if test -n "$DOXYGEN"; then
7198 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7199 echo "${ECHO_T}$DOXYGEN" >&6; }
7201 { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7206 # Extract the first word of "groff", so it can be a program name with args.
7207 set dummy groff; ac_word=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_path_GROFF+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 GROFF=$ac_cv_path_GROFF
7237 if test -n "$GROFF"; then
7238 { echo "$as_me:$LINENO: result: $GROFF" >&5
7239 echo "${ECHO_T}$GROFF" >&6; }
7241 { echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6; }
7246 # Extract the first word of "gzip", so it can be a program name with args.
7247 set dummy gzip; ac_word=$2
7248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7265 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 GZIPBIN=$ac_cv_path_GZIPBIN
7277 if test -n "$GZIPBIN"; then
7278 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7279 echo "${ECHO_T}$GZIPBIN" >&6; }
7281 { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7286 # Extract the first word of "pod2html", so it can be a program name with args.
7287 set dummy pod2html; ac_word=$2
7288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290 if test "${ac_cv_path_POD2HTML+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7305 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 POD2HTML=$ac_cv_path_POD2HTML
7317 if test -n "$POD2HTML"; then
7318 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7319 echo "${ECHO_T}$POD2HTML" >&6; }
7321 { echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6; }
7326 # Extract the first word of "pod2man", so it can be a program name with args.
7327 set dummy pod2man; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_path_POD2MAN+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 POD2MAN=$ac_cv_path_POD2MAN
7357 if test -n "$POD2MAN"; then
7358 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7359 echo "${ECHO_T}$POD2MAN" >&6; }
7361 { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7366 # Extract the first word of "pdfroff", so it can be a program name with args.
7367 set dummy pdfroff; ac_word=$2
7368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7370 if test "${ac_cv_path_PDFROFF+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 PDFROFF=$ac_cv_path_PDFROFF
7397 if test -n "$PDFROFF"; then
7398 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7399 echo "${ECHO_T}$PDFROFF" >&6; }
7401 { echo "$as_me:$LINENO: result: no" >&5
7402 echo "${ECHO_T}no" >&6; }
7406 # Extract the first word of "runtest", so it can be a program name with args.
7407 set dummy runtest; ac_word=$2
7408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410 if test "${ac_cv_path_RUNTEST+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 RUNTEST=$ac_cv_path_RUNTEST
7437 if test -n "$RUNTEST"; then
7438 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7439 echo "${ECHO_T}$RUNTEST" >&6; }
7441 { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7448 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7449 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7451 # Check whether --with-tclinclude was given.
7452 if test "${with_tclinclude+set}" = set; then
7453 withval=$with_tclinclude; with_tclinclude=${withval}
7458 if test "${ac_cv_path_tclsh+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 if test x"${with_tclinclude}" != x ; then
7463 if test -f ${with_tclinclude}/tclsh ; then
7464 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7465 elif test -f ${with_tclinclude}/src/tclsh ; then
7466 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7468 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7469 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7470 { (exit 1); exit 1; }; }
7476 if test x"${ac_cv_path_tclsh}" = x ; then
7477 { echo "$as_me:$LINENO: result: none" >&5
7478 echo "${ECHO_T}none" >&6; }
7479 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
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy $ac_prog; ac_word=$2
7483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7485 if test "${ac_cv_path_TCLSH+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7500 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 TCLSH=$ac_cv_path_TCLSH
7512 if test -n "$TCLSH"; then
7513 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7514 echo "${ECHO_T}$TCLSH" >&6; }
7516 { echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6; }
7521 test -n "$TCLSH" && break
7524 if test x"${TCLSH}" = x ; then
7525 ac_cv_path_tclsh='';
7527 ac_cv_path_tclsh="${TCLSH}";
7530 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7531 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7532 TCLSH="${ac_cv_path_tclsh}"
7536 # Extract the first word of "zip", so it can be a program name with args.
7537 set dummy zip; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_path_ZIP+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 if test -n "$ZIP"; then
7568 { echo "$as_me:$LINENO: result: $ZIP" >&5
7569 echo "${ECHO_T}$ZIP" >&6; }
7571 { echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6; }
7576 for ac_prog in ocamlc
7578 # Extract the first word of "$ac_prog", so it can be a program name with args.
7579 set dummy $ac_prog; ac_word=$2
7580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582 if test "${ac_cv_path_OCAMLC+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 OCAMLC=$ac_cv_path_OCAMLC
7609 if test -n "$OCAMLC"; then
7610 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7611 echo "${ECHO_T}$OCAMLC" >&6; }
7613 { echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6; }
7618 test -n "$OCAMLC" && break
7621 for ac_prog in ocamlopt
7623 # Extract the first word of "$ac_prog", so it can be a program name with args.
7624 set dummy $ac_prog; ac_word=$2
7625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7627 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7642 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 OCAMLOPT=$ac_cv_path_OCAMLOPT
7654 if test -n "$OCAMLOPT"; then
7655 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7656 echo "${ECHO_T}$OCAMLOPT" >&6; }
7658 { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7663 test -n "$OCAMLOPT" && break
7666 for ac_prog in ocamldep
7668 # Extract the first word of "$ac_prog", so it can be a program name with args.
7669 set dummy $ac_prog; ac_word=$2
7670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 OCAMLDEP=$ac_cv_path_OCAMLDEP
7699 if test -n "$OCAMLDEP"; then
7700 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7701 echo "${ECHO_T}$OCAMLDEP" >&6; }
7703 { echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6; }
7708 test -n "$OCAMLDEP" && break
7711 for ac_prog in ocamldoc
7713 # Extract the first word of "$ac_prog", so it can be a program name with args.
7714 set dummy $ac_prog; ac_word=$2
7715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7732 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 OCAMLDOC=$ac_cv_path_OCAMLDOC
7744 if test -n "$OCAMLDOC"; then
7745 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7746 echo "${ECHO_T}$OCAMLDOC" >&6; }
7748 { echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6; }
7753 test -n "$OCAMLDOC" && break
7756 for ac_prog in gas as
7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
7759 set dummy $ac_prog; ac_word=$2
7760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7762 if test "${ac_cv_path_GAS+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7777 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 if test -n "$GAS"; then
7790 { echo "$as_me:$LINENO: result: $GAS" >&5
7791 echo "${ECHO_T}$GAS" >&6; }
7793 { echo "$as_me:$LINENO: result: no" >&5
7794 echo "${ECHO_T}no" >&6; }
7798 test -n "$GAS" && break
7802 { echo "$as_me:$LINENO: checking for linker version" >&5
7803 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7804 if test "${llvm_cv_link_version+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 version_string="$(ld -v 2>&1 | head -1)"
7811 if (echo "$version_string" | grep -q "ld64"); then
7812 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7814 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7818 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7819 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7821 cat >>confdefs.h <<_ACEOF
7822 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7827 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7828 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7829 if test "${llvm_cv_link_use_r+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 ac_cpp='$CPP $CPPFLAGS'
7834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839 CFLAGS="$CFLAGS -Wl,-R."
7840 cat >conftest.$ac_ext <<_ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7855 rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (ac_try="$ac_link"
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7862 (eval "$ac_link") 2>conftest.er1
7864 grep -v '^ *+' conftest.er1 >conftest.err
7866 cat conftest.err >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } &&
7869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7870 { (case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_try") 2>&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; } &&
7879 { ac_try='test -s conftest$ac_exeext'
7880 { (case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_try") 2>&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 llvm_cv_link_use_r=yes
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7894 llvm_cv_link_use_r=no
7897 rm -f core conftest.err conftest.$ac_objext \
7898 conftest$ac_exeext conftest.$ac_ext
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7908 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7909 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7910 if test "$llvm_cv_link_use_r" = yes ; then
7912 cat >>confdefs.h <<\_ACEOF
7913 #define HAVE_LINK_R 1
7919 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7920 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7921 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 ac_cpp='$CPP $CPPFLAGS'
7926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7931 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7932 cat >conftest.$ac_ext <<_ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7947 rm -f conftest.$ac_objext conftest$ac_exeext
7948 if { (ac_try="$ac_link"
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7954 (eval "$ac_link") 2>conftest.er1
7956 grep -v '^ *+' conftest.er1 >conftest.err
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7962 { (case "(($ac_try" in
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_try") 2>&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; } &&
7971 { ac_try='test -s conftest$ac_exeext'
7972 { (case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_try") 2>&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 llvm_cv_link_use_export_dynamic=yes
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7986 llvm_cv_link_use_export_dynamic=no
7989 rm -f core conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
7993 ac_cpp='$CPP $CPPFLAGS'
7994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8000 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8001 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8002 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8004 cat >>confdefs.h <<\_ACEOF
8005 #define HAVE_LINK_EXPORT_DYNAMIC 1
8011 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8012 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8013 if test "${llvm_cv_link_use_version_script+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 ac_cpp='$CPP $CPPFLAGS'
8018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024 # The following code is from the autoconf manual,
8025 # "11.13: Limitations of Usual Tools".
8026 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8027 # Use mktemp if possible; otherwise fall back on mkdir,
8028 # with $RANDOM to make collisions less likely.
8032 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8034 test -n "$tmp" && test -d "$tmp"
8036 tmp=$TMPDIR/foo$$-$RANDOM
8037 (umask 077 && mkdir "$tmp")
8040 echo "{" > "$tmp/export.map"
8041 echo " global: main;" >> "$tmp/export.map"
8042 echo " local: *;" >> "$tmp/export.map"
8043 echo "};" >> "$tmp/export.map"
8045 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8046 cat >conftest.$ac_ext <<_ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8061 rm -f conftest.$ac_objext conftest$ac_exeext
8062 if { (ac_try="$ac_link"
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_link") 2>conftest.er1
8070 grep -v '^ *+' conftest.er1 >conftest.err
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8076 { (case "(($ac_try" in
8077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078 *) ac_try_echo=$ac_try;;
8080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8081 (eval "$ac_try") 2>&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; } &&
8085 { ac_try='test -s conftest$ac_exeext'
8086 { (case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_try") 2>&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 llvm_cv_link_use_version_script=yes
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 llvm_cv_link_use_version_script=no
8103 rm -f core conftest.err conftest.$ac_objext \
8104 conftest$ac_exeext conftest.$ac_ext
8105 rm "$tmp/export.map"
8109 ac_cpp='$CPP $CPPFLAGS'
8110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8116 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8117 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8118 if test "$llvm_cv_link_use_version_script" = yes ; then
8119 HAVE_LINK_VERSION_SCRIPT=1
8126 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8127 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8128 if test "${ac_cv_c_const+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 cat >conftest.$ac_ext <<_ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8141 /* FIXME: Include the comments suggested by Paul. */
8143 /* Ultrix mips cc rejects this. */
8144 typedef int charset[2];
8146 /* SunOS 4.1.1 cc rejects this. */
8147 char const *const *ccp;
8149 /* NEC SVR4.0.2 mips cc rejects this. */
8150 struct point {int x, y;};
8151 static struct point const zero = {0,0};
8152 /* AIX XL C 1.02.0.0 rejects this.
8153 It does not let you subtract one const X* pointer from another in
8154 an arm of an if-expression whose if-part is not a constant
8156 const char *g = "string";
8157 ccp = &g + (g ? g-g : 0);
8158 /* HPUX 7.0 cc rejects these. */
8161 ccp = (char const *const *) p;
8162 { /* SCO 3.2v4 cc rejects this. */
8164 char const *s = 0 ? (char *) 0 : (char const *) 0;
8169 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8171 const int *foo = &x[0];
8174 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8175 typedef const int *iptr;
8179 { /* AIX XL C 1.02.0.0 rejects this saying
8180 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8181 struct s { int j; const int *ap[3]; };
8182 struct s *b; b->j = 5;
8184 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8188 return !x[0] && !zero.x;
8195 rm -f conftest.$ac_objext
8196 if { (ac_try="$ac_compile"
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_compile") 2>conftest.er1
8204 grep -v '^ *+' conftest.er1 >conftest.err
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } &&
8209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; } &&
8219 { ac_try='test -s conftest.$ac_objext'
8220 { (case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_try") 2>&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8231 echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8240 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8241 if test $ac_cv_c_const = no; then
8243 cat >>confdefs.h <<\_ACEOF
8255 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8256 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8257 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8258 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 cat >conftest.$ac_ext <<_ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 #include <sys/types.h>
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8289 grep -v '^ *+' conftest.er1 >conftest.err
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8295 { (case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_try") 2>&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; } &&
8304 { ac_try='test -s conftest.$ac_objext'
8305 { (case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_try") 2>&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 eval "$as_ac_Header=yes"
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8319 eval "$as_ac_Header=no"
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 ac_res=`eval echo '${'$as_ac_Header'}'`
8325 { echo "$as_me:$LINENO: result: $ac_res" >&5
8326 echo "${ECHO_T}$ac_res" >&6; }
8327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8328 cat >>confdefs.h <<_ACEOF
8329 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8332 ac_header_dirent=$ac_hdr; break
8336 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8337 if test $ac_header_dirent = dirent.h; then
8338 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8339 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8340 if test "${ac_cv_search_opendir+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 ac_func_search_save_LIBS=$LIBS
8344 cat >conftest.$ac_ext <<_ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8351 /* Override any GCC internal prototype to avoid an error.
8352 Use char because int might match the return type of a GCC
8353 builtin and then its argument prototype would still apply. */
8366 for ac_lib in '' dir; do
8367 if test -z "$ac_lib"; then
8368 ac_res="none required"
8371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8373 rm -f conftest.$ac_objext conftest$ac_exeext
8374 if { (ac_try="$ac_link"
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_link") 2>conftest.er1
8382 grep -v '^ *+' conftest.er1 >conftest.err
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
8387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8388 { (case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_try") 2>&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest$ac_exeext'
8398 { (case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_try") 2>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_cv_search_opendir=$ac_res
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8415 rm -f core conftest.err conftest.$ac_objext \
8417 if test "${ac_cv_search_opendir+set}" = set; then
8421 if test "${ac_cv_search_opendir+set}" = set; then
8424 ac_cv_search_opendir=no
8427 LIBS=$ac_func_search_save_LIBS
8429 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8430 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8431 ac_res=$ac_cv_search_opendir
8432 if test "$ac_res" != no; then
8433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8438 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8439 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8440 if test "${ac_cv_search_opendir+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 ac_func_search_save_LIBS=$LIBS
8444 cat >conftest.$ac_ext <<_ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8451 /* Override any GCC internal prototype to avoid an error.
8452 Use char because int might match the return type of a GCC
8453 builtin and then its argument prototype would still apply. */
8466 for ac_lib in '' x; do
8467 if test -z "$ac_lib"; then
8468 ac_res="none required"
8471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8473 rm -f conftest.$ac_objext conftest$ac_exeext
8474 if { (ac_try="$ac_link"
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_link") 2>conftest.er1
8482 grep -v '^ *+' conftest.er1 >conftest.err
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } &&
8487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8488 { (case "(($ac_try" in
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_try") 2>&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; } &&
8497 { ac_try='test -s conftest$ac_exeext'
8498 { (case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_try") 2>&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; }; then
8507 ac_cv_search_opendir=$ac_res
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8515 rm -f core conftest.err conftest.$ac_objext \
8517 if test "${ac_cv_search_opendir+set}" = set; then
8521 if test "${ac_cv_search_opendir+set}" = set; then
8524 ac_cv_search_opendir=no
8527 LIBS=$ac_func_search_save_LIBS
8529 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8530 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8531 ac_res=$ac_cv_search_opendir
8532 if test "$ac_res" != no; then
8533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8540 for ac_header in dlfcn.h
8542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 ac_res=`eval echo '${'$as_ac_Header'}'`
8550 { echo "$as_me:$LINENO: result: $ac_res" >&5
8551 echo "${ECHO_T}$ac_res" >&6; }
8553 # Is the header compilable?
8554 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8556 cat >conftest.$ac_ext <<_ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8562 $ac_includes_default
8563 #include <$ac_header>
8565 rm -f conftest.$ac_objext
8566 if { (ac_try="$ac_compile"
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8574 grep -v '^ *+' conftest.er1 >conftest.err
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } &&
8579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8580 { (case "(($ac_try" in
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_try") 2>&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); }; } &&
8589 { ac_try='test -s conftest.$ac_objext'
8590 { (case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_try") 2>&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 ac_header_compiler=yes
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 ac_header_compiler=no
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8609 echo "${ECHO_T}$ac_header_compiler" >&6; }
8611 # Is the header present?
8612 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8614 cat >conftest.$ac_ext <<_ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 #include <$ac_header>
8622 if { (ac_try="$ac_cpp conftest.$ac_ext"
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8630 grep -v '^ *+' conftest.er1 >conftest.err
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } >/dev/null; then
8635 if test -s conftest.err; then
8636 ac_cpp_err=$ac_c_preproc_warn_flag
8637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8644 if test -z "$ac_cpp_err"; then
8645 ac_header_preproc=yes
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8650 ac_header_preproc=no
8653 rm -f conftest.err conftest.$ac_ext
8654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8655 echo "${ECHO_T}$ac_header_preproc" >&6; }
8657 # So? What about this header?
8658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8664 ac_header_preproc=yes
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8680 ## ----------------------------------- ##
8681 ## Report this to llvmbugs@cs.uiuc.edu ##
8682 ## ----------------------------------- ##
8684 ) | sed "s/^/$as_me: WARNING: /" >&2
8687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 eval "$as_ac_Header=\$ac_header_preproc"
8694 ac_res=`eval echo '${'$as_ac_Header'}'`
8695 { echo "$as_me:$LINENO: result: $ac_res" >&5
8696 echo "${ECHO_T}$ac_res" >&6; }
8699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8700 cat >>confdefs.h <<_ACEOF
8701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8708 # Check whether --enable-ltdl-install was given.
8709 if test "${enable_ltdl_install+set}" = set; then
8710 enableval=$enable_ltdl_install;
8716 if test x"${enable_ltdl_install-no}" != xno; then
8718 INSTALL_LTDL_FALSE='#'
8720 INSTALL_LTDL_TRUE='#'
8726 if test x"${enable_ltdl_convenience-no}" != xno; then
8727 CONVENIENCE_LTDL_TRUE=
8728 CONVENIENCE_LTDL_FALSE='#'
8730 CONVENIENCE_LTDL_TRUE='#'
8731 CONVENIENCE_LTDL_FALSE=
8735 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8736 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8738 libname_spec='lib$name'
8746 shlibpath_overrides_runpath=unknown
8748 dynamic_linker="$host_os ld.so"
8749 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8750 if test "$GCC" = yes; then
8751 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8752 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8753 # if the path contains ";" then we assume it to be the separator
8754 # otherwise default to the standard path separator (i.e. ":") - it is
8755 # assumed that no part of a normal pathname contains ";" but that should
8756 # okay in the real world where ";" in dirpaths is itself problematic.
8757 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8759 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8762 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8764 need_lib_prefix=unknown
8765 hardcode_into_libs=no
8767 # when you set need_version to no, make sure it does not cause -set_version
8768 # flags to be left without arguments
8769 need_version=unknown
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8775 shlibpath_var=LIBPATH
8777 # AIX 3 has no versioning support, so we append a major version to the name.
8778 soname_spec='${libname}${release}${shared_ext}$major'
8785 hardcode_into_libs=yes
8786 if test "$host_cpu" = ia64; then
8787 # AIX 5 supports IA64
8788 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8789 shlibpath_var=LD_LIBRARY_PATH
8791 # With GCC up to 2.95.x, collect2 would create an import file
8792 # for dependence libraries. The import file would start with
8793 # the line `#! .'. This would cause the generated library to
8794 # depend on `.', always an invalid library. This was fixed in
8795 # development snapshots of GCC prior to 3.0.
8797 aix4 | aix4.[01] | aix4.[01].*)
8798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8800 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8807 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8808 # soname into executable. Probably we can add versioning support to
8809 # collect2, so additional links can be useful in future.
8810 if test "$aix_use_runtimelinking" = yes; then
8811 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8812 # instead of lib<name>.a to let people know that these are not
8813 # typical AIX shared libraries.
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8816 # We preserve .a as extension for shared libraries through AIX4.2
8817 # and later when we are not doing run time linking.
8818 library_names_spec='${libname}${release}.a $libname.a'
8819 soname_spec='${libname}${release}${shared_ext}$major'
8821 shlibpath_var=LIBPATH
8826 library_names_spec='$libname.ixlibrary $libname.a'
8827 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8828 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'
8832 library_names_spec='${libname}${shared_ext}'
8833 dynamic_linker="$host_os ld.so"
8834 shlibpath_var=LIBRARY_PATH
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8843 shlibpath_var=LD_LIBRARY_PATH
8844 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8845 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8846 # the default ld.so.conf also contains /usr/contrib/lib and
8847 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8848 # libtool to hard-code these into programs
8851 cygwin* | mingw* | pw32*)
8852 version_type=windows
8857 case $GCC,$host_os in
8858 yes,cygwin* | yes,mingw* | yes,pw32*)
8859 library_names_spec='$libname.dll.a'
8860 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8861 postinstall_cmds='base_file=`basename \${file}`~
8862 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8863 dldir=$destdir/`dirname \$dlpath`~
8864 test -d \$dldir || mkdir -p \$dldir~
8865 $install_prog $dir/$dlname \$dldir/$dlname~
8866 chmod a+x \$dldir/$dlname'
8867 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8868 dlpath=$dir/\$dldll~
8870 shlibpath_overrides_runpath=yes
8874 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8875 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8879 # MinGW DLLs use traditional 'lib' prefix
8880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8881 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8882 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8883 # It is most probably a Windows format PATH printed by
8884 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8885 # path with ; separators, and with drive letters. We can handle the
8886 # drive letters (cygwin fileutils understands them), so leave them,
8887 # especially as we might pass files found there to a mingw objdump,
8888 # which wouldn't understand a cygwinified path. Ahh.
8889 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8895 # pw32 DLLs use 'pw' prefix rather than 'lib'
8896 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8902 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8905 dynamic_linker='Win32 ld.exe'
8906 # FIXME: first we should search . and the directory the executable is in
8910 darwin* | rhapsody*)
8911 dynamic_linker="$host_os dyld"
8915 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8916 soname_spec='${libname}${release}${major}$shared_ext'
8917 shlibpath_overrides_runpath=yes
8918 shlibpath_var=DYLD_LIBRARY_PATH
8919 shrext_cmds='.dylib'
8920 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8921 if test "$GCC" = yes; then
8922 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"`
8924 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8926 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 shlibpath_var=LD_LIBRARY_PATH
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 shlibpath_var=LD_LIBRARY_PATH
8949 shlibpath_overrides_runpath=no
8950 hardcode_into_libs=yes
8951 dynamic_linker='GNU ld.so'
8954 freebsd* | dragonfly*)
8955 # DragonFly does not have aout. When/if they implement a new
8956 # versioning mechanism, adjust this.
8957 if test -x /usr/bin/objformat; then
8958 objformat=`/usr/bin/objformat`
8961 freebsd[123].*) objformat=aout ;;
8965 version_type=freebsd-$objformat
8966 case $version_type in
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8977 shlibpath_var=LD_LIBRARY_PATH
8980 shlibpath_overrides_runpath=yes
8982 freebsd3.[01]* | freebsdelf3.[01]*)
8983 shlibpath_overrides_runpath=yes
8984 hardcode_into_libs=yes
8986 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8987 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8988 shlibpath_overrides_runpath=no
8989 hardcode_into_libs=yes
8991 freebsd*) # from 4.6 on
8992 shlibpath_overrides_runpath=yes
8993 hardcode_into_libs=yes
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 hardcode_into_libs=yes
9008 hpux9* | hpux10* | hpux11*)
9009 # Give a soname corresponding to the major version so that dld.sl refuses to
9010 # link against other versions.
9017 hardcode_into_libs=yes
9018 dynamic_linker="$host_os dld.so"
9019 shlibpath_var=LD_LIBRARY_PATH
9020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9022 soname_spec='${libname}${release}${shared_ext}$major'
9023 if test "X$HPUX_IA64_MODE" = X32; then
9024 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9026 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9032 hardcode_into_libs=yes
9033 dynamic_linker="$host_os dld.sl"
9034 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9043 dynamic_linker="$host_os dld.sl"
9044 shlibpath_var=SHLIB_PATH
9045 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9050 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9051 postinstall_cmds='chmod 555 $lib'
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 shlibpath_overrides_runpath=no
9063 hardcode_into_libs=yes
9066 irix5* | irix6* | nonstopux*)
9068 nonstopux*) version_type=nonstopux ;;
9070 if test "$lt_cv_prog_gnu_ld" = yes; then
9078 soname_spec='${libname}${release}${shared_ext}$major'
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9081 irix5* | nonstopux*)
9085 case $LD in # libtool.m4 will add one of these switches to LD
9086 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9087 libsuff= shlibsuff= libmagic=32-bit;;
9088 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9089 libsuff=32 shlibsuff=N32 libmagic=N32;;
9090 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9091 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9092 *) libsuff= shlibsuff= libmagic=never-match;;
9096 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9097 shlibpath_overrides_runpath=no
9098 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9099 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9100 hardcode_into_libs=yes
9103 # No shared lib support for Linux oldld, aout, or coff.
9104 linux*oldld* | linux*aout* | linux*coff*)
9108 # This must be Linux ELF.
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=no
9118 # This implies no fast_install, which is unacceptable.
9119 # Some rework will be needed to allow for fast_install
9120 # before this can be enabled.
9121 hardcode_into_libs=yes
9123 # Append ld.so.conf contents to the search path
9124 if test -f /etc/ld.so.conf; then
9125 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' ' '`
9126 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9129 # We used to test for /lib/ld.so.1 and disable shared libraries on
9130 # powerpc, because MkLinux only supported shared libraries with the
9131 # GNU dynamic linker. Since this was broken with cross compilers,
9132 # most powerpc-linux boxes support dynamic linking these days and
9133 # people can always --disable-shared, the test was removed, and we
9134 # assume the GNU/Linux dynamic linker is in use.
9135 dynamic_linker='GNU/Linux ld.so'
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 shlibpath_overrides_runpath=no
9146 hardcode_into_libs=yes
9147 dynamic_linker='GNU ld.so'
9154 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9157 dynamic_linker='NetBSD (a.out) ld.so'
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 dynamic_linker='NetBSD ld.elf_so'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 shlibpath_overrides_runpath=yes
9165 hardcode_into_libs=yes
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 shlibpath_overrides_runpath=yes
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180 soname_spec='${libname}${release}${shared_ext}$major'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 shlibpath_overrides_runpath=yes
9187 sys_lib_dlsearch_path_spec="/usr/lib"
9189 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9191 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9192 *) need_version=no ;;
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9196 shlibpath_var=LD_LIBRARY_PATH
9197 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9199 openbsd2.[89] | openbsd2.[89].*)
9200 shlibpath_overrides_runpath=no
9203 shlibpath_overrides_runpath=yes
9207 shlibpath_overrides_runpath=yes
9212 libname_spec='$name'
9215 library_names_spec='$libname${shared_ext} $libname.a'
9216 dynamic_linker='OS/2 ld.exe'
9217 shlibpath_var=LIBPATH
9220 osf3* | osf4* | osf5*)
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9228 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236 soname_spec='${libname}${release}${shared_ext}$major'
9237 shlibpath_var=LD_LIBRARY_PATH
9238 shlibpath_overrides_runpath=yes
9239 hardcode_into_libs=yes
9240 # ldd complains unless libraries are executable
9241 postinstall_cmds='chmod +x $lib'
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9247 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9248 shlibpath_var=LD_LIBRARY_PATH
9249 shlibpath_overrides_runpath=yes
9250 if test "$with_gnu_ld" = yes; then
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 case $host_vendor in
9263 shlibpath_overrides_runpath=no
9265 export_dynamic_flag_spec='${wl}-Blargedynsym'
9266 runpath_var=LD_RUN_PATH
9274 shlibpath_overrides_runpath=no
9275 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9281 if test -d /usr/nec ;then
9283 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9284 soname_spec='$libname${shared_ext}.$major'
9285 shlibpath_var=LD_LIBRARY_PATH
9289 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9290 version_type=freebsd-elf
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 hardcode_into_libs=yes
9297 if test "$with_gnu_ld" = yes; then
9298 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9299 shlibpath_overrides_runpath=no
9301 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9302 shlibpath_overrides_runpath=yes
9305 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9309 sys_lib_dlsearch_path_spec='/usr/lib'
9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315 soname_spec='${libname}${release}${shared_ext}$major'
9316 shlibpath_var=LD_LIBRARY_PATH
9323 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9324 echo "${ECHO_T}$dynamic_linker" >&6; }
9325 test "$dynamic_linker" = no && can_build_shared=no
9327 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9328 if test "$GCC" = yes; then
9329 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9333 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9334 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9335 if test "${libltdl_cv_shlibext+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 eval libltdl_cv_shlibext=$shrext_cmds
9343 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9344 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9345 if test -n "$libltdl_cv_shlibext"; then
9347 cat >>confdefs.h <<_ACEOF
9348 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9354 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9355 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9356 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 libltdl_cv_shlibpath_var="$shlibpath_var"
9361 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9362 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9363 if test -n "$libltdl_cv_shlibpath_var"; then
9365 cat >>confdefs.h <<_ACEOF
9366 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9372 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9373 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9374 if test "${libltdl_cv_sys_search_path+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9379 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9380 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9381 if test -n "$libltdl_cv_sys_search_path"; then
9383 for dir in $libltdl_cv_sys_search_path; do
9384 if test -z "$sys_search_path"; then
9385 sys_search_path="$dir"
9387 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9391 cat >>confdefs.h <<_ACEOF
9392 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9397 { echo "$as_me:$LINENO: checking for objdir" >&5
9398 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9399 if test "${libltdl_cv_objdir+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 libltdl_cv_objdir="$objdir"
9403 if test -n "$objdir"; then
9406 rm -f .libs 2>/dev/null
9407 mkdir .libs 2>/dev/null
9408 if test -d .libs; then
9409 libltdl_cv_objdir=.libs
9411 # MS-DOS does not allow filenames that begin with a dot.
9412 libltdl_cv_objdir=_libs
9414 rmdir .libs 2>/dev/null
9418 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9419 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9421 cat >>confdefs.h <<_ACEOF
9422 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9430 # Check for command to grab the raw symbol name followed by C symbol from nm.
9431 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9432 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9433 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 # These are sane defaults that work on at least a few old systems.
9438 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9440 # Character class describing NM global symbol codes.
9441 symcode='[BCDEGRST]'
9443 # Regexp to match symbols that can be accessed directly from C.
9444 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9446 # Transform an extracted symbol line into a proper C declaration
9447 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9449 # Transform an extracted symbol line into symbol name and symbol address
9450 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'"
9452 # Define system-specific variables.
9457 cygwin* | mingw* | pw32*)
9458 symcode='[ABCDGISTW]'
9460 hpux*) # Its linker distinguishes data from code symbols
9461 if test "$host_cpu" = ia64; then
9462 symcode='[ABCDEGRST]'
9464 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9465 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'"
9468 if test "$host_cpu" = ia64; then
9469 symcode='[ABCDGIRSTW]'
9470 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9471 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'"
9475 symcode='[BCDEGRST]'
9478 symcode='[BCDEGQRST]'
9489 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9497 # Handle CRLF in mingw tool chain
9501 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9505 # If we're using GNU nm, then use its standard symbol codes.
9506 case `$NM -V 2>&1` in
9507 *GNU* | *'with BFD'*)
9508 symcode='[ABCDGIRSTW]' ;;
9511 # Try without a prefix undercore, then with it.
9512 for ac_symprfx in "" "_"; do
9514 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9515 symxfrm="\\1 $ac_symprfx\\2 \\2"
9517 # Write the raw and C identifiers.
9518 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9520 # Check to see that the pipe works correctly.
9524 cat > conftest.$ac_ext <<EOF
9529 void nm_test_func(){}
9533 int main(){nm_test_var='a';nm_test_func();return(0);}
9536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9537 (eval $ac_compile) 2>&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; then
9541 # Now try to grab the symbols.
9543 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9544 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } && test -s "$nlist"; then
9548 # Try sorting and uniquifying the output.
9549 if sort "$nlist" | uniq > "$nlist"T; then
9550 mv -f "$nlist"T "$nlist"
9555 # Make sure that we snagged all the symbols we need.
9556 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9557 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9558 cat <<EOF > conftest.$ac_ext
9564 # Now generate the symbol file.
9565 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9567 cat <<EOF >> conftest.$ac_ext
9568 #if defined (__STDC__) && __STDC__
9569 # define lt_ptr_t void *
9571 # define lt_ptr_t char *
9575 /* The mapping between symbol names and symbols. */
9580 lt_preloaded_symbols[] =
9583 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9584 cat <<\EOF >> conftest.$ac_ext
9592 # Now try linking the two files.
9593 mv conftest.$ac_objext conftstm.$ac_objext
9594 lt_save_LIBS="$LIBS"
9595 lt_save_CFLAGS="$CFLAGS"
9596 LIBS="conftstm.$ac_objext"
9597 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599 (eval $ac_link) 2>&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9605 LIBS="$lt_save_LIBS"
9606 CFLAGS="$lt_save_CFLAGS"
9608 echo "cannot find nm_test_func in $nlist" >&5
9611 echo "cannot find nm_test_var in $nlist" >&5
9614 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9617 echo "$progname: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9620 rm -f conftest* conftst*
9622 # Do not use the global_symbol_pipe unless it works.
9623 if test "$pipe_works" = yes; then
9626 lt_cv_sys_global_symbol_pipe=
9632 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9633 lt_cv_sys_global_symbol_to_cdecl=
9635 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9636 { echo "$as_me:$LINENO: result: failed" >&5
9637 echo "${ECHO_T}failed" >&6; }
9639 { echo "$as_me:$LINENO: result: ok" >&5
9640 echo "${ECHO_T}ok" >&6; }
9644 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9645 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9646 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9650 libltdl_cv_preloaded_symbols=yes
9652 libltdl_cv_preloaded_symbols=no
9656 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9657 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9658 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9660 cat >>confdefs.h <<\_ACEOF
9661 #define HAVE_PRELOADED_SYMBOLS 1
9669 ac_cpp='$CPP $CPPFLAGS'
9670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9675 { echo "$as_me:$LINENO: checking for shl_load" >&5
9676 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9677 if test "${ac_cv_func_shl_load+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 cat >conftest.$ac_ext <<_ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9686 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9688 #define shl_load innocuous_shl_load
9690 /* System header to define __stub macros and hopefully few prototypes,
9691 which can conflict with char shl_load (); below.
9692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9693 <limits.h> exists even on freestanding compilers. */
9696 # include <limits.h>
9698 # include <assert.h>
9703 /* Override any GCC internal prototype to avoid an error.
9704 Use char because int might match the return type of a GCC
9705 builtin and then its argument prototype would still apply. */
9710 /* The GNU C library defines this for functions which it implements
9711 to always fail with ENOSYS. Some functions are actually named
9712 something starting with __ and the normal name is an alias. */
9713 #if defined __stub_shl_load || defined __stub___shl_load
9725 rm -f conftest.$ac_objext conftest$ac_exeext
9726 if { (ac_try="$ac_link"
9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732 (eval "$ac_link") 2>conftest.er1
9734 grep -v '^ *+' conftest.er1 >conftest.err
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9740 { (case "(($ac_try" in
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_try") 2>&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_try") 2>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; }; then
9759 ac_cv_func_shl_load=yes
9761 echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9764 ac_cv_func_shl_load=no
9767 rm -f core conftest.err conftest.$ac_objext \
9768 conftest$ac_exeext conftest.$ac_ext
9770 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9771 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9772 if test $ac_cv_func_shl_load = yes; then
9774 cat >>confdefs.h <<\_ACEOF
9775 #define HAVE_SHL_LOAD 1
9779 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9780 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9781 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 ac_check_lib_save_LIBS=$LIBS
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_link") 2>conftest.er1
9817 grep -v '^ *+' conftest.er1 >conftest.err
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } &&
9822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9823 { (case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_try") 2>&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try='test -s conftest$ac_exeext'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; }; then
9842 ac_cv_lib_dld_shl_load=yes
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 ac_cv_lib_dld_shl_load=no
9850 rm -f core conftest.err conftest.$ac_objext \
9851 conftest$ac_exeext conftest.$ac_ext
9852 LIBS=$ac_check_lib_save_LIBS
9854 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9855 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9856 if test $ac_cv_lib_dld_shl_load = yes; then
9858 cat >>confdefs.h <<\_ACEOF
9859 #define HAVE_SHL_LOAD 1
9862 LIBADD_DL="$LIBADD_DL -ldld"
9864 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9865 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9866 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 ac_check_lib_save_LIBS=$LIBS
9871 cat >conftest.$ac_ext <<_ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9878 /* Override any GCC internal prototype to avoid an error.
9879 Use char because int might match the return type of a GCC
9880 builtin and then its argument prototype would still apply. */
9893 rm -f conftest.$ac_objext conftest$ac_exeext
9894 if { (ac_try="$ac_link"
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_link") 2>conftest.er1
9902 grep -v '^ *+' conftest.er1 >conftest.err
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9908 { (case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_try") 2>&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest$ac_exeext'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_cv_lib_dl_dlopen=yes
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ac_cv_lib_dl_dlopen=no
9935 rm -f core conftest.err conftest.$ac_objext \
9936 conftest$ac_exeext conftest.$ac_ext
9937 LIBS=$ac_check_lib_save_LIBS
9939 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9940 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9941 if test $ac_cv_lib_dl_dlopen = yes; then
9943 cat >>confdefs.h <<\_ACEOF
9944 #define HAVE_LIBDL 1
9947 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9949 cat >conftest.$ac_ext <<_ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h. */
9967 rm -f conftest.$ac_objext conftest$ac_exeext
9968 if { (ac_try="$ac_link"
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_link") 2>conftest.er1
9976 grep -v '^ *+' conftest.er1 >conftest.err
9978 cat conftest.err >&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } &&
9981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9982 { (case "(($ac_try" in
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_try") 2>&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; } &&
9991 { ac_try='test -s conftest$ac_exeext'
9992 { (case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_try") 2>&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; }; then
10002 cat >>confdefs.h <<\_ACEOF
10003 #define HAVE_LIBDL 1
10005 libltdl_cv_func_dlopen="yes"
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10011 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10012 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 ac_check_lib_save_LIBS=$LIBS
10016 LIBS="-lsvld $LIBS"
10017 cat >conftest.$ac_ext <<_ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10024 /* Override any GCC internal prototype to avoid an error.
10025 Use char because int might match the return type of a GCC
10026 builtin and then its argument prototype would still apply. */
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (ac_try="$ac_link"
10041 case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_link") 2>conftest.er1
10048 grep -v '^ *+' conftest.er1 >conftest.err
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest$ac_exeext'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_lib_svld_dlopen=yes
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10078 ac_cv_lib_svld_dlopen=no
10081 rm -f core conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10083 LIBS=$ac_check_lib_save_LIBS
10085 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10086 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10087 if test $ac_cv_lib_svld_dlopen = yes; then
10089 cat >>confdefs.h <<\_ACEOF
10090 #define HAVE_LIBDL 1
10093 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10095 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10096 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10097 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 ac_check_lib_save_LIBS=$LIBS
10102 cat >conftest.$ac_ext <<_ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10109 /* Override any GCC internal prototype to avoid an error.
10110 Use char because int might match the return type of a GCC
10111 builtin and then its argument prototype would still apply. */
10119 return dld_link ();
10124 rm -f conftest.$ac_objext conftest$ac_exeext
10125 if { (ac_try="$ac_link"
10126 case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_link") 2>conftest.er1
10133 grep -v '^ *+' conftest.er1 >conftest.err
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10139 { (case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_try") 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_try") 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
10158 ac_cv_lib_dld_dld_link=yes
10160 echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10163 ac_cv_lib_dld_dld_link=no
10166 rm -f core conftest.err conftest.$ac_objext \
10167 conftest$ac_exeext conftest.$ac_ext
10168 LIBS=$ac_check_lib_save_LIBS
10170 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10171 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10172 if test $ac_cv_lib_dld_dld_link = yes; then
10174 cat >>confdefs.h <<\_ACEOF
10178 LIBADD_DL="$LIBADD_DL -ldld"
10180 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10181 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10182 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 cat >conftest.$ac_ext <<_ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10193 #define _dyld_func_lookup innocuous__dyld_func_lookup
10195 /* System header to define __stub macros and hopefully few prototypes,
10196 which can conflict with char _dyld_func_lookup (); below.
10197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10198 <limits.h> exists even on freestanding compilers. */
10201 # include <limits.h>
10203 # include <assert.h>
10206 #undef _dyld_func_lookup
10208 /* Override any GCC internal prototype to avoid an error.
10209 Use char because int might match the return type of a GCC
10210 builtin and then its argument prototype would still apply. */
10214 char _dyld_func_lookup ();
10215 /* The GNU C library defines this for functions which it implements
10216 to always fail with ENOSYS. Some functions are actually named
10217 something starting with __ and the normal name is an alias. */
10218 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10225 return _dyld_func_lookup ();
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (ac_try="$ac_link"
10232 case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_link") 2>conftest.er1
10239 grep -v '^ *+' conftest.er1 >conftest.err
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_cv_func__dyld_func_lookup=yes
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 ac_cv_func__dyld_func_lookup=no
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10275 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10276 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10277 if test $ac_cv_func__dyld_func_lookup = yes; then
10279 cat >>confdefs.h <<\_ACEOF
10280 #define HAVE_DYLD 1
10294 rm -f core conftest.err conftest.$ac_objext \
10295 conftest$ac_exeext conftest.$ac_ext
10306 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10308 lt_save_LIBS="$LIBS"
10309 LIBS="$LIBS $LIBADD_DL"
10311 for ac_func in dlerror
10313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 cat >conftest.$ac_ext <<_ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10327 #define $ac_func innocuous_$ac_func
10329 /* System header to define __stub macros and hopefully few prototypes,
10330 which can conflict with char $ac_func (); below.
10331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10332 <limits.h> exists even on freestanding compilers. */
10335 # include <limits.h>
10337 # include <assert.h>
10342 /* Override any GCC internal prototype to avoid an error.
10343 Use char because int might match the return type of a GCC
10344 builtin and then its argument prototype would still apply. */
10349 /* The GNU C library defines this for functions which it implements
10350 to always fail with ENOSYS. Some functions are actually named
10351 something starting with __ and the normal name is an alias. */
10352 #if defined __stub_$ac_func || defined __stub___$ac_func
10359 return $ac_func ();
10364 rm -f conftest.$ac_objext conftest$ac_exeext
10365 if { (ac_try="$ac_link"
10366 case "(($ac_try" in
10367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368 *) ac_try_echo=$ac_try;;
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371 (eval "$ac_link") 2>conftest.er1
10373 grep -v '^ *+' conftest.er1 >conftest.err
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
10378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10379 { (case "(($ac_try" in
10380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381 *) ac_try_echo=$ac_try;;
10383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384 (eval "$ac_try") 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try='test -s conftest$ac_exeext'
10389 { (case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_try") 2>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; }; then
10398 eval "$as_ac_var=yes"
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 eval "$as_ac_var=no"
10406 rm -f core conftest.err conftest.$ac_objext \
10407 conftest$ac_exeext conftest.$ac_ext
10409 ac_res=`eval echo '${'$as_ac_var'}'`
10410 { echo "$as_me:$LINENO: result: $ac_res" >&5
10411 echo "${ECHO_T}$ac_res" >&6; }
10412 if test `eval echo '${'$as_ac_var'}'` = yes; then
10413 cat >>confdefs.h <<_ACEOF
10414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10420 LIBS="$lt_save_LIBS"
10423 ac_cpp='$CPP $CPPFLAGS'
10424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10430 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10431 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10432 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 ac_cv_sys_symbol_underscore=no
10436 cat > conftest.$ac_ext <<EOF
10437 void nm_test_func(){}
10438 int main(){nm_test_func;return 0;}
10440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441 (eval $ac_compile) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; then
10445 # Now try to grab the symbols.
10446 ac_nlist=conftest.nm
10447 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10448 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && test -s "$ac_nlist"; then
10452 # See whether the symbols have a leading underscore.
10453 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10454 ac_cv_sys_symbol_underscore=yes
10456 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10459 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10463 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10466 echo "configure: failed program was:" >&5
10472 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10473 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10476 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10477 if test x"$libltdl_cv_func_dlopen" = xyes ||
10478 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10479 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10480 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10481 if test "${libltdl_cv_need_uscore+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 libltdl_cv_need_uscore=unknown
10486 LIBS="$LIBS $LIBADD_DL"
10487 if test "$cross_compiling" = yes; then :
10488 libltdl_cv_need_uscore=cross
10490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10491 lt_status=$lt_dlunknown
10492 cat > conftest.$ac_ext <<EOF
10493 #line 10493 "configure"
10494 #include "confdefs.h"
10503 # define LT_DLGLOBAL RTLD_GLOBAL
10506 # define LT_DLGLOBAL DL_GLOBAL
10508 # define LT_DLGLOBAL 0
10512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10513 find out it does not work in some platform. */
10514 #ifndef LT_DLLAZY_OR_NOW
10516 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10519 # define LT_DLLAZY_OR_NOW DL_LAZY
10522 # define LT_DLLAZY_OR_NOW RTLD_NOW
10525 # define LT_DLLAZY_OR_NOW DL_NOW
10527 # define LT_DLLAZY_OR_NOW 0
10535 extern "C" void exit (int);
10538 void fnord() { int i=42;}
10541 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10542 int status = $lt_dlunknown;
10546 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10547 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10548 /* dlclose (self); */
10556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557 (eval $ac_link) 2>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10561 (./conftest; exit; ) >&5 2>/dev/null
10563 case x$lt_status in
10564 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10565 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10566 x$lt_dlunknown|x*) ;;
10569 # compilation failed
10578 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10579 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10583 if test x"$libltdl_cv_need_uscore" = xyes; then
10585 cat >>confdefs.h <<\_ACEOF
10586 #define NEED_USCORE 1
10592 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10593 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10594 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10597 # PORTME does your system automatically load deplibs for dlopen?
10598 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10599 # For now, we just catch OSes we know something about -- in the
10600 # future, we'll try test this programmatically.
10601 libltdl_cv_sys_dlopen_deplibs=unknown
10603 aix3*|aix4.1.*|aix4.2.*)
10604 # Unknown whether this is true for these versions of AIX, but
10605 # we want this `case' here to explicitly catch those versions.
10606 libltdl_cv_sys_dlopen_deplibs=unknown
10609 libltdl_cv_sys_dlopen_deplibs=yes
10612 # Assuming the user has installed a libdl from somewhere, this is true
10613 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10614 libltdl_cv_sys_dlopen_deplibs=yes
10616 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10617 # GNU and its variants, using gnu ld.so (Glibc)
10618 libltdl_cv_sys_dlopen_deplibs=yes
10621 libltdl_cv_sys_dlopen_deplibs=yes
10624 libltdl_cv_sys_dlopen_deplibs=yes
10626 irix[12345]*|irix6.[01]*)
10627 # Catch all versions of IRIX before 6.2, and indicate that we don't
10628 # know how it worked for any of those versions.
10629 libltdl_cv_sys_dlopen_deplibs=unknown
10632 # The case above catches anything before 6.2, and it's known that
10633 # at 6.2 and later dlopen does load deplibs.
10634 libltdl_cv_sys_dlopen_deplibs=yes
10637 libltdl_cv_sys_dlopen_deplibs=yes
10640 libltdl_cv_sys_dlopen_deplibs=yes
10643 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10644 # it did *not* use an RPATH in a shared library to find objects the
10645 # library depends on, so we explicitly say `no'.
10646 libltdl_cv_sys_dlopen_deplibs=no
10648 osf5.0|osf5.0a|osf5.1)
10649 # dlopen *does* load deplibs and with the right loader patch applied
10650 # it even uses RPATH in a shared library to search for shared objects
10651 # that the library depends on, but there's no easy way to know if that
10652 # patch is installed. Since this is the case, all we can really
10653 # say is unknown -- it depends on the patch being installed. If
10654 # it is, this changes to `yes'. Without it, it would be `no'.
10655 libltdl_cv_sys_dlopen_deplibs=unknown
10658 # the two cases above should catch all versions of osf <= 5.1. Read
10659 # the comments above for what we know about them.
10660 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10661 # is used to find them so we can finally say `yes'.
10662 libltdl_cv_sys_dlopen_deplibs=yes
10665 libltdl_cv_sys_dlopen_deplibs=yes
10667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10668 libltdl_cv_sys_dlopen_deplibs=yes
10673 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10674 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10675 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10677 cat >>confdefs.h <<\_ACEOF
10678 #define LTDL_DLOPEN_DEPLIBS 1
10684 for ac_header in argz.h
10686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 ac_res=`eval echo '${'$as_ac_Header'}'`
10694 { echo "$as_me:$LINENO: result: $ac_res" >&5
10695 echo "${ECHO_T}$ac_res" >&6; }
10697 # Is the header compilable?
10698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10700 cat >conftest.$ac_ext <<_ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10706 $ac_includes_default
10707 #include <$ac_header>
10709 rm -f conftest.$ac_objext
10710 if { (ac_try="$ac_compile"
10711 case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_compile") 2>conftest.er1
10718 grep -v '^ *+' conftest.er1 >conftest.err
10720 cat conftest.err >&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10724 { (case "(($ac_try" in
10725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_try") 2>&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); }; } &&
10733 { ac_try='test -s conftest.$ac_objext'
10734 { (case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_try") 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
10743 ac_header_compiler=yes
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10748 ac_header_compiler=no
10751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10753 echo "${ECHO_T}$ac_header_compiler" >&6; }
10755 # Is the header present?
10756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10758 cat >conftest.$ac_ext <<_ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 #include <$ac_header>
10766 if { (ac_try="$ac_cpp conftest.$ac_ext"
10767 case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10774 grep -v '^ *+' conftest.er1 >conftest.err
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } >/dev/null; then
10779 if test -s conftest.err; then
10780 ac_cpp_err=$ac_c_preproc_warn_flag
10781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10788 if test -z "$ac_cpp_err"; then
10789 ac_header_preproc=yes
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10794 ac_header_preproc=no
10797 rm -f conftest.err conftest.$ac_ext
10798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10799 echo "${ECHO_T}$ac_header_preproc" >&6; }
10801 # So? What about this header?
10802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10808 ac_header_preproc=yes
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10824 ## ----------------------------------- ##
10825 ## Report this to llvmbugs@cs.uiuc.edu ##
10826 ## ----------------------------------- ##
10828 ) | sed "s/^/$as_me: WARNING: /" >&2
10831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 eval "$as_ac_Header=\$ac_header_preproc"
10838 ac_res=`eval echo '${'$as_ac_Header'}'`
10839 { echo "$as_me:$LINENO: result: $ac_res" >&5
10840 echo "${ECHO_T}$ac_res" >&6; }
10843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10844 cat >>confdefs.h <<_ACEOF
10845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10853 { echo "$as_me:$LINENO: checking for error_t" >&5
10854 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10855 if test "${ac_cv_type_error_t+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 cat >conftest.$ac_ext <<_ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10868 typedef error_t ac__type_new_;
10872 if ((ac__type_new_ *) 0)
10874 if (sizeof (ac__type_new_))
10880 rm -f conftest.$ac_objext
10881 if { (ac_try="$ac_compile"
10882 case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887 (eval "$ac_compile") 2>conftest.er1
10889 grep -v '^ *+' conftest.er1 >conftest.err
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
10894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10895 { (case "(($ac_try" in
10896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897 *) ac_try_echo=$ac_try;;
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900 (eval "$ac_try") 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; } &&
10904 { ac_try='test -s conftest.$ac_objext'
10905 { (case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_try") 2>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; }; then
10914 ac_cv_type_error_t=yes
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10919 ac_cv_type_error_t=no
10922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10924 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10925 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10926 if test $ac_cv_type_error_t = yes; then
10928 cat >>confdefs.h <<_ACEOF
10929 #define HAVE_ERROR_T 1
10935 cat >>confdefs.h <<\_ACEOF
10936 #define error_t int
10947 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 cat >conftest.$ac_ext <<_ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10963 #define $ac_func innocuous_$ac_func
10965 /* System header to define __stub macros and hopefully few prototypes,
10966 which can conflict with char $ac_func (); below.
10967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10968 <limits.h> exists even on freestanding compilers. */
10971 # include <limits.h>
10973 # include <assert.h>
10978 /* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10985 /* The GNU C library defines this for functions which it implements
10986 to always fail with ENOSYS. Some functions are actually named
10987 something starting with __ and the normal name is an alias. */
10988 #if defined __stub_$ac_func || defined __stub___$ac_func
10995 return $ac_func ();
11000 rm -f conftest.$ac_objext conftest$ac_exeext
11001 if { (ac_try="$ac_link"
11002 case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_link") 2>conftest.er1
11009 grep -v '^ *+' conftest.er1 >conftest.err
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11015 { (case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_try") 2>&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; } &&
11024 { ac_try='test -s conftest$ac_exeext'
11025 { (case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_try") 2>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 eval "$as_ac_var=yes"
11036 echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11039 eval "$as_ac_var=no"
11042 rm -f core conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
11045 ac_res=`eval echo '${'$as_ac_var'}'`
11046 { echo "$as_me:$LINENO: result: $ac_res" >&5
11047 echo "${ECHO_T}$ac_res" >&6; }
11048 if test `eval echo '${'$as_ac_var'}'` = yes; then
11049 cat >>confdefs.h <<_ACEOF
11050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11083 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 ac_res=`eval echo '${'$as_ac_Header'}'`
11094 { echo "$as_me:$LINENO: result: $ac_res" >&5
11095 echo "${ECHO_T}$ac_res" >&6; }
11097 # Is the header compilable?
11098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11100 cat >conftest.$ac_ext <<_ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 $ac_includes_default
11107 #include <$ac_header>
11109 rm -f conftest.$ac_objext
11110 if { (ac_try="$ac_compile"
11111 case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11116 (eval "$ac_compile") 2>conftest.er1
11118 grep -v '^ *+' conftest.er1 >conftest.err
11120 cat conftest.err >&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } &&
11123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11124 { (case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_try") 2>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; } &&
11133 { ac_try='test -s conftest.$ac_objext'
11134 { (case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_try") 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_header_compiler=yes
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11148 ac_header_compiler=no
11151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11153 echo "${ECHO_T}$ac_header_compiler" >&6; }
11155 # Is the header present?
11156 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11158 cat >conftest.$ac_ext <<_ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h. */
11164 #include <$ac_header>
11166 if { (ac_try="$ac_cpp conftest.$ac_ext"
11167 case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11174 grep -v '^ *+' conftest.er1 >conftest.err
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } >/dev/null; then
11179 if test -s conftest.err; then
11180 ac_cpp_err=$ac_c_preproc_warn_flag
11181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11188 if test -z "$ac_cpp_err"; then
11189 ac_header_preproc=yes
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11194 ac_header_preproc=no
11197 rm -f conftest.err conftest.$ac_ext
11198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11199 echo "${ECHO_T}$ac_header_preproc" >&6; }
11201 # So? What about this header?
11202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11208 ac_header_preproc=yes
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11224 ## ----------------------------------- ##
11225 ## Report this to llvmbugs@cs.uiuc.edu ##
11226 ## ----------------------------------- ##
11228 ) | sed "s/^/$as_me: WARNING: /" >&2
11231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 eval "$as_ac_Header=\$ac_header_preproc"
11238 ac_res=`eval echo '${'$as_ac_Header'}'`
11239 { echo "$as_me:$LINENO: result: $ac_res" >&5
11240 echo "${ECHO_T}$ac_res" >&6; }
11243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11244 cat >>confdefs.h <<_ACEOF
11245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11256 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 ac_res=`eval echo '${'$as_ac_Header'}'`
11266 { echo "$as_me:$LINENO: result: $ac_res" >&5
11267 echo "${ECHO_T}$ac_res" >&6; }
11269 # Is the header compilable?
11270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11272 cat >conftest.$ac_ext <<_ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 $ac_includes_default
11279 #include <$ac_header>
11281 rm -f conftest.$ac_objext
11282 if { (ac_try="$ac_compile"
11283 case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_compile") 2>conftest.er1
11290 grep -v '^ *+' conftest.er1 >conftest.err
11292 cat conftest.err >&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } &&
11295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11296 { (case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_try") 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; } &&
11305 { ac_try='test -s conftest.$ac_objext'
11306 { (case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_try") 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
11315 ac_header_compiler=yes
11317 echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11320 ac_header_compiler=no
11323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11325 echo "${ECHO_T}$ac_header_compiler" >&6; }
11327 # Is the header present?
11328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11330 cat >conftest.$ac_ext <<_ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 #include <$ac_header>
11338 if { (ac_try="$ac_cpp conftest.$ac_ext"
11339 case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11346 grep -v '^ *+' conftest.er1 >conftest.err
11348 cat conftest.err >&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } >/dev/null; then
11351 if test -s conftest.err; then
11352 ac_cpp_err=$ac_c_preproc_warn_flag
11353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11360 if test -z "$ac_cpp_err"; then
11361 ac_header_preproc=yes
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 ac_header_preproc=no
11369 rm -f conftest.err conftest.$ac_ext
11370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11371 echo "${ECHO_T}$ac_header_preproc" >&6; }
11373 # So? What about this header?
11374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11380 ac_header_preproc=yes
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11396 ## ----------------------------------- ##
11397 ## Report this to llvmbugs@cs.uiuc.edu ##
11398 ## ----------------------------------- ##
11400 ) | sed "s/^/$as_me: WARNING: /" >&2
11403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 eval "$as_ac_Header=\$ac_header_preproc"
11410 ac_res=`eval echo '${'$as_ac_Header'}'`
11411 { echo "$as_me:$LINENO: result: $ac_res" >&5
11412 echo "${ECHO_T}$ac_res" >&6; }
11415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11416 cat >>confdefs.h <<_ACEOF
11417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11426 for ac_header in string.h strings.h
11428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 ac_res=`eval echo '${'$as_ac_Header'}'`
11436 { echo "$as_me:$LINENO: result: $ac_res" >&5
11437 echo "${ECHO_T}$ac_res" >&6; }
11439 # Is the header compilable?
11440 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11442 cat >conftest.$ac_ext <<_ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 $ac_includes_default
11449 #include <$ac_header>
11451 rm -f conftest.$ac_objext
11452 if { (ac_try="$ac_compile"
11453 case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_compile") 2>conftest.er1
11460 grep -v '^ *+' conftest.er1 >conftest.err
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11466 { (case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_try") 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; } &&
11475 { ac_try='test -s conftest.$ac_objext'
11476 { (case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_try") 2>&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 ac_header_compiler=yes
11487 echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11490 ac_header_compiler=no
11493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11495 echo "${ECHO_T}$ac_header_compiler" >&6; }
11497 # Is the header present?
11498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11500 cat >conftest.$ac_ext <<_ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 #include <$ac_header>
11508 if { (ac_try="$ac_cpp conftest.$ac_ext"
11509 case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11516 grep -v '^ *+' conftest.er1 >conftest.err
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } >/dev/null; then
11521 if test -s conftest.err; then
11522 ac_cpp_err=$ac_c_preproc_warn_flag
11523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11530 if test -z "$ac_cpp_err"; then
11531 ac_header_preproc=yes
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_header_preproc=no
11539 rm -f conftest.err conftest.$ac_ext
11540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11541 echo "${ECHO_T}$ac_header_preproc" >&6; }
11543 # So? What about this header?
11544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11550 ac_header_preproc=yes
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11566 ## ----------------------------------- ##
11567 ## Report this to llvmbugs@cs.uiuc.edu ##
11568 ## ----------------------------------- ##
11570 ) | sed "s/^/$as_me: WARNING: /" >&2
11573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 eval "$as_ac_Header=\$ac_header_preproc"
11580 ac_res=`eval echo '${'$as_ac_Header'}'`
11581 { echo "$as_me:$LINENO: result: $ac_res" >&5
11582 echo "${ECHO_T}$ac_res" >&6; }
11585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11586 cat >>confdefs.h <<_ACEOF
11587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11597 for ac_func in strchr index
11599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 cat >conftest.$ac_ext <<_ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h. */
11611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11613 #define $ac_func innocuous_$ac_func
11615 /* System header to define __stub macros and hopefully few prototypes,
11616 which can conflict with char $ac_func (); below.
11617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11618 <limits.h> exists even on freestanding compilers. */
11621 # include <limits.h>
11623 # include <assert.h>
11628 /* Override any GCC internal prototype to avoid an error.
11629 Use char because int might match the return type of a GCC
11630 builtin and then its argument prototype would still apply. */
11635 /* The GNU C library defines this for functions which it implements
11636 to always fail with ENOSYS. Some functions are actually named
11637 something starting with __ and the normal name is an alias. */
11638 #if defined __stub_$ac_func || defined __stub___$ac_func
11645 return $ac_func ();
11650 rm -f conftest.$ac_objext conftest$ac_exeext
11651 if { (ac_try="$ac_link"
11652 case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_link") 2>conftest.er1
11659 grep -v '^ *+' conftest.er1 >conftest.err
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } &&
11664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11665 { (case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_try") 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_try") 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 eval "$as_ac_var=yes"
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11689 eval "$as_ac_var=no"
11692 rm -f core conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11695 ac_res=`eval echo '${'$as_ac_var'}'`
11696 { echo "$as_me:$LINENO: result: $ac_res" >&5
11697 echo "${ECHO_T}$ac_res" >&6; }
11698 if test `eval echo '${'$as_ac_var'}'` = yes; then
11699 cat >>confdefs.h <<_ACEOF
11700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11708 for ac_func in strrchr rindex
11710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 cat >conftest.$ac_ext <<_ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11724 #define $ac_func innocuous_$ac_func
11726 /* System header to define __stub macros and hopefully few prototypes,
11727 which can conflict with char $ac_func (); below.
11728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11729 <limits.h> exists even on freestanding compilers. */
11732 # include <limits.h>
11734 # include <assert.h>
11739 /* Override any GCC internal prototype to avoid an error.
11740 Use char because int might match the return type of a GCC
11741 builtin and then its argument prototype would still apply. */
11746 /* The GNU C library defines this for functions which it implements
11747 to always fail with ENOSYS. Some functions are actually named
11748 something starting with __ and the normal name is an alias. */
11749 #if defined __stub_$ac_func || defined __stub___$ac_func
11756 return $ac_func ();
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (ac_try="$ac_link"
11763 case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_link") 2>conftest.er1
11770 grep -v '^ *+' conftest.er1 >conftest.err
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11776 { (case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_try") 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try='test -s conftest$ac_exeext'
11786 { (case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_try") 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 eval "$as_ac_var=yes"
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 eval "$as_ac_var=no"
11803 rm -f core conftest.err conftest.$ac_objext \
11804 conftest$ac_exeext conftest.$ac_ext
11806 ac_res=`eval echo '${'$as_ac_var'}'`
11807 { echo "$as_me:$LINENO: result: $ac_res" >&5
11808 echo "${ECHO_T}$ac_res" >&6; }
11809 if test `eval echo '${'$as_ac_var'}'` = yes; then
11810 cat >>confdefs.h <<_ACEOF
11811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11819 for ac_func in memcpy bcopy
11821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 cat >conftest.$ac_ext <<_ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h. */
11833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11835 #define $ac_func innocuous_$ac_func
11837 /* System header to define __stub macros and hopefully few prototypes,
11838 which can conflict with char $ac_func (); below.
11839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11840 <limits.h> exists even on freestanding compilers. */
11843 # include <limits.h>
11845 # include <assert.h>
11850 /* Override any GCC internal prototype to avoid an error.
11851 Use char because int might match the return type of a GCC
11852 builtin and then its argument prototype would still apply. */
11857 /* The GNU C library defines this for functions which it implements
11858 to always fail with ENOSYS. Some functions are actually named
11859 something starting with __ and the normal name is an alias. */
11860 #if defined __stub_$ac_func || defined __stub___$ac_func
11867 return $ac_func ();
11872 rm -f conftest.$ac_objext conftest$ac_exeext
11873 if { (ac_try="$ac_link"
11874 case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879 (eval "$ac_link") 2>conftest.er1
11881 grep -v '^ *+' conftest.er1 >conftest.err
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11887 { (case "(($ac_try" in
11888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889 *) ac_try_echo=$ac_try;;
11891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892 (eval "$ac_try") 2>&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; } &&
11896 { ac_try='test -s conftest$ac_exeext'
11897 { (case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902 (eval "$ac_try") 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; }; then
11906 eval "$as_ac_var=yes"
11908 echo "$as_me: failed program was:" >&5
11909 sed 's/^/| /' conftest.$ac_ext >&5
11911 eval "$as_ac_var=no"
11914 rm -f core conftest.err conftest.$ac_objext \
11915 conftest$ac_exeext conftest.$ac_ext
11917 ac_res=`eval echo '${'$as_ac_var'}'`
11918 { echo "$as_me:$LINENO: result: $ac_res" >&5
11919 echo "${ECHO_T}$ac_res" >&6; }
11920 if test `eval echo '${'$as_ac_var'}'` = yes; then
11921 cat >>confdefs.h <<_ACEOF
11922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11930 for ac_func in memmove strcmp
11932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 cat >conftest.$ac_ext <<_ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11946 #define $ac_func innocuous_$ac_func
11948 /* System header to define __stub macros and hopefully few prototypes,
11949 which can conflict with char $ac_func (); below.
11950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11951 <limits.h> exists even on freestanding compilers. */
11954 # include <limits.h>
11956 # include <assert.h>
11961 /* Override any GCC internal prototype to avoid an error.
11962 Use char because int might match the return type of a GCC
11963 builtin and then its argument prototype would still apply. */
11968 /* The GNU C library defines this for functions which it implements
11969 to always fail with ENOSYS. Some functions are actually named
11970 something starting with __ and the normal name is an alias. */
11971 #if defined __stub_$ac_func || defined __stub___$ac_func
11978 return $ac_func ();
11983 rm -f conftest.$ac_objext conftest$ac_exeext
11984 if { (ac_try="$ac_link"
11985 case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_link") 2>conftest.er1
11992 grep -v '^ *+' conftest.er1 >conftest.err
11994 cat conftest.err >&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11998 { (case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_try") 2>&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; } &&
12007 { ac_try='test -s conftest$ac_exeext'
12008 { (case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_try") 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; }; then
12017 eval "$as_ac_var=yes"
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12022 eval "$as_ac_var=no"
12025 rm -f core conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12028 ac_res=`eval echo '${'$as_ac_var'}'`
12029 { echo "$as_me:$LINENO: result: $ac_res" >&5
12030 echo "${ECHO_T}$ac_res" >&6; }
12031 if test `eval echo '${'$as_ac_var'}'` = yes; then
12032 cat >>confdefs.h <<_ACEOF
12033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12042 for ac_func in closedir opendir readdir
12044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 cat >conftest.$ac_ext <<_ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12058 #define $ac_func innocuous_$ac_func
12060 /* System header to define __stub macros and hopefully few prototypes,
12061 which can conflict with char $ac_func (); below.
12062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12063 <limits.h> exists even on freestanding compilers. */
12066 # include <limits.h>
12068 # include <assert.h>
12073 /* Override any GCC internal prototype to avoid an error.
12074 Use char because int might match the return type of a GCC
12075 builtin and then its argument prototype would still apply. */
12080 /* The GNU C library defines this for functions which it implements
12081 to always fail with ENOSYS. Some functions are actually named
12082 something starting with __ and the normal name is an alias. */
12083 #if defined __stub_$ac_func || defined __stub___$ac_func
12090 return $ac_func ();
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (ac_try="$ac_link"
12097 case "(($ac_try" in
12098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099 *) ac_try_echo=$ac_try;;
12101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102 (eval "$ac_link") 2>conftest.er1
12104 grep -v '^ *+' conftest.er1 >conftest.err
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12110 { (case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_try") 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest$ac_exeext'
12120 { (case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 eval "$as_ac_var=yes"
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12134 eval "$as_ac_var=no"
12137 rm -f core conftest.err conftest.$ac_objext \
12138 conftest$ac_exeext conftest.$ac_ext
12140 ac_res=`eval echo '${'$as_ac_var'}'`
12141 { echo "$as_me:$LINENO: result: $ac_res" >&5
12142 echo "${ECHO_T}$ac_res" >&6; }
12143 if test `eval echo '${'$as_ac_var'}'` = yes; then
12144 cat >>confdefs.h <<_ACEOF
12145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12153 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12154 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12167 if test "$GCC" != "yes" && test "$ICC" != "yes"
12169 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12170 echo "$as_me: error: gcc|icc required but not found" >&2;}
12171 { (exit 1); exit 1; }; }
12174 if test "$GXX" != "yes" && test "$IXX" != "yes"
12176 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12177 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12178 { (exit 1); exit 1; }; }
12181 if test "$GCC" = "yes"
12183 cat >conftest.$ac_ext <<_ACEOF
12184 #if !defined(__GNUC__) || __GNUC__ < 3
12185 #error Unsupported GCC version
12189 rm -f conftest.$ac_objext
12190 if { (ac_try="$ac_compile"
12191 case "(($ac_try" in
12192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12193 *) ac_try_echo=$ac_try;;
12195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12196 (eval "$ac_compile") 2>conftest.er1
12198 grep -v '^ *+' conftest.er1 >conftest.err
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12204 { (case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_try") 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest.$ac_objext'
12214 { (case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_try") 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
12225 echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12228 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12229 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12230 { (exit 1); exit 1; }; }
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236 if test -z "$llvm_cv_gnu_make_command"
12238 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12239 echo "$as_me: error: GNU Make required but not found" >&2;}
12240 { (exit 1); exit 1; }; }
12243 { echo "$as_me:$LINENO: result: ok" >&5
12244 echo "${ECHO_T}ok" >&6; }
12246 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12247 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12248 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12250 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12252 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12253 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12257 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12258 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12259 if test "${ac_cv_lib_m_sin+set}" = set; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 ac_check_lib_save_LIBS=$LIBS
12264 cat >conftest.$ac_ext <<_ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12271 /* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
12286 rm -f conftest.$ac_objext conftest$ac_exeext
12287 if { (ac_try="$ac_link"
12288 case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_link") 2>conftest.er1
12295 grep -v '^ *+' conftest.er1 >conftest.err
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12301 { (case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_try") 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; } &&
12310 { ac_try='test -s conftest$ac_exeext'
12311 { (case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_try") 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_lib_m_sin=yes
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12328 rm -f core conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330 LIBS=$ac_check_lib_save_LIBS
12332 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12333 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12334 if test $ac_cv_lib_m_sin = yes; then
12335 cat >>confdefs.h <<_ACEOF
12336 #define HAVE_LIBM 1
12343 if test "$llvm_cv_os_type" = "MingW" ; then
12345 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12346 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12347 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 ac_check_lib_save_LIBS=$LIBS
12351 LIBS="-limagehlp $LIBS"
12352 cat >conftest.$ac_ext <<_ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h. */
12368 rm -f conftest.$ac_objext conftest$ac_exeext
12369 if { (ac_try="$ac_link"
12370 case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_link") 2>conftest.er1
12377 grep -v '^ *+' conftest.er1 >conftest.err
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } &&
12382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12383 { (case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_try") 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest$ac_exeext'
12393 { (case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_try") 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 ac_cv_lib_imagehlp_main=yes
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12407 ac_cv_lib_imagehlp_main=no
12410 rm -f core conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
12412 LIBS=$ac_check_lib_save_LIBS
12414 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12415 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12416 if test $ac_cv_lib_imagehlp_main = yes; then
12417 cat >>confdefs.h <<_ACEOF
12418 #define HAVE_LIBIMAGEHLP 1
12421 LIBS="-limagehlp $LIBS"
12426 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12427 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12428 if test "${ac_cv_lib_psapi_main+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 ac_check_lib_save_LIBS=$LIBS
12432 LIBS="-lpsapi $LIBS"
12433 cat >conftest.$ac_ext <<_ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h. */
12449 rm -f conftest.$ac_objext conftest$ac_exeext
12450 if { (ac_try="$ac_link"
12451 case "(($ac_try" in
12452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12453 *) ac_try_echo=$ac_try;;
12455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12456 (eval "$ac_link") 2>conftest.er1
12458 grep -v '^ *+' conftest.er1 >conftest.err
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12464 { (case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_try") 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest$ac_exeext'
12474 { (case "(($ac_try" in
12475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476 *) ac_try_echo=$ac_try;;
12478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479 (eval "$ac_try") 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483 ac_cv_lib_psapi_main=yes
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 ac_cv_lib_psapi_main=no
12491 rm -f core conftest.err conftest.$ac_objext \
12492 conftest$ac_exeext conftest.$ac_ext
12493 LIBS=$ac_check_lib_save_LIBS
12495 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12496 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12497 if test $ac_cv_lib_psapi_main = yes; then
12498 cat >>confdefs.h <<_ACEOF
12499 #define HAVE_LIBPSAPI 1
12502 LIBS="-lpsapi $LIBS"
12508 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12509 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12510 if test "${ac_cv_search_dlopen+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 ac_func_search_save_LIBS=$LIBS
12514 cat >conftest.$ac_ext <<_ACEOF
12517 cat confdefs.h >>conftest.$ac_ext
12518 cat >>conftest.$ac_ext <<_ACEOF
12519 /* end confdefs.h. */
12521 /* Override any GCC internal prototype to avoid an error.
12522 Use char because int might match the return type of a GCC
12523 builtin and then its argument prototype would still apply. */
12536 for ac_lib in '' dl; do
12537 if test -z "$ac_lib"; then
12538 ac_res="none required"
12541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12543 rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (ac_try="$ac_link"
12545 case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_link") 2>conftest.er1
12552 grep -v '^ *+' conftest.er1 >conftest.err
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
12557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12558 { (case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_try") 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; } &&
12567 { ac_try='test -s conftest$ac_exeext'
12568 { (case "(($ac_try" in
12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570 *) ac_try_echo=$ac_try;;
12572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573 (eval "$ac_try") 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_cv_search_dlopen=$ac_res
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12585 rm -f core conftest.err conftest.$ac_objext \
12587 if test "${ac_cv_search_dlopen+set}" = set; then
12591 if test "${ac_cv_search_dlopen+set}" = set; then
12594 ac_cv_search_dlopen=no
12596 rm conftest.$ac_ext
12597 LIBS=$ac_func_search_save_LIBS
12599 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12600 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12601 ac_res=$ac_cv_search_dlopen
12602 if test "$ac_res" != no; then
12603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12605 cat >>confdefs.h <<\_ACEOF
12606 #define HAVE_DLOPEN 1
12610 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12611 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12615 if test "$llvm_cv_enable_libffi" = "yes" ; then
12616 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12617 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12618 if test "${ac_cv_search_ffi_call+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 ac_func_search_save_LIBS=$LIBS
12622 cat >conftest.$ac_ext <<_ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12629 /* Override any GCC internal prototype to avoid an error.
12630 Use char because int might match the return type of a GCC
12631 builtin and then its argument prototype would still apply. */
12639 return ffi_call ();
12644 for ac_lib in '' ffi; do
12645 if test -z "$ac_lib"; then
12646 ac_res="none required"
12649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (ac_try="$ac_link"
12653 case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_link") 2>conftest.er1
12660 grep -v '^ *+' conftest.er1 >conftest.err
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
12665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12666 { (case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_try") 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; } &&
12675 { ac_try='test -s conftest$ac_exeext'
12676 { (case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_try") 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_search_ffi_call=$ac_res
12687 echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12693 rm -f core conftest.err conftest.$ac_objext \
12695 if test "${ac_cv_search_ffi_call+set}" = set; then
12699 if test "${ac_cv_search_ffi_call+set}" = set; then
12702 ac_cv_search_ffi_call=no
12704 rm conftest.$ac_ext
12705 LIBS=$ac_func_search_save_LIBS
12707 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12708 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12709 ac_res=$ac_cv_search_ffi_call
12710 if test "$ac_res" != no; then
12711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12713 cat >>confdefs.h <<\_ACEOF
12714 #define HAVE_FFI_CALL 1
12718 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12719 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12720 { (exit 1); exit 1; }; }
12725 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12726 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12727 if test "${ac_cv_search_mallinfo+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 ac_func_search_save_LIBS=$LIBS
12731 cat >conftest.$ac_ext <<_ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12738 /* Override any GCC internal prototype to avoid an error.
12739 Use char because int might match the return type of a GCC
12740 builtin and then its argument prototype would still apply. */
12748 return mallinfo ();
12753 for ac_lib in '' malloc; do
12754 if test -z "$ac_lib"; then
12755 ac_res="none required"
12758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12760 rm -f conftest.$ac_objext conftest$ac_exeext
12761 if { (ac_try="$ac_link"
12762 case "(($ac_try" in
12763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764 *) ac_try_echo=$ac_try;;
12766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767 (eval "$ac_link") 2>conftest.er1
12769 grep -v '^ *+' conftest.er1 >conftest.err
12771 cat conftest.err >&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
12774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12775 { (case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_try") 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; } &&
12784 { ac_try='test -s conftest$ac_exeext'
12785 { (case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_try") 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; }; then
12794 ac_cv_search_mallinfo=$ac_res
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12802 rm -f core conftest.err conftest.$ac_objext \
12804 if test "${ac_cv_search_mallinfo+set}" = set; then
12808 if test "${ac_cv_search_mallinfo+set}" = set; then
12811 ac_cv_search_mallinfo=no
12813 rm conftest.$ac_ext
12814 LIBS=$ac_func_search_save_LIBS
12816 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12817 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12818 ac_res=$ac_cv_search_mallinfo
12819 if test "$ac_res" != no; then
12820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12822 cat >>confdefs.h <<\_ACEOF
12823 #define HAVE_MALLINFO 1
12829 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12831 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12832 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12833 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 ac_check_lib_save_LIBS=$LIBS
12837 LIBS="-lpthread $LIBS"
12838 cat >conftest.$ac_ext <<_ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12845 /* Override any GCC internal prototype to avoid an error.
12846 Use char because int might match the return type of a GCC
12847 builtin and then its argument prototype would still apply. */
12851 char pthread_mutex_init ();
12855 return pthread_mutex_init ();
12860 rm -f conftest.$ac_objext conftest$ac_exeext
12861 if { (ac_try="$ac_link"
12862 case "(($ac_try" in
12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867 (eval "$ac_link") 2>conftest.er1
12869 grep -v '^ *+' conftest.er1 >conftest.err
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
12874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12875 { (case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_try") 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; } &&
12884 { ac_try='test -s conftest$ac_exeext'
12885 { (case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_try") 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 ac_cv_lib_pthread_pthread_mutex_init=yes
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 ac_cv_lib_pthread_pthread_mutex_init=no
12902 rm -f core conftest.err conftest.$ac_objext \
12903 conftest$ac_exeext conftest.$ac_ext
12904 LIBS=$ac_check_lib_save_LIBS
12906 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12907 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12908 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12909 cat >>confdefs.h <<_ACEOF
12910 #define HAVE_LIBPTHREAD 1
12913 LIBS="-lpthread $LIBS"
12917 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12918 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12919 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12922 ac_func_search_save_LIBS=$LIBS
12923 cat >conftest.$ac_ext <<_ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12930 /* Override any GCC internal prototype to avoid an error.
12931 Use char because int might match the return type of a GCC
12932 builtin and then its argument prototype would still apply. */
12936 char pthread_mutex_lock ();
12940 return pthread_mutex_lock ();
12945 for ac_lib in '' pthread; do
12946 if test -z "$ac_lib"; then
12947 ac_res="none required"
12950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12952 rm -f conftest.$ac_objext conftest$ac_exeext
12953 if { (ac_try="$ac_link"
12954 case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_link") 2>conftest.er1
12961 grep -v '^ *+' conftest.er1 >conftest.err
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } &&
12966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12967 { (case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_try") 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; } &&
12976 { ac_try='test -s conftest$ac_exeext'
12977 { (case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_try") 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; }; then
12986 ac_cv_search_pthread_mutex_lock=$ac_res
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12994 rm -f core conftest.err conftest.$ac_objext \
12996 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13000 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13003 ac_cv_search_pthread_mutex_lock=no
13005 rm conftest.$ac_ext
13006 LIBS=$ac_func_search_save_LIBS
13008 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13009 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13010 ac_res=$ac_cv_search_pthread_mutex_lock
13011 if test "$ac_res" != no; then
13012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13014 cat >>confdefs.h <<\_ACEOF
13015 #define HAVE_PTHREAD_MUTEX_LOCK 1
13020 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13021 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13022 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 ac_func_search_save_LIBS=$LIBS
13026 cat >conftest.$ac_ext <<_ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13033 /* Override any GCC internal prototype to avoid an error.
13034 Use char because int might match the return type of a GCC
13035 builtin and then its argument prototype would still apply. */
13039 char pthread_rwlock_init ();
13043 return pthread_rwlock_init ();
13048 for ac_lib in '' pthread; do
13049 if test -z "$ac_lib"; then
13050 ac_res="none required"
13053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13055 rm -f conftest.$ac_objext conftest$ac_exeext
13056 if { (ac_try="$ac_link"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_link") 2>conftest.er1
13064 grep -v '^ *+' conftest.er1 >conftest.err
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
13069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13070 { (case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_try") 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; } &&
13079 { ac_try='test -s conftest$ac_exeext'
13080 { (case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_try") 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; }; then
13089 ac_cv_search_pthread_rwlock_init=$ac_res
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13097 rm -f core conftest.err conftest.$ac_objext \
13099 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13103 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13106 ac_cv_search_pthread_rwlock_init=no
13108 rm conftest.$ac_ext
13109 LIBS=$ac_func_search_save_LIBS
13111 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13112 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13113 ac_res=$ac_cv_search_pthread_rwlock_init
13114 if test "$ac_res" != no; then
13115 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13117 cat >>confdefs.h <<\_ACEOF
13118 #define HAVE_PTHREAD_RWLOCK_INIT 1
13123 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13124 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13125 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13128 ac_func_search_save_LIBS=$LIBS
13129 cat >conftest.$ac_ext <<_ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h. */
13136 /* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13142 char pthread_getspecific ();
13146 return pthread_getspecific ();
13151 for ac_lib in '' pthread; do
13152 if test -z "$ac_lib"; then
13153 ac_res="none required"
13156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13158 rm -f conftest.$ac_objext conftest$ac_exeext
13159 if { (ac_try="$ac_link"
13160 case "(($ac_try" in
13161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162 *) ac_try_echo=$ac_try;;
13164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165 (eval "$ac_link") 2>conftest.er1
13167 grep -v '^ *+' conftest.er1 >conftest.err
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13173 { (case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_try") 2>&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; } &&
13182 { ac_try='test -s conftest$ac_exeext'
13183 { (case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_try") 2>&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; }; then
13192 ac_cv_search_pthread_getspecific=$ac_res
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13200 rm -f core conftest.err conftest.$ac_objext \
13202 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13206 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13209 ac_cv_search_pthread_getspecific=no
13211 rm conftest.$ac_ext
13212 LIBS=$ac_func_search_save_LIBS
13214 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13215 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13216 ac_res=$ac_cv_search_pthread_getspecific
13217 if test "$ac_res" != no; then
13218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13220 cat >>confdefs.h <<\_ACEOF
13221 #define HAVE_PTHREAD_GETSPECIFIC 1
13229 # Check whether --with-udis86 was given.
13230 if test "${with_udis86+set}" = set; then
13231 withval=$with_udis86;
13236 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13239 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13240 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13241 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 ac_check_lib_save_LIBS=$LIBS
13245 LIBS="-ludis86 $LIBS"
13246 cat >conftest.$ac_ext <<_ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13253 /* Override any GCC internal prototype to avoid an error.
13254 Use char because int might match the return type of a GCC
13255 builtin and then its argument prototype would still apply. */
13268 rm -f conftest.$ac_objext conftest$ac_exeext
13269 if { (ac_try="$ac_link"
13270 case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_link") 2>conftest.er1
13277 grep -v '^ *+' conftest.er1 >conftest.err
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
13282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13283 { (case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_try") 2>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; } &&
13292 { ac_try='test -s conftest$ac_exeext'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 ac_cv_lib_udis86_ud_init=yes
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13307 ac_cv_lib_udis86_ud_init=no
13310 rm -f core conftest.err conftest.$ac_objext \
13311 conftest$ac_exeext conftest.$ac_ext
13312 LIBS=$ac_check_lib_save_LIBS
13314 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13315 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13316 if test $ac_cv_lib_udis86_ud_init = yes; then
13317 cat >>confdefs.h <<_ACEOF
13318 #define HAVE_LIBUDIS86 1
13321 LIBS="-ludis86 $LIBS"
13325 echo "Error! You need to have libudis86 around."
13337 cat >>confdefs.h <<_ACEOF
13338 #define USE_UDIS86 $USE_UDIS86
13343 # Check whether --with-oprofile was given.
13344 if test "${with_oprofile+set}" = set; then
13345 withval=$with_oprofile;
13349 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13350 no) llvm_cv_oppath=
13353 *) llvm_cv_oppath="${withval}/lib/oprofile"
13354 CPPFLAGS="-I${withval}/include";;
13356 if test -n "$llvm_cv_oppath" ; then
13357 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13358 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13359 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13360 if test "${ac_cv_search_bfd_init+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 ac_func_search_save_LIBS=$LIBS
13364 cat >conftest.$ac_ext <<_ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13371 /* Override any GCC internal prototype to avoid an error.
13372 Use char because int might match the return type of a GCC
13373 builtin and then its argument prototype would still apply. */
13381 return bfd_init ();
13386 for ac_lib in '' bfd; do
13387 if test -z "$ac_lib"; then
13388 ac_res="none required"
13391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13393 rm -f conftest.$ac_objext conftest$ac_exeext
13394 if { (ac_try="$ac_link"
13395 case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400 (eval "$ac_link") 2>conftest.er1
13402 grep -v '^ *+' conftest.er1 >conftest.err
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13408 { (case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_try") 2>&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; } &&
13417 { ac_try='test -s conftest$ac_exeext'
13418 { (case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_try") 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 ac_cv_search_bfd_init=$ac_res
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13435 rm -f core conftest.err conftest.$ac_objext \
13437 if test "${ac_cv_search_bfd_init+set}" = set; then
13441 if test "${ac_cv_search_bfd_init+set}" = set; then
13444 ac_cv_search_bfd_init=no
13446 rm conftest.$ac_ext
13447 LIBS=$ac_func_search_save_LIBS
13449 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13450 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13451 ac_res=$ac_cv_search_bfd_init
13452 if test "$ac_res" != no; then
13453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13457 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13458 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13459 if test "${ac_cv_search_op_open_agent+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 ac_func_search_save_LIBS=$LIBS
13463 cat >conftest.$ac_ext <<_ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13470 /* Override any GCC internal prototype to avoid an error.
13471 Use char because int might match the return type of a GCC
13472 builtin and then its argument prototype would still apply. */
13476 char op_open_agent ();
13480 return op_open_agent ();
13485 for ac_lib in '' opagent; do
13486 if test -z "$ac_lib"; then
13487 ac_res="none required"
13490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13492 rm -f conftest.$ac_objext conftest$ac_exeext
13493 if { (ac_try="$ac_link"
13494 case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_link") 2>conftest.er1
13501 grep -v '^ *+' conftest.er1 >conftest.err
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } &&
13506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13507 { (case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_try") 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; } &&
13516 { ac_try='test -s conftest$ac_exeext'
13517 { (case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_try") 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
13526 ac_cv_search_op_open_agent=$ac_res
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13534 rm -f core conftest.err conftest.$ac_objext \
13536 if test "${ac_cv_search_op_open_agent+set}" = set; then
13540 if test "${ac_cv_search_op_open_agent+set}" = set; then
13543 ac_cv_search_op_open_agent=no
13545 rm conftest.$ac_ext
13546 LIBS=$ac_func_search_save_LIBS
13548 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13549 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13550 ac_res=$ac_cv_search_op_open_agent
13551 if test "$ac_res" != no; then
13552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13556 echo "Error! You need to have libopagent around."
13561 if test "${ac_cv_header_opagent_h+set}" = set; then
13562 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13563 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13564 if test "${ac_cv_header_opagent_h+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13568 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13570 # Is the header compilable?
13571 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13572 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13573 cat >conftest.$ac_ext <<_ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13579 $ac_includes_default
13580 #include <opagent.h>
13582 rm -f conftest.$ac_objext
13583 if { (ac_try="$ac_compile"
13584 case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_compile") 2>conftest.er1
13591 grep -v '^ *+' conftest.er1 >conftest.err
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13597 { (case "(($ac_try" in
13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602 (eval "$ac_try") 2>&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; } &&
13606 { ac_try='test -s conftest.$ac_objext'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_header_compiler=yes
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 ac_header_compiler=no
13624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13626 echo "${ECHO_T}$ac_header_compiler" >&6; }
13628 # Is the header present?
13629 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13630 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13631 cat >conftest.$ac_ext <<_ACEOF
13634 cat confdefs.h >>conftest.$ac_ext
13635 cat >>conftest.$ac_ext <<_ACEOF
13636 /* end confdefs.h. */
13637 #include <opagent.h>
13639 if { (ac_try="$ac_cpp conftest.$ac_ext"
13640 case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13647 grep -v '^ *+' conftest.er1 >conftest.err
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } >/dev/null; then
13652 if test -s conftest.err; then
13653 ac_cpp_err=$ac_c_preproc_warn_flag
13654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13661 if test -z "$ac_cpp_err"; then
13662 ac_header_preproc=yes
13664 echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13667 ac_header_preproc=no
13670 rm -f conftest.err conftest.$ac_ext
13671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13672 echo "${ECHO_T}$ac_header_preproc" >&6; }
13674 # So? What about this header?
13675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13677 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13678 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13679 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13680 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13681 ac_header_preproc=yes
13684 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13685 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13687 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13689 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13691 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13693 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13694 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13695 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13697 ## ----------------------------------- ##
13698 ## Report this to llvmbugs@cs.uiuc.edu ##
13699 ## ----------------------------------- ##
13701 ) | sed "s/^/$as_me: WARNING: /" >&2
13704 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13705 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13706 if test "${ac_cv_header_opagent_h+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 ac_cv_header_opagent_h=$ac_header_preproc
13711 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13712 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13715 if test $ac_cv_header_opagent_h = yes; then
13719 echo "Error! You need to have opagent.h around."
13735 cat >>confdefs.h <<_ACEOF
13736 #define USE_OPROFILE $USE_OPROFILE
13746 ac_header_dirent=no
13747 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13748 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13749 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13750 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 cat >conftest.$ac_ext <<_ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760 #include <sys/types.h>
13772 rm -f conftest.$ac_objext
13773 if { (ac_try="$ac_compile"
13774 case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_compile") 2>conftest.er1
13781 grep -v '^ *+' conftest.er1 >conftest.err
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13787 { (case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_try") 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; } &&
13796 { ac_try='test -s conftest.$ac_objext'
13797 { (case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_try") 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
13806 eval "$as_ac_Header=yes"
13808 echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13811 eval "$as_ac_Header=no"
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 ac_res=`eval echo '${'$as_ac_Header'}'`
13817 { echo "$as_me:$LINENO: result: $ac_res" >&5
13818 echo "${ECHO_T}$ac_res" >&6; }
13819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13820 cat >>confdefs.h <<_ACEOF
13821 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13824 ac_header_dirent=$ac_hdr; break
13828 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13829 if test $ac_header_dirent = dirent.h; then
13830 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13831 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13832 if test "${ac_cv_search_opendir+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 ac_func_search_save_LIBS=$LIBS
13836 cat >conftest.$ac_ext <<_ACEOF
13839 cat confdefs.h >>conftest.$ac_ext
13840 cat >>conftest.$ac_ext <<_ACEOF
13841 /* end confdefs.h. */
13843 /* Override any GCC internal prototype to avoid an error.
13844 Use char because int might match the return type of a GCC
13845 builtin and then its argument prototype would still apply. */
13858 for ac_lib in '' dir; do
13859 if test -z "$ac_lib"; then
13860 ac_res="none required"
13863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13865 rm -f conftest.$ac_objext conftest$ac_exeext
13866 if { (ac_try="$ac_link"
13867 case "(($ac_try" in
13868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869 *) ac_try_echo=$ac_try;;
13871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872 (eval "$ac_link") 2>conftest.er1
13874 grep -v '^ *+' conftest.er1 >conftest.err
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13880 { (case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_try") 2>&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); }; } &&
13889 { ac_try='test -s conftest$ac_exeext'
13890 { (case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_try") 2>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 ac_cv_search_opendir=$ac_res
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13907 rm -f core conftest.err conftest.$ac_objext \
13909 if test "${ac_cv_search_opendir+set}" = set; then
13913 if test "${ac_cv_search_opendir+set}" = set; then
13916 ac_cv_search_opendir=no
13918 rm conftest.$ac_ext
13919 LIBS=$ac_func_search_save_LIBS
13921 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13922 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13923 ac_res=$ac_cv_search_opendir
13924 if test "$ac_res" != no; then
13925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13930 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13931 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13932 if test "${ac_cv_search_opendir+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 ac_func_search_save_LIBS=$LIBS
13936 cat >conftest.$ac_ext <<_ACEOF
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h. */
13943 /* Override any GCC internal prototype to avoid an error.
13944 Use char because int might match the return type of a GCC
13945 builtin and then its argument prototype would still apply. */
13958 for ac_lib in '' x; do
13959 if test -z "$ac_lib"; then
13960 ac_res="none required"
13963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13965 rm -f conftest.$ac_objext conftest$ac_exeext
13966 if { (ac_try="$ac_link"
13967 case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_link") 2>conftest.er1
13974 grep -v '^ *+' conftest.er1 >conftest.err
13976 cat conftest.err >&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } &&
13979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13980 { (case "(($ac_try" in
13981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982 *) ac_try_echo=$ac_try;;
13984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985 (eval "$ac_try") 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; } &&
13989 { ac_try='test -s conftest$ac_exeext'
13990 { (case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995 (eval "$ac_try") 2>&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
13999 ac_cv_search_opendir=$ac_res
14001 echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14007 rm -f core conftest.err conftest.$ac_objext \
14009 if test "${ac_cv_search_opendir+set}" = set; then
14013 if test "${ac_cv_search_opendir+set}" = set; then
14016 ac_cv_search_opendir=no
14018 rm conftest.$ac_ext
14019 LIBS=$ac_func_search_save_LIBS
14021 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14022 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14023 ac_res=$ac_cv_search_opendir
14024 if test "$ac_res" != no; then
14025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14031 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14032 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14033 if test "${ac_cv_header_mmap_anon+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 ac_cpp='$CPP $CPPFLAGS'
14038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14042 cat >conftest.$ac_ext <<_ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h. */
14048 #include <sys/mman.h>
14049 #include <unistd.h>
14054 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14059 rm -f conftest.$ac_objext
14060 if { (ac_try="$ac_compile"
14061 case "(($ac_try" in
14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_compile") 2>conftest.er1
14068 grep -v '^ *+' conftest.er1 >conftest.err
14070 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } &&
14073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14074 { (case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079 (eval "$ac_try") 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; } &&
14083 { ac_try='test -s conftest.$ac_objext'
14084 { (case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_try") 2>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; }; then
14093 ac_cv_header_mmap_anon=yes
14095 echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14098 ac_cv_header_mmap_anon=no
14101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14103 ac_cpp='$CPP $CPPFLAGS'
14104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14110 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14111 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14112 if test "$ac_cv_header_mmap_anon" = yes; then
14114 cat >>confdefs.h <<\_ACEOF
14115 #define HAVE_MMAP_ANONYMOUS 1
14120 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14121 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14122 if test "${ac_cv_header_stat_broken+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 cat >conftest.$ac_ext <<_ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131 #include <sys/types.h>
14132 #include <sys/stat.h>
14134 #if defined S_ISBLK && defined S_IFDIR
14135 # if S_ISBLK (S_IFDIR)
14140 #if defined S_ISBLK && defined S_IFCHR
14141 # if S_ISBLK (S_IFCHR)
14146 #if defined S_ISLNK && defined S_IFREG
14147 # if S_ISLNK (S_IFREG)
14152 #if defined S_ISSOCK && defined S_IFREG
14153 # if S_ISSOCK (S_IFREG)
14159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14160 $EGREP "You lose" >/dev/null 2>&1; then
14161 ac_cv_header_stat_broken=yes
14163 ac_cv_header_stat_broken=no
14168 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14169 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14170 if test $ac_cv_header_stat_broken = yes; then
14172 cat >>confdefs.h <<\_ACEOF
14173 #define STAT_MACROS_BROKEN 1
14178 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14179 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14180 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14181 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 cat >conftest.$ac_ext <<_ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14189 #include <sys/types.h>
14190 #include <sys/wait.h>
14191 #ifndef WEXITSTATUS
14192 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14195 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14203 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14208 rm -f conftest.$ac_objext
14209 if { (ac_try="$ac_compile"
14210 case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_compile") 2>conftest.er1
14217 grep -v '^ *+' conftest.er1 >conftest.err
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14223 { (case "(($ac_try" in
14224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 *) ac_try_echo=$ac_try;;
14227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_try") 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } &&
14232 { ac_try='test -s conftest.$ac_objext'
14233 { (case "(($ac_try" in
14234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238 (eval "$ac_try") 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 ac_cv_header_sys_wait_h=yes
14244 echo "$as_me: failed program was:" >&5
14245 sed 's/^/| /' conftest.$ac_ext >&5
14247 ac_cv_header_sys_wait_h=no
14250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14252 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14253 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14254 if test $ac_cv_header_sys_wait_h = yes; then
14256 cat >>confdefs.h <<\_ACEOF
14257 #define HAVE_SYS_WAIT_H 1
14262 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14263 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14264 if test "${ac_cv_header_time+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 cat >conftest.$ac_ext <<_ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h. */
14273 #include <sys/types.h>
14274 #include <sys/time.h>
14280 if ((struct tm *) 0)
14286 rm -f conftest.$ac_objext
14287 if { (ac_try="$ac_compile"
14288 case "(($ac_try" in
14289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14290 *) ac_try_echo=$ac_try;;
14292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14293 (eval "$ac_compile") 2>conftest.er1
14295 grep -v '^ *+' conftest.er1 >conftest.err
14297 cat conftest.err >&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14301 { (case "(($ac_try" in
14302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303 *) ac_try_echo=$ac_try;;
14305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306 (eval "$ac_try") 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; } &&
14310 { ac_try='test -s conftest.$ac_objext'
14311 { (case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_try") 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14320 ac_cv_header_time=yes
14322 echo "$as_me: failed program was:" >&5
14323 sed 's/^/| /' conftest.$ac_ext >&5
14325 ac_cv_header_time=no
14328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14331 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14332 if test $ac_cv_header_time = yes; then
14334 cat >>confdefs.h <<\_ACEOF
14335 #define TIME_WITH_SYS_TIME 1
14347 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 ac_res=`eval echo '${'$as_ac_Header'}'`
14357 { echo "$as_me:$LINENO: result: $ac_res" >&5
14358 echo "${ECHO_T}$ac_res" >&6; }
14360 # Is the header compilable?
14361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14363 cat >conftest.$ac_ext <<_ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 $ac_includes_default
14370 #include <$ac_header>
14372 rm -f conftest.$ac_objext
14373 if { (ac_try="$ac_compile"
14374 case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379 (eval "$ac_compile") 2>conftest.er1
14381 grep -v '^ *+' conftest.er1 >conftest.err
14383 cat conftest.err >&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } &&
14386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14387 { (case "(($ac_try" in
14388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_try") 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; } &&
14396 { ac_try='test -s conftest.$ac_objext'
14397 { (case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_try") 2>&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; }; then
14406 ac_header_compiler=yes
14408 echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14411 ac_header_compiler=no
14414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14416 echo "${ECHO_T}$ac_header_compiler" >&6; }
14418 # Is the header present?
14419 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14421 cat >conftest.$ac_ext <<_ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14427 #include <$ac_header>
14429 if { (ac_try="$ac_cpp conftest.$ac_ext"
14430 case "(($ac_try" in
14431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432 *) ac_try_echo=$ac_try;;
14434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14437 grep -v '^ *+' conftest.er1 >conftest.err
14439 cat conftest.err >&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } >/dev/null; then
14442 if test -s conftest.err; then
14443 ac_cpp_err=$ac_c_preproc_warn_flag
14444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14451 if test -z "$ac_cpp_err"; then
14452 ac_header_preproc=yes
14454 echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14457 ac_header_preproc=no
14460 rm -f conftest.err conftest.$ac_ext
14461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14462 echo "${ECHO_T}$ac_header_preproc" >&6; }
14464 # So? What about this header?
14465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14471 ac_header_preproc=yes
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14487 ## ----------------------------------- ##
14488 ## Report this to llvmbugs@cs.uiuc.edu ##
14489 ## ----------------------------------- ##
14491 ) | sed "s/^/$as_me: WARNING: /" >&2
14494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 eval "$as_ac_Header=\$ac_header_preproc"
14501 ac_res=`eval echo '${'$as_ac_Header'}'`
14502 { echo "$as_me:$LINENO: result: $ac_res" >&5
14503 echo "${ECHO_T}$ac_res" >&6; }
14506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14507 cat >>confdefs.h <<_ACEOF
14508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14521 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 ac_res=`eval echo '${'$as_ac_Header'}'`
14531 { echo "$as_me:$LINENO: result: $ac_res" >&5
14532 echo "${ECHO_T}$ac_res" >&6; }
14534 # Is the header compilable?
14535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14537 cat >conftest.$ac_ext <<_ACEOF
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h. */
14543 $ac_includes_default
14544 #include <$ac_header>
14546 rm -f conftest.$ac_objext
14547 if { (ac_try="$ac_compile"
14548 case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_compile") 2>conftest.er1
14555 grep -v '^ *+' conftest.er1 >conftest.err
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14561 { (case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; } &&
14570 { ac_try='test -s conftest.$ac_objext'
14571 { (case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_try") 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_header_compiler=yes
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14585 ac_header_compiler=no
14588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14590 echo "${ECHO_T}$ac_header_compiler" >&6; }
14592 # Is the header present?
14593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14595 cat >conftest.$ac_ext <<_ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h. */
14601 #include <$ac_header>
14603 if { (ac_try="$ac_cpp conftest.$ac_ext"
14604 case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14611 grep -v '^ *+' conftest.er1 >conftest.err
14613 cat conftest.err >&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } >/dev/null; then
14616 if test -s conftest.err; then
14617 ac_cpp_err=$ac_c_preproc_warn_flag
14618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14625 if test -z "$ac_cpp_err"; then
14626 ac_header_preproc=yes
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14631 ac_header_preproc=no
14634 rm -f conftest.err conftest.$ac_ext
14635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14636 echo "${ECHO_T}$ac_header_preproc" >&6; }
14638 # So? What about this header?
14639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14645 ac_header_preproc=yes
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14655 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14661 ## ----------------------------------- ##
14662 ## Report this to llvmbugs@cs.uiuc.edu ##
14663 ## ----------------------------------- ##
14665 ) | sed "s/^/$as_me: WARNING: /" >&2
14668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 eval "$as_ac_Header=\$ac_header_preproc"
14675 ac_res=`eval echo '${'$as_ac_Header'}'`
14676 { echo "$as_me:$LINENO: result: $ac_res" >&5
14677 echo "${ECHO_T}$ac_res" >&6; }
14680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14681 cat >>confdefs.h <<_ACEOF
14682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14691 for ac_header in utime.h windows.h
14693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 ac_res=`eval echo '${'$as_ac_Header'}'`
14701 { echo "$as_me:$LINENO: result: $ac_res" >&5
14702 echo "${ECHO_T}$ac_res" >&6; }
14704 # Is the header compilable?
14705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14707 cat >conftest.$ac_ext <<_ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14713 $ac_includes_default
14714 #include <$ac_header>
14716 rm -f conftest.$ac_objext
14717 if { (ac_try="$ac_compile"
14718 case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_compile") 2>conftest.er1
14725 grep -v '^ *+' conftest.er1 >conftest.err
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
14730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14731 { (case "(($ac_try" in
14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14736 (eval "$ac_try") 2>&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; } &&
14740 { ac_try='test -s conftest.$ac_objext'
14741 { (case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_try") 2>&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14750 ac_header_compiler=yes
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 ac_header_compiler=no
14758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14760 echo "${ECHO_T}$ac_header_compiler" >&6; }
14762 # Is the header present?
14763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14765 cat >conftest.$ac_ext <<_ACEOF
14768 cat confdefs.h >>conftest.$ac_ext
14769 cat >>conftest.$ac_ext <<_ACEOF
14770 /* end confdefs.h. */
14771 #include <$ac_header>
14773 if { (ac_try="$ac_cpp conftest.$ac_ext"
14774 case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14781 grep -v '^ *+' conftest.er1 >conftest.err
14783 cat conftest.err >&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } >/dev/null; then
14786 if test -s conftest.err; then
14787 ac_cpp_err=$ac_c_preproc_warn_flag
14788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14795 if test -z "$ac_cpp_err"; then
14796 ac_header_preproc=yes
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 ac_header_preproc=no
14804 rm -f conftest.err conftest.$ac_ext
14805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14806 echo "${ECHO_T}$ac_header_preproc" >&6; }
14808 # So? What about this header?
14809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14815 ac_header_preproc=yes
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14831 ## ----------------------------------- ##
14832 ## Report this to llvmbugs@cs.uiuc.edu ##
14833 ## ----------------------------------- ##
14835 ) | sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
14845 ac_res=`eval echo '${'$as_ac_Header'}'`
14846 { echo "$as_me:$LINENO: result: $ac_res" >&5
14847 echo "${ECHO_T}$ac_res" >&6; }
14850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14851 cat >>confdefs.h <<_ACEOF
14852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14864 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 ac_res=`eval echo '${'$as_ac_Header'}'`
14874 { echo "$as_me:$LINENO: result: $ac_res" >&5
14875 echo "${ECHO_T}$ac_res" >&6; }
14877 # Is the header compilable?
14878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14880 cat >conftest.$ac_ext <<_ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14886 $ac_includes_default
14887 #include <$ac_header>
14889 rm -f conftest.$ac_objext
14890 if { (ac_try="$ac_compile"
14891 case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_compile") 2>conftest.er1
14898 grep -v '^ *+' conftest.er1 >conftest.err
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
14903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14904 { (case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_try") 2>&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; } &&
14913 { ac_try='test -s conftest.$ac_objext'
14914 { (case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_try") 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_header_compiler=yes
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 ac_header_compiler=no
14931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14933 echo "${ECHO_T}$ac_header_compiler" >&6; }
14935 # Is the header present?
14936 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14938 cat >conftest.$ac_ext <<_ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 #include <$ac_header>
14946 if { (ac_try="$ac_cpp conftest.$ac_ext"
14947 case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14954 grep -v '^ *+' conftest.er1 >conftest.err
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } >/dev/null; then
14959 if test -s conftest.err; then
14960 ac_cpp_err=$ac_c_preproc_warn_flag
14961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14968 if test -z "$ac_cpp_err"; then
14969 ac_header_preproc=yes
14971 echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14974 ac_header_preproc=no
14977 rm -f conftest.err conftest.$ac_ext
14978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14979 echo "${ECHO_T}$ac_header_preproc" >&6; }
14981 # So? What about this header?
14982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14988 ac_header_preproc=yes
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15004 ## ----------------------------------- ##
15005 ## Report this to llvmbugs@cs.uiuc.edu ##
15006 ## ----------------------------------- ##
15008 ) | sed "s/^/$as_me: WARNING: /" >&2
15011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 eval "$as_ac_Header=\$ac_header_preproc"
15018 ac_res=`eval echo '${'$as_ac_Header'}'`
15019 { echo "$as_me:$LINENO: result: $ac_res" >&5
15020 echo "${ECHO_T}$ac_res" >&6; }
15023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15024 cat >>confdefs.h <<_ACEOF
15025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15036 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 ac_res=`eval echo '${'$as_ac_Header'}'`
15046 { echo "$as_me:$LINENO: result: $ac_res" >&5
15047 echo "${ECHO_T}$ac_res" >&6; }
15049 # Is the header compilable?
15050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15052 cat >conftest.$ac_ext <<_ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058 $ac_includes_default
15059 #include <$ac_header>
15061 rm -f conftest.$ac_objext
15062 if { (ac_try="$ac_compile"
15063 case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_compile") 2>conftest.er1
15070 grep -v '^ *+' conftest.er1 >conftest.err
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } &&
15075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15076 { (case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_try") 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; } &&
15085 { ac_try='test -s conftest.$ac_objext'
15086 { (case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_try") 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 ac_header_compiler=yes
15097 echo "$as_me: failed program was:" >&5
15098 sed 's/^/| /' conftest.$ac_ext >&5
15100 ac_header_compiler=no
15103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15105 echo "${ECHO_T}$ac_header_compiler" >&6; }
15107 # Is the header present?
15108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15110 cat >conftest.$ac_ext <<_ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116 #include <$ac_header>
15118 if { (ac_try="$ac_cpp conftest.$ac_ext"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15126 grep -v '^ *+' conftest.er1 >conftest.err
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } >/dev/null; then
15131 if test -s conftest.err; then
15132 ac_cpp_err=$ac_c_preproc_warn_flag
15133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15140 if test -z "$ac_cpp_err"; then
15141 ac_header_preproc=yes
15143 echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15146 ac_header_preproc=no
15149 rm -f conftest.err conftest.$ac_ext
15150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15151 echo "${ECHO_T}$ac_header_preproc" >&6; }
15153 # So? What about this header?
15154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15160 ac_header_preproc=yes
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15176 ## ----------------------------------- ##
15177 ## Report this to llvmbugs@cs.uiuc.edu ##
15178 ## ----------------------------------- ##
15180 ) | sed "s/^/$as_me: WARNING: /" >&2
15183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 eval "$as_ac_Header=\$ac_header_preproc"
15190 ac_res=`eval echo '${'$as_ac_Header'}'`
15191 { echo "$as_me:$LINENO: result: $ac_res" >&5
15192 echo "${ECHO_T}$ac_res" >&6; }
15195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15196 cat >>confdefs.h <<_ACEOF
15197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15205 for ac_header in valgrind/valgrind.h
15207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 ac_res=`eval echo '${'$as_ac_Header'}'`
15215 { echo "$as_me:$LINENO: result: $ac_res" >&5
15216 echo "${ECHO_T}$ac_res" >&6; }
15218 # Is the header compilable?
15219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15221 cat >conftest.$ac_ext <<_ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h. */
15227 $ac_includes_default
15228 #include <$ac_header>
15230 rm -f conftest.$ac_objext
15231 if { (ac_try="$ac_compile"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_compile") 2>conftest.er1
15239 grep -v '^ *+' conftest.er1 >conftest.err
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245 { (case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_try") 2>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; } &&
15254 { ac_try='test -s conftest.$ac_objext'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 ac_header_compiler=yes
15266 echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15269 ac_header_compiler=no
15272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15274 echo "${ECHO_T}$ac_header_compiler" >&6; }
15276 # Is the header present?
15277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15279 cat >conftest.$ac_ext <<_ACEOF
15282 cat confdefs.h >>conftest.$ac_ext
15283 cat >>conftest.$ac_ext <<_ACEOF
15284 /* end confdefs.h. */
15285 #include <$ac_header>
15287 if { (ac_try="$ac_cpp conftest.$ac_ext"
15288 case "(($ac_try" in
15289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290 *) ac_try_echo=$ac_try;;
15292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15295 grep -v '^ *+' conftest.er1 >conftest.err
15297 cat conftest.err >&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } >/dev/null; then
15300 if test -s conftest.err; then
15301 ac_cpp_err=$ac_c_preproc_warn_flag
15302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15309 if test -z "$ac_cpp_err"; then
15310 ac_header_preproc=yes
15312 echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15315 ac_header_preproc=no
15318 rm -f conftest.err conftest.$ac_ext
15319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15320 echo "${ECHO_T}$ac_header_preproc" >&6; }
15322 # So? What about this header?
15323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15329 ac_header_preproc=yes
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15345 ## ----------------------------------- ##
15346 ## Report this to llvmbugs@cs.uiuc.edu ##
15347 ## ----------------------------------- ##
15349 ) | sed "s/^/$as_me: WARNING: /" >&2
15352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 eval "$as_ac_Header=\$ac_header_preproc"
15359 ac_res=`eval echo '${'$as_ac_Header'}'`
15360 { echo "$as_me:$LINENO: result: $ac_res" >&5
15361 echo "${ECHO_T}$ac_res" >&6; }
15364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15365 cat >>confdefs.h <<_ACEOF
15366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15374 for ac_header in fenv.h
15376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15381 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 ac_res=`eval echo '${'$as_ac_Header'}'`
15384 { echo "$as_me:$LINENO: result: $ac_res" >&5
15385 echo "${ECHO_T}$ac_res" >&6; }
15387 # Is the header compilable?
15388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15390 cat >conftest.$ac_ext <<_ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15396 $ac_includes_default
15397 #include <$ac_header>
15399 rm -f conftest.$ac_objext
15400 if { (ac_try="$ac_compile"
15401 case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_compile") 2>conftest.er1
15408 grep -v '^ *+' conftest.er1 >conftest.err
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15414 { (case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_try") 2>&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; } &&
15423 { ac_try='test -s conftest.$ac_objext'
15424 { (case "(($ac_try" in
15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 *) ac_try_echo=$ac_try;;
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429 (eval "$ac_try") 2>&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15433 ac_header_compiler=yes
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15438 ac_header_compiler=no
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15443 echo "${ECHO_T}$ac_header_compiler" >&6; }
15445 # Is the header present?
15446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15448 cat >conftest.$ac_ext <<_ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 #include <$ac_header>
15456 if { (ac_try="$ac_cpp conftest.$ac_ext"
15457 case "(($ac_try" in
15458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15464 grep -v '^ *+' conftest.er1 >conftest.err
15466 cat conftest.err >&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } >/dev/null; then
15469 if test -s conftest.err; then
15470 ac_cpp_err=$ac_c_preproc_warn_flag
15471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15478 if test -z "$ac_cpp_err"; then
15479 ac_header_preproc=yes
15481 echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.$ac_ext >&5
15484 ac_header_preproc=no
15487 rm -f conftest.err conftest.$ac_ext
15488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15489 echo "${ECHO_T}$ac_header_preproc" >&6; }
15491 # So? What about this header?
15492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15498 ac_header_preproc=yes
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15514 ## ----------------------------------- ##
15515 ## Report this to llvmbugs@cs.uiuc.edu ##
15516 ## ----------------------------------- ##
15518 ) | sed "s/^/$as_me: WARNING: /" >&2
15521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 eval "$as_ac_Header=\$ac_header_preproc"
15528 ac_res=`eval echo '${'$as_ac_Header'}'`
15529 { echo "$as_me:$LINENO: result: $ac_res" >&5
15530 echo "${ECHO_T}$ac_res" >&6; }
15533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15534 cat >>confdefs.h <<_ACEOF
15535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15542 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15544 for ac_header in pthread.h
15546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 ac_res=`eval echo '${'$as_ac_Header'}'`
15554 { echo "$as_me:$LINENO: result: $ac_res" >&5
15555 echo "${ECHO_T}$ac_res" >&6; }
15557 # Is the header compilable?
15558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15560 cat >conftest.$ac_ext <<_ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15566 $ac_includes_default
15567 #include <$ac_header>
15569 rm -f conftest.$ac_objext
15570 if { (ac_try="$ac_compile"
15571 case "(($ac_try" in
15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576 (eval "$ac_compile") 2>conftest.er1
15578 grep -v '^ *+' conftest.er1 >conftest.err
15580 cat conftest.err >&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
15583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15584 { (case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_try") 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest.$ac_objext'
15594 { (case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_try") 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; }; then
15603 ac_header_compiler=yes
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ac_header_compiler=no
15611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15613 echo "${ECHO_T}$ac_header_compiler" >&6; }
15615 # Is the header present?
15616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15618 cat >conftest.$ac_ext <<_ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15624 #include <$ac_header>
15626 if { (ac_try="$ac_cpp conftest.$ac_ext"
15627 case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15634 grep -v '^ *+' conftest.er1 >conftest.err
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } >/dev/null; then
15639 if test -s conftest.err; then
15640 ac_cpp_err=$ac_c_preproc_warn_flag
15641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15648 if test -z "$ac_cpp_err"; then
15649 ac_header_preproc=yes
15651 echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15654 ac_header_preproc=no
15657 rm -f conftest.err conftest.$ac_ext
15658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15659 echo "${ECHO_T}$ac_header_preproc" >&6; }
15661 # So? What about this header?
15662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15668 ac_header_preproc=yes
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15684 ## ----------------------------------- ##
15685 ## Report this to llvmbugs@cs.uiuc.edu ##
15686 ## ----------------------------------- ##
15688 ) | sed "s/^/$as_me: WARNING: /" >&2
15691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 eval "$as_ac_Header=\$ac_header_preproc"
15698 ac_res=`eval echo '${'$as_ac_Header'}'`
15699 { echo "$as_me:$LINENO: result: $ac_res" >&5
15700 echo "${ECHO_T}$ac_res" >&6; }
15703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15704 cat >>confdefs.h <<_ACEOF
15705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15721 if test "$llvm_cv_enable_libffi" = "yes" ; then
15724 for ac_header in ffi.h ffi/ffi.h
15726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15733 ac_res=`eval echo '${'$as_ac_Header'}'`
15734 { echo "$as_me:$LINENO: result: $ac_res" >&5
15735 echo "${ECHO_T}$ac_res" >&6; }
15737 # Is the header compilable?
15738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15740 cat >conftest.$ac_ext <<_ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15746 $ac_includes_default
15747 #include <$ac_header>
15749 rm -f conftest.$ac_objext
15750 if { (ac_try="$ac_compile"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_compile") 2>conftest.er1
15758 grep -v '^ *+' conftest.er1 >conftest.err
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } &&
15763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15764 { (case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_try") 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_try") 2>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; }; then
15783 ac_header_compiler=yes
15785 echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15788 ac_header_compiler=no
15791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15793 echo "${ECHO_T}$ac_header_compiler" >&6; }
15795 # Is the header present?
15796 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15798 cat >conftest.$ac_ext <<_ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804 #include <$ac_header>
15806 if { (ac_try="$ac_cpp conftest.$ac_ext"
15807 case "(($ac_try" in
15808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15809 *) ac_try_echo=$ac_try;;
15811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15814 grep -v '^ *+' conftest.er1 >conftest.err
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } >/dev/null; then
15819 if test -s conftest.err; then
15820 ac_cpp_err=$ac_c_preproc_warn_flag
15821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15828 if test -z "$ac_cpp_err"; then
15829 ac_header_preproc=yes
15831 echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15834 ac_header_preproc=no
15837 rm -f conftest.err conftest.$ac_ext
15838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15839 echo "${ECHO_T}$ac_header_preproc" >&6; }
15841 # So? What about this header?
15842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15848 ac_header_preproc=yes
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15864 ## ----------------------------------- ##
15865 ## Report this to llvmbugs@cs.uiuc.edu ##
15866 ## ----------------------------------- ##
15868 ) | sed "s/^/$as_me: WARNING: /" >&2
15871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15876 eval "$as_ac_Header=\$ac_header_preproc"
15878 ac_res=`eval echo '${'$as_ac_Header'}'`
15879 { echo "$as_me:$LINENO: result: $ac_res" >&5
15880 echo "${ECHO_T}$ac_res" >&6; }
15883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15884 cat >>confdefs.h <<_ACEOF
15885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15895 for ac_header in CrashReporterClient.h
15897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15902 echo $ECHO_N "(cached) $ECHO_C" >&6
15904 ac_res=`eval echo '${'$as_ac_Header'}'`
15905 { echo "$as_me:$LINENO: result: $ac_res" >&5
15906 echo "${ECHO_T}$ac_res" >&6; }
15908 # Is the header compilable?
15909 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15911 cat >conftest.$ac_ext <<_ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15917 $ac_includes_default
15918 #include <$ac_header>
15920 rm -f conftest.$ac_objext
15921 if { (ac_try="$ac_compile"
15922 case "(($ac_try" in
15923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15924 *) ac_try_echo=$ac_try;;
15926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15927 (eval "$ac_compile") 2>conftest.er1
15929 grep -v '^ *+' conftest.er1 >conftest.err
15931 cat conftest.err >&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15935 { (case "(($ac_try" in
15936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937 *) ac_try_echo=$ac_try;;
15939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15940 (eval "$ac_try") 2>&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; } &&
15944 { ac_try='test -s conftest.$ac_objext'
15945 { (case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_try") 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 ac_header_compiler=yes
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15959 ac_header_compiler=no
15962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15964 echo "${ECHO_T}$ac_header_compiler" >&6; }
15966 # Is the header present?
15967 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15969 cat >conftest.$ac_ext <<_ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h. */
15975 #include <$ac_header>
15977 if { (ac_try="$ac_cpp conftest.$ac_ext"
15978 case "(($ac_try" in
15979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980 *) ac_try_echo=$ac_try;;
15982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15985 grep -v '^ *+' conftest.er1 >conftest.err
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } >/dev/null; then
15990 if test -s conftest.err; then
15991 ac_cpp_err=$ac_c_preproc_warn_flag
15992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15999 if test -z "$ac_cpp_err"; then
16000 ac_header_preproc=yes
16002 echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16005 ac_header_preproc=no
16008 rm -f conftest.err conftest.$ac_ext
16009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16010 echo "${ECHO_T}$ac_header_preproc" >&6; }
16012 # So? What about this header?
16013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16019 ac_header_preproc=yes
16022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16035 ## ----------------------------------- ##
16036 ## Report this to llvmbugs@cs.uiuc.edu ##
16037 ## ----------------------------------- ##
16039 ) | sed "s/^/$as_me: WARNING: /" >&2
16042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 eval "$as_ac_Header=\$ac_header_preproc"
16049 ac_res=`eval echo '${'$as_ac_Header'}'`
16050 { echo "$as_me:$LINENO: result: $ac_res" >&5
16051 echo "${ECHO_T}$ac_res" >&6; }
16054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16055 cat >>confdefs.h <<_ACEOF
16056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16064 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16065 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16066 cat >conftest.$ac_ext <<_ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16072 extern const char *__crashreporter_info__;
16074 __crashreporter_info__ = "test";
16079 rm -f conftest.$ac_objext conftest$ac_exeext
16080 if { (ac_try="$ac_link"
16081 case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_link") 2>conftest.er1
16088 grep -v '^ *+' conftest.er1 >conftest.err
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
16093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16094 { (case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_try") 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest$ac_exeext'
16104 { (case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_try") 2>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; }; then
16113 { echo "$as_me:$LINENO: result: yes" >&5
16114 echo "${ECHO_T}yes" >&6; }
16116 cat >>confdefs.h <<\_ACEOF
16117 #define HAVE_CRASHREPORTER_INFO 1
16121 echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16124 { echo "$as_me:$LINENO: result: no" >&5
16125 echo "${ECHO_T}no" >&6; }
16127 cat >>confdefs.h <<\_ACEOF
16128 #define HAVE_CRASHREPORTER_INFO 0
16133 rm -f core conftest.err conftest.$ac_objext \
16134 conftest$ac_exeext conftest.$ac_ext
16139 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16140 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16141 if test "${ac_cv_huge_val_sanity+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16146 ac_cpp='$CXXCPP $CPPFLAGS'
16147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16151 ac_save_CXXFLAGS=$CXXFLAGS
16153 if test "$cross_compiling" = yes; then
16154 ac_cv_huge_val_sanity=yes
16156 cat >conftest.$ac_ext <<_ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16166 double x = HUGE_VAL; return x != x;
16171 rm -f conftest$ac_exeext
16172 if { (ac_try="$ac_link"
16173 case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_link") 2>&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16182 { (case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_try") 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 ac_cv_huge_val_sanity=yes
16193 echo "$as_me: program exited with status $ac_status" >&5
16194 echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16197 ( exit $ac_status )
16198 ac_cv_huge_val_sanity=no
16200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16204 CXXFLAGS=$ac_save_CXXFLAGS
16206 ac_cpp='$CPP $CPPFLAGS'
16207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16213 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16214 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16215 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16218 { echo "$as_me:$LINENO: checking for pid_t" >&5
16219 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16220 if test "${ac_cv_type_pid_t+set}" = set; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 cat >conftest.$ac_ext <<_ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16229 $ac_includes_default
16230 typedef pid_t ac__type_new_;
16234 if ((ac__type_new_ *) 0)
16236 if (sizeof (ac__type_new_))
16242 rm -f conftest.$ac_objext
16243 if { (ac_try="$ac_compile"
16244 case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_compile") 2>conftest.er1
16251 grep -v '^ *+' conftest.er1 >conftest.err
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16257 { (case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262 (eval "$ac_try") 2>&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; } &&
16266 { ac_try='test -s conftest.$ac_objext'
16267 { (case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_try") 2>&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; }; then
16276 ac_cv_type_pid_t=yes
16278 echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16281 ac_cv_type_pid_t=no
16284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16287 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16288 if test $ac_cv_type_pid_t = yes; then
16292 cat >>confdefs.h <<_ACEOF
16298 { echo "$as_me:$LINENO: checking for size_t" >&5
16299 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16300 if test "${ac_cv_type_size_t+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 cat >conftest.$ac_ext <<_ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h. */
16309 $ac_includes_default
16310 typedef size_t ac__type_new_;
16314 if ((ac__type_new_ *) 0)
16316 if (sizeof (ac__type_new_))
16322 rm -f conftest.$ac_objext
16323 if { (ac_try="$ac_compile"
16324 case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329 (eval "$ac_compile") 2>conftest.er1
16331 grep -v '^ *+' conftest.er1 >conftest.err
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
16336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16337 { (case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_try") 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; } &&
16346 { ac_try='test -s conftest.$ac_objext'
16347 { (case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_try") 2>&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; }; then
16356 ac_cv_type_size_t=yes
16358 echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16361 ac_cv_type_size_t=no
16364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16366 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16367 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16368 if test $ac_cv_type_size_t = yes; then
16372 cat >>confdefs.h <<_ACEOF
16373 #define size_t unsigned int
16379 cat >>confdefs.h <<_ACEOF
16380 #define RETSIGTYPE void
16383 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16384 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16385 if test "${ac_cv_struct_tm+set}" = set; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 cat >conftest.$ac_ext <<_ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 #include <sys/types.h>
16400 struct tm *tp; tp->tm_sec;
16405 rm -f conftest.$ac_objext
16406 if { (ac_try="$ac_compile"
16407 case "(($ac_try" in
16408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16409 *) ac_try_echo=$ac_try;;
16411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16412 (eval "$ac_compile") 2>conftest.er1
16414 grep -v '^ *+' conftest.er1 >conftest.err
16416 cat conftest.err >&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } &&
16419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16420 { (case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_try") 2>&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); }; } &&
16429 { ac_try='test -s conftest.$ac_objext'
16430 { (case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_try") 2>&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; }; then
16439 ac_cv_struct_tm=time.h
16441 echo "$as_me: failed program was:" >&5
16442 sed 's/^/| /' conftest.$ac_ext >&5
16444 ac_cv_struct_tm=sys/time.h
16447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16449 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16450 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16451 if test $ac_cv_struct_tm = sys/time.h; then
16453 cat >>confdefs.h <<\_ACEOF
16454 #define TM_IN_SYS_TIME 1
16459 { echo "$as_me:$LINENO: checking for int64_t" >&5
16460 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16461 if test "${ac_cv_type_int64_t+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 cat >conftest.$ac_ext <<_ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16470 $ac_includes_default
16471 typedef int64_t ac__type_new_;
16475 if ((ac__type_new_ *) 0)
16477 if (sizeof (ac__type_new_))
16483 rm -f conftest.$ac_objext
16484 if { (ac_try="$ac_compile"
16485 case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_compile") 2>conftest.er1
16492 grep -v '^ *+' conftest.er1 >conftest.err
16494 cat conftest.err >&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } &&
16497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16498 { (case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_try") 2>&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; } &&
16507 { ac_try='test -s conftest.$ac_objext'
16508 { (case "(($ac_try" in
16509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510 *) ac_try_echo=$ac_try;;
16512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513 (eval "$ac_try") 2>&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; }; then
16517 ac_cv_type_int64_t=yes
16519 echo "$as_me: failed program was:" >&5
16520 sed 's/^/| /' conftest.$ac_ext >&5
16522 ac_cv_type_int64_t=no
16525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16527 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16528 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16529 if test $ac_cv_type_int64_t = yes; then
16531 cat >>confdefs.h <<_ACEOF
16532 #define HAVE_INT64_T 1
16537 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16538 echo "$as_me: error: Type int64_t required but not found" >&2;}
16539 { (exit 1); exit 1; }; }
16542 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16543 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16544 if test "${ac_cv_type_uint64_t+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 cat >conftest.$ac_ext <<_ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16553 $ac_includes_default
16554 typedef uint64_t ac__type_new_;
16558 if ((ac__type_new_ *) 0)
16560 if (sizeof (ac__type_new_))
16566 rm -f conftest.$ac_objext
16567 if { (ac_try="$ac_compile"
16568 case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573 (eval "$ac_compile") 2>conftest.er1
16575 grep -v '^ *+' conftest.er1 >conftest.err
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16581 { (case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_try") 2>&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; } &&
16590 { ac_try='test -s conftest.$ac_objext'
16591 { (case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_try") 2>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
16600 ac_cv_type_uint64_t=yes
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 ac_cv_type_uint64_t=no
16608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16610 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16611 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16612 if test $ac_cv_type_uint64_t = yes; then
16614 cat >>confdefs.h <<_ACEOF
16615 #define HAVE_UINT64_T 1
16620 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16621 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16622 if test "${ac_cv_type_u_int64_t+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16625 cat >conftest.$ac_ext <<_ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 $ac_includes_default
16632 typedef u_int64_t ac__type_new_;
16636 if ((ac__type_new_ *) 0)
16638 if (sizeof (ac__type_new_))
16644 rm -f conftest.$ac_objext
16645 if { (ac_try="$ac_compile"
16646 case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_compile") 2>conftest.er1
16653 grep -v '^ *+' conftest.er1 >conftest.err
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } &&
16658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16659 { (case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_try") 2>&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; } &&
16668 { ac_try='test -s conftest.$ac_objext'
16669 { (case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674 (eval "$ac_try") 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 ac_cv_type_u_int64_t=yes
16680 echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16683 ac_cv_type_u_int64_t=no
16686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16688 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16689 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16690 if test $ac_cv_type_u_int64_t = yes; then
16692 cat >>confdefs.h <<_ACEOF
16693 #define HAVE_U_INT64_T 1
16698 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16699 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16700 { (exit 1); exit 1; }; }
16714 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16730 #define $ac_func innocuous_$ac_func
16732 /* System header to define __stub macros and hopefully few prototypes,
16733 which can conflict with char $ac_func (); below.
16734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16735 <limits.h> exists even on freestanding compilers. */
16738 # include <limits.h>
16740 # include <assert.h>
16745 /* Override any GCC internal prototype to avoid an error.
16746 Use char because int might match the return type of a GCC
16747 builtin and then its argument prototype would still apply. */
16752 /* The GNU C library defines this for functions which it implements
16753 to always fail with ENOSYS. Some functions are actually named
16754 something starting with __ and the normal name is an alias. */
16755 #if defined __stub_$ac_func || defined __stub___$ac_func
16762 return $ac_func ();
16767 rm -f conftest.$ac_objext conftest$ac_exeext
16768 if { (ac_try="$ac_link"
16769 case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_link") 2>conftest.er1
16776 grep -v '^ *+' conftest.er1 >conftest.err
16778 cat conftest.err >&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } &&
16781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16782 { (case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_try") 2>&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; } &&
16791 { ac_try='test -s conftest$ac_exeext'
16792 { (case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_try") 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 eval "$as_ac_var=yes"
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 eval "$as_ac_var=no"
16809 rm -f core conftest.err conftest.$ac_objext \
16810 conftest$ac_exeext conftest.$ac_ext
16812 ac_res=`eval echo '${'$as_ac_var'}'`
16813 { echo "$as_me:$LINENO: result: $ac_res" >&5
16814 echo "${ECHO_T}$ac_res" >&6; }
16815 if test `eval echo '${'$as_ac_var'}'` = yes; then
16816 cat >>confdefs.h <<_ACEOF
16817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16827 for ac_func in powf fmodf strtof round
16829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16833 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 cat >conftest.$ac_ext <<_ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16843 #define $ac_func innocuous_$ac_func
16845 /* System header to define __stub macros and hopefully few prototypes,
16846 which can conflict with char $ac_func (); below.
16847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16848 <limits.h> exists even on freestanding compilers. */
16851 # include <limits.h>
16853 # include <assert.h>
16858 /* Override any GCC internal prototype to avoid an error.
16859 Use char because int might match the return type of a GCC
16860 builtin and then its argument prototype would still apply. */
16865 /* The GNU C library defines this for functions which it implements
16866 to always fail with ENOSYS. Some functions are actually named
16867 something starting with __ and the normal name is an alias. */
16868 #if defined __stub_$ac_func || defined __stub___$ac_func
16875 return $ac_func ();
16880 rm -f conftest.$ac_objext conftest$ac_exeext
16881 if { (ac_try="$ac_link"
16882 case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_link") 2>conftest.er1
16889 grep -v '^ *+' conftest.er1 >conftest.err
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16895 { (case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_try") 2>&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; } &&
16904 { ac_try='test -s conftest$ac_exeext'
16905 { (case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_try") 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 eval "$as_ac_var=yes"
16916 echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16919 eval "$as_ac_var=no"
16922 rm -f core conftest.err conftest.$ac_objext \
16923 conftest$ac_exeext conftest.$ac_ext
16925 ac_res=`eval echo '${'$as_ac_var'}'`
16926 { echo "$as_me:$LINENO: result: $ac_res" >&5
16927 echo "${ECHO_T}$ac_res" >&6; }
16928 if test `eval echo '${'$as_ac_var'}'` = yes; then
16929 cat >>confdefs.h <<_ACEOF
16930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16941 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16949 cat >conftest.$ac_ext <<_ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h. */
16955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16957 #define $ac_func innocuous_$ac_func
16959 /* System header to define __stub macros and hopefully few prototypes,
16960 which can conflict with char $ac_func (); below.
16961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16962 <limits.h> exists even on freestanding compilers. */
16965 # include <limits.h>
16967 # include <assert.h>
16972 /* Override any GCC internal prototype to avoid an error.
16973 Use char because int might match the return type of a GCC
16974 builtin and then its argument prototype would still apply. */
16979 /* The GNU C library defines this for functions which it implements
16980 to always fail with ENOSYS. Some functions are actually named
16981 something starting with __ and the normal name is an alias. */
16982 #if defined __stub_$ac_func || defined __stub___$ac_func
16989 return $ac_func ();
16994 rm -f conftest.$ac_objext conftest$ac_exeext
16995 if { (ac_try="$ac_link"
16996 case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_link") 2>conftest.er1
17003 grep -v '^ *+' conftest.er1 >conftest.err
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } &&
17008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17009 { (case "(($ac_try" in
17010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011 *) ac_try_echo=$ac_try;;
17013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17014 (eval "$ac_try") 2>&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); }; } &&
17018 { ac_try='test -s conftest$ac_exeext'
17019 { (case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_try") 2>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17028 eval "$as_ac_var=yes"
17030 echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 eval "$as_ac_var=no"
17036 rm -f core conftest.err conftest.$ac_objext \
17037 conftest$ac_exeext conftest.$ac_ext
17039 ac_res=`eval echo '${'$as_ac_var'}'`
17040 { echo "$as_me:$LINENO: result: $ac_res" >&5
17041 echo "${ECHO_T}$ac_res" >&6; }
17042 if test `eval echo '${'$as_ac_var'}'` = yes; then
17043 cat >>confdefs.h <<_ACEOF
17044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17053 for ac_func in isatty mkdtemp mkstemp
17055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17061 cat >conftest.$ac_ext <<_ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h. */
17067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17069 #define $ac_func innocuous_$ac_func
17071 /* System header to define __stub macros and hopefully few prototypes,
17072 which can conflict with char $ac_func (); below.
17073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17074 <limits.h> exists even on freestanding compilers. */
17077 # include <limits.h>
17079 # include <assert.h>
17084 /* Override any GCC internal prototype to avoid an error.
17085 Use char because int might match the return type of a GCC
17086 builtin and then its argument prototype would still apply. */
17091 /* The GNU C library defines this for functions which it implements
17092 to always fail with ENOSYS. Some functions are actually named
17093 something starting with __ and the normal name is an alias. */
17094 #if defined __stub_$ac_func || defined __stub___$ac_func
17101 return $ac_func ();
17106 rm -f conftest.$ac_objext conftest$ac_exeext
17107 if { (ac_try="$ac_link"
17108 case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_link") 2>conftest.er1
17115 grep -v '^ *+' conftest.er1 >conftest.err
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
17120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17121 { (case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126 (eval "$ac_try") 2>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; } &&
17130 { ac_try='test -s conftest$ac_exeext'
17131 { (case "(($ac_try" in
17132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133 *) ac_try_echo=$ac_try;;
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136 (eval "$ac_try") 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 eval "$as_ac_var=yes"
17142 echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17145 eval "$as_ac_var=no"
17148 rm -f core conftest.err conftest.$ac_objext \
17149 conftest$ac_exeext conftest.$ac_ext
17151 ac_res=`eval echo '${'$as_ac_var'}'`
17152 { echo "$as_me:$LINENO: result: $ac_res" >&5
17153 echo "${ECHO_T}$ac_res" >&6; }
17154 if test `eval echo '${'$as_ac_var'}'` = yes; then
17155 cat >>confdefs.h <<_ACEOF
17156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17169 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 cat >conftest.$ac_ext <<_ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17185 #define $ac_func innocuous_$ac_func
17187 /* System header to define __stub macros and hopefully few prototypes,
17188 which can conflict with char $ac_func (); below.
17189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17190 <limits.h> exists even on freestanding compilers. */
17193 # include <limits.h>
17195 # include <assert.h>
17200 /* Override any GCC internal prototype to avoid an error.
17201 Use char because int might match the return type of a GCC
17202 builtin and then its argument prototype would still apply. */
17207 /* The GNU C library defines this for functions which it implements
17208 to always fail with ENOSYS. Some functions are actually named
17209 something starting with __ and the normal name is an alias. */
17210 #if defined __stub_$ac_func || defined __stub___$ac_func
17217 return $ac_func ();
17222 rm -f conftest.$ac_objext conftest$ac_exeext
17223 if { (ac_try="$ac_link"
17224 case "(($ac_try" in
17225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226 *) ac_try_echo=$ac_try;;
17228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229 (eval "$ac_link") 2>conftest.er1
17231 grep -v '^ *+' conftest.er1 >conftest.err
17233 cat conftest.err >&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } &&
17236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17237 { (case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_try") 2>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; } &&
17246 { ac_try='test -s conftest$ac_exeext'
17247 { (case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_try") 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 eval "$as_ac_var=yes"
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17261 eval "$as_ac_var=no"
17264 rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17267 ac_res=`eval echo '${'$as_ac_var'}'`
17268 { echo "$as_me:$LINENO: result: $ac_res" >&5
17269 echo "${ECHO_T}$ac_res" >&6; }
17270 if test `eval echo '${'$as_ac_var'}'` = yes; then
17271 cat >>confdefs.h <<_ACEOF
17272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17281 for ac_func in strerror strerror_r setenv
17283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17289 cat >conftest.$ac_ext <<_ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17297 #define $ac_func innocuous_$ac_func
17299 /* System header to define __stub macros and hopefully few prototypes,
17300 which can conflict with char $ac_func (); below.
17301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17302 <limits.h> exists even on freestanding compilers. */
17305 # include <limits.h>
17307 # include <assert.h>
17312 /* Override any GCC internal prototype to avoid an error.
17313 Use char because int might match the return type of a GCC
17314 builtin and then its argument prototype would still apply. */
17319 /* The GNU C library defines this for functions which it implements
17320 to always fail with ENOSYS. Some functions are actually named
17321 something starting with __ and the normal name is an alias. */
17322 #if defined __stub_$ac_func || defined __stub___$ac_func
17329 return $ac_func ();
17334 rm -f conftest.$ac_objext conftest$ac_exeext
17335 if { (ac_try="$ac_link"
17336 case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_link") 2>conftest.er1
17343 grep -v '^ *+' conftest.er1 >conftest.err
17345 cat conftest.err >&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
17348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17349 { (case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_try") 2>&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; } &&
17358 { ac_try='test -s conftest$ac_exeext'
17359 { (case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_try") 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 eval "$as_ac_var=yes"
17370 echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17373 eval "$as_ac_var=no"
17376 rm -f core conftest.err conftest.$ac_objext \
17377 conftest$ac_exeext conftest.$ac_ext
17379 ac_res=`eval echo '${'$as_ac_var'}'`
17380 { echo "$as_me:$LINENO: result: $ac_res" >&5
17381 echo "${ECHO_T}$ac_res" >&6; }
17382 if test `eval echo '${'$as_ac_var'}'` = yes; then
17383 cat >>confdefs.h <<_ACEOF
17384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17394 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17397 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17402 cat >conftest.$ac_ext <<_ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h. */
17408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17410 #define $ac_func innocuous_$ac_func
17412 /* System header to define __stub macros and hopefully few prototypes,
17413 which can conflict with char $ac_func (); below.
17414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17415 <limits.h> exists even on freestanding compilers. */
17418 # include <limits.h>
17420 # include <assert.h>
17425 /* Override any GCC internal prototype to avoid an error.
17426 Use char because int might match the return type of a GCC
17427 builtin and then its argument prototype would still apply. */
17432 /* The GNU C library defines this for functions which it implements
17433 to always fail with ENOSYS. Some functions are actually named
17434 something starting with __ and the normal name is an alias. */
17435 #if defined __stub_$ac_func || defined __stub___$ac_func
17442 return $ac_func ();
17447 rm -f conftest.$ac_objext conftest$ac_exeext
17448 if { (ac_try="$ac_link"
17449 case "(($ac_try" in
17450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451 *) ac_try_echo=$ac_try;;
17453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454 (eval "$ac_link") 2>conftest.er1
17456 grep -v '^ *+' conftest.er1 >conftest.err
17458 cat conftest.err >&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } &&
17461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17462 { (case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_try") 2>&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; } &&
17471 { ac_try='test -s conftest$ac_exeext'
17472 { (case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_try") 2>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17481 eval "$as_ac_var=yes"
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17486 eval "$as_ac_var=no"
17489 rm -f core conftest.err conftest.$ac_objext \
17490 conftest$ac_exeext conftest.$ac_ext
17492 ac_res=`eval echo '${'$as_ac_var'}'`
17493 { echo "$as_me:$LINENO: result: $ac_res" >&5
17494 echo "${ECHO_T}$ac_res" >&6; }
17495 if test `eval echo '${'$as_ac_var'}'` = yes; then
17496 cat >>confdefs.h <<_ACEOF
17497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17508 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17511 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17514 echo $ECHO_N "(cached) $ECHO_C" >&6
17516 cat >conftest.$ac_ext <<_ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h. */
17522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17524 #define $ac_func innocuous_$ac_func
17526 /* System header to define __stub macros and hopefully few prototypes,
17527 which can conflict with char $ac_func (); below.
17528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17529 <limits.h> exists even on freestanding compilers. */
17532 # include <limits.h>
17534 # include <assert.h>
17539 /* Override any GCC internal prototype to avoid an error.
17540 Use char because int might match the return type of a GCC
17541 builtin and then its argument prototype would still apply. */
17546 /* The GNU C library defines this for functions which it implements
17547 to always fail with ENOSYS. Some functions are actually named
17548 something starting with __ and the normal name is an alias. */
17549 #if defined __stub_$ac_func || defined __stub___$ac_func
17556 return $ac_func ();
17561 rm -f conftest.$ac_objext conftest$ac_exeext
17562 if { (ac_try="$ac_link"
17563 case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_link") 2>conftest.er1
17570 grep -v '^ *+' conftest.er1 >conftest.err
17572 cat conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } &&
17575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17576 { (case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_try") 2>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; } &&
17585 { ac_try='test -s conftest$ac_exeext'
17586 { (case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_try") 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 eval "$as_ac_var=yes"
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 eval "$as_ac_var=no"
17603 rm -f core conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17606 ac_res=`eval echo '${'$as_ac_var'}'`
17607 { echo "$as_me:$LINENO: result: $ac_res" >&5
17608 echo "${ECHO_T}$ac_res" >&6; }
17609 if test `eval echo '${'$as_ac_var'}'` = yes; then
17610 cat >>confdefs.h <<_ACEOF
17611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17617 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17618 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17619 if test "${llvm_cv_c_printf_a+set}" = set; then
17620 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 ac_cpp='$CPP $CPPFLAGS'
17624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17628 if test "$cross_compiling" = yes; then
17629 llvmac_cv_c_printf_a=no
17631 cat >conftest.$ac_ext <<_ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17640 #include <stdlib.h>
17646 volatile double A, B;
17650 sprintf(Buffer, "%a", A);
17654 if (A != 0x1.999999999999ap-4)
17661 rm -f conftest$ac_exeext
17662 if { (ac_try="$ac_link"
17663 case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_link") 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_try") 2>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 llvm_cv_c_printf_a=yes
17683 echo "$as_me: program exited with status $ac_status" >&5
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17687 ( exit $ac_status )
17688 llvmac_cv_c_printf_a=no
17690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17695 ac_cpp='$CPP $CPPFLAGS'
17696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17701 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17702 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17703 if test "$llvm_cv_c_printf_a" = "yes"; then
17705 cat >>confdefs.h <<\_ACEOF
17706 #define HAVE_PRINTF_A 1
17712 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17713 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17714 if test "${ac_cv_func_rand48+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17718 ac_cpp='$CXXCPP $CPPFLAGS'
17719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17723 cat >conftest.$ac_ext <<_ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 #include <stdlib.h>
17733 srand48(0);lrand48();drand48();
17738 rm -f conftest.$ac_objext
17739 if { (ac_try="$ac_compile"
17740 case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_compile") 2>conftest.er1
17747 grep -v '^ *+' conftest.er1 >conftest.err
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17753 { (case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_try") 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest.$ac_objext'
17763 { (case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_try") 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 ac_cv_func_rand48=yes
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17777 ac_cv_func_rand48=no
17780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17782 ac_cpp='$CPP $CPPFLAGS'
17783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17788 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17789 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17791 if test "$ac_cv_func_rand48" = "yes" ; then
17793 cat >>confdefs.h <<\_ACEOF
17794 #define HAVE_RAND48 1
17800 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17801 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17802 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17803 echo $ECHO_N "(cached) $ECHO_C" >&6
17805 cat >conftest.$ac_ext <<_ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 $ac_includes_default
17816 char *p = (char *) strerror_s;
17824 rm -f conftest.$ac_objext
17825 if { (ac_try="$ac_compile"
17826 case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_compile") 2>conftest.er1
17833 grep -v '^ *+' conftest.er1 >conftest.err
17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
17838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17839 { (case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_try") 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; } &&
17848 { ac_try='test -s conftest.$ac_objext'
17849 { (case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_try") 2>&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 ac_cv_have_decl_strerror_s=yes
17860 echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17863 ac_cv_have_decl_strerror_s=no
17866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17868 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17869 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17870 if test $ac_cv_have_decl_strerror_s = yes; then
17872 cat >>confdefs.h <<_ACEOF
17873 #define HAVE_DECL_STRERROR_S 1
17878 cat >>confdefs.h <<_ACEOF
17879 #define HAVE_DECL_STRERROR_S 0
17887 if test "$llvm_cv_os_type" = "MingW" ; then
17888 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17889 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17890 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17893 ac_check_lib_save_LIBS=$LIBS
17895 cat >conftest.$ac_ext <<_ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17902 /* Override any GCC internal prototype to avoid an error.
17903 Use char because int might match the return type of a GCC
17904 builtin and then its argument prototype would still apply. */
17917 rm -f conftest.$ac_objext conftest$ac_exeext
17918 if { (ac_try="$ac_link"
17919 case "(($ac_try" in
17920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921 *) ac_try_echo=$ac_try;;
17923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924 (eval "$ac_link") 2>conftest.er1
17926 grep -v '^ *+' conftest.er1 >conftest.err
17928 cat conftest.err >&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } &&
17931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17932 { (case "(($ac_try" in
17933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17934 *) ac_try_echo=$ac_try;;
17936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17937 (eval "$ac_try") 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; } &&
17941 { ac_try='test -s conftest$ac_exeext'
17942 { (case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_try") 2>&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 ac_cv_lib_gcc__alloca=yes
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17956 ac_cv_lib_gcc__alloca=no
17959 rm -f core conftest.err conftest.$ac_objext \
17960 conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17963 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17964 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17965 if test $ac_cv_lib_gcc__alloca = yes; then
17967 cat >>confdefs.h <<\_ACEOF
17968 #define HAVE__ALLOCA 1
17973 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17974 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17975 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17978 ac_check_lib_save_LIBS=$LIBS
17980 cat >conftest.$ac_ext <<_ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h. */
17987 /* Override any GCC internal prototype to avoid an error.
17988 Use char because int might match the return type of a GCC
17989 builtin and then its argument prototype would still apply. */
17997 return __alloca ();
18002 rm -f conftest.$ac_objext conftest$ac_exeext
18003 if { (ac_try="$ac_link"
18004 case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_link") 2>conftest.er1
18011 grep -v '^ *+' conftest.er1 >conftest.err
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } &&
18016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18017 { (case "(($ac_try" in
18018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18019 *) ac_try_echo=$ac_try;;
18021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18022 (eval "$ac_try") 2>&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; } &&
18026 { ac_try='test -s conftest$ac_exeext'
18027 { (case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_try") 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_cv_lib_gcc___alloca=yes
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18041 ac_cv_lib_gcc___alloca=no
18044 rm -f core conftest.err conftest.$ac_objext \
18045 conftest$ac_exeext conftest.$ac_ext
18046 LIBS=$ac_check_lib_save_LIBS
18048 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18049 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18050 if test $ac_cv_lib_gcc___alloca = yes; then
18052 cat >>confdefs.h <<\_ACEOF
18053 #define HAVE___ALLOCA 1
18058 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18059 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18060 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 ac_check_lib_save_LIBS=$LIBS
18065 cat >conftest.$ac_ext <<_ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18072 /* Override any GCC internal prototype to avoid an error.
18073 Use char because int might match the return type of a GCC
18074 builtin and then its argument prototype would still apply. */
18082 return __chkstk ();
18087 rm -f conftest.$ac_objext conftest$ac_exeext
18088 if { (ac_try="$ac_link"
18089 case "(($ac_try" in
18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091 *) ac_try_echo=$ac_try;;
18093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18094 (eval "$ac_link") 2>conftest.er1
18096 grep -v '^ *+' conftest.er1 >conftest.err
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18102 { (case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_try") 2>&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest$ac_exeext'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
18121 ac_cv_lib_gcc___chkstk=yes
18123 echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18126 ac_cv_lib_gcc___chkstk=no
18129 rm -f core conftest.err conftest.$ac_objext \
18130 conftest$ac_exeext conftest.$ac_ext
18131 LIBS=$ac_check_lib_save_LIBS
18133 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18134 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18135 if test $ac_cv_lib_gcc___chkstk = yes; then
18137 cat >>confdefs.h <<\_ACEOF
18138 #define HAVE___CHKSTK 1
18143 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18144 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18145 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 ac_check_lib_save_LIBS=$LIBS
18150 cat >conftest.$ac_ext <<_ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18157 /* Override any GCC internal prototype to avoid an error.
18158 Use char because int might match the return type of a GCC
18159 builtin and then its argument prototype would still apply. */
18167 return ___chkstk ();
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_link") 2>conftest.er1
18181 grep -v '^ *+' conftest.er1 >conftest.err
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } &&
18186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; } &&
18196 { ac_try='test -s conftest$ac_exeext'
18197 { (case "(($ac_try" in
18198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199 *) ac_try_echo=$ac_try;;
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202 (eval "$ac_try") 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18206 ac_cv_lib_gcc____chkstk=yes
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18211 ac_cv_lib_gcc____chkstk=no
18214 rm -f core conftest.err conftest.$ac_objext \
18215 conftest$ac_exeext conftest.$ac_ext
18216 LIBS=$ac_check_lib_save_LIBS
18218 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18219 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18220 if test $ac_cv_lib_gcc____chkstk = yes; then
18222 cat >>confdefs.h <<\_ACEOF
18223 #define HAVE____CHKSTK 1
18229 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18230 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18231 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18232 echo $ECHO_N "(cached) $ECHO_C" >&6
18234 ac_check_lib_save_LIBS=$LIBS
18236 cat >conftest.$ac_ext <<_ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h. */
18243 /* Override any GCC internal prototype to avoid an error.
18244 Use char because int might match the return type of a GCC
18245 builtin and then its argument prototype would still apply. */
18253 return __ashldi3 ();
18258 rm -f conftest.$ac_objext conftest$ac_exeext
18259 if { (ac_try="$ac_link"
18260 case "(($ac_try" in
18261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18262 *) ac_try_echo=$ac_try;;
18264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18265 (eval "$ac_link") 2>conftest.er1
18267 grep -v '^ *+' conftest.er1 >conftest.err
18269 cat conftest.err >&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); } &&
18272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18273 { (case "(($ac_try" in
18274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18275 *) ac_try_echo=$ac_try;;
18277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18278 (eval "$ac_try") 2>&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; } &&
18282 { ac_try='test -s conftest$ac_exeext'
18283 { (case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_try") 2>&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18292 ac_cv_lib_gcc___ashldi3=yes
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18297 ac_cv_lib_gcc___ashldi3=no
18300 rm -f core conftest.err conftest.$ac_objext \
18301 conftest$ac_exeext conftest.$ac_ext
18302 LIBS=$ac_check_lib_save_LIBS
18304 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18305 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18306 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18308 cat >>confdefs.h <<\_ACEOF
18309 #define HAVE___ASHLDI3 1
18314 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18315 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18316 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18319 ac_check_lib_save_LIBS=$LIBS
18321 cat >conftest.$ac_ext <<_ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h. */
18328 /* Override any GCC internal prototype to avoid an error.
18329 Use char because int might match the return type of a GCC
18330 builtin and then its argument prototype would still apply. */
18338 return __ashrdi3 ();
18343 rm -f conftest.$ac_objext conftest$ac_exeext
18344 if { (ac_try="$ac_link"
18345 case "(($ac_try" in
18346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347 *) ac_try_echo=$ac_try;;
18349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350 (eval "$ac_link") 2>conftest.er1
18352 grep -v '^ *+' conftest.er1 >conftest.err
18354 cat conftest.err >&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } &&
18357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18358 { (case "(($ac_try" in
18359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360 *) ac_try_echo=$ac_try;;
18362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363 (eval "$ac_try") 2>&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } &&
18367 { ac_try='test -s conftest$ac_exeext'
18368 { (case "(($ac_try" in
18369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18370 *) ac_try_echo=$ac_try;;
18372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18373 (eval "$ac_try") 2>&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 ac_cv_lib_gcc___ashrdi3=yes
18379 echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18382 ac_cv_lib_gcc___ashrdi3=no
18385 rm -f core conftest.err conftest.$ac_objext \
18386 conftest$ac_exeext conftest.$ac_ext
18387 LIBS=$ac_check_lib_save_LIBS
18389 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18390 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18391 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18393 cat >>confdefs.h <<\_ACEOF
18394 #define HAVE___ASHRDI3 1
18399 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18400 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18401 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18404 ac_check_lib_save_LIBS=$LIBS
18406 cat >conftest.$ac_ext <<_ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18413 /* Override any GCC internal prototype to avoid an error.
18414 Use char because int might match the return type of a GCC
18415 builtin and then its argument prototype would still apply. */
18423 return __divdi3 ();
18428 rm -f conftest.$ac_objext conftest$ac_exeext
18429 if { (ac_try="$ac_link"
18430 case "(($ac_try" in
18431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_link") 2>conftest.er1
18437 grep -v '^ *+' conftest.er1 >conftest.err
18439 cat conftest.err >&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } &&
18442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18443 { (case "(($ac_try" in
18444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18445 *) ac_try_echo=$ac_try;;
18447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18448 (eval "$ac_try") 2>&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); }; } &&
18452 { ac_try='test -s conftest$ac_exeext'
18453 { (case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_try") 2>&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; }; then
18462 ac_cv_lib_gcc___divdi3=yes
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18467 ac_cv_lib_gcc___divdi3=no
18470 rm -f core conftest.err conftest.$ac_objext \
18471 conftest$ac_exeext conftest.$ac_ext
18472 LIBS=$ac_check_lib_save_LIBS
18474 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18475 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18476 if test $ac_cv_lib_gcc___divdi3 = yes; then
18478 cat >>confdefs.h <<\_ACEOF
18479 #define HAVE___DIVDI3 1
18484 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18485 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18486 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18489 ac_check_lib_save_LIBS=$LIBS
18491 cat >conftest.$ac_ext <<_ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18498 /* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18508 return __fixdfdi ();
18513 rm -f conftest.$ac_objext conftest$ac_exeext
18514 if { (ac_try="$ac_link"
18515 case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_link") 2>conftest.er1
18522 grep -v '^ *+' conftest.er1 >conftest.err
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
18527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18528 { (case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_try") 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest$ac_exeext'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 ac_cv_lib_gcc___fixdfdi=yes
18549 echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18552 ac_cv_lib_gcc___fixdfdi=no
18555 rm -f core conftest.err conftest.$ac_objext \
18556 conftest$ac_exeext conftest.$ac_ext
18557 LIBS=$ac_check_lib_save_LIBS
18559 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18560 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18561 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18563 cat >>confdefs.h <<\_ACEOF
18564 #define HAVE___FIXDFDI 1
18569 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18570 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18571 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 ac_check_lib_save_LIBS=$LIBS
18576 cat >conftest.$ac_ext <<_ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18583 /* Override any GCC internal prototype to avoid an error.
18584 Use char because int might match the return type of a GCC
18585 builtin and then its argument prototype would still apply. */
18593 return __fixsfdi ();
18598 rm -f conftest.$ac_objext conftest$ac_exeext
18599 if { (ac_try="$ac_link"
18600 case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_link") 2>conftest.er1
18607 grep -v '^ *+' conftest.er1 >conftest.err
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
18612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18613 { (case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_try") 2>&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; } &&
18622 { ac_try='test -s conftest$ac_exeext'
18623 { (case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_try") 2>&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; }; then
18632 ac_cv_lib_gcc___fixsfdi=yes
18634 echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18637 ac_cv_lib_gcc___fixsfdi=no
18640 rm -f core conftest.err conftest.$ac_objext \
18641 conftest$ac_exeext conftest.$ac_ext
18642 LIBS=$ac_check_lib_save_LIBS
18644 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18645 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18646 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18648 cat >>confdefs.h <<\_ACEOF
18649 #define HAVE___FIXSFDI 1
18654 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18655 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18656 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18659 ac_check_lib_save_LIBS=$LIBS
18661 cat >conftest.$ac_ext <<_ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h. */
18668 /* Override any GCC internal prototype to avoid an error.
18669 Use char because int might match the return type of a GCC
18670 builtin and then its argument prototype would still apply. */
18674 char __floatdidf ();
18678 return __floatdidf ();
18683 rm -f conftest.$ac_objext conftest$ac_exeext
18684 if { (ac_try="$ac_link"
18685 case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_link") 2>conftest.er1
18692 grep -v '^ *+' conftest.er1 >conftest.err
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
18697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18698 { (case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_try") 2>&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try='test -s conftest$ac_exeext'
18708 { (case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_try") 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18717 ac_cv_lib_gcc___floatdidf=yes
18719 echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18722 ac_cv_lib_gcc___floatdidf=no
18725 rm -f core conftest.err conftest.$ac_objext \
18726 conftest$ac_exeext conftest.$ac_ext
18727 LIBS=$ac_check_lib_save_LIBS
18729 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18730 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18731 if test $ac_cv_lib_gcc___floatdidf = yes; then
18733 cat >>confdefs.h <<\_ACEOF
18734 #define HAVE___FLOATDIDF 1
18739 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18740 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18741 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 ac_check_lib_save_LIBS=$LIBS
18746 cat >conftest.$ac_ext <<_ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18753 /* Override any GCC internal prototype to avoid an error.
18754 Use char because int might match the return type of a GCC
18755 builtin and then its argument prototype would still apply. */
18763 return __lshrdi3 ();
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (ac_try="$ac_link"
18770 case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_link") 2>conftest.er1
18777 grep -v '^ *+' conftest.er1 >conftest.err
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } &&
18782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18783 { (case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_try") 2>&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; } &&
18792 { ac_try='test -s conftest$ac_exeext'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_cv_lib_gcc___lshrdi3=yes
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18807 ac_cv_lib_gcc___lshrdi3=no
18810 rm -f core conftest.err conftest.$ac_objext \
18811 conftest$ac_exeext conftest.$ac_ext
18812 LIBS=$ac_check_lib_save_LIBS
18814 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18815 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18816 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18818 cat >>confdefs.h <<\_ACEOF
18819 #define HAVE___LSHRDI3 1
18824 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18825 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18826 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 ac_check_lib_save_LIBS=$LIBS
18831 cat >conftest.$ac_ext <<_ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18838 /* Override any GCC internal prototype to avoid an error.
18839 Use char because int might match the return type of a GCC
18840 builtin and then its argument prototype would still apply. */
18848 return __moddi3 ();
18853 rm -f conftest.$ac_objext conftest$ac_exeext
18854 if { (ac_try="$ac_link"
18855 case "(($ac_try" in
18856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_link") 2>conftest.er1
18862 grep -v '^ *+' conftest.er1 >conftest.err
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } &&
18867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18868 { (case "(($ac_try" in
18869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870 *) ac_try_echo=$ac_try;;
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873 (eval "$ac_try") 2>&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; } &&
18877 { ac_try='test -s conftest$ac_exeext'
18878 { (case "(($ac_try" in
18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880 *) ac_try_echo=$ac_try;;
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883 (eval "$ac_try") 2>&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
18887 ac_cv_lib_gcc___moddi3=yes
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18892 ac_cv_lib_gcc___moddi3=no
18895 rm -f core conftest.err conftest.$ac_objext \
18896 conftest$ac_exeext conftest.$ac_ext
18897 LIBS=$ac_check_lib_save_LIBS
18899 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18900 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18901 if test $ac_cv_lib_gcc___moddi3 = yes; then
18903 cat >>confdefs.h <<\_ACEOF
18904 #define HAVE___MODDI3 1
18909 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18910 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18911 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18912 echo $ECHO_N "(cached) $ECHO_C" >&6
18914 ac_check_lib_save_LIBS=$LIBS
18916 cat >conftest.$ac_ext <<_ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18923 /* Override any GCC internal prototype to avoid an error.
18924 Use char because int might match the return type of a GCC
18925 builtin and then its argument prototype would still apply. */
18933 return __udivdi3 ();
18938 rm -f conftest.$ac_objext conftest$ac_exeext
18939 if { (ac_try="$ac_link"
18940 case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_link") 2>conftest.er1
18947 grep -v '^ *+' conftest.er1 >conftest.err
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
18952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18953 { (case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_try") 2>&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; } &&
18962 { ac_try='test -s conftest$ac_exeext'
18963 { (case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_try") 2>&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; }; then
18972 ac_cv_lib_gcc___udivdi3=yes
18974 echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18977 ac_cv_lib_gcc___udivdi3=no
18980 rm -f core conftest.err conftest.$ac_objext \
18981 conftest$ac_exeext conftest.$ac_ext
18982 LIBS=$ac_check_lib_save_LIBS
18984 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18985 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18986 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18988 cat >>confdefs.h <<\_ACEOF
18989 #define HAVE___UDIVDI3 1
18994 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18995 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18996 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18999 ac_check_lib_save_LIBS=$LIBS
19001 cat >conftest.$ac_ext <<_ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19008 /* Override any GCC internal prototype to avoid an error.
19009 Use char because int might match the return type of a GCC
19010 builtin and then its argument prototype would still apply. */
19018 return __umoddi3 ();
19023 rm -f conftest.$ac_objext conftest$ac_exeext
19024 if { (ac_try="$ac_link"
19025 case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_link") 2>conftest.er1
19032 grep -v '^ *+' conftest.er1 >conftest.err
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest$ac_exeext'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_cv_lib_gcc___umoddi3=yes
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 ac_cv_lib_gcc___umoddi3=no
19065 rm -f core conftest.err conftest.$ac_objext \
19066 conftest$ac_exeext conftest.$ac_ext
19067 LIBS=$ac_check_lib_save_LIBS
19069 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19070 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19071 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19073 cat >>confdefs.h <<\_ACEOF
19074 #define HAVE___UMODDI3 1
19080 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19081 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19082 if test "${ac_cv_lib_gcc___main+set}" = set; then
19083 echo $ECHO_N "(cached) $ECHO_C" >&6
19085 ac_check_lib_save_LIBS=$LIBS
19087 cat >conftest.$ac_ext <<_ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h. */
19094 /* Override any GCC internal prototype to avoid an error.
19095 Use char because int might match the return type of a GCC
19096 builtin and then its argument prototype would still apply. */
19109 rm -f conftest.$ac_objext conftest$ac_exeext
19110 if { (ac_try="$ac_link"
19111 case "(($ac_try" in
19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113 *) ac_try_echo=$ac_try;;
19115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116 (eval "$ac_link") 2>conftest.er1
19118 grep -v '^ *+' conftest.er1 >conftest.err
19120 cat conftest.err >&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } &&
19123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19124 { (case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_try") 2>&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; } &&
19133 { ac_try='test -s conftest$ac_exeext'
19134 { (case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_try") 2>&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; }; then
19143 ac_cv_lib_gcc___main=yes
19145 echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ac_cv_lib_gcc___main=no
19151 rm -f core conftest.err conftest.$ac_objext \
19152 conftest$ac_exeext conftest.$ac_ext
19153 LIBS=$ac_check_lib_save_LIBS
19155 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19156 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19157 if test $ac_cv_lib_gcc___main = yes; then
19159 cat >>confdefs.h <<\_ACEOF
19160 #define HAVE___MAIN 1
19165 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19166 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19167 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19168 echo $ECHO_N "(cached) $ECHO_C" >&6
19170 ac_check_lib_save_LIBS=$LIBS
19172 cat >conftest.$ac_ext <<_ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19179 /* Override any GCC internal prototype to avoid an error.
19180 Use char because int might match the return type of a GCC
19181 builtin and then its argument prototype would still apply. */
19189 return __cmpdi2 ();
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (ac_try="$ac_link"
19196 case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_link") 2>conftest.er1
19203 grep -v '^ *+' conftest.er1 >conftest.err
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } &&
19208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19209 { (case "(($ac_try" in
19210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211 *) ac_try_echo=$ac_try;;
19213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19214 (eval "$ac_try") 2>&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; } &&
19218 { ac_try='test -s conftest$ac_exeext'
19219 { (case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_try") 2>&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; }; then
19228 ac_cv_lib_gcc___cmpdi2=yes
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19233 ac_cv_lib_gcc___cmpdi2=no
19236 rm -f core conftest.err conftest.$ac_objext \
19237 conftest$ac_exeext conftest.$ac_ext
19238 LIBS=$ac_check_lib_save_LIBS
19240 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19241 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19242 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19244 cat >>confdefs.h <<\_ACEOF
19245 #define HAVE___CMPDI2 1
19252 if test "$llvm_cv_os_type" = "MingW" ; then
19253 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19254 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19255 cat >conftest.$ac_ext <<_ACEOF
19256 #include <windows.h>
19257 #include <imagehlp.h>
19258 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19259 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19261 rm -f conftest.$ac_objext
19262 if { (ac_try="$ac_compile"
19263 case "(($ac_try" in
19264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265 *) ac_try_echo=$ac_try;;
19267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268 (eval "$ac_compile") 2>conftest.er1
19270 grep -v '^ *+' conftest.er1 >conftest.err
19272 cat conftest.err >&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } &&
19275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19276 { (case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281 (eval "$ac_try") 2>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; } &&
19285 { ac_try='test -s conftest.$ac_objext'
19286 { (case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19291 (eval "$ac_try") 2>&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19296 { echo "$as_me:$LINENO: result: yes" >&5
19297 echo "${ECHO_T}yes" >&6; }
19298 llvm_cv_win32_elmcb_pcstr="PCSTR"
19301 echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19305 { echo "$as_me:$LINENO: result: no" >&5
19306 echo "${ECHO_T}no" >&6; }
19307 llvm_cv_win32_elmcb_pcstr="PSTR"
19311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19313 cat >>confdefs.h <<_ACEOF
19314 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19320 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19321 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19322 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19326 ac_cpp='$CXXCPP $CPPFLAGS'
19327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19331 cat >conftest.$ac_ext <<_ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h. */
19346 rm -f conftest.$ac_objext
19347 if { (ac_try="$ac_compile"
19348 case "(($ac_try" in
19349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350 *) ac_try_echo=$ac_try;;
19352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19353 (eval "$ac_compile") 2>conftest.er1
19355 grep -v '^ *+' conftest.er1 >conftest.err
19357 cat conftest.err >&5
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } &&
19360 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19361 { (case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_try") 2>&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; } &&
19370 { ac_try='test -s conftest.$ac_objext'
19371 { (case "(($ac_try" in
19372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373 *) ac_try_echo=$ac_try;;
19375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19376 (eval "$ac_try") 2>&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; }; then
19380 ac_cv_func_isnan_in_math_h=yes
19382 echo "$as_me: failed program was:" >&5
19383 sed 's/^/| /' conftest.$ac_ext >&5
19385 ac_cv_func_isnan_in_math_h=no
19388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19390 ac_cpp='$CPP $CPPFLAGS'
19391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19396 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19397 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19400 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19402 cat >>confdefs.h <<\_ACEOF
19403 #define HAVE_ISNAN_IN_MATH_H 1
19408 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19409 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19410 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19414 ac_cpp='$CXXCPP $CPPFLAGS'
19415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19419 cat >conftest.$ac_ext <<_ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h. */
19434 rm -f conftest.$ac_objext
19435 if { (ac_try="$ac_compile"
19436 case "(($ac_try" in
19437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441 (eval "$ac_compile") 2>conftest.er1
19443 grep -v '^ *+' conftest.er1 >conftest.err
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
19448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19449 { (case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_try") 2>&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; } &&
19458 { ac_try='test -s conftest.$ac_objext'
19459 { (case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_try") 2>&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; }; then
19468 ac_cv_func_isnan_in_cmath=yes
19470 echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19473 ac_cv_func_isnan_in_cmath=no
19476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19478 ac_cpp='$CPP $CPPFLAGS'
19479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19484 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19485 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19487 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19489 cat >>confdefs.h <<\_ACEOF
19490 #define HAVE_ISNAN_IN_CMATH 1
19495 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19496 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19497 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
19501 ac_cpp='$CXXCPP $CPPFLAGS'
19502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19506 cat >conftest.$ac_ext <<_ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19516 float f; std::isnan(f);
19521 rm -f conftest.$ac_objext
19522 if { (ac_try="$ac_compile"
19523 case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_compile") 2>conftest.er1
19530 grep -v '^ *+' conftest.er1 >conftest.err
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } &&
19535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19536 { (case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_try") 2>&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; } &&
19545 { ac_try='test -s conftest.$ac_objext'
19546 { (case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551 (eval "$ac_try") 2>&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; }; then
19555 ac_cv_func_std_isnan_in_cmath=yes
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19560 ac_cv_func_std_isnan_in_cmath=no
19563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19565 ac_cpp='$CPP $CPPFLAGS'
19566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19571 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19572 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19574 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19576 cat >>confdefs.h <<\_ACEOF
19577 #define HAVE_STD_ISNAN_IN_CMATH 1
19583 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19584 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19585 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19589 ac_cpp='$CXXCPP $CPPFLAGS'
19590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19594 cat >conftest.$ac_ext <<_ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19609 rm -f conftest.$ac_objext
19610 if { (ac_try="$ac_compile"
19611 case "(($ac_try" in
19612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613 *) ac_try_echo=$ac_try;;
19615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616 (eval "$ac_compile") 2>conftest.er1
19618 grep -v '^ *+' conftest.er1 >conftest.err
19620 cat conftest.err >&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
19623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19624 { (case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_try") 2>&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; } &&
19633 { ac_try='test -s conftest.$ac_objext'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; }; then
19643 ac_cv_func_isinf_in_math_h=yes
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 ac_cv_func_isinf_in_math_h=no
19651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19653 ac_cpp='$CPP $CPPFLAGS'
19654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19659 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19660 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19662 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19664 cat >>confdefs.h <<\_ACEOF
19665 #define HAVE_ISINF_IN_MATH_H 1
19670 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19671 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19672 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19676 ac_cpp='$CXXCPP $CPPFLAGS'
19677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19681 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19696 rm -f conftest.$ac_objext
19697 if { (ac_try="$ac_compile"
19698 case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_compile") 2>conftest.er1
19705 grep -v '^ *+' conftest.er1 >conftest.err
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } &&
19710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19711 { (case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_try") 2>&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
19721 { (case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726 (eval "$ac_try") 2>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; }; then
19730 ac_cv_func_isinf_in_cmath=yes
19732 echo "$as_me: failed program was:" >&5
19733 sed 's/^/| /' conftest.$ac_ext >&5
19735 ac_cv_func_isinf_in_cmath=no
19738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19740 ac_cpp='$CPP $CPPFLAGS'
19741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19746 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19747 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19749 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19751 cat >>confdefs.h <<\_ACEOF
19752 #define HAVE_ISINF_IN_CMATH 1
19757 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19758 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19759 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 ac_cpp='$CXXCPP $CPPFLAGS'
19764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19768 cat >conftest.$ac_ext <<_ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19778 float f; std::isinf(f)}
19783 rm -f conftest.$ac_objext
19784 if { (ac_try="$ac_compile"
19785 case "(($ac_try" in
19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790 (eval "$ac_compile") 2>conftest.er1
19792 grep -v '^ *+' conftest.er1 >conftest.err
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } &&
19797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19798 { (case "(($ac_try" in
19799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800 *) ac_try_echo=$ac_try;;
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803 (eval "$ac_try") 2>&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; } &&
19807 { ac_try='test -s conftest.$ac_objext'
19808 { (case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_try") 2>&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; }; then
19817 ac_cv_func_std_isinf_in_cmath=yes
19819 echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19822 ac_cv_func_std_isinf_in_cmath=no
19825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19827 ac_cpp='$CPP $CPPFLAGS'
19828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19833 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19834 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19836 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19838 cat >>confdefs.h <<\_ACEOF
19839 #define HAVE_STD_ISINF_IN_CMATH 1
19844 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19845 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19846 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19850 ac_cpp='$CXXCPP $CPPFLAGS'
19851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19855 cat >conftest.$ac_ext <<_ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 #include <ieeefp.h>
19865 float f; finite(f);
19870 rm -f conftest.$ac_objext
19871 if { (ac_try="$ac_compile"
19872 case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_compile") 2>conftest.er1
19879 grep -v '^ *+' conftest.er1 >conftest.err
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19885 { (case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_try") 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest.$ac_objext'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; }; then
19904 ac_cv_func_finite_in_ieeefp_h=yes
19906 echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19909 ac_cv_func_finite_in_ieeefp_h=no
19912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19914 ac_cpp='$CPP $CPPFLAGS'
19915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19920 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19921 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19923 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19925 cat >>confdefs.h <<\_ACEOF
19926 #define HAVE_FINITE_IN_IEEEFP_H 1
19933 if test "$llvm_cv_platform_type" = "Unix" ; then
19936 for ac_header in stdlib.h unistd.h
19938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 ac_res=`eval echo '${'$as_ac_Header'}'`
19946 { echo "$as_me:$LINENO: result: $ac_res" >&5
19947 echo "${ECHO_T}$ac_res" >&6; }
19949 # Is the header compilable?
19950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19952 cat >conftest.$ac_ext <<_ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19958 $ac_includes_default
19959 #include <$ac_header>
19961 rm -f conftest.$ac_objext
19962 if { (ac_try="$ac_compile"
19963 case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19968 (eval "$ac_compile") 2>conftest.er1
19970 grep -v '^ *+' conftest.er1 >conftest.err
19972 cat conftest.err >&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } &&
19975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19976 { (case "(($ac_try" in
19977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19978 *) ac_try_echo=$ac_try;;
19980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19981 (eval "$ac_try") 2>&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; } &&
19985 { ac_try='test -s conftest.$ac_objext'
19986 { (case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_try") 2>&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; }; then
19995 ac_header_compiler=yes
19997 echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_header_compiler=no
20003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20005 echo "${ECHO_T}$ac_header_compiler" >&6; }
20007 # Is the header present?
20008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20010 cat >conftest.$ac_ext <<_ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20016 #include <$ac_header>
20018 if { (ac_try="$ac_cpp conftest.$ac_ext"
20019 case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20026 grep -v '^ *+' conftest.er1 >conftest.err
20028 cat conftest.err >&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } >/dev/null; then
20031 if test -s conftest.err; then
20032 ac_cpp_err=$ac_c_preproc_warn_flag
20033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20040 if test -z "$ac_cpp_err"; then
20041 ac_header_preproc=yes
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20046 ac_header_preproc=no
20049 rm -f conftest.err conftest.$ac_ext
20050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20051 echo "${ECHO_T}$ac_header_preproc" >&6; }
20053 # So? What about this header?
20054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20060 ac_header_preproc=yes
20063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20076 ## ----------------------------------- ##
20077 ## Report this to llvmbugs@cs.uiuc.edu ##
20078 ## ----------------------------------- ##
20080 ) | sed "s/^/$as_me: WARNING: /" >&2
20083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 eval "$as_ac_Header=\$ac_header_preproc"
20090 ac_res=`eval echo '${'$as_ac_Header'}'`
20091 { echo "$as_me:$LINENO: result: $ac_res" >&5
20092 echo "${ECHO_T}$ac_res" >&6; }
20095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20096 cat >>confdefs.h <<_ACEOF
20097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20105 for ac_func in getpagesize
20107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20111 echo $ECHO_N "(cached) $ECHO_C" >&6
20113 cat >conftest.$ac_ext <<_ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20121 #define $ac_func innocuous_$ac_func
20123 /* System header to define __stub macros and hopefully few prototypes,
20124 which can conflict with char $ac_func (); below.
20125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20126 <limits.h> exists even on freestanding compilers. */
20129 # include <limits.h>
20131 # include <assert.h>
20136 /* Override any GCC internal prototype to avoid an error.
20137 Use char because int might match the return type of a GCC
20138 builtin and then its argument prototype would still apply. */
20143 /* The GNU C library defines this for functions which it implements
20144 to always fail with ENOSYS. Some functions are actually named
20145 something starting with __ and the normal name is an alias. */
20146 #if defined __stub_$ac_func || defined __stub___$ac_func
20153 return $ac_func ();
20158 rm -f conftest.$ac_objext conftest$ac_exeext
20159 if { (ac_try="$ac_link"
20160 case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165 (eval "$ac_link") 2>conftest.er1
20167 grep -v '^ *+' conftest.er1 >conftest.err
20169 cat conftest.err >&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } &&
20172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20173 { (case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178 (eval "$ac_try") 2>&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; } &&
20182 { ac_try='test -s conftest$ac_exeext'
20183 { (case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_try") 2>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 eval "$as_ac_var=yes"
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20197 eval "$as_ac_var=no"
20200 rm -f core conftest.err conftest.$ac_objext \
20201 conftest$ac_exeext conftest.$ac_ext
20203 ac_res=`eval echo '${'$as_ac_var'}'`
20204 { echo "$as_me:$LINENO: result: $ac_res" >&5
20205 echo "${ECHO_T}$ac_res" >&6; }
20206 if test `eval echo '${'$as_ac_var'}'` = yes; then
20207 cat >>confdefs.h <<_ACEOF
20208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20214 { echo "$as_me:$LINENO: checking for working mmap" >&5
20215 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20216 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20219 if test "$cross_compiling" = yes; then
20220 ac_cv_func_mmap_fixed_mapped=no
20222 cat >conftest.$ac_ext <<_ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20228 $ac_includes_default
20229 /* malloc might have been renamed as rpl_malloc. */
20232 /* Thanks to Mike Haertel and Jim Avera for this test.
20233 Here is a matrix of mmap possibilities:
20234 mmap private not fixed
20235 mmap private fixed at somewhere currently unmapped
20236 mmap private fixed at somewhere already mapped
20237 mmap shared not fixed
20238 mmap shared fixed at somewhere currently unmapped
20239 mmap shared fixed at somewhere already mapped
20240 For private mappings, we should verify that changes cannot be read()
20241 back from the file, nor mmap's back from the file at a different
20242 address. (There have been systems where private was not correctly
20243 implemented like the infamous i386 svr4.0, and systems where the
20244 VM page cache was not coherent with the file system buffer cache
20245 like early versions of FreeBSD and possibly contemporary NetBSD.)
20246 For shared mappings, we should conversely verify that changes get
20247 propagated back to all the places they're supposed to be.
20249 Grep wants private fixed already mapped.
20250 The main things grep needs to know about mmap are:
20251 * does it exist and is it safe to write into the mmap'd area
20252 * how to use it (BSD variants) */
20255 #include <sys/mman.h>
20257 #if !STDC_HEADERS && !HAVE_STDLIB_H
20261 /* This mess was copied from the GNU getpagesize.h. */
20262 #if !HAVE_GETPAGESIZE
20263 /* Assume that all systems that can run configure have sys/param.h. */
20264 # if !HAVE_SYS_PARAM_H
20265 # define HAVE_SYS_PARAM_H 1
20268 # ifdef _SC_PAGESIZE
20269 # define getpagesize() sysconf(_SC_PAGESIZE)
20270 # else /* no _SC_PAGESIZE */
20271 # if HAVE_SYS_PARAM_H
20272 # include <sys/param.h>
20273 # ifdef EXEC_PAGESIZE
20274 # define getpagesize() EXEC_PAGESIZE
20275 # else /* no EXEC_PAGESIZE */
20277 # define getpagesize() NBPG * CLSIZE
20280 # endif /* no CLSIZE */
20281 # else /* no NBPG */
20283 # define getpagesize() NBPC
20284 # else /* no NBPC */
20286 # define getpagesize() PAGESIZE
20287 # endif /* PAGESIZE */
20288 # endif /* no NBPC */
20289 # endif /* no NBPG */
20290 # endif /* no EXEC_PAGESIZE */
20291 # else /* no HAVE_SYS_PARAM_H */
20292 # define getpagesize() 8192 /* punt totally */
20293 # endif /* no HAVE_SYS_PARAM_H */
20294 # endif /* no _SC_PAGESIZE */
20296 #endif /* no HAVE_GETPAGESIZE */
20301 char *data, *data2, *data3;
20305 pagesize = getpagesize ();
20307 /* First, make a file with some known garbage in it. */
20308 data = (char *) malloc (pagesize);
20311 for (i = 0; i < pagesize; ++i)
20312 *(data + i) = rand ();
20314 fd = creat ("conftest.mmap", 0600);
20317 if (write (fd, data, pagesize) != pagesize)
20321 /* Next, try to mmap the file at a fixed address which already has
20322 something else allocated at it. If we can, also make sure that
20323 we see the same garbage. */
20324 fd = open ("conftest.mmap", O_RDWR);
20327 data2 = (char *) malloc (2 * pagesize);
20330 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20331 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20332 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20334 for (i = 0; i < pagesize; ++i)
20335 if (*(data + i) != *(data2 + i))
20338 /* Finally, make sure that changes to the mapped area do not
20339 percolate back to the file as seen by read(). (This is a bug on
20340 some variants of i386 svr4.0.) */
20341 for (i = 0; i < pagesize; ++i)
20342 *(data2 + i) = *(data2 + i) + 1;
20343 data3 = (char *) malloc (pagesize);
20346 if (read (fd, data3, pagesize) != pagesize)
20348 for (i = 0; i < pagesize; ++i)
20349 if (*(data + i) != *(data3 + i))
20355 rm -f conftest$ac_exeext
20356 if { (ac_try="$ac_link"
20357 case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_link") 2>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20366 { (case "(($ac_try" in
20367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20368 *) ac_try_echo=$ac_try;;
20370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20371 (eval "$ac_try") 2>&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; }; then
20375 ac_cv_func_mmap_fixed_mapped=yes
20377 echo "$as_me: program exited with status $ac_status" >&5
20378 echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20381 ( exit $ac_status )
20382 ac_cv_func_mmap_fixed_mapped=no
20384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20389 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20390 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20391 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20393 cat >>confdefs.h <<\_ACEOF
20394 #define HAVE_MMAP 1
20398 rm -f conftest.mmap
20400 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20401 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20402 if test "${ac_cv_func_mmap_file+set}" = set; then
20403 echo $ECHO_N "(cached) $ECHO_C" >&6
20406 ac_cpp='$CPP $CPPFLAGS'
20407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20411 if test "$cross_compiling" = yes; then
20412 ac_cv_func_mmap_file=no
20414 cat >conftest.$ac_ext <<_ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20422 #include <sys/types.h>
20423 #include <sys/mman.h>
20431 fd = creat ("foo",0777);
20432 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20434 return (fd != (int) MAP_FAILED);
20439 rm -f conftest$ac_exeext
20440 if { (ac_try="$ac_link"
20441 case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_link") 2>&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20450 { (case "(($ac_try" in
20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455 (eval "$ac_try") 2>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; }; then
20459 ac_cv_func_mmap_file=yes
20461 echo "$as_me: program exited with status $ac_status" >&5
20462 echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20465 ( exit $ac_status )
20466 ac_cv_func_mmap_file=no
20468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20473 ac_cpp='$CPP $CPPFLAGS'
20474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20480 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20481 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20482 if test "$ac_cv_func_mmap_file" = yes; then
20484 cat >>confdefs.h <<\_ACEOF
20485 #define HAVE_MMAP_FILE
20492 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20493 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20494 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20497 if test "$llvm_cv_os_type" = "Interix" ; then
20498 ac_cv_need_dev_zero_for_mmap=yes
20500 ac_cv_need_dev_zero_for_mmap=no
20504 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20505 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20506 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20508 cat >>confdefs.h <<\_ACEOF
20509 #define NEED_DEV_ZERO_FOR_MMAP 1
20514 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20516 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20517 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20519 if test "$ac_cv_func_mmap_file" = "no"
20521 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20522 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20526 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20527 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20529 ac_cpp='$CXXCPP $CPPFLAGS'
20530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20534 cat >conftest.$ac_ext <<_ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20541 volatile unsigned long val = 1;
20542 __sync_synchronize();
20543 __sync_val_compare_and_swap(&val, 1, 0);
20544 __sync_add_and_fetch(&val, 1);
20545 __sync_sub_and_fetch(&val, 1);
20550 rm -f conftest.$ac_objext conftest$ac_exeext
20551 if { (ac_try="$ac_link"
20552 case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_link") 2>conftest.er1
20559 grep -v '^ *+' conftest.er1 >conftest.err
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } &&
20564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20565 { (case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_try") 2>&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; } &&
20574 { ac_try='test -s conftest$ac_exeext'
20575 { (case "(($ac_try" in
20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577 *) ac_try_echo=$ac_try;;
20579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580 (eval "$ac_try") 2>&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
20585 ac_cpp='$CPP $CPPFLAGS'
20586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20590 { echo "$as_me:$LINENO: result: yes" >&5
20591 echo "${ECHO_T}yes" >&6; }
20593 cat >>confdefs.h <<\_ACEOF
20594 #define LLVM_HAS_ATOMICS 1
20598 echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20601 { echo "$as_me:$LINENO: result: no" >&5
20602 echo "${ECHO_T}no" >&6; }
20604 cat >>confdefs.h <<\_ACEOF
20605 #define LLVM_HAS_ATOMICS 0
20608 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20609 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20612 rm -f core conftest.err conftest.$ac_objext \
20613 conftest$ac_exeext conftest.$ac_ext
20616 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20617 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20618 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20619 if test "${llvm_cv_linux_mixed+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20623 ac_cpp='$CPP $CPPFLAGS'
20624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20628 cat >conftest.$ac_ext <<_ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h. */
20635 error: Not x86-64 even if uname says so!
20646 rm -f conftest.$ac_objext
20647 if { (ac_try="$ac_compile"
20648 case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_compile") 2>conftest.er1
20655 grep -v '^ *+' conftest.er1 >conftest.err
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } &&
20660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20661 { (case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_try") 2>&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; } &&
20670 { ac_try='test -s conftest.$ac_objext'
20671 { (case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_try") 2>&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 llvm_cv_linux_mixed=no
20682 echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20685 llvm_cv_linux_mixed=yes
20688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20690 ac_cpp='$CPP $CPPFLAGS'
20691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20697 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20698 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20700 if test "$llvm_cv_linux_mixed" = "yes"; then
20701 llvm_cv_target_arch="x86"
20707 for ac_func in __dso_handle
20709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 cat >conftest.$ac_ext <<_ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h. */
20721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20723 #define $ac_func innocuous_$ac_func
20725 /* System header to define __stub macros and hopefully few prototypes,
20726 which can conflict with char $ac_func (); below.
20727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20728 <limits.h> exists even on freestanding compilers. */
20731 # include <limits.h>
20733 # include <assert.h>
20738 /* Override any GCC internal prototype to avoid an error.
20739 Use char because int might match the return type of a GCC
20740 builtin and then its argument prototype would still apply. */
20745 /* The GNU C library defines this for functions which it implements
20746 to always fail with ENOSYS. Some functions are actually named
20747 something starting with __ and the normal name is an alias. */
20748 #if defined __stub_$ac_func || defined __stub___$ac_func
20755 return $ac_func ();
20760 rm -f conftest.$ac_objext conftest$ac_exeext
20761 if { (ac_try="$ac_link"
20762 case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_link") 2>conftest.er1
20769 grep -v '^ *+' conftest.er1 >conftest.err
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } &&
20774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20775 { (case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_try") 2>&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; } &&
20784 { ac_try='test -s conftest$ac_exeext'
20785 { (case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790 (eval "$ac_try") 2>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 eval "$as_ac_var=yes"
20796 echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20799 eval "$as_ac_var=no"
20802 rm -f core conftest.err conftest.$ac_objext \
20803 conftest$ac_exeext conftest.$ac_ext
20805 ac_res=`eval echo '${'$as_ac_var'}'`
20806 { echo "$as_me:$LINENO: result: $ac_res" >&5
20807 echo "${ECHO_T}$ac_res" >&6; }
20808 if test `eval echo '${'$as_ac_var'}'` = yes; then
20809 cat >>confdefs.h <<_ACEOF
20810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20817 SHLIBEXT=$libltdl_cv_shlibext
20820 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20823 # Translate the various configuration directories and other basic
20824 # information into substitutions that will end up in Makefile.config.in
20825 # that these configured values can be used by the makefiles
20826 if test "${prefix}" = "NONE" ; then
20827 prefix="/usr/local"
20829 eval LLVM_PREFIX="${prefix}";
20830 eval LLVM_BINDIR="${prefix}/bin";
20831 eval LLVM_LIBDIR="${prefix}/lib";
20832 eval LLVM_DATADIR="${prefix}/share/llvm";
20833 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20834 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20835 eval LLVM_INCLUDEDIR="${prefix}/include";
20836 eval LLVM_INFODIR="${prefix}/info";
20837 eval LLVM_MANDIR="${prefix}/man";
20838 LLVM_CONFIGTIME=`date`
20850 # Place the various directores into the config.h file as #defines so that we
20851 # can know about the installation paths within LLVM.
20853 cat >>confdefs.h <<_ACEOF
20854 #define LLVM_PREFIX "$LLVM_PREFIX"
20858 cat >>confdefs.h <<_ACEOF
20859 #define LLVM_BINDIR "$LLVM_BINDIR"
20863 cat >>confdefs.h <<_ACEOF
20864 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20868 cat >>confdefs.h <<_ACEOF
20869 #define LLVM_DATADIR "$LLVM_DATADIR"
20873 cat >>confdefs.h <<_ACEOF
20874 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20878 cat >>confdefs.h <<_ACEOF
20879 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20883 cat >>confdefs.h <<_ACEOF
20884 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20888 cat >>confdefs.h <<_ACEOF
20889 #define LLVM_INFODIR "$LLVM_INFODIR"
20893 cat >>confdefs.h <<_ACEOF
20894 #define LLVM_MANDIR "$LLVM_MANDIR"
20898 cat >>confdefs.h <<_ACEOF
20899 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20903 cat >>confdefs.h <<_ACEOF
20904 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20908 # Determine which bindings to build.
20909 if test "$BINDINGS_TO_BUILD" = auto ; then
20910 BINDINGS_TO_BUILD=""
20911 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20912 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20915 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20918 # This isn't really configurey, but it avoids having to repeat the list in
20923 # Do any work necessary to ensure that bindings have what they need.
20924 binding_prereqs_failed=0
20925 for a_binding in $BINDINGS_TO_BUILD ; do
20926 case "$a_binding" in
20928 if test "x$OCAMLC" = x ; then
20929 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20930 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20931 binding_prereqs_failed=1
20933 if test "x$OCAMLDEP" = x ; then
20934 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20935 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20936 binding_prereqs_failed=1
20938 if test "x$OCAMLOPT" = x ; then
20939 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20940 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20942 if test "x$with_ocaml_libdir" != xauto ; then
20943 OCAML_LIBDIR=$with_ocaml_libdir
20946 ocaml_stdlib="`"$OCAMLC" -where`"
20947 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20949 # ocaml stdlib is beneath our prefix; use stdlib
20950 OCAML_LIBDIR=$ocaml_stdlib
20953 # ocaml stdlib is outside our prefix; use libdir/ocaml
20954 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20961 if test "$binding_prereqs_failed" = 1 ; then
20962 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20963 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20964 { (exit 1); exit 1; }; }
20967 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20968 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20969 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20970 echo $ECHO_N "(cached) $ECHO_C" >&6
20973 ac_cpp='$CXXCPP $CPPFLAGS'
20974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20978 oldcxxflags="$CXXFLAGS"
20979 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20980 cat >conftest.$ac_ext <<_ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20995 rm -f conftest.$ac_objext
20996 if { (ac_try="$ac_compile"
20997 case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_compile") 2>conftest.er1
21004 grep -v '^ *+' conftest.er1 >conftest.err
21006 cat conftest.err >&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
21009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21010 { (case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_try") 2>&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; } &&
21019 { ac_try='test -s conftest.$ac_objext'
21020 { (case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_try") 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
21029 llvm_cv_cxx_visibility_inlines_hidden=yes
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 llvm_cv_cxx_visibility_inlines_hidden=no
21037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21038 CXXFLAGS="$oldcxxflags"
21040 ac_cpp='$CPP $CPPFLAGS'
21041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21047 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21048 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21049 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21050 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21053 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21058 if test "$llvm_cv_link_use_r" = "yes" ; then
21065 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21066 RDYNAMIC="-Wl,-export-dynamic"
21073 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21080 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21082 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21084 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21086 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21088 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21091 ac_config_files="$ac_config_files Makefile.config"
21094 ac_config_files="$ac_config_files llvm.spec"
21097 ac_config_files="$ac_config_files docs/doxygen.cfg"
21099 if test -f ${srcdir}/tools/clang/README.txt; then
21100 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21104 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21107 ac_config_commands="$ac_config_commands setup"
21109 ac_config_commands="$ac_config_commands Makefile"
21112 ac_config_commands="$ac_config_commands Makefile.common"
21115 ac_config_commands="$ac_config_commands examples/Makefile"
21118 ac_config_commands="$ac_config_commands lib/Makefile"
21121 ac_config_commands="$ac_config_commands runtime/Makefile"
21124 ac_config_commands="$ac_config_commands test/Makefile"
21127 ac_config_commands="$ac_config_commands test/Makefile.tests"
21130 ac_config_commands="$ac_config_commands unittests/Makefile"
21133 ac_config_commands="$ac_config_commands tools/Makefile"
21136 ac_config_commands="$ac_config_commands utils/Makefile"
21139 ac_config_commands="$ac_config_commands projects/Makefile"
21142 ac_config_commands="$ac_config_commands bindings/Makefile"
21145 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21149 cat >confcache <<\_ACEOF
21150 # This file is a shell script that caches the results of configure
21151 # tests run on this system so they can be shared between configure
21152 # scripts and configure runs, see configure's option --config-cache.
21153 # It is not useful on other systems. If it contains results you don't
21154 # want to keep, you may remove or edit it.
21156 # config.status only pays attention to the cache file if you give it
21157 # the --recheck option to rerun configure.
21159 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21160 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21161 # following values.
21165 # The following way of writing the cache mishandles newlines in values,
21166 # but we know of no workaround that is simple, portable, and efficient.
21167 # So, we kill variables containing newlines.
21168 # Ultrix sh set writes to stderr and can't be redirected directly,
21169 # and sets the high bit in the cache file unless we assign to the vars.
21171 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21172 eval ac_val=\$$ac_var
21176 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21177 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21180 _ | IFS | as_nl) ;; #(
21181 *) $as_unset $ac_var ;;
21187 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21188 *${as_nl}ac_space=\ *)
21189 # `set' does not quote correctly, so add quotes (double-quote
21190 # substitution turns \\\\ into \\, and sed turns \\ into \).
21193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21196 # `set' quotes correctly as required by POSIX, so do not add quotes.
21197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21206 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21208 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21210 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21211 if test -w "$cache_file"; then
21212 test "x$cache_file" != "x/dev/null" &&
21213 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21214 echo "$as_me: updating cache $cache_file" >&6;}
21215 cat confcache >$cache_file
21217 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21218 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21223 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21224 # Let make expand exec_prefix.
21225 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21227 DEFS=-DHAVE_CONFIG_H
21231 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21232 # 1. Remove the extension, and $U if already installed.
21233 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21234 ac_i=`echo "$ac_i" | sed "$ac_script"`
21235 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21236 # will be set to the directory where LIBOBJS objects are built.
21237 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21238 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21240 LIBOBJS=$ac_libobjs
21242 LTLIBOBJS=$ac_ltlibobjs
21245 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21246 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21247 Usually this means the macro was only invoked conditionally." >&5
21248 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21249 Usually this means the macro was only invoked conditionally." >&2;}
21250 { (exit 1); exit 1; }; }
21252 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21253 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21254 Usually this means the macro was only invoked conditionally." >&5
21255 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21256 Usually this means the macro was only invoked conditionally." >&2;}
21257 { (exit 1); exit 1; }; }
21260 : ${CONFIG_STATUS=./config.status}
21261 ac_clean_files_save=$ac_clean_files
21262 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21263 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21264 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21265 cat >$CONFIG_STATUS <<_ACEOF
21267 # Generated by $as_me.
21268 # Run this file to recreate the current configuration.
21269 # Compiler output produced by configure, useful for debugging
21270 # configure, is in config.log if it exists.
21273 ac_cs_recheck=false
21275 SHELL=\${CONFIG_SHELL-$SHELL}
21278 cat >>$CONFIG_STATUS <<\_ACEOF
21279 ## --------------------- ##
21280 ## M4sh Initialization. ##
21281 ## --------------------- ##
21283 # Be Bourne compatible
21284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21287 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21288 # is contrary to our usage. Disable this feature.
21289 alias -g '${1+"$@"}'='"$@"'
21290 setopt NO_GLOB_SUBST
21292 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21294 BIN_SH=xpg4; export BIN_SH # for Tru64
21295 DUALCASE=1; export DUALCASE # for MKS sh
21299 # Avoid depending upon Character Ranges.
21300 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21301 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21302 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21303 as_cr_digits='0123456789'
21304 as_cr_alnum=$as_cr_Letters$as_cr_digits
21306 # The user is always right.
21307 if test "${PATH_SEPARATOR+set}" != set; then
21308 echo "#! /bin/sh" >conf$$.sh
21309 echo "exit 0" >>conf$$.sh
21311 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21319 # Support unset when possible.
21320 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21328 # We need space, tab and new line, in precisely that order. Quoting is
21329 # there to prevent editors from complaining about space-tab.
21330 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21331 # splitting by setting IFS to empty value.)
21336 # Find who we are. Look in the path if we contain no directory separator.
21338 *[\\/]* ) as_myself=$0 ;;
21339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21340 for as_dir in $PATH
21343 test -z "$as_dir" && as_dir=.
21344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21350 # We did not find ourselves, most probably we were run as `sh COMMAND'
21351 # in which case we are not to be found in the path.
21352 if test "x$as_myself" = x; then
21355 if test ! -f "$as_myself"; then
21356 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21357 { (exit 1); exit 1; }
21360 # Work around bugs in pre-3.0 UWIN ksh.
21361 for as_var in ENV MAIL MAILPATH
21362 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21370 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21371 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21372 LC_TELEPHONE LC_TIME
21374 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21375 eval $as_var=C; export $as_var
21377 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21381 # Required to use basename.
21382 if expr a : '\(a\)' >/dev/null 2>&1 &&
21383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21389 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21390 as_basename=basename
21396 # Name of the executable.
21397 as_me=`$as_basename -- "$0" ||
21398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21399 X"$0" : 'X\(//\)$' \| \
21400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21402 sed '/^.*\/\([^/][^/]*\)\/*$/{
21421 as_lineno_1=$LINENO
21422 as_lineno_2=$LINENO
21423 test "x$as_lineno_1" != "x$as_lineno_2" &&
21424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21427 # uniformly replaced by the line number. The first 'sed' inserts a
21428 # line-number line after each line using $LINENO; the second 'sed'
21429 # does the real work. The second script uses 'N' to pair each
21430 # line-number line with the line containing $LINENO, and appends
21431 # trailing '-' during substitution so that $LINENO is not a special
21432 # case at line end.
21433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21434 # scripts with optimization help from Paolo Bonzini. Blame Lee
21435 # E. McMahon (1931-1989) for sed's syntax. :-)
21447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21450 ' >$as_me.lineno &&
21451 chmod +x "$as_me.lineno" ||
21452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21453 { (exit 1); exit 1; }; }
21455 # Don't try to exec as it changes $[0], causing all sort of problems
21456 # (the dirname of $[0] is not the place where we might find the
21457 # original and so on. Autoconf is especially sensitive to this).
21458 . "./$as_me.lineno"
21459 # Exit status is that of the last command.
21464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21470 ECHO_C= ECHO_N= ECHO_T=
21471 case `echo -n x` in
21473 case `echo 'x\c'` in
21474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21481 if expr a : '\(a\)' >/dev/null 2>&1 &&
21482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21488 rm -f conf$$ conf$$.exe conf$$.file
21489 if test -d conf$$.dir; then
21490 rm -f conf$$.dir/conf$$.file
21496 if ln -s conf$$.file conf$$ 2>/dev/null; then
21498 # ... but there are two gotchas:
21499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21501 # In both cases, we have to default to `cp -p'.
21502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21504 elif ln conf$$.file conf$$ 2>/dev/null; then
21509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21510 rmdir conf$$.dir 2>/dev/null
21512 if mkdir -p . 2>/dev/null; then
21515 test -d ./-p && rmdir ./-p
21519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21520 # systems may use methods other than mode bits to determine executability.
21521 cat >conf$$.file <<_ASEOF
21525 chmod +x conf$$.file
21526 if test -x conf$$.file >/dev/null 2>&1; then
21527 as_executable_p="test -x"
21533 # Sed expression to map a string onto a valid CPP name.
21534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21536 # Sed expression to map a string onto a valid variable name.
21537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21542 # Save the log message, to keep $[0] and so on meaningful, and to
21543 # report actual input values of CONFIG_FILES etc. instead of their
21544 # values after options handling.
21546 This file was extended by llvm $as_me 3.1svn, which was
21547 generated by GNU Autoconf 2.60. Invocation command line was
21549 CONFIG_FILES = $CONFIG_FILES
21550 CONFIG_HEADERS = $CONFIG_HEADERS
21551 CONFIG_LINKS = $CONFIG_LINKS
21552 CONFIG_COMMANDS = $CONFIG_COMMANDS
21555 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21560 cat >>$CONFIG_STATUS <<_ACEOF
21561 # Files that config.status was made for.
21562 config_files="$ac_config_files"
21563 config_headers="$ac_config_headers"
21564 config_commands="$ac_config_commands"
21568 cat >>$CONFIG_STATUS <<\_ACEOF
21570 \`$as_me' instantiates files from templates according to the
21571 current configuration.
21573 Usage: $0 [OPTIONS] [FILE]...
21575 -h, --help print this help, then exit
21576 -V, --version print version number, then exit
21577 -q, --quiet do not print progress messages
21578 -d, --debug don't remove temporary files
21579 --recheck update $as_me by reconfiguring in the same conditions
21580 --file=FILE[:TEMPLATE]
21581 instantiate the configuration file FILE
21582 --header=FILE[:TEMPLATE]
21583 instantiate the configuration header FILE
21585 Configuration files:
21588 Configuration headers:
21591 Configuration commands:
21594 Report bugs to <bug-autoconf@gnu.org>."
21597 cat >>$CONFIG_STATUS <<_ACEOF
21599 llvm config.status 3.1svn
21600 configured by $0, generated by GNU Autoconf 2.60,
21601 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21603 Copyright (C) 2006 Free Software Foundation, Inc.
21604 This config.status script is free software; the Free Software Foundation
21605 gives unlimited permission to copy, distribute and modify it."
21612 cat >>$CONFIG_STATUS <<\_ACEOF
21613 # If no file are specified by the user, then we need to provide default
21614 # value. By we need to know if files were specified by the user.
21620 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21621 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21632 # Handling of the options.
21633 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21635 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21636 echo "$ac_cs_version"; exit ;;
21637 --debug | --debu | --deb | --de | --d | -d )
21639 --file | --fil | --fi | --f )
21641 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21642 ac_need_defaults=false;;
21643 --header | --heade | --head | --hea )
21645 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21646 ac_need_defaults=false;;
21648 # Conflict between --help and --header
21649 { echo "$as_me: error: ambiguous option: $1
21650 Try \`$0 --help' for more information." >&2
21651 { (exit 1); exit 1; }; };;
21652 --help | --hel | -h )
21653 echo "$ac_cs_usage"; exit ;;
21654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21655 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21658 # This is an error.
21659 -*) { echo "$as_me: error: unrecognized option: $1
21660 Try \`$0 --help' for more information." >&2
21661 { (exit 1); exit 1; }; } ;;
21663 *) ac_config_targets="$ac_config_targets $1"
21664 ac_need_defaults=false ;;
21670 ac_configure_extra_args=
21672 if $ac_cs_silent; then
21674 ac_configure_extra_args="$ac_configure_extra_args --silent"
21678 cat >>$CONFIG_STATUS <<_ACEOF
21679 if \$ac_cs_recheck; then
21680 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21681 CONFIG_SHELL=$SHELL
21682 export CONFIG_SHELL
21683 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21687 cat >>$CONFIG_STATUS <<\_ACEOF
21691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21692 ## Running $as_me. ##
21698 cat >>$CONFIG_STATUS <<_ACEOF
21702 llvm_src="${srcdir}"
21706 cat >>$CONFIG_STATUS <<\_ACEOF
21708 # Handling of arguments.
21709 for ac_config_target in $ac_config_targets
21711 case $ac_config_target in
21712 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21713 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21714 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21715 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21716 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21717 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21718 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21719 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21720 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21721 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21722 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21723 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21724 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21725 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21726 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21727 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21728 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21729 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21730 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21731 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21732 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21733 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21734 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21735 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21736 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21737 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21739 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21740 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21741 { (exit 1); exit 1; }; };;
21746 # If the user did not use the arguments to specify the items to instantiate,
21747 # then the envvar interface is used. Set only those that are not.
21748 # We use the long form for the default assignment because of an extremely
21749 # bizarre bug on SunOS 4.1.3.
21750 if $ac_need_defaults; then
21751 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21752 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21756 # Have a temporary directory for convenience. Make it in the build tree
21757 # simply because there is no reason against having it here, and in addition,
21758 # creating and moving files from /tmp can sometimes cause problems.
21759 # Hook for its removal unless debugging.
21760 # Note that there is a small window in which the directory will not be cleaned:
21761 # after its creation but before its name has been assigned to `$tmp'.
21765 trap 'exit_status=$?
21766 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21768 trap '{ (exit 1); exit 1; }' 1 2 13 15
21770 # Create a (secure) tmp directory for tmp files.
21773 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21774 test -n "$tmp" && test -d "$tmp"
21777 tmp=./conf$$-$RANDOM
21778 (umask 077 && mkdir "$tmp")
21781 echo "$me: cannot create a temporary directory in ." >&2
21782 { (exit 1); exit 1; }
21786 # Set up the sed scripts for CONFIG_FILES section.
21789 # No need to generate the scripts if there are no CONFIG_FILES.
21790 # This happens for instance when ./config.status config.h
21791 if test -n "$CONFIG_FILES"; then
21798 for ac_last_try in false false false false false :; do
21799 cat >conf$$subs.sed <<_ACEOF
21800 SHELL!$SHELL$ac_delim
21801 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21802 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21803 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21804 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21805 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21806 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21807 exec_prefix!$exec_prefix$ac_delim
21808 prefix!$prefix$ac_delim
21809 program_transform_name!$program_transform_name$ac_delim
21810 bindir!$bindir$ac_delim
21811 sbindir!$sbindir$ac_delim
21812 libexecdir!$libexecdir$ac_delim
21813 datarootdir!$datarootdir$ac_delim
21814 datadir!$datadir$ac_delim
21815 sysconfdir!$sysconfdir$ac_delim
21816 sharedstatedir!$sharedstatedir$ac_delim
21817 localstatedir!$localstatedir$ac_delim
21818 includedir!$includedir$ac_delim
21819 oldincludedir!$oldincludedir$ac_delim
21820 docdir!$docdir$ac_delim
21821 infodir!$infodir$ac_delim
21822 htmldir!$htmldir$ac_delim
21823 dvidir!$dvidir$ac_delim
21824 pdfdir!$pdfdir$ac_delim
21825 psdir!$psdir$ac_delim
21826 libdir!$libdir$ac_delim
21827 localedir!$localedir$ac_delim
21828 mandir!$mandir$ac_delim
21829 DEFS!$DEFS$ac_delim
21830 ECHO_C!$ECHO_C$ac_delim
21831 ECHO_N!$ECHO_N$ac_delim
21832 ECHO_T!$ECHO_T$ac_delim
21833 LIBS!$LIBS$ac_delim
21834 build_alias!$build_alias$ac_delim
21835 host_alias!$host_alias$ac_delim
21836 target_alias!$target_alias$ac_delim
21837 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21839 CFLAGS!$CFLAGS$ac_delim
21840 LDFLAGS!$LDFLAGS$ac_delim
21841 CPPFLAGS!$CPPFLAGS$ac_delim
21842 ac_ct_CC!$ac_ct_CC$ac_delim
21843 EXEEXT!$EXEEXT$ac_delim
21844 OBJEXT!$OBJEXT$ac_delim
21846 CXXFLAGS!$CXXFLAGS$ac_delim
21847 ac_ct_CXX!$ac_ct_CXX$ac_delim
21849 subdirs!$subdirs$ac_delim
21850 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21851 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21852 build!$build$ac_delim
21853 build_cpu!$build_cpu$ac_delim
21854 build_vendor!$build_vendor$ac_delim
21855 build_os!$build_os$ac_delim
21856 host!$host$ac_delim
21857 host_cpu!$host_cpu$ac_delim
21858 host_vendor!$host_vendor$ac_delim
21859 host_os!$host_os$ac_delim
21860 target!$target$ac_delim
21861 target_cpu!$target_cpu$ac_delim
21862 target_vendor!$target_vendor$ac_delim
21863 target_os!$target_os$ac_delim
21865 HOST_OS!$HOST_OS$ac_delim
21866 TARGET_OS!$TARGET_OS$ac_delim
21867 LINKALL!$LINKALL$ac_delim
21868 NOLINKALL!$NOLINKALL$ac_delim
21869 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21870 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21871 ARCH!$ARCH$ac_delim
21872 ENDIAN!$ENDIAN$ac_delim
21873 GREP!$GREP$ac_delim
21874 EGREP!$EGREP$ac_delim
21875 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21876 BUILD_CC!$BUILD_CC$ac_delim
21877 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21878 BUILD_CXX!$BUILD_CXX$ac_delim
21879 CVSBUILD!$CVSBUILD$ac_delim
21880 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21881 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21882 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21883 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21884 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21885 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21886 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21887 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21889 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21890 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21891 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21892 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21893 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21894 ENABLE_PIC!$ENABLE_PIC$ac_delim
21895 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21896 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21899 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21901 elif $ac_last_try; then
21902 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21903 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21904 { (exit 1); exit 1; }; }
21906 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21910 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21911 if test -n "$ac_eof"; then
21912 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21913 ac_eof=`expr $ac_eof + 1`
21916 cat >>$CONFIG_STATUS <<_ACEOF
21917 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21921 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21922 s/^/s,@/; s/!/@,|#_!!_#|/
21925 s/'"$ac_delim"'$/,g/; t
21927 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21928 ' >>$CONFIG_STATUS <conf$$subs.sed
21929 rm -f conf$$subs.sed
21930 cat >>$CONFIG_STATUS <<_ACEOF
21936 for ac_last_try in false false false false false :; do
21937 cat >conf$$subs.sed <<_ACEOF
21938 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21939 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21940 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21941 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21942 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21943 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21944 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21945 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21946 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21947 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21948 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21949 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21950 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21952 ifGNUmake!$ifGNUmake$ac_delim
21953 LN_S!$LN_S$ac_delim
21956 DATE!$DATE$ac_delim
21957 FIND!$FIND$ac_delim
21958 MKDIR!$MKDIR$ac_delim
21960 RANLIB!$RANLIB$ac_delim
21965 BINPWD!$BINPWD$ac_delim
21966 GRAPHVIZ!$GRAPHVIZ$ac_delim
21969 NEATO!$NEATO$ac_delim
21970 TWOPI!$TWOPI$ac_delim
21971 CIRCO!$CIRCO$ac_delim
21973 DOTTY!$DOTTY$ac_delim
21974 XDOT_PY!$XDOT_PY$ac_delim
21975 PERL!$PERL$ac_delim
21976 HAVE_PERL!$HAVE_PERL$ac_delim
21977 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21978 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21979 INSTALL_DATA!$INSTALL_DATA$ac_delim
21980 BZIP2!$BZIP2$ac_delim
21982 DOXYGEN!$DOXYGEN$ac_delim
21983 GROFF!$GROFF$ac_delim
21984 GZIPBIN!$GZIPBIN$ac_delim
21985 POD2HTML!$POD2HTML$ac_delim
21986 POD2MAN!$POD2MAN$ac_delim
21987 PDFROFF!$PDFROFF$ac_delim
21988 RUNTEST!$RUNTEST$ac_delim
21989 TCLSH!$TCLSH$ac_delim
21991 OCAMLC!$OCAMLC$ac_delim
21992 OCAMLOPT!$OCAMLOPT$ac_delim
21993 OCAMLDEP!$OCAMLDEP$ac_delim
21994 OCAMLDOC!$OCAMLDOC$ac_delim
21996 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21997 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21998 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21999 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22000 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22001 LIBADD_DL!$LIBADD_DL$ac_delim
22002 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22003 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22004 USE_UDIS86!$USE_UDIS86$ac_delim
22005 USE_OPROFILE!$USE_OPROFILE$ac_delim
22006 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22007 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22008 MMAP_FILE!$MMAP_FILE$ac_delim
22009 SHLIBEXT!$SHLIBEXT$ac_delim
22010 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22011 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22012 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22013 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22014 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22015 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22016 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22017 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22018 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22019 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22020 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22021 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22022 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22023 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22024 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22025 RPATH!$RPATH$ac_delim
22026 RDYNAMIC!$RDYNAMIC$ac_delim
22027 LIBOBJS!$LIBOBJS$ac_delim
22028 LTLIBOBJS!$LTLIBOBJS$ac_delim
22031 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22033 elif $ac_last_try; then
22034 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22035 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22036 { (exit 1); exit 1; }; }
22038 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22042 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22043 if test -n "$ac_eof"; then
22044 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22045 ac_eof=`expr $ac_eof + 1`
22048 cat >>$CONFIG_STATUS <<_ACEOF
22049 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22053 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22054 s/^/s,@/; s/!/@,|#_!!_#|/
22057 s/'"$ac_delim"'$/,g/; t
22059 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22060 ' >>$CONFIG_STATUS <conf$$subs.sed
22061 rm -f conf$$subs.sed
22062 cat >>$CONFIG_STATUS <<_ACEOF
22069 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22070 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22071 # trailing colons and then remove the whole line if VPATH becomes empty
22072 # (actually we leave an empty line to preserve line numbers).
22073 if test "x$srcdir" = x.; then
22074 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22075 s/:*\$(srcdir):*/:/
22076 s/:*\${srcdir}:*/:/
22078 s/^\([^=]*=[ ]*\):*/\1/
22084 cat >>$CONFIG_STATUS <<\_ACEOF
22085 fi # test -n "$CONFIG_FILES"
22088 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22091 :[FHLC]) ac_mode=$ac_tag; continue;;
22093 case $ac_mode$ac_tag in
22095 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22096 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22097 { (exit 1); exit 1; }; };;
22098 :[FH]-) ac_tag=-:-;;
22099 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22116 -) ac_f="$tmp/stdin";;
22117 *) # Look for the file first in the build tree, then in the source tree
22118 # (if the path is not absolute). The absolute path cannot be DOS-style,
22119 # because $ac_f cannot contain `:'.
22123 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22125 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22126 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22127 { (exit 1); exit 1; }; };;
22129 ac_file_inputs="$ac_file_inputs $ac_f"
22132 # Let's still pretend it is `configure' which instantiates (i.e., don't
22133 # use $as_me), people would be surprised to read:
22134 # /* config.h. Generated by config.status. */
22135 configure_input="Generated from "`IFS=:
22136 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22137 if test x"$ac_file" != x-; then
22138 configure_input="$ac_file. $configure_input"
22139 { echo "$as_me:$LINENO: creating $ac_file" >&5
22140 echo "$as_me: creating $ac_file" >&6;}
22144 *:-:* | *:-) cat >"$tmp/stdin";;
22149 ac_dir=`$as_dirname -- "$ac_file" ||
22150 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22151 X"$ac_file" : 'X\(//\)[^/]' \| \
22152 X"$ac_file" : 'X\(//\)$' \| \
22153 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22159 /^X\(\/\/\)[^/].*/{
22174 -*) as_dir=./$as_dir;;
22176 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22180 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22181 *) as_qdir=$as_dir;;
22183 as_dirs="'$as_qdir' $as_dirs"
22184 as_dir=`$as_dirname -- "$as_dir" ||
22185 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22186 X"$as_dir" : 'X\(//\)[^/]' \| \
22187 X"$as_dir" : 'X\(//\)$' \| \
22188 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22194 /^X\(\/\/\)[^/].*/{
22207 test -d "$as_dir" && break
22209 test -z "$as_dirs" || eval "mkdir $as_dirs"
22210 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22211 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22212 { (exit 1); exit 1; }; }; }
22216 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22218 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22219 # A ".." for each directory in $ac_dir_suffix.
22220 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22221 case $ac_top_builddir_sub in
22222 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22223 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22226 ac_abs_top_builddir=$ac_pwd
22227 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22228 # for backward compatibility:
22229 ac_top_builddir=$ac_top_build_prefix
22232 .) # We are building in place.
22234 ac_top_srcdir=$ac_top_builddir_sub
22235 ac_abs_top_srcdir=$ac_pwd ;;
22236 [\\/]* | ?:[\\/]* ) # Absolute name.
22237 ac_srcdir=$srcdir$ac_dir_suffix;
22238 ac_top_srcdir=$srcdir
22239 ac_abs_top_srcdir=$srcdir ;;
22240 *) # Relative name.
22241 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22242 ac_top_srcdir=$ac_top_build_prefix$srcdir
22243 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22245 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22255 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22256 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22260 cat >>$CONFIG_STATUS <<\_ACEOF
22261 # If the template does not know about datarootdir, expand it.
22262 # FIXME: This hack should be removed a few years after 2.60.
22263 ac_datarootdir_hack=; ac_datarootdir_seen=
22265 case `sed -n '/datarootdir/ {
22274 ' $ac_file_inputs` in
22275 *datarootdir*) ac_datarootdir_seen=yes;;
22276 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22277 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22278 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22280 cat >>$CONFIG_STATUS <<_ACEOF
22281 ac_datarootdir_hack='
22282 s&@datadir@&$datadir&g
22283 s&@docdir@&$docdir&g
22284 s&@infodir@&$infodir&g
22285 s&@localedir@&$localedir&g
22286 s&@mandir@&$mandir&g
22287 s&\\\${datarootdir}&$datarootdir&g' ;;
22291 # Neutralize VPATH when `$srcdir' = `.'.
22292 # Shell code in configure.ac might set extrasub.
22293 # FIXME: do we really want to maintain this feature?
22294 cat >>$CONFIG_STATUS <<_ACEOF
22298 cat >>$CONFIG_STATUS <<\_ACEOF
22300 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22301 s&@configure_input@&$configure_input&;t t
22302 s&@top_builddir@&$ac_top_builddir_sub&;t t
22303 s&@srcdir@&$ac_srcdir&;t t
22304 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22305 s&@top_srcdir@&$ac_top_srcdir&;t t
22306 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22307 s&@builddir@&$ac_builddir&;t t
22308 s&@abs_builddir@&$ac_abs_builddir&;t t
22309 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22310 s&@INSTALL@&$ac_INSTALL&;t t
22311 $ac_datarootdir_hack
22312 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22314 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22315 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22316 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22317 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22318 which seems to be undefined. Please make sure it is defined." >&5
22319 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22320 which seems to be undefined. Please make sure it is defined." >&2;}
22324 -) cat "$tmp/out"; rm -f "$tmp/out";;
22325 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22334 # Transform confdefs.h into a sed script `conftest.defines', that
22335 # substitutes the proper values into config.h.in to produce config.h.
22336 rm -f conftest.defines conftest.tail
22337 # First, append a space to every undef/define line, to ease matching.
22338 echo 's/$/ /' >conftest.defines
22339 # Then, protect against being on the right side of a sed subst, or in
22340 # an unquoted here document, in config.status. If some macros were
22341 # called several times there might be several #defines for the same
22342 # symbol, which is useless. But do not sort them, since the last
22343 # AC_DEFINE must be honored.
22344 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22345 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22346 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22347 # PARAMS is the parameter list in the macro definition--in most cases, it's
22348 # just an empty string.
22349 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22350 ac_dB='\\)[ (].*,\\1define\\2'
22358 s/^[ ]*#[ ]*define[ ][ ]*//
22363 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22364 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22365 ' >>conftest.defines
22367 # Remove the space that was appended to ease matching.
22368 # Then replace #undef with comments. This is necessary, for
22369 # example, in the case of _POSIX_SOURCE, which is predefined and required
22370 # on some systems where configure will not decide to define it.
22371 # (The regexp can be short, since the line contains either #define or #undef.)
22373 s,^[ #]*u.*,/* & */,' >>conftest.defines
22375 # Break up conftest.defines:
22376 ac_max_sed_lines=50
22378 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22379 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22380 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22382 ac_in='$ac_file_inputs'
22383 ac_out='"$tmp/out1"'
22384 ac_nxt='"$tmp/out2"'
22388 # Write a here document:
22389 cat >>$CONFIG_STATUS <<_ACEOF
22390 # First, check the format of the line:
22391 cat >"\$tmp/defines.sed" <<\\CEOF
22392 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22393 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22397 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22399 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22400 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22401 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22402 grep . conftest.tail >/dev/null || break
22403 rm -f conftest.defines
22404 mv conftest.tail conftest.defines
22406 rm -f conftest.defines conftest.tail
22408 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22409 cat >>$CONFIG_STATUS <<\_ACEOF
22410 if test x"$ac_file" != x-; then
22411 echo "/* $configure_input */" >"$tmp/config.h"
22412 cat "$ac_result" >>"$tmp/config.h"
22413 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22414 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22415 echo "$as_me: $ac_file is unchanged" >&6;}
22418 mv "$tmp/config.h" $ac_file
22421 echo "/* $configure_input */"
22427 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22428 echo "$as_me: executing $ac_file commands" >&6;}
22433 case $ac_file$ac_mode in
22434 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22435 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22436 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22437 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22438 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22439 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22440 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22441 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22442 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22443 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22444 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22445 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22446 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22447 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22448 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22449 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22450 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22451 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22452 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22453 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22454 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22455 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22456 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22457 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22458 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22459 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22465 { (exit 0); exit 0; }
22467 chmod +x $CONFIG_STATUS
22468 ac_clean_files=$ac_clean_files_save
22471 # configure is writing to config.log, and then calls config.status.
22472 # config.status does its own redirection, appending to config.log.
22473 # Unfortunately, on DOS this fails, as config.log is still kept open
22474 # by configure, so config.status won't be able to write to it; its
22475 # output is simply discarded. So we exec the FD to /dev/null,
22476 # effectively closing config.log, so it can be properly (re)opened and
22477 # appended to by config.status. When coming back to configure, we
22478 # need to make the FD available again.
22479 if test "$no_create" != yes; then
22481 ac_config_status_args=
22482 test "$silent" = yes &&
22483 ac_config_status_args="$ac_config_status_args --quiet"
22485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22488 # would make configure fail if this is the last instruction.
22489 $ac_cs_success || { (exit 1); exit 1; }
22493 # CONFIG_SUBDIRS section.
22495 if test "$no_recursion" != yes; then
22497 # Remove --cache-file and --srcdir arguments so they do not pile up.
22498 ac_sub_configure_args=
22500 eval "set x $ac_configure_args"
22504 if test -n "$ac_prev"; then
22509 -cache-file | --cache-file | --cache-fil | --cache-fi \
22510 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22511 ac_prev=cache_file ;;
22512 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22513 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22516 --config-cache | -C)
22518 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22520 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22522 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22524 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22528 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22530 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22534 # Always prepend --prefix to ensure using the same prefix
22535 # in subdir configurations.
22536 ac_arg="--prefix=$prefix"
22538 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22540 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22543 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22545 # Do not complain, so a configure script can configure whichever
22546 # parts of a large source tree are present.
22547 test -d "$srcdir/$ac_dir" || continue
22549 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22550 echo "$as_me:$LINENO: $ac_msg" >&5
22554 -*) as_dir=./$as_dir;;
22556 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22560 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22561 *) as_qdir=$as_dir;;
22563 as_dirs="'$as_qdir' $as_dirs"
22564 as_dir=`$as_dirname -- "$as_dir" ||
22565 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22566 X"$as_dir" : 'X\(//\)[^/]' \| \
22567 X"$as_dir" : 'X\(//\)$' \| \
22568 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22574 /^X\(\/\/\)[^/].*/{
22587 test -d "$as_dir" && break
22589 test -z "$as_dirs" || eval "mkdir $as_dirs"
22590 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22591 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22592 { (exit 1); exit 1; }; }; }
22596 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22598 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22599 # A ".." for each directory in $ac_dir_suffix.
22600 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22601 case $ac_top_builddir_sub in
22602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22606 ac_abs_top_builddir=$ac_pwd
22607 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22608 # for backward compatibility:
22609 ac_top_builddir=$ac_top_build_prefix
22612 .) # We are building in place.
22614 ac_top_srcdir=$ac_top_builddir_sub
22615 ac_abs_top_srcdir=$ac_pwd ;;
22616 [\\/]* | ?:[\\/]* ) # Absolute name.
22617 ac_srcdir=$srcdir$ac_dir_suffix;
22618 ac_top_srcdir=$srcdir
22619 ac_abs_top_srcdir=$srcdir ;;
22620 *) # Relative name.
22621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22622 ac_top_srcdir=$ac_top_build_prefix$srcdir
22623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22625 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22630 # Check for guested configure; otherwise get Cygnus style configure.
22631 if test -f "$ac_srcdir/configure.gnu"; then
22632 ac_sub_configure=$ac_srcdir/configure.gnu
22633 elif test -f "$ac_srcdir/configure"; then
22634 ac_sub_configure=$ac_srcdir/configure
22635 elif test -f "$ac_srcdir/configure.in"; then
22636 # This should be Cygnus configure.
22637 ac_sub_configure=$ac_aux_dir/configure
22639 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22640 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22644 # The recursion is here.
22645 if test -n "$ac_sub_configure"; then
22646 # Make the cache file name correct relative to the subdirectory.
22647 case $cache_file in
22648 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22649 *) # Relative name.
22650 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22653 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22654 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22655 # The eval makes quoting arguments work.
22656 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22657 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22658 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22659 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22660 { (exit 1); exit 1; }; }