2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
689 ENABLE_EXPENSIVE_CHECKS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
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, hexagon,
1422 xcore, 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 <http://llvm.org/bugs/>.
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-2012 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-2012 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" ;;
3696 *-*-freebsd* | *-*-kfreebsd-gnu)
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,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="GNU"
3735 llvm_cv_platform_type="Unix" ;;
3737 llvm_cv_link_all_option="-Wl,-z,allextract"
3738 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3739 llvm_cv_os_type="SunOS"
3740 llvm_cv_platform_type="Unix" ;;
3742 llvm_cv_link_all_option="-Wl,-z,allextract"
3743 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3744 llvm_cv_os_type="AuroraUX"
3745 llvm_cv_platform_type="Unix" ;;
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="Win32"
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="MingW"
3755 llvm_cv_platform_type="Win32" ;;
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="Haiku"
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="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="Freestanding"
3770 llvm_cv_platform_type="Unix" ;;
3772 llvm_cv_link_all_option=""
3773 llvm_cv_no_link_all_option=""
3774 llvm_cv_os_type="Unknown"
3775 llvm_cv_platform_type="Unknown" ;;
3778 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3779 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3781 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3782 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3783 if test "${llvm_cv_target_os_type+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 llvm_cv_target_os_type="AIX" ;;
3790 llvm_cv_target_os_type="IRIX" ;;
3792 llvm_cv_target_os_type="Cygwin" ;;
3794 llvm_cv_target_os_type="Darwin" ;;
3796 llvm_cv_target_os_type="Minix" ;;
3798 llvm_cv_target_os_type="FreeBSD" ;;
3800 llvm_cv_target_os_type="OpenBSD" ;;
3802 llvm_cv_target_os_type="NetBSD" ;;
3804 llvm_cv_target_os_type="DragonFly" ;;
3806 llvm_cv_target_os_type="HP-UX" ;;
3808 llvm_cv_target_os_type="Interix" ;;
3810 llvm_cv_target_os_type="Linux" ;;
3812 llvm_cv_target_os_type="SunOS" ;;
3814 llvm_cv_target_os_type="AuroraUX" ;;
3816 llvm_cv_target_os_type="Win32" ;;
3818 llvm_cv_target_os_type="MingW" ;;
3820 llvm_cv_target_os_type="Haiku" ;;
3822 llvm_cv_target_os_type="RTEMS" ;;
3824 llvm_cv_target_os_type="NativeClient" ;;
3826 llvm_cv_target_os_type="Freestanding" ;;
3828 llvm_cv_target_os_type="Unknown" ;;
3831 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3832 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3834 if test "$llvm_cv_os_type" = "Unknown" ; then
3835 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3836 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3837 { (exit 1); exit 1; }; }
3842 HOST_OS=$llvm_cv_os_type
3844 TARGET_OS=$llvm_cv_target_os_type
3847 LINKALL=$llvm_cv_link_all_option
3849 NOLINKALL=$llvm_cv_no_link_all_option
3852 case $llvm_cv_platform_type in
3855 cat >>confdefs.h <<\_ACEOF
3856 #define LLVM_ON_UNIX 1
3866 cat >>confdefs.h <<\_ACEOF
3867 #define LLVM_ON_WIN32 1
3877 { echo "$as_me:$LINENO: checking target architecture" >&5
3878 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3879 if test "${llvm_cv_target_arch+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 i?86-*) llvm_cv_target_arch="x86" ;;
3884 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3885 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3886 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3887 arm*-*) llvm_cv_target_arch="ARM" ;;
3888 mips-*) llvm_cv_target_arch="Mips" ;;
3889 mipsel-*) llvm_cv_target_arch="Mips" ;;
3890 xcore-*) llvm_cv_target_arch="XCore" ;;
3891 msp430-*) llvm_cv_target_arch="MSP430" ;;
3892 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3893 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3894 ptx-*) llvm_cv_target_arch="PTX" ;;
3895 *) llvm_cv_target_arch="Unknown" ;;
3898 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3899 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3901 if test "$llvm_cv_target_arch" = "Unknown" ; then
3902 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3903 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3906 case "$llvm_cv_target_arch" in
3907 x86) LLVM_NATIVE_ARCH="X86" ;;
3908 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3909 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3912 ARCH=$llvm_cv_target_arch
3917 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3918 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3919 if test "${ac_cv_path_GREP+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 # Extract the first word of "grep ggrep" to use in msg output
3923 if test -z "$GREP"; then
3924 set dummy grep ggrep; ac_prog_name=$2
3925 if test "${ac_cv_path_GREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 ac_path_GREP_found=false
3929 # Loop through the user's path and test for each of PROGNAME-LIST
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3934 test -z "$as_dir" && as_dir=.
3935 for ac_prog in grep ggrep; do
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3938 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3939 # Check for GNU ac_path_GREP and select it if it is found.
3940 # Check for GNU $ac_path_GREP
3941 case `"$ac_path_GREP" --version 2>&1` in
3943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3946 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3949 cat "conftest.in" "conftest.in" >"conftest.tmp"
3950 mv "conftest.tmp" "conftest.in"
3951 cp "conftest.in" "conftest.nl"
3952 echo 'GREP' >> "conftest.nl"
3953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3955 ac_count=`expr $ac_count + 1`
3956 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3957 # Best one so far, save it but keep looking for a better one
3958 ac_cv_path_GREP="$ac_path_GREP"
3959 ac_path_GREP_max=$ac_count
3961 # 10*(2^10) chars as input seems more than enough
3962 test $ac_count -gt 10 && break
3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3968 $ac_path_GREP_found && break 3
3978 GREP="$ac_cv_path_GREP"
3979 if test -z "$GREP"; then
3980 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3981 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3982 { (exit 1); exit 1; }; }
3986 ac_cv_path_GREP=$GREP
3991 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3992 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3993 GREP="$ac_cv_path_GREP"
3996 { echo "$as_me:$LINENO: checking for egrep" >&5
3997 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3998 if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4002 then ac_cv_path_EGREP="$GREP -E"
4004 # Extract the first word of "egrep" to use in msg output
4005 if test -z "$EGREP"; then
4006 set dummy egrep; ac_prog_name=$2
4007 if test "${ac_cv_path_EGREP+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 ac_path_EGREP_found=false
4011 # Loop through the user's path and test for each of PROGNAME-LIST
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4016 test -z "$as_dir" && as_dir=.
4017 for ac_prog in egrep; do
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4020 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4021 # Check for GNU ac_path_EGREP and select it if it is found.
4022 # Check for GNU $ac_path_EGREP
4023 case `"$ac_path_EGREP" --version 2>&1` in
4025 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4028 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4031 cat "conftest.in" "conftest.in" >"conftest.tmp"
4032 mv "conftest.tmp" "conftest.in"
4033 cp "conftest.in" "conftest.nl"
4034 echo 'EGREP' >> "conftest.nl"
4035 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037 ac_count=`expr $ac_count + 1`
4038 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4039 # Best one so far, save it but keep looking for a better one
4040 ac_cv_path_EGREP="$ac_path_EGREP"
4041 ac_path_EGREP_max=$ac_count
4043 # 10*(2^10) chars as input seems more than enough
4044 test $ac_count -gt 10 && break
4046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4050 $ac_path_EGREP_found && break 3
4060 EGREP="$ac_cv_path_EGREP"
4061 if test -z "$EGREP"; then
4062 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4063 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4064 { (exit 1); exit 1; }; }
4068 ac_cv_path_EGREP=$EGREP
4074 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4075 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4076 EGREP="$ac_cv_path_EGREP"
4079 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4081 if test "${ac_cv_header_stdc+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 cat >conftest.$ac_ext <<_ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4103 rm -f conftest.$ac_objext
4104 if { (ac_try="$ac_compile"
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110 (eval "$ac_compile") 2>conftest.er1
4112 grep -v '^ *+' conftest.er1 >conftest.err
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4118 { (case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_try") 2>&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; } &&
4127 { ac_try='test -s conftest.$ac_objext'
4128 { (case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_try") 2>&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_cv_header_stdc=yes
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4142 ac_cv_header_stdc=no
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 if test $ac_cv_header_stdc = yes; then
4148 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159 $EGREP "memchr" >/dev/null 2>&1; then
4162 ac_cv_header_stdc=no
4168 if test $ac_cv_header_stdc = yes; then
4169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4170 cat >conftest.$ac_ext <<_ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4180 $EGREP "free" >/dev/null 2>&1; then
4183 ac_cv_header_stdc=no
4189 if test $ac_cv_header_stdc = yes; then
4190 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4191 if test "$cross_compiling" = yes; then
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4202 #if ((' ' & 0x0FF) == 0x020)
4203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4206 # define ISLOWER(c) \
4207 (('a' <= (c) && (c) <= 'i') \
4208 || ('j' <= (c) && (c) <= 'r') \
4209 || ('s' <= (c) && (c) <= 'z'))
4210 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4213 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4218 for (i = 0; i < 256; i++)
4219 if (XOR (islower (i), ISLOWER (i))
4220 || toupper (i) != TOUPPER (i))
4225 rm -f conftest$ac_exeext
4226 if { (ac_try="$ac_link"
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_link") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4247 echo "$as_me: program exited with status $ac_status" >&5
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4252 ac_cv_header_stdc=no
4254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4260 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4261 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4262 if test $ac_cv_header_stdc = yes; then
4264 cat >>confdefs.h <<\_ACEOF
4265 #define STDC_HEADERS 1
4270 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4280 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4281 inttypes.h stdint.h unistd.h
4283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 cat >conftest.$ac_ext <<_ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 $ac_includes_default
4297 #include <$ac_header>
4299 rm -f conftest.$ac_objext
4300 if { (ac_try="$ac_compile"
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_compile") 2>conftest.er1
4308 grep -v '^ *+' conftest.er1 >conftest.err
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4314 { (case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_try") 2>&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; } &&
4323 { ac_try='test -s conftest.$ac_objext'
4324 { (case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_try") 2>&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 eval "$as_ac_Header=yes"
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4338 eval "$as_ac_Header=no"
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 ac_res=`eval echo '${'$as_ac_Header'}'`
4344 { echo "$as_me:$LINENO: result: $ac_res" >&5
4345 echo "${ECHO_T}$ac_res" >&6; }
4346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4347 cat >>confdefs.h <<_ACEOF
4348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4356 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4357 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4358 if test "${ac_cv_c_bigendian+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 # See if sys/param.h defines the BYTE_ORDER macro.
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 #include <sys/types.h>
4369 #include <sys/param.h>
4374 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4382 rm -f conftest.$ac_objext
4383 if { (ac_try="$ac_compile"
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389 (eval "$ac_compile") 2>conftest.er1
4391 grep -v '^ *+' conftest.er1 >conftest.err
4393 cat conftest.err >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4397 { (case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_try") 2>&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; } &&
4406 { ac_try='test -s conftest.$ac_objext'
4407 { (case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_try") 2>&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; }; then
4416 # It does; now see whether it defined to BIG_ENDIAN or not.
4417 cat >conftest.$ac_ext <<_ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4423 #include <sys/types.h>
4424 #include <sys/param.h>
4429 #if BYTE_ORDER != BIG_ENDIAN
4437 rm -f conftest.$ac_objext
4438 if { (ac_try="$ac_compile"
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_compile") 2>conftest.er1
4446 grep -v '^ *+' conftest.er1 >conftest.err
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4452 { (case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_try") 2>&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; } &&
4461 { ac_try='test -s conftest.$ac_objext'
4462 { (case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467 (eval "$ac_try") 2>&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4471 ac_cv_c_bigendian=yes
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4476 ac_cv_c_bigendian=no
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 # It does not; compile a test program.
4485 if test "$cross_compiling" = yes; then
4486 # try to guess the endianness by grepping values into an object file
4487 ac_cv_c_bigendian=unknown
4488 cat >conftest.$ac_ext <<_ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4495 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4496 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4497 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4498 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4499 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4503 _ascii (); _ebcdic ();
4508 rm -f conftest.$ac_objext
4509 if { (ac_try="$ac_compile"
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4515 (eval "$ac_compile") 2>conftest.er1
4517 grep -v '^ *+' conftest.er1 >conftest.err
4519 cat conftest.err >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4523 { (case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528 (eval "$ac_try") 2>&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
4533 { (case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538 (eval "$ac_try") 2>&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4542 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4543 ac_cv_c_bigendian=yes
4545 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4546 if test "$ac_cv_c_bigendian" = unknown; then
4547 ac_cv_c_bigendian=no
4549 # finding both strings is unlikely to happen, but who knows?
4550 ac_cv_c_bigendian=unknown
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 cat >conftest.$ac_ext <<_ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4568 $ac_includes_default
4573 /* Are we little or big endian? From Harbison&Steele. */
4577 char c[sizeof (long int)];
4580 return u.c[sizeof (long int) - 1] == 1;
4586 rm -f conftest$ac_exeext
4587 if { (ac_try="$ac_link"
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_link") 2>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4597 { (case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_try") 2>&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_cv_c_bigendian=no
4608 echo "$as_me: program exited with status $ac_status" >&5
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4613 ac_cv_c_bigendian=yes
4615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4624 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4625 case $ac_cv_c_bigendian in
4633 { { echo "$as_me:$LINENO: error: unknown endianness
4634 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4635 echo "$as_me: error: unknown endianness
4636 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4637 { (exit 1); exit 1; }; } ;;
4641 if test "$cross_compiling" = yes; then
4642 LLVM_CROSS_COMPILING=1
4645 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4646 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4647 if test "${ac_cv_build_exeext+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4651 ac_cv_build_exeext=.exe
4653 ac_build_prefix=${build_alias}-
4655 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4656 set dummy ${ac_build_prefix}gcc; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 if test -n "$BUILD_CC"; then
4663 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 BUILD_CC=$ac_cv_prog_BUILD_CC
4683 if test -n "$BUILD_CC"; then
4684 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4685 echo "${ECHO_T}$BUILD_CC" >&6; }
4687 { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4692 if test -z "$BUILD_CC"; then
4693 # Extract the first word of "gcc", so it can be a program name with args.
4694 set dummy gcc; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 if test -n "$BUILD_CC"; then
4701 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_BUILD_CC="gcc"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 BUILD_CC=$ac_cv_prog_BUILD_CC
4721 if test -n "$BUILD_CC"; then
4722 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4723 echo "${ECHO_T}$BUILD_CC" >&6; }
4725 { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4730 if test -z "$BUILD_CC"; then
4731 # Extract the first word of "cc", so it can be a program name with args.
4732 set dummy cc; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 if test -n "$BUILD_CC"; then
4739 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4750 ac_prog_rejected=yes
4753 ac_cv_prog_BUILD_CC="cc"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 if test $ac_prog_rejected = yes; then
4762 # We found a bogon in the path, so make sure we never use it.
4763 set dummy $ac_cv_prog_BUILD_CC
4765 if test $# != 0; then
4766 # We chose a different compiler from the bogus one.
4767 # However, it has the same basename, so the bogon will be chosen
4768 # first if we set BUILD_CC to just the basename; use the full file name.
4770 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4775 BUILD_CC=$ac_cv_prog_BUILD_CC
4776 if test -n "$BUILD_CC"; then
4777 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4778 echo "${ECHO_T}$BUILD_CC" >&6; }
4780 { echo "$as_me:$LINENO: result: no" >&5
4781 echo "${ECHO_T}no" >&6; }
4787 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4788 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4789 { (exit 1); exit 1; }; }
4790 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4792 echo 'int main () { return 0; }' > conftest.$ac_ext
4794 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4795 (eval $ac_build_link) 2>&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; then
4799 for file in conftest.*; do
4801 *.c | *.o | *.obj | *.dSYM) ;;
4802 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4806 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4807 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4808 { (exit 1); exit 1; }; }
4811 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4816 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4817 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4818 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4819 ac_build_exeext=$BUILD_EXEEXT
4821 ac_build_prefix=${build_alias}-
4822 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4823 set dummy ${ac_build_prefix}g++; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 if test -n "$BUILD_CXX"; then
4830 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4850 if test -n "$BUILD_CXX"; then
4851 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4852 echo "${ECHO_T}$BUILD_CXX" >&6; }
4854 { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4859 if test -z "$BUILD_CXX"; then
4860 # Extract the first word of "g++", so it can be a program name with args.
4861 set dummy g++; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 if test -n "$BUILD_CXX"; then
4868 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_BUILD_CXX="g++"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4888 if test -n "$BUILD_CXX"; then
4889 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4890 echo "${ECHO_T}$BUILD_CXX" >&6; }
4892 { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4897 if test -z "$BUILD_CXX"; then
4898 # Extract the first word of "c++", so it can be a program name with args.
4899 set dummy c++; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 if test -n "$BUILD_CXX"; then
4906 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4917 ac_prog_rejected=yes
4920 ac_cv_prog_BUILD_CXX="c++"
4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 if test $ac_prog_rejected = yes; then
4929 # We found a bogon in the path, so make sure we never use it.
4930 set dummy $ac_cv_prog_BUILD_CXX
4932 if test $# != 0; then
4933 # We chose a different compiler from the bogus one.
4934 # However, it has the same basename, so the bogon will be chosen
4935 # first if we set BUILD_CXX to just the basename; use the full file name.
4937 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4942 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4943 if test -n "$BUILD_CXX"; then
4944 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4945 echo "${ECHO_T}$BUILD_CXX" >&6; }
4947 { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4955 LLVM_CROSS_COMPILING=0
4959 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4970 # Check whether --enable-libcpp was given.
4971 if test "${enable_libcpp+set}" = set; then
4972 enableval=$enable_libcpp;
4977 case "$enableval" in
4978 yes) ENABLE_LIBCPP=1
4982 default) ENABLE_LIBCPP=0
4984 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4985 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4986 { (exit 1); exit 1; }; } ;;
4989 # Check whether --enable-optimized was given.
4990 if test "${enable_optimized+set}" = set; then
4991 enableval=$enable_optimized;
4996 if test ${enableval} = "no" ; then
5000 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5004 # Check whether --enable-profiling was given.
5005 if test "${enable_profiling+set}" = set; then
5006 enableval=$enable_profiling;
5011 if test ${enableval} = "no" ; then
5015 ENABLE_PROFILING=ENABLE_PROFILING=1
5019 # Check whether --enable-assertions was given.
5020 if test "${enable_assertions+set}" = set; then
5021 enableval=$enable_assertions;
5026 if test ${enableval} = "yes" ; then
5030 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5034 # Check whether --enable-expensive-checks was given.
5035 if test "${enable_expensive_checks+set}" = set; then
5036 enableval=$enable_expensive_checks;
5041 if test ${enableval} = "yes" ; then
5042 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5044 EXPENSIVE_CHECKS=yes
5047 ENABLE_EXPENSIVE_CHECKS=
5053 # Check whether --enable-debug-runtime was given.
5054 if test "${enable_debug_runtime+set}" = set; then
5055 enableval=$enable_debug_runtime;
5060 if test ${enableval} = "no" ; then
5064 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5068 # Check whether --enable-debug-symbols was given.
5069 if test "${enable_debug_symbols+set}" = set; then
5070 enableval=$enable_debug_symbols;
5075 if test ${enableval} = "no" ; then
5079 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5083 # Check whether --enable-jit was given.
5084 if test "${enable_jit+set}" = set; then
5085 enableval=$enable_jit;
5090 if test ${enableval} = "no"
5095 case "$llvm_cv_target_arch" in
5096 x86) TARGET_HAS_JIT=1
5098 Sparc) TARGET_HAS_JIT=0
5100 PowerPC) TARGET_HAS_JIT=1
5102 x86_64) TARGET_HAS_JIT=1
5104 ARM) TARGET_HAS_JIT=1
5106 Mips) TARGET_HAS_JIT=1
5108 XCore) TARGET_HAS_JIT=0
5110 MSP430) TARGET_HAS_JIT=0
5112 Hexagon) TARGET_HAS_JIT=0
5114 MBlaze) TARGET_HAS_JIT=0
5116 PTX) TARGET_HAS_JIT=0
5123 # Check whether --enable-docs was given.
5124 if test "${enable_docs+set}" = set; then
5125 enableval=$enable_docs;
5130 case "$enableval" in
5135 default) ENABLE_DOCS=1
5137 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5138 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5142 # Check whether --enable-doxygen was given.
5143 if test "${enable_doxygen+set}" = set; then
5144 enableval=$enable_doxygen;
5149 case "$enableval" in
5150 yes) ENABLE_DOXYGEN=1
5152 no) ENABLE_DOXYGEN=0
5154 default) ENABLE_DOXYGEN=0
5156 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5157 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5158 { (exit 1); exit 1; }; } ;;
5161 # Check whether --enable-threads was given.
5162 if test "${enable_threads+set}" = set; then
5163 enableval=$enable_threads;
5168 case "$enableval" in
5169 yes) LLVM_ENABLE_THREADS=1
5171 no) LLVM_ENABLE_THREADS=0
5173 default) LLVM_ENABLE_THREADS=1
5175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5176 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
5180 cat >>confdefs.h <<_ACEOF
5181 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5185 # Check whether --enable-pthreads was given.
5186 if test "${enable_pthreads+set}" = set; then
5187 enableval=$enable_pthreads;
5192 case "$enableval" in
5193 yes) ENABLE_PTHREADS=1
5195 no) ENABLE_PTHREADS=0
5197 default) ENABLE_PTHREADS=1
5199 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5200 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5201 { (exit 1); exit 1; }; } ;;
5204 # Check whether --enable-pic was given.
5205 if test "${enable_pic+set}" = set; then
5206 enableval=$enable_pic;
5211 case "$enableval" in
5216 default) ENABLE_PIC=1
5218 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5219 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5220 { (exit 1); exit 1; }; } ;;
5223 cat >>confdefs.h <<_ACEOF
5224 #define ENABLE_PIC $ENABLE_PIC
5228 # Check whether --enable-shared was given.
5229 if test "${enable_shared+set}" = set; then
5230 enableval=$enable_shared;
5235 case "$enableval" in
5236 yes) ENABLE_SHARED=1
5240 default) ENABLE_SHARED=0
5242 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5243 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5244 { (exit 1); exit 1; }; } ;;
5247 # Check whether --enable-embed-stdcxx was given.
5248 if test "${enable_embed_stdcxx+set}" = set; then
5249 enableval=$enable_embed_stdcxx;
5254 case "$enableval" in
5255 yes) ENABLE_EMBED_STDCXX=1
5257 no) ENABLE_EMBED_STDCXX=0
5259 default) ENABLE_EMBED_STDCXX=0
5261 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5262 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5263 { (exit 1); exit 1; }; } ;;
5266 # Check whether --enable-timestamps was given.
5267 if test "${enable_timestamps+set}" = set; then
5268 enableval=$enable_timestamps;
5273 case "$enableval" in
5274 yes) ENABLE_TIMESTAMPS=1
5276 no) ENABLE_TIMESTAMPS=0
5278 default) ENABLE_TIMESTAMPS=1
5280 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5281 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5282 { (exit 1); exit 1; }; } ;;
5285 cat >>confdefs.h <<_ACEOF
5286 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5291 # Check whether --enable-targets was given.
5292 if test "${enable_targets+set}" = set; then
5293 enableval=$enable_targets;
5298 if test "$enableval" = host-only ; then
5301 case "$enableval" in
5302 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5303 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5305 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5306 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5307 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5308 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5309 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5310 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5311 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5312 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5313 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5314 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5315 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5316 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5317 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5318 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5319 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5320 host) case "$llvm_cv_target_arch" in
5321 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5322 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5323 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5324 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5325 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5326 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5327 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5328 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5329 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5330 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5331 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5332 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5333 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5334 echo "$as_me: error: Can not set target to build" >&2;}
5335 { (exit 1); exit 1; }; } ;;
5337 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5338 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5339 { (exit 1); exit 1; }; } ;;
5344 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5347 for a_target in $TARGETS_TO_BUILD; do
5348 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5350 cat >>confdefs.h <<_ACEOF
5351 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5354 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5355 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5356 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5357 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5358 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5359 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5362 cat >>confdefs.h <<_ACEOF
5363 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5367 cat >>confdefs.h <<_ACEOF
5368 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5372 cat >>confdefs.h <<_ACEOF
5373 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5377 cat >>confdefs.h <<_ACEOF
5378 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5381 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5383 cat >>confdefs.h <<_ACEOF
5384 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5391 LLVM_ENUM_TARGETS=""
5392 LLVM_ENUM_ASM_PRINTERS=""
5393 LLVM_ENUM_ASM_PARSERS=""
5394 LLVM_ENUM_DISASSEMBLERS=""
5395 for target_to_build in $TARGETS_TO_BUILD; do
5396 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5397 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5398 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5400 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5401 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5403 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5404 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5412 # Check whether --enable-cbe-printf-a was given.
5413 if test "${enable_cbe_printf_a+set}" = set; then
5414 enableval=$enable_cbe_printf_a;
5419 case "$enableval" in
5420 yes) ENABLE_CBE_PRINTF_A=1
5422 no) ENABLE_CBE_PRINTF_A=0
5424 default) ENABLE_CBE_PRINTF_A=1
5426 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5427 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5428 { (exit 1); exit 1; }; } ;;
5431 cat >>confdefs.h <<_ACEOF
5432 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5437 # Check whether --with-optimize-option was given.
5438 if test "${with_optimize_option+set}" = set; then
5439 withval=$with_optimize_option;
5444 { echo "$as_me:$LINENO: checking optimization flags" >&5
5445 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5448 case "$llvm_cv_os_type" in
5449 FreeBSD) optimize_option=-O2 ;;
5450 MingW) optimize_option=-O2 ;;
5451 *) optimize_option=-O3 ;;
5453 *) optimize_option="$withval" ;;
5455 OPTIMIZE_OPTION=$optimize_option
5457 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5458 echo "${ECHO_T}$optimize_option" >&6; }
5461 # Check whether --with-extra-options was given.
5462 if test "${with_extra_options+set}" = set; then
5463 withval=$with_extra_options;
5469 default) EXTRA_OPTIONS= ;;
5470 *) EXTRA_OPTIONS=$withval ;;
5472 EXTRA_OPTIONS=$EXTRA_OPTIONS
5476 # Check whether --with-extra-ld-options was given.
5477 if test "${with_extra_ld_options+set}" = set; then
5478 withval=$with_extra_ld_options;
5484 default) EXTRA_LD_OPTIONS= ;;
5485 *) EXTRA_LD_OPTIONS=$withval ;;
5487 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5490 # Check whether --enable-bindings was given.
5491 if test "${enable_bindings+set}" = set; then
5492 enableval=$enable_bindings;
5497 BINDINGS_TO_BUILD=""
5498 case "$enableval" in
5499 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5500 all ) BINDINGS_TO_BUILD="ocaml" ;;
5501 none | no) BINDINGS_TO_BUILD="" ;;
5502 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5503 case "$a_binding" in
5504 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5505 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5506 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5507 { (exit 1); exit 1; }; } ;;
5514 # Check whether --with-ocaml-libdir was given.
5515 if test "${with_ocaml_libdir+set}" = set; then
5516 withval=$with_ocaml_libdir;
5522 auto) with_ocaml_libdir="$withval" ;;
5523 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5524 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5525 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5526 { (exit 1); exit 1; }; } ;;
5530 # Check whether --with-clang-srcdir was given.
5531 if test "${with_clang_srcdir+set}" = set; then
5532 withval=$with_clang_srcdir;
5538 -) clang_src_root="" ;;
5539 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5540 *) clang_src_root="$ac_pwd/$withval" ;;
5542 CLANG_SRC_ROOT=$clang_src_root
5546 # Check whether --with-clang-resource-dir was given.
5547 if test "${with_clang_resource_dir+set}" = set; then
5548 withval=$with_clang_resource_dir;
5554 cat >>confdefs.h <<_ACEOF
5555 #define CLANG_RESOURCE_DIR "$withval"
5560 # Check whether --with-c-include-dirs was given.
5561 if test "${with_c_include_dirs+set}" = set; then
5562 withval=$with_c_include_dirs;
5568 cat >>confdefs.h <<_ACEOF
5569 #define C_INCLUDE_DIRS "$withval"
5574 # Check whether --with-cxx-include-root was given.
5575 if test "${with_cxx_include_root+set}" = set; then
5576 withval=$with_cxx_include_root;
5582 cat >>confdefs.h <<_ACEOF
5583 #define CXX_INCLUDE_ROOT "$withval"
5588 # Check whether --with-cxx-include-arch was given.
5589 if test "${with_cxx_include_arch+set}" = set; then
5590 withval=$with_cxx_include_arch;
5596 cat >>confdefs.h <<_ACEOF
5597 #define CXX_INCLUDE_ARCH "$withval"
5602 # Check whether --with-cxx-include-32bit-dir was given.
5603 if test "${with_cxx_include_32bit_dir+set}" = set; then
5604 withval=$with_cxx_include_32bit_dir;
5610 cat >>confdefs.h <<_ACEOF
5611 #define CXX_INCLUDE_32BIT_DIR "$withval"
5616 # Check whether --with-cxx-include-64bit-dir was given.
5617 if test "${with_cxx_include_64bit_dir+set}" = set; then
5618 withval=$with_cxx_include_64bit_dir;
5624 cat >>confdefs.h <<_ACEOF
5625 #define CXX_INCLUDE_64BIT_DIR "$withval"
5630 # Check whether --with-binutils-include was given.
5631 if test "${with_binutils_include+set}" = set; then
5632 withval=$with_binutils_include;
5638 default) WITH_BINUTILS_INCDIR=default ;;
5639 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5640 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5641 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5642 { (exit 1); exit 1; }; } ;;
5644 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5645 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5647 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5648 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5649 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5650 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5651 { (exit 1); exit 1; }; };
5656 # Check whether --with-bug-report-url was given.
5657 if test "${with_bug_report_url+set}" = set; then
5658 withval=$with_bug_report_url;
5660 withval="http://llvm.org/bugs/"
5664 cat >>confdefs.h <<_ACEOF
5665 #define BUG_REPORT_URL "$withval"
5669 # Check whether --enable-libffi was given.
5670 if test "${enable_libffi+set}" = set; then
5671 enableval=$enable_libffi; case "$enableval" in
5672 yes) llvm_cv_enable_libffi="yes" ;;
5673 no) llvm_cv_enable_libffi="no" ;;
5674 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5675 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5676 { (exit 1); exit 1; }; } ;;
5679 llvm_cv_enable_libffi=no
5684 # Check whether --with-internal-prefix was given.
5685 if test "${with_internal_prefix+set}" = set; then
5686 withval=$with_internal_prefix;
5691 INTERNAL_PREFIX=$withval
5695 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5696 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5697 if test "${lt_cv_path_NM+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 if test -n "$NM"; then
5701 # Let the user override the test.
5704 lt_nm_to_check="${ac_tool_prefix}nm"
5705 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5706 lt_nm_to_check="$lt_nm_to_check nm"
5708 for lt_tmp_nm in $lt_nm_to_check; do
5709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5710 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5712 test -z "$ac_dir" && ac_dir=.
5713 tmp_nm="$ac_dir/$lt_tmp_nm"
5714 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5715 # Check to see if the nm accepts a BSD-compat flag.
5716 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5717 # nm: unknown option "B" ignored
5718 # Tru64's nm complains that /dev/null is an invalid object file
5719 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5720 */dev/null* | *'Invalid file or object type'*)
5721 lt_cv_path_NM="$tmp_nm -B"
5725 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5727 lt_cv_path_NM="$tmp_nm -p"
5731 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5732 continue # so that we can try to find one that supports BSD flags
5741 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5744 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5745 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5750 { echo "$as_me:$LINENO: checking for GNU make" >&5
5751 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5752 if test "${llvm_cv_gnu_make_command+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 llvm_cv_gnu_make_command=''
5756 for a in "$MAKE" make gmake gnumake ; do
5757 if test -z "$a" ; then continue ; fi ;
5758 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5760 llvm_cv_gnu_make_command=$a ;
5765 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5766 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5767 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5771 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5772 echo "${ECHO_T}\"Not found\"" >&6; };
5776 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5777 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5779 if test "$LN_S" = "ln -s"; then
5780 { echo "$as_me:$LINENO: result: yes" >&5
5781 echo "${ECHO_T}yes" >&6; }
5783 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5784 echo "${ECHO_T}no, using $LN_S" >&6; }
5787 # Extract the first word of "cmp", so it can be a program name with args.
5788 set dummy cmp; ac_word=$2
5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791 if test "${ac_cv_path_CMP+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5819 if test -n "$CMP"; then
5820 { echo "$as_me:$LINENO: result: $CMP" >&5
5821 echo "${ECHO_T}$CMP" >&6; }
5823 { echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6; }
5828 # Extract the first word of "cp", so it can be a program name with args.
5829 set dummy cp; ac_word=$2
5830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5832 if test "${ac_cv_path_CP+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5860 if test -n "$CP"; then
5861 { echo "$as_me:$LINENO: result: $CP" >&5
5862 echo "${ECHO_T}$CP" >&6; }
5864 { echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6; }
5869 # Extract the first word of "date", so it can be a program name with args.
5870 set dummy date; ac_word=$2
5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873 if test "${ac_cv_path_DATE+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5900 DATE=$ac_cv_path_DATE
5901 if test -n "$DATE"; then
5902 { echo "$as_me:$LINENO: result: $DATE" >&5
5903 echo "${ECHO_T}$DATE" >&6; }
5905 { echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6; }
5910 # Extract the first word of "find", so it can be a program name with args.
5911 set dummy find; ac_word=$2
5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914 if test "${ac_cv_path_FIND+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5941 FIND=$ac_cv_path_FIND
5942 if test -n "$FIND"; then
5943 { echo "$as_me:$LINENO: result: $FIND" >&5
5944 echo "${ECHO_T}$FIND" >&6; }
5946 { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5951 # Extract the first word of "grep", so it can be a program name with args.
5952 set dummy grep; ac_word=$2
5953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5955 if test "${ac_cv_path_GREP+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5982 GREP=$ac_cv_path_GREP
5983 if test -n "$GREP"; then
5984 { echo "$as_me:$LINENO: result: $GREP" >&5
5985 echo "${ECHO_T}$GREP" >&6; }
5987 { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5992 # Extract the first word of "mkdir", so it can be a program name with args.
5993 set dummy mkdir; ac_word=$2
5994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5996 if test "${ac_cv_path_MKDIR+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6023 MKDIR=$ac_cv_path_MKDIR
6024 if test -n "$MKDIR"; then
6025 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6026 echo "${ECHO_T}$MKDIR" >&6; }
6028 { echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6; }
6033 # Extract the first word of "mv", so it can be a program name with args.
6034 set dummy mv; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_path_MV+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6065 if test -n "$MV"; then
6066 { echo "$as_me:$LINENO: result: $MV" >&5
6067 echo "${ECHO_T}$MV" >&6; }
6069 { echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6; }
6074 if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6079 if test "${ac_cv_prog_RANLIB+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 if test -n "$RANLIB"; then
6083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 RANLIB=$ac_cv_prog_RANLIB
6103 if test -n "$RANLIB"; then
6104 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6105 echo "${ECHO_T}$RANLIB" >&6; }
6107 { echo "$as_me:$LINENO: result: no" >&5
6108 echo "${ECHO_T}no" >&6; }
6113 if test -z "$ac_cv_prog_RANLIB"; then
6114 ac_ct_RANLIB=$RANLIB
6115 # Extract the first word of "ranlib", so it can be a program name with args.
6116 set dummy ranlib; ac_word=$2
6117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6119 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 if test -n "$ac_ct_RANLIB"; then
6123 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6132 ac_cv_prog_ac_ct_RANLIB="ranlib"
6133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6143 if test -n "$ac_ct_RANLIB"; then
6144 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6145 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6147 { echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6; }
6151 if test "x$ac_ct_RANLIB" = x; then
6154 case $cross_compiling:$ac_tool_warned in
6156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6157 whose name does not start with the host triplet. If you think this
6158 configuration is useful to you, please write to autoconf@gnu.org." >&5
6159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6160 whose name does not start with the host triplet. If you think this
6161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6162 ac_tool_warned=yes ;;
6164 RANLIB=$ac_ct_RANLIB
6167 RANLIB="$ac_cv_prog_RANLIB"
6170 if test -n "$ac_tool_prefix"; then
6171 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6172 set dummy ${ac_tool_prefix}ar; ac_word=$2
6173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175 if test "${ac_cv_prog_AR+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 if test -n "$AR"; then
6179 ac_cv_prog_AR="$AR" # Let the user override the test.
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6188 ac_cv_prog_AR="${ac_tool_prefix}ar"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 if test -n "$AR"; then
6200 { echo "$as_me:$LINENO: result: $AR" >&5
6201 echo "${ECHO_T}$AR" >&6; }
6203 { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6209 if test -z "$ac_cv_prog_AR"; then
6211 # Extract the first word of "ar", so it can be a program name with args.
6212 set dummy ar; ac_word=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 if test -n "$ac_ct_AR"; then
6219 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_ac_ct_AR="ar"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6239 if test -n "$ac_ct_AR"; then
6240 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6241 echo "${ECHO_T}$ac_ct_AR" >&6; }
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6247 if test "x$ac_ct_AR" = x; then
6250 case $cross_compiling:$ac_tool_warned in
6252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6253 whose name does not start with the host triplet. If you think this
6254 configuration is useful to you, please write to autoconf@gnu.org." >&5
6255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6256 whose name does not start with the host triplet. If you think this
6257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6258 ac_tool_warned=yes ;;
6266 # Extract the first word of "rm", so it can be a program name with args.
6267 set dummy rm; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_path_RM+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6298 if test -n "$RM"; then
6299 { echo "$as_me:$LINENO: result: $RM" >&5
6300 echo "${ECHO_T}$RM" >&6; }
6302 { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6307 # Extract the first word of "sed", so it can be a program name with args.
6308 set dummy sed; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_path_SED+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6339 if test -n "$SED"; then
6340 { echo "$as_me:$LINENO: result: $SED" >&5
6341 echo "${ECHO_T}$SED" >&6; }
6343 { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6348 # Extract the first word of "tar", so it can be a program name with args.
6349 set dummy tar; ac_word=$2
6350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6352 if test "${ac_cv_path_TAR+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6380 if test -n "$TAR"; then
6381 { echo "$as_me:$LINENO: result: $TAR" >&5
6382 echo "${ECHO_T}$TAR" >&6; }
6384 { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6389 # Extract the first word of "pwd", so it can be a program name with args.
6390 set dummy pwd; ac_word=$2
6391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393 if test "${ac_cv_path_BINPWD+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6420 BINPWD=$ac_cv_path_BINPWD
6421 if test -n "$BINPWD"; then
6422 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6423 echo "${ECHO_T}$BINPWD" >&6; }
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6431 # Extract the first word of "Graphviz", so it can be a program name with args.
6432 set dummy Graphviz; ac_word=$2
6433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6462 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6463 if test -n "$GRAPHVIZ"; then
6464 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6465 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6467 { echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6; }
6472 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6474 cat >>confdefs.h <<\_ACEOF
6475 #define HAVE_GRAPHVIZ 1
6478 if test "$llvm_cv_os_type" = "MingW" ; then
6479 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6482 cat >>confdefs.h <<_ACEOF
6483 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6487 # Extract the first word of "dot", so it can be a program name with args.
6488 set dummy dot; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_path_DOT+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6519 if test -n "$DOT"; then
6520 { echo "$as_me:$LINENO: result: $DOT" >&5
6521 echo "${ECHO_T}$DOT" >&6; }
6523 { echo "$as_me:$LINENO: result: no" >&5
6524 echo "${ECHO_T}no" >&6; }
6528 if test "$DOT" != "echo dot" ; then
6530 cat >>confdefs.h <<\_ACEOF
6534 if test "$llvm_cv_os_type" = "MingW" ; then
6535 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6538 cat >>confdefs.h <<_ACEOF
6539 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6543 # Extract the first word of "fdp", so it can be a program name with args.
6544 set dummy fdp; ac_word=$2
6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547 if test "${ac_cv_path_FDP+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6562 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6575 if test -n "$FDP"; then
6576 { echo "$as_me:$LINENO: result: $FDP" >&5
6577 echo "${ECHO_T}$FDP" >&6; }
6579 { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6584 if test "$FDP" != "echo fdp" ; then
6586 cat >>confdefs.h <<\_ACEOF
6590 if test "$llvm_cv_os_type" = "MingW" ; then
6591 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6594 cat >>confdefs.h <<_ACEOF
6595 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6599 # Extract the first word of "neato", so it can be a program name with args.
6600 set dummy neato; ac_word=$2
6601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6603 if test "${ac_cv_path_NEATO+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6630 NEATO=$ac_cv_path_NEATO
6631 if test -n "$NEATO"; then
6632 { echo "$as_me:$LINENO: result: $NEATO" >&5
6633 echo "${ECHO_T}$NEATO" >&6; }
6635 { echo "$as_me:$LINENO: result: no" >&5
6636 echo "${ECHO_T}no" >&6; }
6640 if test "$NEATO" != "echo neato" ; then
6642 cat >>confdefs.h <<\_ACEOF
6643 #define HAVE_NEATO 1
6646 if test "$llvm_cv_os_type" = "MingW" ; then
6647 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6650 cat >>confdefs.h <<_ACEOF
6651 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6655 # Extract the first word of "twopi", so it can be a program name with args.
6656 set dummy twopi; ac_word=$2
6657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659 if test "${ac_cv_path_TWOPI+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6686 TWOPI=$ac_cv_path_TWOPI
6687 if test -n "$TWOPI"; then
6688 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6689 echo "${ECHO_T}$TWOPI" >&6; }
6691 { echo "$as_me:$LINENO: result: no" >&5
6692 echo "${ECHO_T}no" >&6; }
6696 if test "$TWOPI" != "echo twopi" ; then
6698 cat >>confdefs.h <<\_ACEOF
6699 #define HAVE_TWOPI 1
6702 if test "$llvm_cv_os_type" = "MingW" ; then
6703 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6706 cat >>confdefs.h <<_ACEOF
6707 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6711 # Extract the first word of "circo", so it can be a program name with args.
6712 set dummy circo; ac_word=$2
6713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6715 if test "${ac_cv_path_CIRCO+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6742 CIRCO=$ac_cv_path_CIRCO
6743 if test -n "$CIRCO"; then
6744 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6745 echo "${ECHO_T}$CIRCO" >&6; }
6747 { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6752 if test "$CIRCO" != "echo circo" ; then
6754 cat >>confdefs.h <<\_ACEOF
6755 #define HAVE_CIRCO 1
6758 if test "$llvm_cv_os_type" = "MingW" ; then
6759 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6762 cat >>confdefs.h <<_ACEOF
6763 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6767 for ac_prog in gv gsview32
6769 # Extract the first word of "$ac_prog", so it can be a program name with args.
6770 set dummy $ac_prog; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_path_GV+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6788 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 if test -n "$GV"; then
6801 { echo "$as_me:$LINENO: result: $GV" >&5
6802 echo "${ECHO_T}$GV" >&6; }
6804 { echo "$as_me:$LINENO: result: no" >&5
6805 echo "${ECHO_T}no" >&6; }
6809 test -n "$GV" && break
6811 test -n "$GV" || GV="echo gv"
6813 if test "$GV" != "echo gv" ; then
6815 cat >>confdefs.h <<\_ACEOF
6819 if test "$llvm_cv_os_type" = "MingW" ; then
6820 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6823 cat >>confdefs.h <<_ACEOF
6824 #define LLVM_PATH_GV "$GV${EXEEXT}"
6828 # Extract the first word of "dotty", so it can be a program name with args.
6829 set dummy dotty; ac_word=$2
6830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832 if test "${ac_cv_path_DOTTY+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6859 DOTTY=$ac_cv_path_DOTTY
6860 if test -n "$DOTTY"; then
6861 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6862 echo "${ECHO_T}$DOTTY" >&6; }
6864 { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6869 if test "$DOTTY" != "echo dotty" ; then
6871 cat >>confdefs.h <<\_ACEOF
6872 #define HAVE_DOTTY 1
6875 if test "$llvm_cv_os_type" = "MingW" ; then
6876 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6879 cat >>confdefs.h <<_ACEOF
6880 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6884 # Extract the first word of "xdot.py", so it can be a program name with args.
6885 set dummy xdot.py; ac_word=$2
6886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6888 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6903 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6915 XDOT_PY=$ac_cv_path_XDOT_PY
6916 if test -n "$XDOT_PY"; then
6917 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6918 echo "${ECHO_T}$XDOT_PY" >&6; }
6920 { echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6; }
6925 if test "$XDOT_PY" != "echo xdot.py" ; then
6927 cat >>confdefs.h <<\_ACEOF
6928 #define HAVE_XDOT_PY 1
6931 if test "$llvm_cv_os_type" = "MingW" ; then
6932 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6935 cat >>confdefs.h <<_ACEOF
6936 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6942 # Extract the first word of "perl", so it can be a program name with args.
6943 set dummy perl; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_path_PERL+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6973 PERL=$ac_cv_path_PERL
6974 if test -n "$PERL"; then
6975 { echo "$as_me:$LINENO: result: $PERL" >&5
6976 echo "${ECHO_T}$PERL" >&6; }
6978 { echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6; }
6983 if test "$PERL" != "none"; then
6984 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6985 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6986 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6987 { echo "$as_me:$LINENO: result: yes" >&5
6988 echo "${ECHO_T}yes" >&6; }
6991 { echo "$as_me:$LINENO: result: not found" >&5
6992 echo "${ECHO_T}not found" >&6; }
6997 if test x"$PERL" = xnone; then
7000 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7001 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7002 { (exit 1); exit 1; }; }
7008 # Find a good install program. We prefer a C program (faster),
7009 # so one script is as good as another. But avoid the broken or
7010 # incompatible versions:
7011 # SysV /etc/install, /usr/sbin/install
7012 # SunOS /usr/etc/install
7013 # IRIX /sbin/install
7015 # AmigaOS /C/install, which installs bootblocks on floppy discs
7016 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7017 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7018 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7019 # OS/2's system install, which has a completely different semantic
7020 # ./install, which can be erroneously created by make from ./install.sh.
7021 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7022 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7023 if test -z "$INSTALL"; then
7024 if test "${ac_cv_path_install+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir=.
7032 # Account for people who put trailing slashes in PATH elements.
7034 ./ | .// | /cC/* | \
7035 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7036 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7039 # OSF1 and SCO ODT 3.0 have their own names for install.
7040 # Don't use installbsd from OSF since it installs stuff as root
7042 for ac_prog in ginstall scoinst install; do
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7045 if test $ac_prog = install &&
7046 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7047 # AIX install. It has an incompatible calling convention.
7049 elif test $ac_prog = install &&
7050 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7051 # program-specific install script used by HP pwplus--don't use.
7054 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7067 if test "${ac_cv_path_install+set}" = set; then
7068 INSTALL=$ac_cv_path_install
7070 # As a last resort, use the slow shell script. Don't cache a
7071 # value for INSTALL within a source directory, because that will
7072 # break other packages using the cache if that directory is
7073 # removed, or if the value is a relative name.
7074 INSTALL=$ac_install_sh
7077 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7078 echo "${ECHO_T}$INSTALL" >&6; }
7080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7081 # It thinks the first close brace ends the variable substitution.
7082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7089 [\\/$]* | ?:[\\/]* ) ;;
7090 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7093 # Extract the first word of "bzip2", so it can be a program name with args.
7094 set dummy bzip2; ac_word=$2
7095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097 if test "${ac_cv_path_BZIP2+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 BZIP2=$ac_cv_path_BZIP2
7124 if test -n "$BZIP2"; then
7125 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7126 echo "${ECHO_T}$BZIP2" >&6; }
7128 { echo "$as_me:$LINENO: result: no" >&5
7129 echo "${ECHO_T}no" >&6; }
7133 # Extract the first word of "cat", so it can be a program name with args.
7134 set dummy cat; ac_word=$2
7135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137 if test "${ac_cv_path_CAT+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 if test -n "$CAT"; then
7165 { echo "$as_me:$LINENO: result: $CAT" >&5
7166 echo "${ECHO_T}$CAT" >&6; }
7168 { echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6; }
7173 # Extract the first word of "doxygen", so it can be a program name with args.
7174 set dummy doxygen; ac_word=$2
7175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7192 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 DOXYGEN=$ac_cv_path_DOXYGEN
7204 if test -n "$DOXYGEN"; then
7205 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7206 echo "${ECHO_T}$DOXYGEN" >&6; }
7208 { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7213 # Extract the first word of "groff", so it can be a program name with args.
7214 set dummy groff; ac_word=$2
7215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217 if test "${ac_cv_path_GROFF+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 GROFF=$ac_cv_path_GROFF
7244 if test -n "$GROFF"; then
7245 { echo "$as_me:$LINENO: result: $GROFF" >&5
7246 echo "${ECHO_T}$GROFF" >&6; }
7248 { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7253 # Extract the first word of "gzip", so it can be a program name with args.
7254 set dummy gzip; ac_word=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 GZIPBIN=$ac_cv_path_GZIPBIN
7284 if test -n "$GZIPBIN"; then
7285 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7286 echo "${ECHO_T}$GZIPBIN" >&6; }
7288 { echo "$as_me:$LINENO: result: no" >&5
7289 echo "${ECHO_T}no" >&6; }
7293 # Extract the first word of "pod2html", so it can be a program name with args.
7294 set dummy pod2html; ac_word=$2
7295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297 if test "${ac_cv_path_POD2HTML+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7312 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 POD2HTML=$ac_cv_path_POD2HTML
7324 if test -n "$POD2HTML"; then
7325 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7326 echo "${ECHO_T}$POD2HTML" >&6; }
7328 { echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6; }
7333 # Extract the first word of "pod2man", so it can be a program name with args.
7334 set dummy pod2man; ac_word=$2
7335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337 if test "${ac_cv_path_POD2MAN+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 POD2MAN=$ac_cv_path_POD2MAN
7364 if test -n "$POD2MAN"; then
7365 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7366 echo "${ECHO_T}$POD2MAN" >&6; }
7368 { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7373 # Extract the first word of "pdfroff", so it can be a program name with args.
7374 set dummy pdfroff; ac_word=$2
7375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7377 if test "${ac_cv_path_PDFROFF+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7392 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 PDFROFF=$ac_cv_path_PDFROFF
7404 if test -n "$PDFROFF"; then
7405 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7406 echo "${ECHO_T}$PDFROFF" >&6; }
7408 { echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6; }
7413 # Extract the first word of "runtest", so it can be a program name with args.
7414 set dummy runtest; ac_word=$2
7415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417 if test "${ac_cv_path_RUNTEST+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7432 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 RUNTEST=$ac_cv_path_RUNTEST
7444 if test -n "$RUNTEST"; then
7445 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7446 echo "${ECHO_T}$RUNTEST" >&6; }
7448 { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7455 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7456 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7458 # Check whether --with-tclinclude was given.
7459 if test "${with_tclinclude+set}" = set; then
7460 withval=$with_tclinclude; with_tclinclude=${withval}
7465 if test "${ac_cv_path_tclsh+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 if test x"${with_tclinclude}" != x ; then
7470 if test -f ${with_tclinclude}/tclsh ; then
7471 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7472 elif test -f ${with_tclinclude}/src/tclsh ; then
7473 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7475 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7476 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7477 { (exit 1); exit 1; }; }
7483 if test x"${ac_cv_path_tclsh}" = x ; then
7484 { echo "$as_me:$LINENO: result: none" >&5
7485 echo "${ECHO_T}none" >&6; }
7486 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
7488 # Extract the first word of "$ac_prog", so it can be a program name with args.
7489 set dummy $ac_prog; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_TCLSH+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 TCLSH=$ac_cv_path_TCLSH
7519 if test -n "$TCLSH"; then
7520 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7521 echo "${ECHO_T}$TCLSH" >&6; }
7523 { echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6; }
7528 test -n "$TCLSH" && break
7531 if test x"${TCLSH}" = x ; then
7532 ac_cv_path_tclsh='';
7534 ac_cv_path_tclsh="${TCLSH}";
7537 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7538 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7539 TCLSH="${ac_cv_path_tclsh}"
7543 # Extract the first word of "zip", so it can be a program name with args.
7544 set dummy zip; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_ZIP+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 if test -n "$ZIP"; then
7575 { echo "$as_me:$LINENO: result: $ZIP" >&5
7576 echo "${ECHO_T}$ZIP" >&6; }
7578 { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7583 for ac_prog in ocamlc
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_OCAMLC+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 OCAMLC=$ac_cv_path_OCAMLC
7616 if test -n "$OCAMLC"; then
7617 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7618 echo "${ECHO_T}$OCAMLC" >&6; }
7620 { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7625 test -n "$OCAMLC" && break
7628 for ac_prog in ocamlopt
7630 # Extract the first word of "$ac_prog", so it can be a program name with args.
7631 set dummy $ac_prog; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 OCAMLOPT=$ac_cv_path_OCAMLOPT
7661 if test -n "$OCAMLOPT"; then
7662 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7663 echo "${ECHO_T}$OCAMLOPT" >&6; }
7665 { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7670 test -n "$OCAMLOPT" && break
7673 for ac_prog in ocamldep
7675 # Extract the first word of "$ac_prog", so it can be a program name with args.
7676 set dummy $ac_prog; ac_word=$2
7677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7679 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7694 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 OCAMLDEP=$ac_cv_path_OCAMLDEP
7706 if test -n "$OCAMLDEP"; then
7707 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7708 echo "${ECHO_T}$OCAMLDEP" >&6; }
7710 { echo "$as_me:$LINENO: result: no" >&5
7711 echo "${ECHO_T}no" >&6; }
7715 test -n "$OCAMLDEP" && break
7718 for ac_prog in ocamldoc
7720 # Extract the first word of "$ac_prog", so it can be a program name with args.
7721 set dummy $ac_prog; ac_word=$2
7722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7724 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7739 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 OCAMLDOC=$ac_cv_path_OCAMLDOC
7751 if test -n "$OCAMLDOC"; then
7752 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7753 echo "${ECHO_T}$OCAMLDOC" >&6; }
7755 { echo "$as_me:$LINENO: result: no" >&5
7756 echo "${ECHO_T}no" >&6; }
7760 test -n "$OCAMLDOC" && break
7763 for ac_prog in gas as
7765 # Extract the first word of "$ac_prog", so it can be a program name with args.
7766 set dummy $ac_prog; ac_word=$2
7767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769 if test "${ac_cv_path_GAS+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 if test -n "$GAS"; then
7797 { echo "$as_me:$LINENO: result: $GAS" >&5
7798 echo "${ECHO_T}$GAS" >&6; }
7800 { echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6; }
7805 test -n "$GAS" && break
7809 { echo "$as_me:$LINENO: checking for linker version" >&5
7810 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7811 if test "${llvm_cv_link_version+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 version_string="$(ld -v 2>&1 | head -1)"
7818 if (echo "$version_string" | grep -q "ld64"); then
7819 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7821 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7825 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7826 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7828 cat >>confdefs.h <<_ACEOF
7829 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7834 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7835 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7836 if test "${llvm_cv_link_use_r+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 ac_cpp='$CPP $CPPFLAGS'
7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7846 CFLAGS="$CFLAGS -Wl,-R."
7847 cat >conftest.$ac_ext <<_ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (ac_try="$ac_link"
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7877 { (case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_try") 2>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (case "(($ac_try" in
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_try") 2>&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 llvm_cv_link_use_r=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 llvm_cv_link_use_r=no
7904 rm -f core conftest.err conftest.$ac_objext \
7905 conftest$ac_exeext conftest.$ac_ext
7908 ac_cpp='$CPP $CPPFLAGS'
7909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7916 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7917 if test "$llvm_cv_link_use_r" = yes ; then
7919 cat >>confdefs.h <<\_ACEOF
7920 #define HAVE_LINK_R 1
7926 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7927 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7928 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7938 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7939 cat >conftest.$ac_ext <<_ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7954 rm -f conftest.$ac_objext conftest$ac_exeext
7955 if { (ac_try="$ac_link"
7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958 *) ac_try_echo=$ac_try;;
7960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961 (eval "$ac_link") 2>conftest.er1
7963 grep -v '^ *+' conftest.er1 >conftest.err
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7969 { (case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_try") 2>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_try") 2>&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 llvm_cv_link_use_export_dynamic=yes
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 llvm_cv_link_use_export_dynamic=no
7996 rm -f core conftest.err conftest.$ac_objext \
7997 conftest$ac_exeext conftest.$ac_ext
8000 ac_cpp='$CPP $CPPFLAGS'
8001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8008 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8009 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8011 cat >>confdefs.h <<\_ACEOF
8012 #define HAVE_LINK_EXPORT_DYNAMIC 1
8018 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8019 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8020 if test "${llvm_cv_link_use_version_script+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 ac_cpp='$CPP $CPPFLAGS'
8025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031 # The following code is from the autoconf manual,
8032 # "11.13: Limitations of Usual Tools".
8033 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8034 # Use mktemp if possible; otherwise fall back on mkdir,
8035 # with $RANDOM to make collisions less likely.
8039 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8041 test -n "$tmp" && test -d "$tmp"
8043 tmp=$TMPDIR/foo$$-$RANDOM
8044 (umask 077 && mkdir "$tmp")
8047 echo "{" > "$tmp/export.map"
8048 echo " global: main;" >> "$tmp/export.map"
8049 echo " local: *;" >> "$tmp/export.map"
8050 echo "};" >> "$tmp/export.map"
8052 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8053 cat >conftest.$ac_ext <<_ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8068 rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (ac_try="$ac_link"
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_link") 2>conftest.er1
8077 grep -v '^ *+' conftest.er1 >conftest.err
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8083 { (case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_try") 2>&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; } &&
8092 { ac_try='test -s conftest$ac_exeext'
8093 { (case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_try") 2>&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; }; then
8102 llvm_cv_link_use_version_script=yes
8104 echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8107 llvm_cv_link_use_version_script=no
8110 rm -f core conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
8112 rm "$tmp/export.map"
8116 ac_cpp='$CPP $CPPFLAGS'
8117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8123 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8124 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8125 if test "$llvm_cv_link_use_version_script" = yes ; then
8126 HAVE_LINK_VERSION_SCRIPT=1
8133 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8135 if test "${ac_cv_c_const+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8148 /* FIXME: Include the comments suggested by Paul. */
8150 /* Ultrix mips cc rejects this. */
8151 typedef int charset[2];
8153 /* SunOS 4.1.1 cc rejects this. */
8154 char const *const *ccp;
8156 /* NEC SVR4.0.2 mips cc rejects this. */
8157 struct point {int x, y;};
8158 static struct point const zero = {0,0};
8159 /* AIX XL C 1.02.0.0 rejects this.
8160 It does not let you subtract one const X* pointer from another in
8161 an arm of an if-expression whose if-part is not a constant
8163 const char *g = "string";
8164 ccp = &g + (g ? g-g : 0);
8165 /* HPUX 7.0 cc rejects these. */
8168 ccp = (char const *const *) p;
8169 { /* SCO 3.2v4 cc rejects this. */
8171 char const *s = 0 ? (char *) 0 : (char const *) 0;
8176 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8178 const int *foo = &x[0];
8181 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8182 typedef const int *iptr;
8186 { /* AIX XL C 1.02.0.0 rejects this saying
8187 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8188 struct s { int j; const int *ap[3]; };
8189 struct s *b; b->j = 5;
8191 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8195 return !x[0] && !zero.x;
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8211 grep -v '^ *+' conftest.er1 >conftest.err
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8217 { (case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_try") 2>&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; } &&
8226 { ac_try='test -s conftest.$ac_objext'
8227 { (case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_try") 2>&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8247 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8248 if test $ac_cv_c_const = no; then
8250 cat >>confdefs.h <<\_ACEOF
8262 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8263 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8264 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8265 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 #include <sys/types.h>
8287 rm -f conftest.$ac_objext
8288 if { (ac_try="$ac_compile"
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_compile") 2>conftest.er1
8296 grep -v '^ *+' conftest.er1 >conftest.err
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8302 { (case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_try") 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; } &&
8311 { ac_try='test -s conftest.$ac_objext'
8312 { (case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_try") 2>&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 eval "$as_ac_Header=yes"
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8326 eval "$as_ac_Header=no"
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 ac_res=`eval echo '${'$as_ac_Header'}'`
8332 { echo "$as_me:$LINENO: result: $ac_res" >&5
8333 echo "${ECHO_T}$ac_res" >&6; }
8334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8335 cat >>confdefs.h <<_ACEOF
8336 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8339 ac_header_dirent=$ac_hdr; break
8343 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8344 if test $ac_header_dirent = dirent.h; then
8345 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8346 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8347 if test "${ac_cv_search_opendir+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 ac_func_search_save_LIBS=$LIBS
8351 cat >conftest.$ac_ext <<_ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8358 /* Override any GCC internal prototype to avoid an error.
8359 Use char because int might match the return type of a GCC
8360 builtin and then its argument prototype would still apply. */
8373 for ac_lib in '' dir; do
8374 if test -z "$ac_lib"; then
8375 ac_res="none required"
8378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8380 rm -f conftest.$ac_objext conftest$ac_exeext
8381 if { (ac_try="$ac_link"
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_link") 2>conftest.er1
8389 grep -v '^ *+' conftest.er1 >conftest.err
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; } &&
8404 { ac_try='test -s conftest$ac_exeext'
8405 { (case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_try") 2>&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
8414 ac_cv_search_opendir=$ac_res
8416 echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8422 rm -f core conftest.err conftest.$ac_objext \
8424 if test "${ac_cv_search_opendir+set}" = set; then
8428 if test "${ac_cv_search_opendir+set}" = set; then
8431 ac_cv_search_opendir=no
8434 LIBS=$ac_func_search_save_LIBS
8436 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8437 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8438 ac_res=$ac_cv_search_opendir
8439 if test "$ac_res" != no; then
8440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8445 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8446 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8447 if test "${ac_cv_search_opendir+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 ac_func_search_save_LIBS=$LIBS
8451 cat >conftest.$ac_ext <<_ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8458 /* Override any GCC internal prototype to avoid an error.
8459 Use char because int might match the return type of a GCC
8460 builtin and then its argument prototype would still apply. */
8473 for ac_lib in '' x; do
8474 if test -z "$ac_lib"; then
8475 ac_res="none required"
8478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (ac_try="$ac_link"
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_link") 2>conftest.er1
8489 grep -v '^ *+' conftest.er1 >conftest.err
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8495 { (case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_try") 2>&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest$ac_exeext'
8505 { (case "(($ac_try" in
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_try") 2>&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_cv_search_opendir=$ac_res
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8522 rm -f core conftest.err conftest.$ac_objext \
8524 if test "${ac_cv_search_opendir+set}" = set; then
8528 if test "${ac_cv_search_opendir+set}" = set; then
8531 ac_cv_search_opendir=no
8534 LIBS=$ac_func_search_save_LIBS
8536 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8537 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8538 ac_res=$ac_cv_search_opendir
8539 if test "$ac_res" != no; then
8540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8547 for ac_header in dlfcn.h
8549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 ac_res=`eval echo '${'$as_ac_Header'}'`
8557 { echo "$as_me:$LINENO: result: $ac_res" >&5
8558 echo "${ECHO_T}$ac_res" >&6; }
8560 # Is the header compilable?
8561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8570 #include <$ac_header>
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8581 grep -v '^ *+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8587 { (case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_try") 2>&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; } &&
8596 { ac_try='test -s conftest.$ac_objext'
8597 { (case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_try") 2>&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 ac_header_compiler=yes
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 ac_header_compiler=no
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8616 echo "${ECHO_T}$ac_header_compiler" >&6; }
8618 # Is the header present?
8619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8621 cat >conftest.$ac_ext <<_ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8627 #include <$ac_header>
8629 if { (ac_try="$ac_cpp conftest.$ac_ext"
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8637 grep -v '^ *+' conftest.er1 >conftest.err
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } >/dev/null; then
8642 if test -s conftest.err; then
8643 ac_cpp_err=$ac_c_preproc_warn_flag
8644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8651 if test -z "$ac_cpp_err"; then
8652 ac_header_preproc=yes
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8657 ac_header_preproc=no
8660 rm -f conftest.err conftest.$ac_ext
8661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8662 echo "${ECHO_T}$ac_header_preproc" >&6; }
8664 # So? What about this header?
8665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8671 ac_header_preproc=yes
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8687 ## ------------------------------------ ##
8688 ## Report this to http://llvm.org/bugs/ ##
8689 ## ------------------------------------ ##
8691 ) | sed "s/^/$as_me: WARNING: /" >&2
8694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 eval "$as_ac_Header=\$ac_header_preproc"
8701 ac_res=`eval echo '${'$as_ac_Header'}'`
8702 { echo "$as_me:$LINENO: result: $ac_res" >&5
8703 echo "${ECHO_T}$ac_res" >&6; }
8706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8707 cat >>confdefs.h <<_ACEOF
8708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8715 # Check whether --enable-ltdl-install was given.
8716 if test "${enable_ltdl_install+set}" = set; then
8717 enableval=$enable_ltdl_install;
8723 if test x"${enable_ltdl_install-no}" != xno; then
8725 INSTALL_LTDL_FALSE='#'
8727 INSTALL_LTDL_TRUE='#'
8733 if test x"${enable_ltdl_convenience-no}" != xno; then
8734 CONVENIENCE_LTDL_TRUE=
8735 CONVENIENCE_LTDL_FALSE='#'
8737 CONVENIENCE_LTDL_TRUE='#'
8738 CONVENIENCE_LTDL_FALSE=
8742 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8743 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8745 libname_spec='lib$name'
8753 shlibpath_overrides_runpath=unknown
8755 dynamic_linker="$host_os ld.so"
8756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8757 if test "$GCC" = yes; then
8758 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8759 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8760 # if the path contains ";" then we assume it to be the separator
8761 # otherwise default to the standard path separator (i.e. ":") - it is
8762 # assumed that no part of a normal pathname contains ";" but that should
8763 # okay in the real world where ";" in dirpaths is itself problematic.
8764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8769 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8771 need_lib_prefix=unknown
8772 hardcode_into_libs=no
8774 # when you set need_version to no, make sure it does not cause -set_version
8775 # flags to be left without arguments
8776 need_version=unknown
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8782 shlibpath_var=LIBPATH
8784 # AIX 3 has no versioning support, so we append a major version to the name.
8785 soname_spec='${libname}${release}${shared_ext}$major'
8792 hardcode_into_libs=yes
8793 if test "$host_cpu" = ia64; then
8794 # AIX 5 supports IA64
8795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8796 shlibpath_var=LD_LIBRARY_PATH
8798 # With GCC up to 2.95.x, collect2 would create an import file
8799 # for dependence libraries. The import file would start with
8800 # the line `#! .'. This would cause the generated library to
8801 # depend on `.', always an invalid library. This was fixed in
8802 # development snapshots of GCC prior to 3.0.
8804 aix4 | aix4.[01] | aix4.[01].*)
8805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8807 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8815 # soname into executable. Probably we can add versioning support to
8816 # collect2, so additional links can be useful in future.
8817 if test "$aix_use_runtimelinking" = yes; then
8818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8819 # instead of lib<name>.a to let people know that these are not
8820 # typical AIX shared libraries.
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8823 # We preserve .a as extension for shared libraries through AIX4.2
8824 # and later when we are not doing run time linking.
8825 library_names_spec='${libname}${release}.a $libname.a'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8828 shlibpath_var=LIBPATH
8833 library_names_spec='$libname.ixlibrary $libname.a'
8834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8835 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'
8839 library_names_spec='${libname}${shared_ext}'
8840 dynamic_linker="$host_os ld.so"
8841 shlibpath_var=LIBRARY_PATH
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8850 shlibpath_var=LD_LIBRARY_PATH
8851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8853 # the default ld.so.conf also contains /usr/contrib/lib and
8854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8855 # libtool to hard-code these into programs
8858 cygwin* | mingw* | pw32*)
8859 version_type=windows
8864 case $GCC,$host_os in
8865 yes,cygwin* | yes,mingw* | yes,pw32*)
8866 library_names_spec='$libname.dll.a'
8867 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8868 postinstall_cmds='base_file=`basename \${file}`~
8869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8870 dldir=$destdir/`dirname \$dlpath`~
8871 test -d \$dldir || mkdir -p \$dldir~
8872 $install_prog $dir/$dlname \$dldir/$dlname~
8873 chmod a+x \$dldir/$dlname'
8874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8875 dlpath=$dir/\$dldll~
8877 shlibpath_overrides_runpath=yes
8881 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8882 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8883 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8886 # MinGW DLLs use traditional 'lib' prefix
8887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8888 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8889 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8890 # It is most probably a Windows format PATH printed by
8891 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8892 # path with ; separators, and with drive letters. We can handle the
8893 # drive letters (cygwin fileutils understands them), so leave them,
8894 # especially as we might pass files found there to a mingw objdump,
8895 # which wouldn't understand a cygwinified path. Ahh.
8896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8902 # pw32 DLLs use 'pw' prefix rather than 'lib'
8903 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8909 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8912 dynamic_linker='Win32 ld.exe'
8913 # FIXME: first we should search . and the directory the executable is in
8917 darwin* | rhapsody*)
8918 dynamic_linker="$host_os dyld"
8922 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8923 soname_spec='${libname}${release}${major}$shared_ext'
8924 shlibpath_overrides_runpath=yes
8925 shlibpath_var=DYLD_LIBRARY_PATH
8926 shrext_cmds='.dylib'
8927 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8928 if test "$GCC" = yes; then
8929 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"`
8931 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8933 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8941 soname_spec='${libname}${release}${shared_ext}$major'
8942 shlibpath_var=LD_LIBRARY_PATH
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 shlibpath_var=LD_LIBRARY_PATH
8956 shlibpath_overrides_runpath=no
8957 hardcode_into_libs=yes
8958 dynamic_linker='GNU ld.so'
8961 freebsd* | dragonfly*)
8962 # DragonFly does not have aout. When/if they implement a new
8963 # versioning mechanism, adjust this.
8964 if test -x /usr/bin/objformat; then
8965 objformat=`/usr/bin/objformat`
8968 freebsd[123].*) objformat=aout ;;
8972 version_type=freebsd-$objformat
8973 case $version_type in
8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8984 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=yes
8989 freebsd3.[01]* | freebsdelf3.[01]*)
8990 shlibpath_overrides_runpath=yes
8991 hardcode_into_libs=yes
8993 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8994 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8995 shlibpath_overrides_runpath=no
8996 hardcode_into_libs=yes
8998 freebsd*) # from 4.6 on
8999 shlibpath_overrides_runpath=yes
9000 hardcode_into_libs=yes
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9010 soname_spec='${libname}${release}${shared_ext}$major'
9011 shlibpath_var=LD_LIBRARY_PATH
9012 hardcode_into_libs=yes
9015 hpux9* | hpux10* | hpux11*)
9016 # Give a soname corresponding to the major version so that dld.sl refuses to
9017 # link against other versions.
9024 hardcode_into_libs=yes
9025 dynamic_linker="$host_os dld.so"
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 if test "X$HPUX_IA64_MODE" = X32; then
9031 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9033 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9039 hardcode_into_libs=yes
9040 dynamic_linker="$host_os dld.sl"
9041 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9050 dynamic_linker="$host_os dld.sl"
9051 shlibpath_var=SHLIB_PATH
9052 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9057 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9058 postinstall_cmds='chmod 555 $lib'
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9066 soname_spec='${libname}${release}${shared_ext}$major'
9067 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=no
9070 hardcode_into_libs=yes
9073 irix5* | irix6* | nonstopux*)
9075 nonstopux*) version_type=nonstopux ;;
9077 if test "$lt_cv_prog_gnu_ld" = yes; then
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9088 irix5* | nonstopux*)
9092 case $LD in # libtool.m4 will add one of these switches to LD
9093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9094 libsuff= shlibsuff= libmagic=32-bit;;
9095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9096 libsuff=32 shlibsuff=N32 libmagic=N32;;
9097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9098 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9099 *) libsuff= shlibsuff= libmagic=never-match;;
9103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9104 shlibpath_overrides_runpath=no
9105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9107 hardcode_into_libs=yes
9110 # No shared lib support for Linux oldld, aout, or coff.
9111 linux*oldld* | linux*aout* | linux*coff*)
9115 # This must be Linux ELF.
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=no
9125 # This implies no fast_install, which is unacceptable.
9126 # Some rework will be needed to allow for fast_install
9127 # before this can be enabled.
9128 hardcode_into_libs=yes
9130 # Append ld.so.conf contents to the search path
9131 if test -f /etc/ld.so.conf; then
9132 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' ' '`
9133 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9136 # We used to test for /lib/ld.so.1 and disable shared libraries on
9137 # powerpc, because MkLinux only supported shared libraries with the
9138 # GNU dynamic linker. Since this was broken with cross compilers,
9139 # most powerpc-linux boxes support dynamic linking these days and
9140 # people can always --disable-shared, the test was removed, and we
9141 # assume the GNU/Linux dynamic linker is in use.
9142 dynamic_linker='GNU/Linux ld.so'
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 shlibpath_overrides_runpath=no
9153 hardcode_into_libs=yes
9154 dynamic_linker='GNU ld.so'
9161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9164 dynamic_linker='NetBSD (a.out) ld.so'
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9167 soname_spec='${libname}${release}${shared_ext}$major'
9168 dynamic_linker='NetBSD ld.elf_so'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9172 hardcode_into_libs=yes
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 shlibpath_var=LD_LIBRARY_PATH
9179 shlibpath_overrides_runpath=yes
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 shlibpath_var=LD_LIBRARY_PATH
9189 shlibpath_overrides_runpath=yes
9194 sys_lib_dlsearch_path_spec="/usr/lib"
9196 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9198 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9199 *) need_version=no ;;
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9203 shlibpath_var=LD_LIBRARY_PATH
9204 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9206 openbsd2.[89] | openbsd2.[89].*)
9207 shlibpath_overrides_runpath=no
9210 shlibpath_overrides_runpath=yes
9214 shlibpath_overrides_runpath=yes
9219 libname_spec='$name'
9222 library_names_spec='$libname${shared_ext} $libname.a'
9223 dynamic_linker='OS/2 ld.exe'
9224 shlibpath_var=LIBPATH
9227 osf3* | osf4* | osf5*)
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9235 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243 soname_spec='${libname}${release}${shared_ext}$major'
9244 shlibpath_var=LD_LIBRARY_PATH
9245 shlibpath_overrides_runpath=yes
9246 hardcode_into_libs=yes
9247 # ldd complains unless libraries are executable
9248 postinstall_cmds='chmod +x $lib'
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9254 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 shlibpath_overrides_runpath=yes
9257 if test "$with_gnu_ld" = yes; then
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 case $host_vendor in
9270 shlibpath_overrides_runpath=no
9272 export_dynamic_flag_spec='${wl}-Blargedynsym'
9273 runpath_var=LD_RUN_PATH
9281 shlibpath_overrides_runpath=no
9282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9288 if test -d /usr/nec ;then
9290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9291 soname_spec='$libname${shared_ext}.$major'
9292 shlibpath_var=LD_LIBRARY_PATH
9296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9297 version_type=freebsd-elf
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 hardcode_into_libs=yes
9304 if test "$with_gnu_ld" = yes; then
9305 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9306 shlibpath_overrides_runpath=no
9308 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9309 shlibpath_overrides_runpath=yes
9312 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9316 sys_lib_dlsearch_path_spec='/usr/lib'
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322 soname_spec='${libname}${release}${shared_ext}$major'
9323 shlibpath_var=LD_LIBRARY_PATH
9330 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9331 echo "${ECHO_T}$dynamic_linker" >&6; }
9332 test "$dynamic_linker" = no && can_build_shared=no
9334 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9335 if test "$GCC" = yes; then
9336 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9340 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9341 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9342 if test "${libltdl_cv_shlibext+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 eval libltdl_cv_shlibext=$shrext_cmds
9350 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9351 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9352 if test -n "$libltdl_cv_shlibext"; then
9354 cat >>confdefs.h <<_ACEOF
9355 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9361 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9362 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9363 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 libltdl_cv_shlibpath_var="$shlibpath_var"
9368 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9369 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9370 if test -n "$libltdl_cv_shlibpath_var"; then
9372 cat >>confdefs.h <<_ACEOF
9373 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9379 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9380 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9381 if test "${libltdl_cv_sys_search_path+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9386 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9387 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9388 if test -n "$libltdl_cv_sys_search_path"; then
9390 for dir in $libltdl_cv_sys_search_path; do
9391 if test -z "$sys_search_path"; then
9392 sys_search_path="$dir"
9394 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9398 cat >>confdefs.h <<_ACEOF
9399 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9404 { echo "$as_me:$LINENO: checking for objdir" >&5
9405 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9406 if test "${libltdl_cv_objdir+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 libltdl_cv_objdir="$objdir"
9410 if test -n "$objdir"; then
9413 rm -f .libs 2>/dev/null
9414 mkdir .libs 2>/dev/null
9415 if test -d .libs; then
9416 libltdl_cv_objdir=.libs
9418 # MS-DOS does not allow filenames that begin with a dot.
9419 libltdl_cv_objdir=_libs
9421 rmdir .libs 2>/dev/null
9425 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9426 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9428 cat >>confdefs.h <<_ACEOF
9429 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9437 # Check for command to grab the raw symbol name followed by C symbol from nm.
9438 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9439 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9440 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 # These are sane defaults that work on at least a few old systems.
9445 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9447 # Character class describing NM global symbol codes.
9448 symcode='[BCDEGRST]'
9450 # Regexp to match symbols that can be accessed directly from C.
9451 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9453 # Transform an extracted symbol line into a proper C declaration
9454 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9456 # Transform an extracted symbol line into symbol name and symbol address
9457 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'"
9459 # Define system-specific variables.
9464 cygwin* | mingw* | pw32*)
9465 symcode='[ABCDGISTW]'
9467 hpux*) # Its linker distinguishes data from code symbols
9468 if test "$host_cpu" = ia64; then
9469 symcode='[ABCDEGRST]'
9471 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9472 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 if test "$host_cpu" = ia64; then
9476 symcode='[ABCDGIRSTW]'
9477 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9478 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'"
9482 symcode='[BCDEGRST]'
9485 symcode='[BCDEGQRST]'
9496 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9504 # Handle CRLF in mingw tool chain
9508 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9512 # If we're using GNU nm, then use its standard symbol codes.
9513 case `$NM -V 2>&1` in
9514 *GNU* | *'with BFD'*)
9515 symcode='[ABCDGIRSTW]' ;;
9518 # Try without a prefix undercore, then with it.
9519 for ac_symprfx in "" "_"; do
9521 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9522 symxfrm="\\1 $ac_symprfx\\2 \\2"
9524 # Write the raw and C identifiers.
9525 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9527 # Check to see that the pipe works correctly.
9531 cat > conftest.$ac_ext <<EOF
9536 void nm_test_func(){}
9540 int main(){nm_test_var='a';nm_test_func();return(0);}
9543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9544 (eval $ac_compile) 2>&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; then
9548 # Now try to grab the symbols.
9550 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9551 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && test -s "$nlist"; then
9555 # Try sorting and uniquifying the output.
9556 if sort "$nlist" | uniq > "$nlist"T; then
9557 mv -f "$nlist"T "$nlist"
9562 # Make sure that we snagged all the symbols we need.
9563 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9564 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9565 cat <<EOF > conftest.$ac_ext
9571 # Now generate the symbol file.
9572 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9574 cat <<EOF >> conftest.$ac_ext
9575 #if defined (__STDC__) && __STDC__
9576 # define lt_ptr_t void *
9578 # define lt_ptr_t char *
9582 /* The mapping between symbol names and symbols. */
9587 lt_preloaded_symbols[] =
9590 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9591 cat <<\EOF >> conftest.$ac_ext
9599 # Now try linking the two files.
9600 mv conftest.$ac_objext conftstm.$ac_objext
9601 lt_save_LIBS="$LIBS"
9602 lt_save_CFLAGS="$CFLAGS"
9603 LIBS="conftstm.$ac_objext"
9604 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606 (eval $ac_link) 2>&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9612 LIBS="$lt_save_LIBS"
9613 CFLAGS="$lt_save_CFLAGS"
9615 echo "cannot find nm_test_func in $nlist" >&5
9618 echo "cannot find nm_test_var in $nlist" >&5
9621 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9624 echo "$progname: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9627 rm -f conftest* conftst*
9629 # Do not use the global_symbol_pipe unless it works.
9630 if test "$pipe_works" = yes; then
9633 lt_cv_sys_global_symbol_pipe=
9639 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9640 lt_cv_sys_global_symbol_to_cdecl=
9642 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9643 { echo "$as_me:$LINENO: result: failed" >&5
9644 echo "${ECHO_T}failed" >&6; }
9646 { echo "$as_me:$LINENO: result: ok" >&5
9647 echo "${ECHO_T}ok" >&6; }
9651 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9652 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9653 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9657 libltdl_cv_preloaded_symbols=yes
9659 libltdl_cv_preloaded_symbols=no
9663 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9664 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9665 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_PRELOADED_SYMBOLS 1
9676 ac_cpp='$CPP $CPPFLAGS'
9677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9682 { echo "$as_me:$LINENO: checking for shl_load" >&5
9683 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9684 if test "${ac_cv_func_shl_load+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 cat >conftest.$ac_ext <<_ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9695 #define shl_load innocuous_shl_load
9697 /* System header to define __stub macros and hopefully few prototypes,
9698 which can conflict with char shl_load (); below.
9699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9700 <limits.h> exists even on freestanding compilers. */
9703 # include <limits.h>
9705 # include <assert.h>
9710 /* Override any GCC internal prototype to avoid an error.
9711 Use char because int might match the return type of a GCC
9712 builtin and then its argument prototype would still apply. */
9717 /* The GNU C library defines this for functions which it implements
9718 to always fail with ENOSYS. Some functions are actually named
9719 something starting with __ and the normal name is an alias. */
9720 #if defined __stub_shl_load || defined __stub___shl_load
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_link") 2>conftest.er1
9741 grep -v '^ *+' conftest.er1 >conftest.err
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9747 { (case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_try") 2>&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; } &&
9756 { ac_try='test -s conftest$ac_exeext'
9757 { (case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_try") 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9766 ac_cv_func_shl_load=yes
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_cv_func_shl_load=no
9774 rm -f core conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9777 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9778 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9779 if test $ac_cv_func_shl_load = yes; then
9781 cat >>confdefs.h <<\_ACEOF
9782 #define HAVE_SHL_LOAD 1
9786 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9787 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 ac_check_lib_save_LIBS=$LIBS
9793 cat >conftest.$ac_ext <<_ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9800 /* Override any GCC internal prototype to avoid an error.
9801 Use char because int might match the return type of a GCC
9802 builtin and then its argument prototype would still apply. */
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (ac_try="$ac_link"
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_link") 2>conftest.er1
9824 grep -v '^ *+' conftest.er1 >conftest.err
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9830 { (case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_try") 2>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; } &&
9839 { ac_try='test -s conftest$ac_exeext'
9840 { (case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_try") 2>&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9849 ac_cv_lib_dld_shl_load=yes
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9854 ac_cv_lib_dld_shl_load=no
9857 rm -f core conftest.err conftest.$ac_objext \
9858 conftest$ac_exeext conftest.$ac_ext
9859 LIBS=$ac_check_lib_save_LIBS
9861 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9862 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9863 if test $ac_cv_lib_dld_shl_load = yes; then
9865 cat >>confdefs.h <<\_ACEOF
9866 #define HAVE_SHL_LOAD 1
9869 LIBADD_DL="$LIBADD_DL -ldld"
9871 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9872 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9876 ac_check_lib_save_LIBS=$LIBS
9878 cat >conftest.$ac_ext <<_ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9885 /* Override any GCC internal prototype to avoid an error.
9886 Use char because int might match the return type of a GCC
9887 builtin and then its argument prototype would still apply. */
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (ac_try="$ac_link"
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_link") 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9915 { (case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_try") 2>&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; } &&
9924 { ac_try='test -s conftest$ac_exeext'
9925 { (case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_try") 2>&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 ac_cv_lib_dl_dlopen=yes
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9939 ac_cv_lib_dl_dlopen=no
9942 rm -f core conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9944 LIBS=$ac_check_lib_save_LIBS
9946 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9947 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9948 if test $ac_cv_lib_dl_dlopen = yes; then
9950 cat >>confdefs.h <<\_ACEOF
9951 #define HAVE_LIBDL 1
9954 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9956 cat >conftest.$ac_ext <<_ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_link") 2>conftest.er1
9983 grep -v '^ *+' conftest.er1 >conftest.err
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try='test -s conftest$ac_exeext'
9999 { (case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_try") 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10009 cat >>confdefs.h <<\_ACEOF
10010 #define HAVE_LIBDL 1
10012 libltdl_cv_func_dlopen="yes"
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10017 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10018 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10019 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 ac_check_lib_save_LIBS=$LIBS
10023 LIBS="-lsvld $LIBS"
10024 cat >conftest.$ac_ext <<_ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10031 /* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (ac_try="$ac_link"
10048 case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053 (eval "$ac_link") 2>conftest.er1
10055 grep -v '^ *+' conftest.er1 >conftest.err
10057 cat conftest.err >&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } &&
10060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10061 { (case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_try") 2>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; } &&
10070 { ac_try='test -s conftest$ac_exeext'
10071 { (case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_try") 2>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
10080 ac_cv_lib_svld_dlopen=yes
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 ac_cv_lib_svld_dlopen=no
10088 rm -f core conftest.err conftest.$ac_objext \
10089 conftest$ac_exeext conftest.$ac_ext
10090 LIBS=$ac_check_lib_save_LIBS
10092 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10093 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10094 if test $ac_cv_lib_svld_dlopen = yes; then
10096 cat >>confdefs.h <<\_ACEOF
10097 #define HAVE_LIBDL 1
10100 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10102 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10103 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10104 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 ac_check_lib_save_LIBS=$LIBS
10109 cat >conftest.$ac_ext <<_ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10116 /* Override any GCC internal prototype to avoid an error.
10117 Use char because int might match the return type of a GCC
10118 builtin and then its argument prototype would still apply. */
10126 return dld_link ();
10131 rm -f conftest.$ac_objext conftest$ac_exeext
10132 if { (ac_try="$ac_link"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_link") 2>conftest.er1
10140 grep -v '^ *+' conftest.er1 >conftest.err
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } &&
10145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10146 { (case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151 (eval "$ac_try") 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try='test -s conftest$ac_exeext'
10156 { (case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_try") 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 ac_cv_lib_dld_dld_link=yes
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 ac_cv_lib_dld_dld_link=no
10173 rm -f core conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext conftest.$ac_ext
10175 LIBS=$ac_check_lib_save_LIBS
10177 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10178 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10179 if test $ac_cv_lib_dld_dld_link = yes; then
10181 cat >>confdefs.h <<\_ACEOF
10185 LIBADD_DL="$LIBADD_DL -ldld"
10187 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10188 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10189 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 cat >conftest.$ac_ext <<_ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10200 #define _dyld_func_lookup innocuous__dyld_func_lookup
10202 /* System header to define __stub macros and hopefully few prototypes,
10203 which can conflict with char _dyld_func_lookup (); below.
10204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10205 <limits.h> exists even on freestanding compilers. */
10208 # include <limits.h>
10210 # include <assert.h>
10213 #undef _dyld_func_lookup
10215 /* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */
10221 char _dyld_func_lookup ();
10222 /* The GNU C library defines this for functions which it implements
10223 to always fail with ENOSYS. Some functions are actually named
10224 something starting with __ and the normal name is an alias. */
10225 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10232 return _dyld_func_lookup ();
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (ac_try="$ac_link"
10239 case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244 (eval "$ac_link") 2>conftest.er1
10246 grep -v '^ *+' conftest.er1 >conftest.err
10248 cat conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10252 { (case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_try") 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; } &&
10261 { ac_try='test -s conftest$ac_exeext'
10262 { (case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_try") 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271 ac_cv_func__dyld_func_lookup=yes
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10276 ac_cv_func__dyld_func_lookup=no
10279 rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10282 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10283 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10284 if test $ac_cv_func__dyld_func_lookup = yes; then
10286 cat >>confdefs.h <<\_ACEOF
10287 #define HAVE_DYLD 1
10301 rm -f core conftest.err conftest.$ac_objext \
10302 conftest$ac_exeext conftest.$ac_ext
10313 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10315 lt_save_LIBS="$LIBS"
10316 LIBS="$LIBS $LIBADD_DL"
10318 for ac_func in dlerror
10320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 cat >conftest.$ac_ext <<_ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10334 #define $ac_func innocuous_$ac_func
10336 /* System header to define __stub macros and hopefully few prototypes,
10337 which can conflict with char $ac_func (); below.
10338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339 <limits.h> exists even on freestanding compilers. */
10342 # include <limits.h>
10344 # include <assert.h>
10349 /* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10356 /* The GNU C library defines this for functions which it implements
10357 to always fail with ENOSYS. Some functions are actually named
10358 something starting with __ and the normal name is an alias. */
10359 #if defined __stub_$ac_func || defined __stub___$ac_func
10366 return $ac_func ();
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (ac_try="$ac_link"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_link") 2>conftest.er1
10380 grep -v '^ *+' conftest.er1 >conftest.err
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386 { (case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_try") 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; }; then
10405 eval "$as_ac_var=yes"
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10410 eval "$as_ac_var=no"
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10416 ac_res=`eval echo '${'$as_ac_var'}'`
10417 { echo "$as_me:$LINENO: result: $ac_res" >&5
10418 echo "${ECHO_T}$ac_res" >&6; }
10419 if test `eval echo '${'$as_ac_var'}'` = yes; then
10420 cat >>confdefs.h <<_ACEOF
10421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10427 LIBS="$lt_save_LIBS"
10430 ac_cpp='$CPP $CPPFLAGS'
10431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10437 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10438 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10439 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 ac_cv_sys_symbol_underscore=no
10443 cat > conftest.$ac_ext <<EOF
10444 void nm_test_func(){}
10445 int main(){nm_test_func;return 0;}
10447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10448 (eval $ac_compile) 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; then
10452 # Now try to grab the symbols.
10453 ac_nlist=conftest.nm
10454 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10455 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } && test -s "$ac_nlist"; then
10459 # See whether the symbols have a leading underscore.
10460 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10461 ac_cv_sys_symbol_underscore=yes
10463 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10466 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10470 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10473 echo "configure: failed program was:" >&5
10479 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10480 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10483 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10484 if test x"$libltdl_cv_func_dlopen" = xyes ||
10485 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10486 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10487 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10488 if test "${libltdl_cv_need_uscore+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 libltdl_cv_need_uscore=unknown
10493 LIBS="$LIBS $LIBADD_DL"
10494 if test "$cross_compiling" = yes; then :
10495 libltdl_cv_need_uscore=cross
10497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10498 lt_status=$lt_dlunknown
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10500 "configure"
10501 #include "confdefs.h"
10510 # define LT_DLGLOBAL RTLD_GLOBAL
10513 # define LT_DLGLOBAL DL_GLOBAL
10515 # define LT_DLGLOBAL 0
10519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10520 find out it does not work in some platform. */
10521 #ifndef LT_DLLAZY_OR_NOW
10523 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10526 # define LT_DLLAZY_OR_NOW DL_LAZY
10529 # define LT_DLLAZY_OR_NOW RTLD_NOW
10532 # define LT_DLLAZY_OR_NOW DL_NOW
10534 # define LT_DLLAZY_OR_NOW 0
10542 extern "C" void exit (int);
10545 void fnord() { int i=42;}
10548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10549 int status = $lt_dlunknown;
10553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10554 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10555 /* dlclose (self); */
10563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564 (eval $ac_link) 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10568 (./conftest; exit; ) >&5 2>/dev/null
10570 case x$lt_status in
10571 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10572 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10573 x$lt_dlunknown|x*) ;;
10576 # compilation failed
10585 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10586 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10590 if test x"$libltdl_cv_need_uscore" = xyes; then
10592 cat >>confdefs.h <<\_ACEOF
10593 #define NEED_USCORE 1
10599 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10600 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10601 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 # PORTME does your system automatically load deplibs for dlopen?
10605 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10606 # For now, we just catch OSes we know something about -- in the
10607 # future, we'll try test this programmatically.
10608 libltdl_cv_sys_dlopen_deplibs=unknown
10610 aix3*|aix4.1.*|aix4.2.*)
10611 # Unknown whether this is true for these versions of AIX, but
10612 # we want this `case' here to explicitly catch those versions.
10613 libltdl_cv_sys_dlopen_deplibs=unknown
10616 libltdl_cv_sys_dlopen_deplibs=yes
10619 # Assuming the user has installed a libdl from somewhere, this is true
10620 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10621 libltdl_cv_sys_dlopen_deplibs=yes
10623 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10624 # GNU and its variants, using gnu ld.so (Glibc)
10625 libltdl_cv_sys_dlopen_deplibs=yes
10628 libltdl_cv_sys_dlopen_deplibs=yes
10631 libltdl_cv_sys_dlopen_deplibs=yes
10633 irix[12345]*|irix6.[01]*)
10634 # Catch all versions of IRIX before 6.2, and indicate that we don't
10635 # know how it worked for any of those versions.
10636 libltdl_cv_sys_dlopen_deplibs=unknown
10639 # The case above catches anything before 6.2, and it's known that
10640 # at 6.2 and later dlopen does load deplibs.
10641 libltdl_cv_sys_dlopen_deplibs=yes
10644 libltdl_cv_sys_dlopen_deplibs=yes
10647 libltdl_cv_sys_dlopen_deplibs=yes
10650 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10651 # it did *not* use an RPATH in a shared library to find objects the
10652 # library depends on, so we explicitly say `no'.
10653 libltdl_cv_sys_dlopen_deplibs=no
10655 osf5.0|osf5.0a|osf5.1)
10656 # dlopen *does* load deplibs and with the right loader patch applied
10657 # it even uses RPATH in a shared library to search for shared objects
10658 # that the library depends on, but there's no easy way to know if that
10659 # patch is installed. Since this is the case, all we can really
10660 # say is unknown -- it depends on the patch being installed. If
10661 # it is, this changes to `yes'. Without it, it would be `no'.
10662 libltdl_cv_sys_dlopen_deplibs=unknown
10665 # the two cases above should catch all versions of osf <= 5.1. Read
10666 # the comments above for what we know about them.
10667 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10668 # is used to find them so we can finally say `yes'.
10669 libltdl_cv_sys_dlopen_deplibs=yes
10672 libltdl_cv_sys_dlopen_deplibs=yes
10674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10675 libltdl_cv_sys_dlopen_deplibs=yes
10680 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10681 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10682 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10684 cat >>confdefs.h <<\_ACEOF
10685 #define LTDL_DLOPEN_DEPLIBS 1
10691 for ac_header in argz.h
10693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 ac_res=`eval echo '${'$as_ac_Header'}'`
10701 { echo "$as_me:$LINENO: result: $ac_res" >&5
10702 echo "${ECHO_T}$ac_res" >&6; }
10704 # Is the header compilable?
10705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10707 cat >conftest.$ac_ext <<_ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h. */
10713 $ac_includes_default
10714 #include <$ac_header>
10716 rm -f conftest.$ac_objext
10717 if { (ac_try="$ac_compile"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_compile") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } &&
10730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; } &&
10740 { ac_try='test -s conftest.$ac_objext'
10741 { (case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_try") 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10750 ac_header_compiler=yes
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10755 ac_header_compiler=no
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10760 echo "${ECHO_T}$ac_header_compiler" >&6; }
10762 # Is the header present?
10763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10765 cat >conftest.$ac_ext <<_ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 #include <$ac_header>
10773 if { (ac_try="$ac_cpp conftest.$ac_ext"
10774 case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } >/dev/null; then
10786 if test -s conftest.err; then
10787 ac_cpp_err=$ac_c_preproc_warn_flag
10788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10795 if test -z "$ac_cpp_err"; then
10796 ac_header_preproc=yes
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_header_preproc=no
10804 rm -f conftest.err conftest.$ac_ext
10805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10806 echo "${ECHO_T}$ac_header_preproc" >&6; }
10808 # So? What about this header?
10809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10815 ac_header_preproc=yes
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10831 ## ------------------------------------ ##
10832 ## Report this to http://llvm.org/bugs/ ##
10833 ## ------------------------------------ ##
10835 ) | sed "s/^/$as_me: WARNING: /" >&2
10838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 eval "$as_ac_Header=\$ac_header_preproc"
10845 ac_res=`eval echo '${'$as_ac_Header'}'`
10846 { echo "$as_me:$LINENO: result: $ac_res" >&5
10847 echo "${ECHO_T}$ac_res" >&6; }
10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851 cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10860 { echo "$as_me:$LINENO: checking for error_t" >&5
10861 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10862 if test "${ac_cv_type_error_t+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 cat >conftest.$ac_ext <<_ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10875 typedef error_t ac__type_new_;
10879 if ((ac__type_new_ *) 0)
10881 if (sizeof (ac__type_new_))
10887 rm -f conftest.$ac_objext
10888 if { (ac_try="$ac_compile"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_compile") 2>conftest.er1
10896 grep -v '^ *+' conftest.er1 >conftest.err
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10902 { (case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_try") 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; } &&
10911 { ac_try='test -s conftest.$ac_objext'
10912 { (case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_try") 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 ac_cv_type_error_t=yes
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 ac_cv_type_error_t=no
10929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10932 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10933 if test $ac_cv_type_error_t = yes; then
10935 cat >>confdefs.h <<_ACEOF
10936 #define HAVE_ERROR_T 1
10942 cat >>confdefs.h <<\_ACEOF
10943 #define error_t int
10954 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10970 #define $ac_func innocuous_$ac_func
10972 /* System header to define __stub macros and hopefully few prototypes,
10973 which can conflict with char $ac_func (); below.
10974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975 <limits.h> exists even on freestanding compilers. */
10978 # include <limits.h>
10980 # include <assert.h>
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10992 /* The GNU C library defines this for functions which it implements
10993 to always fail with ENOSYS. Some functions are actually named
10994 something starting with __ and the normal name is an alias. */
10995 #if defined __stub_$ac_func || defined __stub___$ac_func
11002 return $ac_func ();
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (ac_try="$ac_link"
11009 case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_link") 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11022 { (case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_try") 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; } &&
11031 { ac_try='test -s conftest$ac_exeext'
11032 { (case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_try") 2>&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; }; then
11041 eval "$as_ac_var=yes"
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11046 eval "$as_ac_var=no"
11049 rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11052 ac_res=`eval echo '${'$as_ac_var'}'`
11053 { echo "$as_me:$LINENO: result: $ac_res" >&5
11054 echo "${ECHO_T}$ac_res" >&6; }
11055 if test `eval echo '${'$as_ac_var'}'` = yes; then
11056 cat >>confdefs.h <<_ACEOF
11057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11090 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 ac_res=`eval echo '${'$as_ac_Header'}'`
11101 { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11104 # Is the header compilable?
11105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11107 cat >conftest.$ac_ext <<_ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 $ac_includes_default
11114 #include <$ac_header>
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_compile") 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; } &&
11140 { ac_try='test -s conftest.$ac_objext'
11141 { (case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_try") 2>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_header_compiler=yes
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_header_compiler=no
11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11160 echo "${ECHO_T}$ac_header_compiler" >&6; }
11162 # Is the header present?
11163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11165 cat >conftest.$ac_ext <<_ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 #include <$ac_header>
11173 if { (ac_try="$ac_cpp conftest.$ac_ext"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11181 grep -v '^ *+' conftest.er1 >conftest.err
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } >/dev/null; then
11186 if test -s conftest.err; then
11187 ac_cpp_err=$ac_c_preproc_warn_flag
11188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11195 if test -z "$ac_cpp_err"; then
11196 ac_header_preproc=yes
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_header_preproc=no
11204 rm -f conftest.err conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 echo "${ECHO_T}$ac_header_preproc" >&6; }
11208 # So? What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215 ac_header_preproc=yes
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11231 ## ------------------------------------ ##
11232 ## Report this to http://llvm.org/bugs/ ##
11233 ## ------------------------------------ ##
11235 ) | sed "s/^/$as_me: WARNING: /" >&2
11238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 eval "$as_ac_Header=\$ac_header_preproc"
11245 ac_res=`eval echo '${'$as_ac_Header'}'`
11246 { echo "$as_me:$LINENO: result: $ac_res" >&5
11247 echo "${ECHO_T}$ac_res" >&6; }
11250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11251 cat >>confdefs.h <<_ACEOF
11252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11263 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 ac_res=`eval echo '${'$as_ac_Header'}'`
11273 { echo "$as_me:$LINENO: result: $ac_res" >&5
11274 echo "${ECHO_T}$ac_res" >&6; }
11276 # Is the header compilable?
11277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11279 cat >conftest.$ac_ext <<_ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11285 $ac_includes_default
11286 #include <$ac_header>
11288 rm -f conftest.$ac_objext
11289 if { (ac_try="$ac_compile"
11290 case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_compile") 2>conftest.er1
11297 grep -v '^ *+' conftest.er1 >conftest.err
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
11302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11303 { (case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_try") 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest.$ac_objext'
11313 { (case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_try") 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_header_compiler=yes
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_header_compiler=no
11330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11332 echo "${ECHO_T}$ac_header_compiler" >&6; }
11334 # Is the header present?
11335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11337 cat >conftest.$ac_ext <<_ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 #include <$ac_header>
11345 if { (ac_try="$ac_cpp conftest.$ac_ext"
11346 case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11353 grep -v '^ *+' conftest.er1 >conftest.err
11355 cat conftest.err >&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } >/dev/null; then
11358 if test -s conftest.err; then
11359 ac_cpp_err=$ac_c_preproc_warn_flag
11360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11367 if test -z "$ac_cpp_err"; then
11368 ac_header_preproc=yes
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11373 ac_header_preproc=no
11376 rm -f conftest.err conftest.$ac_ext
11377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378 echo "${ECHO_T}$ac_header_preproc" >&6; }
11380 # So? What about this header?
11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387 ac_header_preproc=yes
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11403 ## ------------------------------------ ##
11404 ## Report this to http://llvm.org/bugs/ ##
11405 ## ------------------------------------ ##
11407 ) | sed "s/^/$as_me: WARNING: /" >&2
11410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 eval "$as_ac_Header=\$ac_header_preproc"
11417 ac_res=`eval echo '${'$as_ac_Header'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423 cat >>confdefs.h <<_ACEOF
11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11433 for ac_header in string.h strings.h
11435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 ac_res=`eval echo '${'$as_ac_Header'}'`
11443 { echo "$as_me:$LINENO: result: $ac_res" >&5
11444 echo "${ECHO_T}$ac_res" >&6; }
11446 # Is the header compilable?
11447 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11449 cat >conftest.$ac_ext <<_ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 $ac_includes_default
11456 #include <$ac_header>
11458 rm -f conftest.$ac_objext
11459 if { (ac_try="$ac_compile"
11460 case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_compile") 2>conftest.er1
11467 grep -v '^ *+' conftest.er1 >conftest.err
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11473 { (case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478 (eval "$ac_try") 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; } &&
11482 { ac_try='test -s conftest.$ac_objext'
11483 { (case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_try") 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 ac_header_compiler=yes
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 ac_header_compiler=no
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11502 echo "${ECHO_T}$ac_header_compiler" >&6; }
11504 # Is the header present?
11505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11507 cat >conftest.$ac_ext <<_ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 #include <$ac_header>
11515 if { (ac_try="$ac_cpp conftest.$ac_ext"
11516 case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } >/dev/null; then
11528 if test -s conftest.err; then
11529 ac_cpp_err=$ac_c_preproc_warn_flag
11530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11537 if test -z "$ac_cpp_err"; then
11538 ac_header_preproc=yes
11540 echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 ac_header_preproc=no
11546 rm -f conftest.err conftest.$ac_ext
11547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11548 echo "${ECHO_T}$ac_header_preproc" >&6; }
11550 # So? What about this header?
11551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11557 ac_header_preproc=yes
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11573 ## ------------------------------------ ##
11574 ## Report this to http://llvm.org/bugs/ ##
11575 ## ------------------------------------ ##
11577 ) | sed "s/^/$as_me: WARNING: /" >&2
11580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 eval "$as_ac_Header=\$ac_header_preproc"
11587 ac_res=`eval echo '${'$as_ac_Header'}'`
11588 { echo "$as_me:$LINENO: result: $ac_res" >&5
11589 echo "${ECHO_T}$ac_res" >&6; }
11592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11593 cat >>confdefs.h <<_ACEOF
11594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11604 for ac_func in strchr index
11606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 cat >conftest.$ac_ext <<_ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11620 #define $ac_func innocuous_$ac_func
11622 /* System header to define __stub macros and hopefully few prototypes,
11623 which can conflict with char $ac_func (); below.
11624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625 <limits.h> exists even on freestanding compilers. */
11628 # include <limits.h>
11630 # include <assert.h>
11635 /* Override any GCC internal prototype to avoid an error.
11636 Use char because int might match the return type of a GCC
11637 builtin and then its argument prototype would still apply. */
11642 /* The GNU C library defines this for functions which it implements
11643 to always fail with ENOSYS. Some functions are actually named
11644 something starting with __ and the normal name is an alias. */
11645 #if defined __stub_$ac_func || defined __stub___$ac_func
11652 return $ac_func ();
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (ac_try="$ac_link"
11659 case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_link") 2>conftest.er1
11666 grep -v '^ *+' conftest.er1 >conftest.err
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11672 { (case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_try") 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_try") 2>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 eval "$as_ac_var=yes"
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 eval "$as_ac_var=no"
11699 rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
11702 ac_res=`eval echo '${'$as_ac_var'}'`
11703 { echo "$as_me:$LINENO: result: $ac_res" >&5
11704 echo "${ECHO_T}$ac_res" >&6; }
11705 if test `eval echo '${'$as_ac_var'}'` = yes; then
11706 cat >>confdefs.h <<_ACEOF
11707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11715 for ac_func in strrchr rindex
11717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 cat >conftest.$ac_ext <<_ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11731 #define $ac_func innocuous_$ac_func
11733 /* System header to define __stub macros and hopefully few prototypes,
11734 which can conflict with char $ac_func (); below.
11735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11736 <limits.h> exists even on freestanding compilers. */
11739 # include <limits.h>
11741 # include <assert.h>
11746 /* Override any GCC internal prototype to avoid an error.
11747 Use char because int might match the return type of a GCC
11748 builtin and then its argument prototype would still apply. */
11753 /* The GNU C library defines this for functions which it implements
11754 to always fail with ENOSYS. Some functions are actually named
11755 something starting with __ and the normal name is an alias. */
11756 #if defined __stub_$ac_func || defined __stub___$ac_func
11763 return $ac_func ();
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (ac_try="$ac_link"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_link") 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783 { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_try") 2>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; } &&
11792 { ac_try='test -s conftest$ac_exeext'
11793 { (case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_try") 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 eval "$as_ac_var=yes"
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 eval "$as_ac_var=no"
11810 rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11813 ac_res=`eval echo '${'$as_ac_var'}'`
11814 { echo "$as_me:$LINENO: result: $ac_res" >&5
11815 echo "${ECHO_T}$ac_res" >&6; }
11816 if test `eval echo '${'$as_ac_var'}'` = yes; then
11817 cat >>confdefs.h <<_ACEOF
11818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11826 for ac_func in memcpy bcopy
11828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 cat >conftest.$ac_ext <<_ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11842 #define $ac_func innocuous_$ac_func
11844 /* System header to define __stub macros and hopefully few prototypes,
11845 which can conflict with char $ac_func (); below.
11846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847 <limits.h> exists even on freestanding compilers. */
11850 # include <limits.h>
11852 # include <assert.h>
11857 /* Override any GCC internal prototype to avoid an error.
11858 Use char because int might match the return type of a GCC
11859 builtin and then its argument prototype would still apply. */
11864 /* The GNU C library defines this for functions which it implements
11865 to always fail with ENOSYS. Some functions are actually named
11866 something starting with __ and the normal name is an alias. */
11867 #if defined __stub_$ac_func || defined __stub___$ac_func
11874 return $ac_func ();
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (ac_try="$ac_link"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_link") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11894 { (case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_try") 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest$ac_exeext'
11904 { (case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_try") 2>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 eval "$as_ac_var=yes"
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 eval "$as_ac_var=no"
11921 rm -f core conftest.err conftest.$ac_objext \
11922 conftest$ac_exeext conftest.$ac_ext
11924 ac_res=`eval echo '${'$as_ac_var'}'`
11925 { echo "$as_me:$LINENO: result: $ac_res" >&5
11926 echo "${ECHO_T}$ac_res" >&6; }
11927 if test `eval echo '${'$as_ac_var'}'` = yes; then
11928 cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11937 for ac_func in memmove strcmp
11939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 cat >conftest.$ac_ext <<_ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11953 #define $ac_func innocuous_$ac_func
11955 /* System header to define __stub macros and hopefully few prototypes,
11956 which can conflict with char $ac_func (); below.
11957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958 <limits.h> exists even on freestanding compilers. */
11961 # include <limits.h>
11963 # include <assert.h>
11968 /* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11975 /* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978 #if defined __stub_$ac_func || defined __stub___$ac_func
11985 return $ac_func ();
11990 rm -f conftest.$ac_objext conftest$ac_exeext
11991 if { (ac_try="$ac_link"
11992 case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_link") 2>conftest.er1
11999 grep -v '^ *+' conftest.er1 >conftest.err
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12005 { (case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_try") 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; } &&
12014 { ac_try='test -s conftest$ac_exeext'
12015 { (case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_try") 2>&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 eval "$as_ac_var=yes"
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12029 eval "$as_ac_var=no"
12032 rm -f core conftest.err conftest.$ac_objext \
12033 conftest$ac_exeext conftest.$ac_ext
12035 ac_res=`eval echo '${'$as_ac_var'}'`
12036 { echo "$as_me:$LINENO: result: $ac_res" >&5
12037 echo "${ECHO_T}$ac_res" >&6; }
12038 if test `eval echo '${'$as_ac_var'}'` = yes; then
12039 cat >>confdefs.h <<_ACEOF
12040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12049 for ac_func in closedir opendir readdir
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 cat >conftest.$ac_ext <<_ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12065 #define $ac_func innocuous_$ac_func
12067 /* System header to define __stub macros and hopefully few prototypes,
12068 which can conflict with char $ac_func (); below.
12069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12070 <limits.h> exists even on freestanding compilers. */
12073 # include <limits.h>
12075 # include <assert.h>
12080 /* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
12087 /* The GNU C library defines this for functions which it implements
12088 to always fail with ENOSYS. Some functions are actually named
12089 something starting with __ and the normal name is an alias. */
12090 #if defined __stub_$ac_func || defined __stub___$ac_func
12097 return $ac_func ();
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (ac_try="$ac_link"
12104 case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_link") 2>conftest.er1
12111 grep -v '^ *+' conftest.er1 >conftest.err
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } &&
12116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12117 { (case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_try") 2>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest$ac_exeext'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 eval "$as_ac_var=yes"
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12141 eval "$as_ac_var=no"
12144 rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12147 ac_res=`eval echo '${'$as_ac_var'}'`
12148 { echo "$as_me:$LINENO: result: $ac_res" >&5
12149 echo "${ECHO_T}$ac_res" >&6; }
12150 if test `eval echo '${'$as_ac_var'}'` = yes; then
12151 cat >>confdefs.h <<_ACEOF
12152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12160 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12161 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12174 if test "$GCC" != "yes" && test "$ICC" != "yes"
12176 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12177 echo "$as_me: error: gcc|icc required but not found" >&2;}
12178 { (exit 1); exit 1; }; }
12181 if test "$GXX" != "yes" && test "$IXX" != "yes"
12183 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12184 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12185 { (exit 1); exit 1; }; }
12188 if test "$GCC" = "yes"
12190 cat >conftest.$ac_ext <<_ACEOF
12191 #if !defined(__GNUC__) || __GNUC__ < 3
12192 #error Unsupported GCC version
12196 rm -f conftest.$ac_objext
12197 if { (ac_try="$ac_compile"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_compile") 2>conftest.er1
12205 grep -v '^ *+' conftest.er1 >conftest.err
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } &&
12210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12211 { (case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_try") 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest.$ac_objext'
12221 { (case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_try") 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12235 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12236 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12237 { (exit 1); exit 1; }; }
12240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243 if test -z "$llvm_cv_gnu_make_command"
12245 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12246 echo "$as_me: error: GNU Make required but not found" >&2;}
12247 { (exit 1); exit 1; }; }
12250 { echo "$as_me:$LINENO: result: ok" >&5
12251 echo "${ECHO_T}ok" >&6; }
12253 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12254 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12255 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12257 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12259 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12260 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12264 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12265 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12266 if test "${ac_cv_lib_m_sin+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12269 ac_check_lib_save_LIBS=$LIBS
12271 cat >conftest.$ac_ext <<_ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12278 /* Override any GCC internal prototype to avoid an error.
12279 Use char because int might match the return type of a GCC
12280 builtin and then its argument prototype would still apply. */
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (ac_try="$ac_link"
12295 case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_link") 2>conftest.er1
12302 grep -v '^ *+' conftest.er1 >conftest.err
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12308 { (case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_try") 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try='test -s conftest$ac_exeext'
12318 { (case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_try") 2>&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; }; then
12327 ac_cv_lib_m_sin=yes
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12335 rm -f core conftest.err conftest.$ac_objext \
12336 conftest$ac_exeext conftest.$ac_ext
12337 LIBS=$ac_check_lib_save_LIBS
12339 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12340 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12341 if test $ac_cv_lib_m_sin = yes; then
12342 cat >>confdefs.h <<_ACEOF
12343 #define HAVE_LIBM 1
12350 if test "$llvm_cv_os_type" = "MingW" ; then
12352 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12353 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12354 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12357 ac_check_lib_save_LIBS=$LIBS
12358 LIBS="-limagehlp $LIBS"
12359 cat >conftest.$ac_ext <<_ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12375 rm -f conftest.$ac_objext conftest$ac_exeext
12376 if { (ac_try="$ac_link"
12377 case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_link") 2>conftest.er1
12384 grep -v '^ *+' conftest.er1 >conftest.err
12386 cat conftest.err >&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } &&
12389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12390 { (case "(($ac_try" in
12391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392 *) ac_try_echo=$ac_try;;
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395 (eval "$ac_try") 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; } &&
12399 { ac_try='test -s conftest$ac_exeext'
12400 { (case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_try") 2>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
12409 ac_cv_lib_imagehlp_main=yes
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12414 ac_cv_lib_imagehlp_main=no
12417 rm -f core conftest.err conftest.$ac_objext \
12418 conftest$ac_exeext conftest.$ac_ext
12419 LIBS=$ac_check_lib_save_LIBS
12421 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12422 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12423 if test $ac_cv_lib_imagehlp_main = yes; then
12424 cat >>confdefs.h <<_ACEOF
12425 #define HAVE_LIBIMAGEHLP 1
12428 LIBS="-limagehlp $LIBS"
12433 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12434 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12435 if test "${ac_cv_lib_psapi_main+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 ac_check_lib_save_LIBS=$LIBS
12439 LIBS="-lpsapi $LIBS"
12440 cat >conftest.$ac_ext <<_ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12456 rm -f conftest.$ac_objext conftest$ac_exeext
12457 if { (ac_try="$ac_link"
12458 case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_link") 2>conftest.er1
12465 grep -v '^ *+' conftest.er1 >conftest.err
12467 cat conftest.err >&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12471 { (case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_try") 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; } &&
12480 { ac_try='test -s conftest$ac_exeext'
12481 { (case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_try") 2>&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12490 ac_cv_lib_psapi_main=yes
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12495 ac_cv_lib_psapi_main=no
12498 rm -f core conftest.err conftest.$ac_objext \
12499 conftest$ac_exeext conftest.$ac_ext
12500 LIBS=$ac_check_lib_save_LIBS
12502 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12503 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12504 if test $ac_cv_lib_psapi_main = yes; then
12505 cat >>confdefs.h <<_ACEOF
12506 #define HAVE_LIBPSAPI 1
12509 LIBS="-lpsapi $LIBS"
12515 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12516 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12517 if test "${ac_cv_search_dlopen+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 ac_func_search_save_LIBS=$LIBS
12521 cat >conftest.$ac_ext <<_ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12528 /* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12543 for ac_lib in '' dl; do
12544 if test -z "$ac_lib"; then
12545 ac_res="none required"
12548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12550 rm -f conftest.$ac_objext conftest$ac_exeext
12551 if { (ac_try="$ac_link"
12552 case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_link") 2>conftest.er1
12559 grep -v '^ *+' conftest.er1 >conftest.err
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
12564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12565 { (case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_try") 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; } &&
12574 { ac_try='test -s conftest$ac_exeext'
12575 { (case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_try") 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 ac_cv_search_dlopen=$ac_res
12586 echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12592 rm -f core conftest.err conftest.$ac_objext \
12594 if test "${ac_cv_search_dlopen+set}" = set; then
12598 if test "${ac_cv_search_dlopen+set}" = set; then
12601 ac_cv_search_dlopen=no
12603 rm conftest.$ac_ext
12604 LIBS=$ac_func_search_save_LIBS
12606 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12607 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12608 ac_res=$ac_cv_search_dlopen
12609 if test "$ac_res" != no; then
12610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12612 cat >>confdefs.h <<\_ACEOF
12613 #define HAVE_DLOPEN 1
12617 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12618 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12622 if test "$llvm_cv_enable_libffi" = "yes" ; then
12623 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12624 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12625 if test "${ac_cv_search_ffi_call+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 ac_func_search_save_LIBS=$LIBS
12629 cat >conftest.$ac_ext <<_ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12636 /* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12646 return ffi_call ();
12651 for ac_lib in '' ffi; do
12652 if test -z "$ac_lib"; then
12653 ac_res="none required"
12656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12658 rm -f conftest.$ac_objext conftest$ac_exeext
12659 if { (ac_try="$ac_link"
12660 case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_link") 2>conftest.er1
12667 grep -v '^ *+' conftest.er1 >conftest.err
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673 { (case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_try") 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest$ac_exeext'
12683 { (case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_try") 2>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_cv_search_ffi_call=$ac_res
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12700 rm -f core conftest.err conftest.$ac_objext \
12702 if test "${ac_cv_search_ffi_call+set}" = set; then
12706 if test "${ac_cv_search_ffi_call+set}" = set; then
12709 ac_cv_search_ffi_call=no
12711 rm conftest.$ac_ext
12712 LIBS=$ac_func_search_save_LIBS
12714 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12715 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12716 ac_res=$ac_cv_search_ffi_call
12717 if test "$ac_res" != no; then
12718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_FFI_CALL 1
12725 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12726 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12727 { (exit 1); exit 1; }; }
12732 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12733 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12734 if test "${ac_cv_search_mallinfo+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 ac_func_search_save_LIBS=$LIBS
12738 cat >conftest.$ac_ext <<_ACEOF
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h. */
12745 /* Override any GCC internal prototype to avoid an error.
12746 Use char because int might match the return type of a GCC
12747 builtin and then its argument prototype would still apply. */
12755 return mallinfo ();
12760 for ac_lib in '' malloc; do
12761 if test -z "$ac_lib"; then
12762 ac_res="none required"
12765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12767 rm -f conftest.$ac_objext conftest$ac_exeext
12768 if { (ac_try="$ac_link"
12769 case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_link") 2>conftest.er1
12776 grep -v '^ *+' conftest.er1 >conftest.err
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } &&
12781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12782 { (case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_try") 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest$ac_exeext'
12792 { (case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_try") 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_cv_search_mallinfo=$ac_res
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12809 rm -f core conftest.err conftest.$ac_objext \
12811 if test "${ac_cv_search_mallinfo+set}" = set; then
12815 if test "${ac_cv_search_mallinfo+set}" = set; then
12818 ac_cv_search_mallinfo=no
12820 rm conftest.$ac_ext
12821 LIBS=$ac_func_search_save_LIBS
12823 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12824 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12825 ac_res=$ac_cv_search_mallinfo
12826 if test "$ac_res" != no; then
12827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12829 cat >>confdefs.h <<\_ACEOF
12830 #define HAVE_MALLINFO 1
12836 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12838 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12839 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12840 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 ac_check_lib_save_LIBS=$LIBS
12844 LIBS="-lpthread $LIBS"
12845 cat >conftest.$ac_ext <<_ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12852 /* Override any GCC internal prototype to avoid an error.
12853 Use char because int might match the return type of a GCC
12854 builtin and then its argument prototype would still apply. */
12858 char pthread_mutex_init ();
12862 return pthread_mutex_init ();
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
12876 grep -v '^ *+' conftest.er1 >conftest.err
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 ac_cv_lib_pthread_pthread_mutex_init=yes
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12906 ac_cv_lib_pthread_pthread_mutex_init=no
12909 rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext conftest.$ac_ext
12911 LIBS=$ac_check_lib_save_LIBS
12913 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12914 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12915 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12916 cat >>confdefs.h <<_ACEOF
12917 #define HAVE_LIBPTHREAD 1
12920 LIBS="-lpthread $LIBS"
12924 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12925 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12926 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
12929 ac_func_search_save_LIBS=$LIBS
12930 cat >conftest.$ac_ext <<_ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12937 /* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
12943 char pthread_mutex_lock ();
12947 return pthread_mutex_lock ();
12952 for ac_lib in '' pthread; do
12953 if test -z "$ac_lib"; then
12954 ac_res="none required"
12957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12959 rm -f conftest.$ac_objext conftest$ac_exeext
12960 if { (ac_try="$ac_link"
12961 case "(($ac_try" in
12962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963 *) ac_try_echo=$ac_try;;
12965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12966 (eval "$ac_link") 2>conftest.er1
12968 grep -v '^ *+' conftest.er1 >conftest.err
12970 cat conftest.err >&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
12973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12974 { (case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_try") 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try='test -s conftest$ac_exeext'
12984 { (case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_try") 2>&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; }; then
12993 ac_cv_search_pthread_mutex_lock=$ac_res
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
13001 rm -f core conftest.err conftest.$ac_objext \
13003 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13007 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13010 ac_cv_search_pthread_mutex_lock=no
13012 rm conftest.$ac_ext
13013 LIBS=$ac_func_search_save_LIBS
13015 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13016 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13017 ac_res=$ac_cv_search_pthread_mutex_lock
13018 if test "$ac_res" != no; then
13019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13021 cat >>confdefs.h <<\_ACEOF
13022 #define HAVE_PTHREAD_MUTEX_LOCK 1
13027 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13028 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13029 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 ac_func_search_save_LIBS=$LIBS
13033 cat >conftest.$ac_ext <<_ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13040 /* Override any GCC internal prototype to avoid an error.
13041 Use char because int might match the return type of a GCC
13042 builtin and then its argument prototype would still apply. */
13046 char pthread_rwlock_init ();
13050 return pthread_rwlock_init ();
13055 for ac_lib in '' pthread; do
13056 if test -z "$ac_lib"; then
13057 ac_res="none required"
13060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13062 rm -f conftest.$ac_objext conftest$ac_exeext
13063 if { (ac_try="$ac_link"
13064 case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_link") 2>conftest.er1
13071 grep -v '^ *+' conftest.er1 >conftest.err
13073 cat conftest.err >&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } &&
13076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13077 { (case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_try") 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; } &&
13086 { ac_try='test -s conftest$ac_exeext'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; }; then
13096 ac_cv_search_pthread_rwlock_init=$ac_res
13098 echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13104 rm -f core conftest.err conftest.$ac_objext \
13106 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13110 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13113 ac_cv_search_pthread_rwlock_init=no
13115 rm conftest.$ac_ext
13116 LIBS=$ac_func_search_save_LIBS
13118 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13119 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13120 ac_res=$ac_cv_search_pthread_rwlock_init
13121 if test "$ac_res" != no; then
13122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13124 cat >>confdefs.h <<\_ACEOF
13125 #define HAVE_PTHREAD_RWLOCK_INIT 1
13130 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13131 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13132 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 ac_func_search_save_LIBS=$LIBS
13136 cat >conftest.$ac_ext <<_ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13143 /* Override any GCC internal prototype to avoid an error.
13144 Use char because int might match the return type of a GCC
13145 builtin and then its argument prototype would still apply. */
13149 char pthread_getspecific ();
13153 return pthread_getspecific ();
13158 for ac_lib in '' pthread; do
13159 if test -z "$ac_lib"; then
13160 ac_res="none required"
13163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13165 rm -f conftest.$ac_objext conftest$ac_exeext
13166 if { (ac_try="$ac_link"
13167 case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_link") 2>conftest.er1
13174 grep -v '^ *+' conftest.er1 >conftest.err
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } &&
13179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13180 { (case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185 (eval "$ac_try") 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; } &&
13189 { ac_try='test -s conftest$ac_exeext'
13190 { (case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_try") 2>&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; }; then
13199 ac_cv_search_pthread_getspecific=$ac_res
13201 echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13207 rm -f core conftest.err conftest.$ac_objext \
13209 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13213 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13216 ac_cv_search_pthread_getspecific=no
13218 rm conftest.$ac_ext
13219 LIBS=$ac_func_search_save_LIBS
13221 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13222 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13223 ac_res=$ac_cv_search_pthread_getspecific
13224 if test "$ac_res" != no; then
13225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13227 cat >>confdefs.h <<\_ACEOF
13228 #define HAVE_PTHREAD_GETSPECIFIC 1
13236 # Check whether --with-udis86 was given.
13237 if test "${with_udis86+set}" = set; then
13238 withval=$with_udis86;
13243 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13246 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13247 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13248 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 ac_check_lib_save_LIBS=$LIBS
13252 LIBS="-ludis86 $LIBS"
13253 cat >conftest.$ac_ext <<_ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13260 /* Override any GCC internal prototype to avoid an error.
13261 Use char because int might match the return type of a GCC
13262 builtin and then its argument prototype would still apply. */
13275 rm -f conftest.$ac_objext conftest$ac_exeext
13276 if { (ac_try="$ac_link"
13277 case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_link") 2>conftest.er1
13284 grep -v '^ *+' conftest.er1 >conftest.err
13286 cat conftest.err >&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } &&
13289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13290 { (case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_try") 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; } &&
13299 { ac_try='test -s conftest$ac_exeext'
13300 { (case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_try") 2>&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; }; then
13309 ac_cv_lib_udis86_ud_init=yes
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13314 ac_cv_lib_udis86_ud_init=no
13317 rm -f core conftest.err conftest.$ac_objext \
13318 conftest$ac_exeext conftest.$ac_ext
13319 LIBS=$ac_check_lib_save_LIBS
13321 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13322 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13323 if test $ac_cv_lib_udis86_ud_init = yes; then
13324 cat >>confdefs.h <<_ACEOF
13325 #define HAVE_LIBUDIS86 1
13328 LIBS="-ludis86 $LIBS"
13332 echo "Error! You need to have libudis86 around."
13344 cat >>confdefs.h <<_ACEOF
13345 #define USE_UDIS86 $USE_UDIS86
13350 # Check whether --with-oprofile was given.
13351 if test "${with_oprofile+set}" = set; then
13352 withval=$with_oprofile;
13356 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13357 no) llvm_cv_oppath=
13360 *) llvm_cv_oppath="${withval}/lib/oprofile"
13361 CPPFLAGS="-I${withval}/include";;
13363 if test -n "$llvm_cv_oppath" ; then
13364 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13365 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13366 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13367 if test "${ac_cv_search_bfd_init+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 ac_func_search_save_LIBS=$LIBS
13371 cat >conftest.$ac_ext <<_ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13378 /* Override any GCC internal prototype to avoid an error.
13379 Use char because int might match the return type of a GCC
13380 builtin and then its argument prototype would still apply. */
13388 return bfd_init ();
13393 for ac_lib in '' bfd; do
13394 if test -z "$ac_lib"; then
13395 ac_res="none required"
13398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13400 rm -f conftest.$ac_objext conftest$ac_exeext
13401 if { (ac_try="$ac_link"
13402 case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_link") 2>conftest.er1
13409 grep -v '^ *+' conftest.er1 >conftest.err
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13415 { (case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_try") 2>&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; } &&
13424 { ac_try='test -s conftest$ac_exeext'
13425 { (case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_try") 2>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434 ac_cv_search_bfd_init=$ac_res
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13442 rm -f core conftest.err conftest.$ac_objext \
13444 if test "${ac_cv_search_bfd_init+set}" = set; then
13448 if test "${ac_cv_search_bfd_init+set}" = set; then
13451 ac_cv_search_bfd_init=no
13453 rm conftest.$ac_ext
13454 LIBS=$ac_func_search_save_LIBS
13456 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13457 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13458 ac_res=$ac_cv_search_bfd_init
13459 if test "$ac_res" != no; then
13460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13464 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13465 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13466 if test "${ac_cv_search_op_open_agent+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 ac_func_search_save_LIBS=$LIBS
13470 cat >conftest.$ac_ext <<_ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13477 /* Override any GCC internal prototype to avoid an error.
13478 Use char because int might match the return type of a GCC
13479 builtin and then its argument prototype would still apply. */
13483 char op_open_agent ();
13487 return op_open_agent ();
13492 for ac_lib in '' opagent; do
13493 if test -z "$ac_lib"; then
13494 ac_res="none required"
13497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13499 rm -f conftest.$ac_objext conftest$ac_exeext
13500 if { (ac_try="$ac_link"
13501 case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_link") 2>conftest.er1
13508 grep -v '^ *+' conftest.er1 >conftest.err
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
13513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13514 { (case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_try") 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; } &&
13523 { ac_try='test -s conftest$ac_exeext'
13524 { (case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_try") 2>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 ac_cv_search_op_open_agent=$ac_res
13535 echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13541 rm -f core conftest.err conftest.$ac_objext \
13543 if test "${ac_cv_search_op_open_agent+set}" = set; then
13547 if test "${ac_cv_search_op_open_agent+set}" = set; then
13550 ac_cv_search_op_open_agent=no
13552 rm conftest.$ac_ext
13553 LIBS=$ac_func_search_save_LIBS
13555 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13556 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13557 ac_res=$ac_cv_search_op_open_agent
13558 if test "$ac_res" != no; then
13559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13563 echo "Error! You need to have libopagent around."
13568 if test "${ac_cv_header_opagent_h+set}" = set; then
13569 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13570 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13571 if test "${ac_cv_header_opagent_h+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13575 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13577 # Is the header compilable?
13578 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13579 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13580 cat >conftest.$ac_ext <<_ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h. */
13586 $ac_includes_default
13587 #include <opagent.h>
13589 rm -f conftest.$ac_objext
13590 if { (ac_try="$ac_compile"
13591 case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_compile") 2>conftest.er1
13598 grep -v '^ *+' conftest.er1 >conftest.err
13600 cat conftest.err >&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13604 { (case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_try") 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try='test -s conftest.$ac_objext'
13614 { (case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_try") 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_header_compiler=yes
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_header_compiler=no
13631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13633 echo "${ECHO_T}$ac_header_compiler" >&6; }
13635 # Is the header present?
13636 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13637 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13638 cat >conftest.$ac_ext <<_ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 #include <opagent.h>
13646 if { (ac_try="$ac_cpp conftest.$ac_ext"
13647 case "(($ac_try" in
13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649 *) ac_try_echo=$ac_try;;
13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13654 grep -v '^ *+' conftest.er1 >conftest.err
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } >/dev/null; then
13659 if test -s conftest.err; then
13660 ac_cpp_err=$ac_c_preproc_warn_flag
13661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13668 if test -z "$ac_cpp_err"; then
13669 ac_header_preproc=yes
13671 echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13674 ac_header_preproc=no
13677 rm -f conftest.err conftest.$ac_ext
13678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13679 echo "${ECHO_T}$ac_header_preproc" >&6; }
13681 # So? What about this header?
13682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13684 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13685 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13687 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13688 ac_header_preproc=yes
13691 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13692 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13694 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13696 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13698 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13700 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13702 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13704 ## ------------------------------------ ##
13705 ## Report this to http://llvm.org/bugs/ ##
13706 ## ------------------------------------ ##
13708 ) | sed "s/^/$as_me: WARNING: /" >&2
13711 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13712 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13713 if test "${ac_cv_header_opagent_h+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 ac_cv_header_opagent_h=$ac_header_preproc
13718 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13719 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13722 if test $ac_cv_header_opagent_h = yes; then
13726 echo "Error! You need to have opagent.h around."
13742 cat >>confdefs.h <<_ACEOF
13743 #define USE_OPROFILE $USE_OPROFILE
13753 ac_header_dirent=no
13754 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13755 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13756 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13757 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 cat >conftest.$ac_ext <<_ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767 #include <sys/types.h>
13779 rm -f conftest.$ac_objext
13780 if { (ac_try="$ac_compile"
13781 case "(($ac_try" in
13782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786 (eval "$ac_compile") 2>conftest.er1
13788 grep -v '^ *+' conftest.er1 >conftest.err
13790 cat conftest.err >&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } &&
13793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13794 { (case "(($ac_try" in
13795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_try") 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; } &&
13803 { ac_try='test -s conftest.$ac_objext'
13804 { (case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_try") 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13813 eval "$as_ac_Header=yes"
13815 echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13818 eval "$as_ac_Header=no"
13821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823 ac_res=`eval echo '${'$as_ac_Header'}'`
13824 { echo "$as_me:$LINENO: result: $ac_res" >&5
13825 echo "${ECHO_T}$ac_res" >&6; }
13826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13827 cat >>confdefs.h <<_ACEOF
13828 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13831 ac_header_dirent=$ac_hdr; break
13835 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13836 if test $ac_header_dirent = dirent.h; then
13837 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13838 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13839 if test "${ac_cv_search_opendir+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 ac_func_search_save_LIBS=$LIBS
13843 cat >conftest.$ac_ext <<_ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13850 /* Override any GCC internal prototype to avoid an error.
13851 Use char because int might match the return type of a GCC
13852 builtin and then its argument prototype would still apply. */
13865 for ac_lib in '' dir; do
13866 if test -z "$ac_lib"; then
13867 ac_res="none required"
13870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13872 rm -f conftest.$ac_objext conftest$ac_exeext
13873 if { (ac_try="$ac_link"
13874 case "(($ac_try" in
13875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876 *) ac_try_echo=$ac_try;;
13878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13879 (eval "$ac_link") 2>conftest.er1
13881 grep -v '^ *+' conftest.er1 >conftest.err
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13887 { (case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_try") 2>&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest$ac_exeext'
13897 { (case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_try") 2>&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }; then
13906 ac_cv_search_opendir=$ac_res
13908 echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13914 rm -f core conftest.err conftest.$ac_objext \
13916 if test "${ac_cv_search_opendir+set}" = set; then
13920 if test "${ac_cv_search_opendir+set}" = set; then
13923 ac_cv_search_opendir=no
13925 rm conftest.$ac_ext
13926 LIBS=$ac_func_search_save_LIBS
13928 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13929 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13930 ac_res=$ac_cv_search_opendir
13931 if test "$ac_res" != no; then
13932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13937 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13938 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13939 if test "${ac_cv_search_opendir+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 ac_func_search_save_LIBS=$LIBS
13943 cat >conftest.$ac_ext <<_ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13950 /* Override any GCC internal prototype to avoid an error.
13951 Use char because int might match the return type of a GCC
13952 builtin and then its argument prototype would still apply. */
13965 for ac_lib in '' x; do
13966 if test -z "$ac_lib"; then
13967 ac_res="none required"
13970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13972 rm -f conftest.$ac_objext conftest$ac_exeext
13973 if { (ac_try="$ac_link"
13974 case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_link") 2>conftest.er1
13981 grep -v '^ *+' conftest.er1 >conftest.err
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } &&
13986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13987 { (case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_try") 2>&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; } &&
13996 { ac_try='test -s conftest$ac_exeext'
13997 { (case "(($ac_try" in
13998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999 *) ac_try_echo=$ac_try;;
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002 (eval "$ac_try") 2>&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; }; then
14006 ac_cv_search_opendir=$ac_res
14008 echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14014 rm -f core conftest.err conftest.$ac_objext \
14016 if test "${ac_cv_search_opendir+set}" = set; then
14020 if test "${ac_cv_search_opendir+set}" = set; then
14023 ac_cv_search_opendir=no
14025 rm conftest.$ac_ext
14026 LIBS=$ac_func_search_save_LIBS
14028 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14029 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14030 ac_res=$ac_cv_search_opendir
14031 if test "$ac_res" != no; then
14032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14038 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14039 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14040 if test "${ac_cv_header_mmap_anon+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 ac_cpp='$CPP $CPPFLAGS'
14045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14049 cat >conftest.$ac_ext <<_ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14055 #include <sys/mman.h>
14056 #include <unistd.h>
14061 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14066 rm -f conftest.$ac_objext
14067 if { (ac_try="$ac_compile"
14068 case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_compile") 2>conftest.er1
14075 grep -v '^ *+' conftest.er1 >conftest.err
14077 cat conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } &&
14080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14081 { (case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_try") 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; } &&
14090 { ac_try='test -s conftest.$ac_objext'
14091 { (case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_try") 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }; then
14100 ac_cv_header_mmap_anon=yes
14102 echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14105 ac_cv_header_mmap_anon=no
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110 ac_cpp='$CPP $CPPFLAGS'
14111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14117 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14118 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14119 if test "$ac_cv_header_mmap_anon" = yes; then
14121 cat >>confdefs.h <<\_ACEOF
14122 #define HAVE_MMAP_ANONYMOUS 1
14127 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14128 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14129 if test "${ac_cv_header_stat_broken+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 cat >conftest.$ac_ext <<_ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14138 #include <sys/types.h>
14139 #include <sys/stat.h>
14141 #if defined S_ISBLK && defined S_IFDIR
14142 # if S_ISBLK (S_IFDIR)
14147 #if defined S_ISBLK && defined S_IFCHR
14148 # if S_ISBLK (S_IFCHR)
14153 #if defined S_ISLNK && defined S_IFREG
14154 # if S_ISLNK (S_IFREG)
14159 #if defined S_ISSOCK && defined S_IFREG
14160 # if S_ISSOCK (S_IFREG)
14166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14167 $EGREP "You lose" >/dev/null 2>&1; then
14168 ac_cv_header_stat_broken=yes
14170 ac_cv_header_stat_broken=no
14175 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14176 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14177 if test $ac_cv_header_stat_broken = yes; then
14179 cat >>confdefs.h <<\_ACEOF
14180 #define STAT_MACROS_BROKEN 1
14185 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14186 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14187 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 cat >conftest.$ac_ext <<_ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 #include <sys/types.h>
14197 #include <sys/wait.h>
14198 #ifndef WEXITSTATUS
14199 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14202 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14210 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14215 rm -f conftest.$ac_objext
14216 if { (ac_try="$ac_compile"
14217 case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_compile") 2>conftest.er1
14224 grep -v '^ *+' conftest.er1 >conftest.err
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
14229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14230 { (case "(($ac_try" in
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 *) ac_try_echo=$ac_try;;
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_try") 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; } &&
14239 { ac_try='test -s conftest.$ac_objext'
14240 { (case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245 (eval "$ac_try") 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14249 ac_cv_header_sys_wait_h=yes
14251 echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14254 ac_cv_header_sys_wait_h=no
14257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14260 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14261 if test $ac_cv_header_sys_wait_h = yes; then
14263 cat >>confdefs.h <<\_ACEOF
14264 #define HAVE_SYS_WAIT_H 1
14269 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14270 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14271 if test "${ac_cv_header_time+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 cat >conftest.$ac_ext <<_ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 #include <sys/types.h>
14281 #include <sys/time.h>
14287 if ((struct tm *) 0)
14293 rm -f conftest.$ac_objext
14294 if { (ac_try="$ac_compile"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_compile") 2>conftest.er1
14302 grep -v '^ *+' conftest.er1 >conftest.err
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest.$ac_objext'
14318 { (case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_try") 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 ac_cv_header_time=yes
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 ac_cv_header_time=no
14335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14337 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14338 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14339 if test $ac_cv_header_time = yes; then
14341 cat >>confdefs.h <<\_ACEOF
14342 #define TIME_WITH_SYS_TIME 1
14354 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 ac_res=`eval echo '${'$as_ac_Header'}'`
14364 { echo "$as_me:$LINENO: result: $ac_res" >&5
14365 echo "${ECHO_T}$ac_res" >&6; }
14367 # Is the header compilable?
14368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14370 cat >conftest.$ac_ext <<_ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14376 $ac_includes_default
14377 #include <$ac_header>
14379 rm -f conftest.$ac_objext
14380 if { (ac_try="$ac_compile"
14381 case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_compile") 2>conftest.er1
14388 grep -v '^ *+' conftest.er1 >conftest.err
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14394 { (case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_try") 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; } &&
14403 { ac_try='test -s conftest.$ac_objext'
14404 { (case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_try") 2>&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; }; then
14413 ac_header_compiler=yes
14415 echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14418 ac_header_compiler=no
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14423 echo "${ECHO_T}$ac_header_compiler" >&6; }
14425 # Is the header present?
14426 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14428 cat >conftest.$ac_ext <<_ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h. */
14434 #include <$ac_header>
14436 if { (ac_try="$ac_cpp conftest.$ac_ext"
14437 case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14444 grep -v '^ *+' conftest.er1 >conftest.err
14446 cat conftest.err >&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } >/dev/null; then
14449 if test -s conftest.err; then
14450 ac_cpp_err=$ac_c_preproc_warn_flag
14451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14458 if test -z "$ac_cpp_err"; then
14459 ac_header_preproc=yes
14461 echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14464 ac_header_preproc=no
14467 rm -f conftest.err conftest.$ac_ext
14468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14469 echo "${ECHO_T}$ac_header_preproc" >&6; }
14471 # So? What about this header?
14472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14478 ac_header_preproc=yes
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14494 ## ------------------------------------ ##
14495 ## Report this to http://llvm.org/bugs/ ##
14496 ## ------------------------------------ ##
14498 ) | sed "s/^/$as_me: WARNING: /" >&2
14501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 eval "$as_ac_Header=\$ac_header_preproc"
14508 ac_res=`eval echo '${'$as_ac_Header'}'`
14509 { echo "$as_me:$LINENO: result: $ac_res" >&5
14510 echo "${ECHO_T}$ac_res" >&6; }
14513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14514 cat >>confdefs.h <<_ACEOF
14515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14528 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 ac_res=`eval echo '${'$as_ac_Header'}'`
14538 { echo "$as_me:$LINENO: result: $ac_res" >&5
14539 echo "${ECHO_T}$ac_res" >&6; }
14541 # Is the header compilable?
14542 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14544 cat >conftest.$ac_ext <<_ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14550 $ac_includes_default
14551 #include <$ac_header>
14553 rm -f conftest.$ac_objext
14554 if { (ac_try="$ac_compile"
14555 case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_compile") 2>conftest.er1
14562 grep -v '^ *+' conftest.er1 >conftest.err
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14568 { (case "(($ac_try" in
14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573 (eval "$ac_try") 2>&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try='test -s conftest.$ac_objext'
14578 { (case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_try") 2>&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 ac_header_compiler=yes
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14592 ac_header_compiler=no
14595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14597 echo "${ECHO_T}$ac_header_compiler" >&6; }
14599 # Is the header present?
14600 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14602 cat >conftest.$ac_ext <<_ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14608 #include <$ac_header>
14610 if { (ac_try="$ac_cpp conftest.$ac_ext"
14611 case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14618 grep -v '^ *+' conftest.er1 >conftest.err
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } >/dev/null; then
14623 if test -s conftest.err; then
14624 ac_cpp_err=$ac_c_preproc_warn_flag
14625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14632 if test -z "$ac_cpp_err"; then
14633 ac_header_preproc=yes
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14638 ac_header_preproc=no
14641 rm -f conftest.err conftest.$ac_ext
14642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14643 echo "${ECHO_T}$ac_header_preproc" >&6; }
14645 # So? What about this header?
14646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14652 ac_header_preproc=yes
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14668 ## ------------------------------------ ##
14669 ## Report this to http://llvm.org/bugs/ ##
14670 ## ------------------------------------ ##
14672 ) | sed "s/^/$as_me: WARNING: /" >&2
14675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14680 eval "$as_ac_Header=\$ac_header_preproc"
14682 ac_res=`eval echo '${'$as_ac_Header'}'`
14683 { echo "$as_me:$LINENO: result: $ac_res" >&5
14684 echo "${ECHO_T}$ac_res" >&6; }
14687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14688 cat >>confdefs.h <<_ACEOF
14689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14698 for ac_header in utime.h windows.h
14700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
14707 ac_res=`eval echo '${'$as_ac_Header'}'`
14708 { echo "$as_me:$LINENO: result: $ac_res" >&5
14709 echo "${ECHO_T}$ac_res" >&6; }
14711 # Is the header compilable?
14712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14714 cat >conftest.$ac_ext <<_ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h. */
14720 $ac_includes_default
14721 #include <$ac_header>
14723 rm -f conftest.$ac_objext
14724 if { (ac_try="$ac_compile"
14725 case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_compile") 2>conftest.er1
14732 grep -v '^ *+' conftest.er1 >conftest.err
14734 cat conftest.err >&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
14737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14738 { (case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_try") 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; } &&
14747 { ac_try='test -s conftest.$ac_objext'
14748 { (case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_try") 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 ac_header_compiler=yes
14759 echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14762 ac_header_compiler=no
14765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14767 echo "${ECHO_T}$ac_header_compiler" >&6; }
14769 # Is the header present?
14770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14772 cat >conftest.$ac_ext <<_ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 #include <$ac_header>
14780 if { (ac_try="$ac_cpp conftest.$ac_ext"
14781 case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14788 grep -v '^ *+' conftest.er1 >conftest.err
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } >/dev/null; then
14793 if test -s conftest.err; then
14794 ac_cpp_err=$ac_c_preproc_warn_flag
14795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14802 if test -z "$ac_cpp_err"; then
14803 ac_header_preproc=yes
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14808 ac_header_preproc=no
14811 rm -f conftest.err conftest.$ac_ext
14812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14813 echo "${ECHO_T}$ac_header_preproc" >&6; }
14815 # So? What about this header?
14816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14822 ac_header_preproc=yes
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14838 ## ------------------------------------ ##
14839 ## Report this to http://llvm.org/bugs/ ##
14840 ## ------------------------------------ ##
14842 ) | sed "s/^/$as_me: WARNING: /" >&2
14845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 eval "$as_ac_Header=\$ac_header_preproc"
14852 ac_res=`eval echo '${'$as_ac_Header'}'`
14853 { echo "$as_me:$LINENO: result: $ac_res" >&5
14854 echo "${ECHO_T}$ac_res" >&6; }
14857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14858 cat >>confdefs.h <<_ACEOF
14859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14871 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 ac_res=`eval echo '${'$as_ac_Header'}'`
14881 { echo "$as_me:$LINENO: result: $ac_res" >&5
14882 echo "${ECHO_T}$ac_res" >&6; }
14884 # Is the header compilable?
14885 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14887 cat >conftest.$ac_ext <<_ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14893 $ac_includes_default
14894 #include <$ac_header>
14896 rm -f conftest.$ac_objext
14897 if { (ac_try="$ac_compile"
14898 case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903 (eval "$ac_compile") 2>conftest.er1
14905 grep -v '^ *+' conftest.er1 >conftest.err
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14911 { (case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_try") 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; } &&
14920 { ac_try='test -s conftest.$ac_objext'
14921 { (case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_try") 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14930 ac_header_compiler=yes
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 ac_header_compiler=no
14938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14940 echo "${ECHO_T}$ac_header_compiler" >&6; }
14942 # Is the header present?
14943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14945 cat >conftest.$ac_ext <<_ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951 #include <$ac_header>
14953 if { (ac_try="$ac_cpp conftest.$ac_ext"
14954 case "(($ac_try" in
14955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956 *) ac_try_echo=$ac_try;;
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14961 grep -v '^ *+' conftest.er1 >conftest.err
14963 cat conftest.err >&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } >/dev/null; then
14966 if test -s conftest.err; then
14967 ac_cpp_err=$ac_c_preproc_warn_flag
14968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14975 if test -z "$ac_cpp_err"; then
14976 ac_header_preproc=yes
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14981 ac_header_preproc=no
14984 rm -f conftest.err conftest.$ac_ext
14985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14986 echo "${ECHO_T}$ac_header_preproc" >&6; }
14988 # So? What about this header?
14989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14995 ac_header_preproc=yes
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15011 ## ------------------------------------ ##
15012 ## Report this to http://llvm.org/bugs/ ##
15013 ## ------------------------------------ ##
15015 ) | sed "s/^/$as_me: WARNING: /" >&2
15018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 eval "$as_ac_Header=\$ac_header_preproc"
15025 ac_res=`eval echo '${'$as_ac_Header'}'`
15026 { echo "$as_me:$LINENO: result: $ac_res" >&5
15027 echo "${ECHO_T}$ac_res" >&6; }
15030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15031 cat >>confdefs.h <<_ACEOF
15032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15043 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15052 ac_res=`eval echo '${'$as_ac_Header'}'`
15053 { echo "$as_me:$LINENO: result: $ac_res" >&5
15054 echo "${ECHO_T}$ac_res" >&6; }
15056 # Is the header compilable?
15057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15059 cat >conftest.$ac_ext <<_ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 $ac_includes_default
15066 #include <$ac_header>
15068 rm -f conftest.$ac_objext
15069 if { (ac_try="$ac_compile"
15070 case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_compile") 2>conftest.er1
15077 grep -v '^ *+' conftest.er1 >conftest.err
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
15082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15083 { (case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088 (eval "$ac_try") 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } &&
15092 { ac_try='test -s conftest.$ac_objext'
15093 { (case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_try") 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_header_compiler=yes
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_header_compiler=no
15110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15112 echo "${ECHO_T}$ac_header_compiler" >&6; }
15114 # Is the header present?
15115 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15117 cat >conftest.$ac_ext <<_ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15123 #include <$ac_header>
15125 if { (ac_try="$ac_cpp conftest.$ac_ext"
15126 case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15133 grep -v '^ *+' conftest.er1 >conftest.err
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } >/dev/null; then
15138 if test -s conftest.err; then
15139 ac_cpp_err=$ac_c_preproc_warn_flag
15140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15147 if test -z "$ac_cpp_err"; then
15148 ac_header_preproc=yes
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15153 ac_header_preproc=no
15156 rm -f conftest.err conftest.$ac_ext
15157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15158 echo "${ECHO_T}$ac_header_preproc" >&6; }
15160 # So? What about this header?
15161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15167 ac_header_preproc=yes
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15183 ## ------------------------------------ ##
15184 ## Report this to http://llvm.org/bugs/ ##
15185 ## ------------------------------------ ##
15187 ) | sed "s/^/$as_me: WARNING: /" >&2
15190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 eval "$as_ac_Header=\$ac_header_preproc"
15197 ac_res=`eval echo '${'$as_ac_Header'}'`
15198 { echo "$as_me:$LINENO: result: $ac_res" >&5
15199 echo "${ECHO_T}$ac_res" >&6; }
15202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15203 cat >>confdefs.h <<_ACEOF
15204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15212 for ac_header in valgrind/valgrind.h
15214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15221 ac_res=`eval echo '${'$as_ac_Header'}'`
15222 { echo "$as_me:$LINENO: result: $ac_res" >&5
15223 echo "${ECHO_T}$ac_res" >&6; }
15225 # Is the header compilable?
15226 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15228 cat >conftest.$ac_ext <<_ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15234 $ac_includes_default
15235 #include <$ac_header>
15237 rm -f conftest.$ac_objext
15238 if { (ac_try="$ac_compile"
15239 case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_compile") 2>conftest.er1
15246 grep -v '^ *+' conftest.er1 >conftest.err
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15252 { (case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_try") 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; } &&
15261 { ac_try='test -s conftest.$ac_objext'
15262 { (case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_try") 2>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; }; then
15271 ac_header_compiler=yes
15273 echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15276 ac_header_compiler=no
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15281 echo "${ECHO_T}$ac_header_compiler" >&6; }
15283 # Is the header present?
15284 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15286 cat >conftest.$ac_ext <<_ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15292 #include <$ac_header>
15294 if { (ac_try="$ac_cpp conftest.$ac_ext"
15295 case "(($ac_try" in
15296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297 *) ac_try_echo=$ac_try;;
15299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15302 grep -v '^ *+' conftest.er1 >conftest.err
15304 cat conftest.err >&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } >/dev/null; then
15307 if test -s conftest.err; then
15308 ac_cpp_err=$ac_c_preproc_warn_flag
15309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15316 if test -z "$ac_cpp_err"; then
15317 ac_header_preproc=yes
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ac_header_preproc=no
15325 rm -f conftest.err conftest.$ac_ext
15326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15327 echo "${ECHO_T}$ac_header_preproc" >&6; }
15329 # So? What about this header?
15330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15336 ac_header_preproc=yes
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15352 ## ------------------------------------ ##
15353 ## Report this to http://llvm.org/bugs/ ##
15354 ## ------------------------------------ ##
15356 ) | sed "s/^/$as_me: WARNING: /" >&2
15359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15364 eval "$as_ac_Header=\$ac_header_preproc"
15366 ac_res=`eval echo '${'$as_ac_Header'}'`
15367 { echo "$as_me:$LINENO: result: $ac_res" >&5
15368 echo "${ECHO_T}$ac_res" >&6; }
15371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15372 cat >>confdefs.h <<_ACEOF
15373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15381 for ac_header in fenv.h
15383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 ac_res=`eval echo '${'$as_ac_Header'}'`
15391 { echo "$as_me:$LINENO: result: $ac_res" >&5
15392 echo "${ECHO_T}$ac_res" >&6; }
15394 # Is the header compilable?
15395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15397 cat >conftest.$ac_ext <<_ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15403 $ac_includes_default
15404 #include <$ac_header>
15406 rm -f conftest.$ac_objext
15407 if { (ac_try="$ac_compile"
15408 case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_compile") 2>conftest.er1
15415 grep -v '^ *+' conftest.er1 >conftest.err
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15421 { (case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_try") 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; } &&
15430 { ac_try='test -s conftest.$ac_objext'
15431 { (case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_try") 2>&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
15440 ac_header_compiler=yes
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15445 ac_header_compiler=no
15448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15450 echo "${ECHO_T}$ac_header_compiler" >&6; }
15452 # Is the header present?
15453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15455 cat >conftest.$ac_ext <<_ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h. */
15461 #include <$ac_header>
15463 if { (ac_try="$ac_cpp conftest.$ac_ext"
15464 case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15471 grep -v '^ *+' conftest.er1 >conftest.err
15473 cat conftest.err >&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } >/dev/null; then
15476 if test -s conftest.err; then
15477 ac_cpp_err=$ac_c_preproc_warn_flag
15478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15485 if test -z "$ac_cpp_err"; then
15486 ac_header_preproc=yes
15488 echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15491 ac_header_preproc=no
15494 rm -f conftest.err conftest.$ac_ext
15495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15496 echo "${ECHO_T}$ac_header_preproc" >&6; }
15498 # So? What about this header?
15499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15505 ac_header_preproc=yes
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15521 ## ------------------------------------ ##
15522 ## Report this to http://llvm.org/bugs/ ##
15523 ## ------------------------------------ ##
15525 ) | sed "s/^/$as_me: WARNING: /" >&2
15528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15533 eval "$as_ac_Header=\$ac_header_preproc"
15535 ac_res=`eval echo '${'$as_ac_Header'}'`
15536 { echo "$as_me:$LINENO: result: $ac_res" >&5
15537 echo "${ECHO_T}$ac_res" >&6; }
15540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15541 cat >>confdefs.h <<_ACEOF
15542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15549 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15551 for ac_header in pthread.h
15553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 ac_res=`eval echo '${'$as_ac_Header'}'`
15561 { echo "$as_me:$LINENO: result: $ac_res" >&5
15562 echo "${ECHO_T}$ac_res" >&6; }
15564 # Is the header compilable?
15565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15567 cat >conftest.$ac_ext <<_ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15573 $ac_includes_default
15574 #include <$ac_header>
15576 rm -f conftest.$ac_objext
15577 if { (ac_try="$ac_compile"
15578 case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_compile") 2>conftest.er1
15585 grep -v '^ *+' conftest.er1 >conftest.err
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } &&
15590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15591 { (case "(($ac_try" in
15592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596 (eval "$ac_try") 2>&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; } &&
15600 { ac_try='test -s conftest.$ac_objext'
15601 { (case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_try") 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 ac_header_compiler=yes
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615 ac_header_compiler=no
15618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15620 echo "${ECHO_T}$ac_header_compiler" >&6; }
15622 # Is the header present?
15623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15625 cat >conftest.$ac_ext <<_ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 #include <$ac_header>
15633 if { (ac_try="$ac_cpp conftest.$ac_ext"
15634 case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15641 grep -v '^ *+' conftest.er1 >conftest.err
15643 cat conftest.err >&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } >/dev/null; then
15646 if test -s conftest.err; then
15647 ac_cpp_err=$ac_c_preproc_warn_flag
15648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15655 if test -z "$ac_cpp_err"; then
15656 ac_header_preproc=yes
15658 echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15661 ac_header_preproc=no
15664 rm -f conftest.err conftest.$ac_ext
15665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15666 echo "${ECHO_T}$ac_header_preproc" >&6; }
15668 # So? What about this header?
15669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15675 ac_header_preproc=yes
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15691 ## ------------------------------------ ##
15692 ## Report this to http://llvm.org/bugs/ ##
15693 ## ------------------------------------ ##
15695 ) | sed "s/^/$as_me: WARNING: /" >&2
15698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 eval "$as_ac_Header=\$ac_header_preproc"
15705 ac_res=`eval echo '${'$as_ac_Header'}'`
15706 { echo "$as_me:$LINENO: result: $ac_res" >&5
15707 echo "${ECHO_T}$ac_res" >&6; }
15710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15711 cat >>confdefs.h <<_ACEOF
15712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15728 if test "$llvm_cv_enable_libffi" = "yes" ; then
15731 for ac_header in ffi.h ffi/ffi.h
15733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 ac_res=`eval echo '${'$as_ac_Header'}'`
15741 { echo "$as_me:$LINENO: result: $ac_res" >&5
15742 echo "${ECHO_T}$ac_res" >&6; }
15744 # Is the header compilable?
15745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15747 cat >conftest.$ac_ext <<_ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 $ac_includes_default
15754 #include <$ac_header>
15756 rm -f conftest.$ac_objext
15757 if { (ac_try="$ac_compile"
15758 case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_compile") 2>conftest.er1
15765 grep -v '^ *+' conftest.er1 >conftest.err
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771 { (case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_try") 2>&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; } &&
15780 { ac_try='test -s conftest.$ac_objext'
15781 { (case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_try") 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_header_compiler=yes
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15795 ac_header_compiler=no
15798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15800 echo "${ECHO_T}$ac_header_compiler" >&6; }
15802 # Is the header present?
15803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15805 cat >conftest.$ac_ext <<_ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 #include <$ac_header>
15813 if { (ac_try="$ac_cpp conftest.$ac_ext"
15814 case "(($ac_try" in
15815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816 *) ac_try_echo=$ac_try;;
15818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15821 grep -v '^ *+' conftest.er1 >conftest.err
15823 cat conftest.err >&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } >/dev/null; then
15826 if test -s conftest.err; then
15827 ac_cpp_err=$ac_c_preproc_warn_flag
15828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15835 if test -z "$ac_cpp_err"; then
15836 ac_header_preproc=yes
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_header_preproc=no
15844 rm -f conftest.err conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15846 echo "${ECHO_T}$ac_header_preproc" >&6; }
15848 # So? What about this header?
15849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15855 ac_header_preproc=yes
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15871 ## ------------------------------------ ##
15872 ## Report this to http://llvm.org/bugs/ ##
15873 ## ------------------------------------ ##
15875 ) | sed "s/^/$as_me: WARNING: /" >&2
15878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 eval "$as_ac_Header=\$ac_header_preproc"
15885 ac_res=`eval echo '${'$as_ac_Header'}'`
15886 { echo "$as_me:$LINENO: result: $ac_res" >&5
15887 echo "${ECHO_T}$ac_res" >&6; }
15890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15891 cat >>confdefs.h <<_ACEOF
15892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15902 for ac_header in CrashReporterClient.h
15904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 ac_res=`eval echo '${'$as_ac_Header'}'`
15912 { echo "$as_me:$LINENO: result: $ac_res" >&5
15913 echo "${ECHO_T}$ac_res" >&6; }
15915 # Is the header compilable?
15916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15918 cat >conftest.$ac_ext <<_ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15924 $ac_includes_default
15925 #include <$ac_header>
15927 rm -f conftest.$ac_objext
15928 if { (ac_try="$ac_compile"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_compile") 2>conftest.er1
15936 grep -v '^ *+' conftest.er1 >conftest.err
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
15941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15942 { (case "(($ac_try" in
15943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15944 *) ac_try_echo=$ac_try;;
15946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15947 (eval "$ac_try") 2>&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; } &&
15951 { ac_try='test -s conftest.$ac_objext'
15952 { (case "(($ac_try" in
15953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954 *) ac_try_echo=$ac_try;;
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_try") 2>&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15961 ac_header_compiler=yes
15963 echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15966 ac_header_compiler=no
15969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15971 echo "${ECHO_T}$ac_header_compiler" >&6; }
15973 # Is the header present?
15974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15976 cat >conftest.$ac_ext <<_ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h. */
15982 #include <$ac_header>
15984 if { (ac_try="$ac_cpp conftest.$ac_ext"
15985 case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15992 grep -v '^ *+' conftest.er1 >conftest.err
15994 cat conftest.err >&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } >/dev/null; then
15997 if test -s conftest.err; then
15998 ac_cpp_err=$ac_c_preproc_warn_flag
15999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16006 if test -z "$ac_cpp_err"; then
16007 ac_header_preproc=yes
16009 echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16012 ac_header_preproc=no
16015 rm -f conftest.err conftest.$ac_ext
16016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16017 echo "${ECHO_T}$ac_header_preproc" >&6; }
16019 # So? What about this header?
16020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16026 ac_header_preproc=yes
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16042 ## ------------------------------------ ##
16043 ## Report this to http://llvm.org/bugs/ ##
16044 ## ------------------------------------ ##
16046 ) | sed "s/^/$as_me: WARNING: /" >&2
16049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 eval "$as_ac_Header=\$ac_header_preproc"
16056 ac_res=`eval echo '${'$as_ac_Header'}'`
16057 { echo "$as_me:$LINENO: result: $ac_res" >&5
16058 echo "${ECHO_T}$ac_res" >&6; }
16061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16062 cat >>confdefs.h <<_ACEOF
16063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16071 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16072 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16073 cat >conftest.$ac_ext <<_ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 extern const char *__crashreporter_info__;
16081 __crashreporter_info__ = "test";
16086 rm -f conftest.$ac_objext conftest$ac_exeext
16087 if { (ac_try="$ac_link"
16088 case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_link") 2>conftest.er1
16095 grep -v '^ *+' conftest.er1 >conftest.err
16097 cat conftest.err >&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
16100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16101 { (case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_try") 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 { ac_try='test -s conftest$ac_exeext'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16120 { echo "$as_me:$LINENO: result: yes" >&5
16121 echo "${ECHO_T}yes" >&6; }
16123 cat >>confdefs.h <<\_ACEOF
16124 #define HAVE_CRASHREPORTER_INFO 1
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 { echo "$as_me:$LINENO: result: no" >&5
16132 echo "${ECHO_T}no" >&6; }
16134 cat >>confdefs.h <<\_ACEOF
16135 #define HAVE_CRASHREPORTER_INFO 0
16140 rm -f core conftest.err conftest.$ac_objext \
16141 conftest$ac_exeext conftest.$ac_ext
16146 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16147 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16148 if test "${ac_cv_huge_val_sanity+set}" = set; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16153 ac_cpp='$CXXCPP $CPPFLAGS'
16154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16158 ac_save_CXXFLAGS=$CXXFLAGS
16160 if test "$cross_compiling" = yes; then
16161 ac_cv_huge_val_sanity=yes
16163 cat >conftest.$ac_ext <<_ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h. */
16173 double x = HUGE_VAL; return x != x;
16178 rm -f conftest$ac_exeext
16179 if { (ac_try="$ac_link"
16180 case "(($ac_try" in
16181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16182 *) ac_try_echo=$ac_try;;
16184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16185 (eval "$ac_link") 2>&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16189 { (case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194 (eval "$ac_try") 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ac_cv_huge_val_sanity=yes
16200 echo "$as_me: program exited with status $ac_status" >&5
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16204 ( exit $ac_status )
16205 ac_cv_huge_val_sanity=no
16207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16211 CXXFLAGS=$ac_save_CXXFLAGS
16213 ac_cpp='$CPP $CPPFLAGS'
16214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16220 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16221 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16222 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16225 { echo "$as_me:$LINENO: checking for pid_t" >&5
16226 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16227 if test "${ac_cv_type_pid_t+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16230 cat >conftest.$ac_ext <<_ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 $ac_includes_default
16237 typedef pid_t ac__type_new_;
16241 if ((ac__type_new_ *) 0)
16243 if (sizeof (ac__type_new_))
16249 rm -f conftest.$ac_objext
16250 if { (ac_try="$ac_compile"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_compile") 2>conftest.er1
16258 grep -v '^ *+' conftest.er1 >conftest.err
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } &&
16263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16264 { (case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_try") 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; } &&
16273 { ac_try='test -s conftest.$ac_objext'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_try") 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_cv_type_pid_t=yes
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 ac_cv_type_pid_t=no
16291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16293 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16294 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16295 if test $ac_cv_type_pid_t = yes; then
16299 cat >>confdefs.h <<_ACEOF
16305 { echo "$as_me:$LINENO: checking for size_t" >&5
16306 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16307 if test "${ac_cv_type_size_t+set}" = set; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16310 cat >conftest.$ac_ext <<_ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h. */
16316 $ac_includes_default
16317 typedef size_t ac__type_new_;
16321 if ((ac__type_new_ *) 0)
16323 if (sizeof (ac__type_new_))
16329 rm -f conftest.$ac_objext
16330 if { (ac_try="$ac_compile"
16331 case "(($ac_try" in
16332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16336 (eval "$ac_compile") 2>conftest.er1
16338 grep -v '^ *+' conftest.er1 >conftest.err
16340 cat conftest.err >&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } &&
16343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16344 { (case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_try") 2>&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; } &&
16353 { ac_try='test -s conftest.$ac_objext'
16354 { (case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_try") 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 ac_cv_type_size_t=yes
16365 echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16368 ac_cv_type_size_t=no
16371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16373 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16374 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16375 if test $ac_cv_type_size_t = yes; then
16379 cat >>confdefs.h <<_ACEOF
16380 #define size_t unsigned int
16386 cat >>confdefs.h <<_ACEOF
16387 #define RETSIGTYPE void
16390 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16391 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16392 if test "${ac_cv_struct_tm+set}" = set; then
16393 echo $ECHO_N "(cached) $ECHO_C" >&6
16395 cat >conftest.$ac_ext <<_ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 #include <sys/types.h>
16407 struct tm *tp; tp->tm_sec;
16412 rm -f conftest.$ac_objext
16413 if { (ac_try="$ac_compile"
16414 case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_compile") 2>conftest.er1
16421 grep -v '^ *+' conftest.er1 >conftest.err
16423 cat conftest.err >&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } &&
16426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16427 { (case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_try") 2>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; } &&
16436 { ac_try='test -s conftest.$ac_objext'
16437 { (case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442 (eval "$ac_try") 2>&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_cv_struct_tm=time.h
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 ac_cv_struct_tm=sys/time.h
16454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16456 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16457 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16458 if test $ac_cv_struct_tm = sys/time.h; then
16460 cat >>confdefs.h <<\_ACEOF
16461 #define TM_IN_SYS_TIME 1
16466 { echo "$as_me:$LINENO: checking for int64_t" >&5
16467 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16468 if test "${ac_cv_type_int64_t+set}" = set; then
16469 echo $ECHO_N "(cached) $ECHO_C" >&6
16471 cat >conftest.$ac_ext <<_ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h. */
16477 $ac_includes_default
16478 typedef int64_t ac__type_new_;
16482 if ((ac__type_new_ *) 0)
16484 if (sizeof (ac__type_new_))
16490 rm -f conftest.$ac_objext
16491 if { (ac_try="$ac_compile"
16492 case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_compile") 2>conftest.er1
16499 grep -v '^ *+' conftest.er1 >conftest.err
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
16504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16505 { (case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_try") 2>&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest.$ac_objext'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
16524 ac_cv_type_int64_t=yes
16526 echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.$ac_ext >&5
16529 ac_cv_type_int64_t=no
16532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16534 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16535 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16536 if test $ac_cv_type_int64_t = yes; then
16538 cat >>confdefs.h <<_ACEOF
16539 #define HAVE_INT64_T 1
16544 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16545 echo "$as_me: error: Type int64_t required but not found" >&2;}
16546 { (exit 1); exit 1; }; }
16549 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16550 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16551 if test "${ac_cv_type_uint64_t+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 cat >conftest.$ac_ext <<_ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16560 $ac_includes_default
16561 typedef uint64_t ac__type_new_;
16565 if ((ac__type_new_ *) 0)
16567 if (sizeof (ac__type_new_))
16573 rm -f conftest.$ac_objext
16574 if { (ac_try="$ac_compile"
16575 case "(($ac_try" in
16576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577 *) ac_try_echo=$ac_try;;
16579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580 (eval "$ac_compile") 2>conftest.er1
16582 grep -v '^ *+' conftest.er1 >conftest.err
16584 cat conftest.err >&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); } &&
16587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16588 { (case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_try") 2>&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; } &&
16597 { ac_try='test -s conftest.$ac_objext'
16598 { (case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_try") 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 ac_cv_type_uint64_t=yes
16609 echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16612 ac_cv_type_uint64_t=no
16615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16617 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16618 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16619 if test $ac_cv_type_uint64_t = yes; then
16621 cat >>confdefs.h <<_ACEOF
16622 #define HAVE_UINT64_T 1
16627 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16628 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16629 if test "${ac_cv_type_u_int64_t+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 cat >conftest.$ac_ext <<_ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16638 $ac_includes_default
16639 typedef u_int64_t ac__type_new_;
16643 if ((ac__type_new_ *) 0)
16645 if (sizeof (ac__type_new_))
16651 rm -f conftest.$ac_objext
16652 if { (ac_try="$ac_compile"
16653 case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_compile") 2>conftest.er1
16660 grep -v '^ *+' conftest.er1 >conftest.err
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
16665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16666 { (case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_try") 2>&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; } &&
16675 { ac_try='test -s conftest.$ac_objext'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_cv_type_u_int64_t=yes
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16690 ac_cv_type_u_int64_t=no
16693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16695 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16696 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16697 if test $ac_cv_type_u_int64_t = yes; then
16699 cat >>confdefs.h <<_ACEOF
16700 #define HAVE_U_INT64_T 1
16705 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16706 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16707 { (exit 1); exit 1; }; }
16721 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16727 echo $ECHO_N "(cached) $ECHO_C" >&6
16729 cat >conftest.$ac_ext <<_ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16737 #define $ac_func innocuous_$ac_func
16739 /* System header to define __stub macros and hopefully few prototypes,
16740 which can conflict with char $ac_func (); below.
16741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16742 <limits.h> exists even on freestanding compilers. */
16745 # include <limits.h>
16747 # include <assert.h>
16752 /* Override any GCC internal prototype to avoid an error.
16753 Use char because int might match the return type of a GCC
16754 builtin and then its argument prototype would still apply. */
16759 /* The GNU C library defines this for functions which it implements
16760 to always fail with ENOSYS. Some functions are actually named
16761 something starting with __ and the normal name is an alias. */
16762 #if defined __stub_$ac_func || defined __stub___$ac_func
16769 return $ac_func ();
16774 rm -f conftest.$ac_objext conftest$ac_exeext
16775 if { (ac_try="$ac_link"
16776 case "(($ac_try" in
16777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778 *) ac_try_echo=$ac_try;;
16780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781 (eval "$ac_link") 2>conftest.er1
16783 grep -v '^ *+' conftest.er1 >conftest.err
16785 cat conftest.err >&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } &&
16788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16789 { (case "(($ac_try" in
16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791 *) ac_try_echo=$ac_try;;
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794 (eval "$ac_try") 2>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; } &&
16798 { ac_try='test -s conftest$ac_exeext'
16799 { (case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_try") 2>&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
16808 eval "$as_ac_var=yes"
16810 echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16813 eval "$as_ac_var=no"
16816 rm -f core conftest.err conftest.$ac_objext \
16817 conftest$ac_exeext conftest.$ac_ext
16819 ac_res=`eval echo '${'$as_ac_var'}'`
16820 { echo "$as_me:$LINENO: result: $ac_res" >&5
16821 echo "${ECHO_T}$ac_res" >&6; }
16822 if test `eval echo '${'$as_ac_var'}'` = yes; then
16823 cat >>confdefs.h <<_ACEOF
16824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16834 for ac_func in powf fmodf strtof round
16836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 cat >conftest.$ac_ext <<_ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16850 #define $ac_func innocuous_$ac_func
16852 /* System header to define __stub macros and hopefully few prototypes,
16853 which can conflict with char $ac_func (); below.
16854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16855 <limits.h> exists even on freestanding compilers. */
16858 # include <limits.h>
16860 # include <assert.h>
16865 /* Override any GCC internal prototype to avoid an error.
16866 Use char because int might match the return type of a GCC
16867 builtin and then its argument prototype would still apply. */
16872 /* The GNU C library defines this for functions which it implements
16873 to always fail with ENOSYS. Some functions are actually named
16874 something starting with __ and the normal name is an alias. */
16875 #if defined __stub_$ac_func || defined __stub___$ac_func
16882 return $ac_func ();
16887 rm -f conftest.$ac_objext conftest$ac_exeext
16888 if { (ac_try="$ac_link"
16889 case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894 (eval "$ac_link") 2>conftest.er1
16896 grep -v '^ *+' conftest.er1 >conftest.err
16898 cat conftest.err >&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16902 { (case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_try") 2>&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; } &&
16911 { ac_try='test -s conftest$ac_exeext'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921 eval "$as_ac_var=yes"
16923 echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16926 eval "$as_ac_var=no"
16929 rm -f core conftest.err conftest.$ac_objext \
16930 conftest$ac_exeext conftest.$ac_ext
16932 ac_res=`eval echo '${'$as_ac_var'}'`
16933 { echo "$as_me:$LINENO: result: $ac_res" >&5
16934 echo "${ECHO_T}$ac_res" >&6; }
16935 if test `eval echo '${'$as_ac_var'}'` = yes; then
16936 cat >>confdefs.h <<_ACEOF
16937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16948 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16954 echo $ECHO_N "(cached) $ECHO_C" >&6
16956 cat >conftest.$ac_ext <<_ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16964 #define $ac_func innocuous_$ac_func
16966 /* System header to define __stub macros and hopefully few prototypes,
16967 which can conflict with char $ac_func (); below.
16968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16969 <limits.h> exists even on freestanding compilers. */
16972 # include <limits.h>
16974 # include <assert.h>
16979 /* Override any GCC internal prototype to avoid an error.
16980 Use char because int might match the return type of a GCC
16981 builtin and then its argument prototype would still apply. */
16986 /* The GNU C library defines this for functions which it implements
16987 to always fail with ENOSYS. Some functions are actually named
16988 something starting with __ and the normal name is an alias. */
16989 #if defined __stub_$ac_func || defined __stub___$ac_func
16996 return $ac_func ();
17001 rm -f conftest.$ac_objext conftest$ac_exeext
17002 if { (ac_try="$ac_link"
17003 case "(($ac_try" in
17004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005 *) ac_try_echo=$ac_try;;
17007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008 (eval "$ac_link") 2>conftest.er1
17010 grep -v '^ *+' conftest.er1 >conftest.err
17012 cat conftest.err >&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
17015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17016 { (case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_try") 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try='test -s conftest$ac_exeext'
17026 { (case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_try") 2>&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 eval "$as_ac_var=yes"
17037 echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17040 eval "$as_ac_var=no"
17043 rm -f core conftest.err conftest.$ac_objext \
17044 conftest$ac_exeext conftest.$ac_ext
17046 ac_res=`eval echo '${'$as_ac_var'}'`
17047 { echo "$as_me:$LINENO: result: $ac_res" >&5
17048 echo "${ECHO_T}$ac_res" >&6; }
17049 if test `eval echo '${'$as_ac_var'}'` = yes; then
17050 cat >>confdefs.h <<_ACEOF
17051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17060 for ac_func in isatty mkdtemp mkstemp
17062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17063 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17065 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 cat >conftest.$ac_ext <<_ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17076 #define $ac_func innocuous_$ac_func
17078 /* System header to define __stub macros and hopefully few prototypes,
17079 which can conflict with char $ac_func (); below.
17080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17081 <limits.h> exists even on freestanding compilers. */
17084 # include <limits.h>
17086 # include <assert.h>
17091 /* Override any GCC internal prototype to avoid an error.
17092 Use char because int might match the return type of a GCC
17093 builtin and then its argument prototype would still apply. */
17098 /* The GNU C library defines this for functions which it implements
17099 to always fail with ENOSYS. Some functions are actually named
17100 something starting with __ and the normal name is an alias. */
17101 #if defined __stub_$ac_func || defined __stub___$ac_func
17108 return $ac_func ();
17113 rm -f conftest.$ac_objext conftest$ac_exeext
17114 if { (ac_try="$ac_link"
17115 case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_link") 2>conftest.er1
17122 grep -v '^ *+' conftest.er1 >conftest.err
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17128 { (case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_try") 2>&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest$ac_exeext'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 eval "$as_ac_var=yes"
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 eval "$as_ac_var=no"
17155 rm -f core conftest.err conftest.$ac_objext \
17156 conftest$ac_exeext conftest.$ac_ext
17158 ac_res=`eval echo '${'$as_ac_var'}'`
17159 { echo "$as_me:$LINENO: result: $ac_res" >&5
17160 echo "${ECHO_T}$ac_res" >&6; }
17161 if test `eval echo '${'$as_ac_var'}'` = yes; then
17162 cat >>confdefs.h <<_ACEOF
17163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17176 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 cat >conftest.$ac_ext <<_ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17192 #define $ac_func innocuous_$ac_func
17194 /* System header to define __stub macros and hopefully few prototypes,
17195 which can conflict with char $ac_func (); below.
17196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17197 <limits.h> exists even on freestanding compilers. */
17200 # include <limits.h>
17202 # include <assert.h>
17207 /* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17214 /* The GNU C library defines this for functions which it implements
17215 to always fail with ENOSYS. Some functions are actually named
17216 something starting with __ and the normal name is an alias. */
17217 #if defined __stub_$ac_func || defined __stub___$ac_func
17224 return $ac_func ();
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (ac_try="$ac_link"
17231 case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_link") 2>conftest.er1
17238 grep -v '^ *+' conftest.er1 >conftest.err
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17244 { (case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_try") 2>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; } &&
17253 { ac_try='test -s conftest$ac_exeext'
17254 { (case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_try") 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 eval "$as_ac_var=yes"
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17268 eval "$as_ac_var=no"
17271 rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17274 ac_res=`eval echo '${'$as_ac_var'}'`
17275 { echo "$as_me:$LINENO: result: $ac_res" >&5
17276 echo "${ECHO_T}$ac_res" >&6; }
17277 if test `eval echo '${'$as_ac_var'}'` = yes; then
17278 cat >>confdefs.h <<_ACEOF
17279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17288 for ac_func in strerror strerror_r setenv
17290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 cat >conftest.$ac_ext <<_ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h. */
17302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17304 #define $ac_func innocuous_$ac_func
17306 /* System header to define __stub macros and hopefully few prototypes,
17307 which can conflict with char $ac_func (); below.
17308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17309 <limits.h> exists even on freestanding compilers. */
17312 # include <limits.h>
17314 # include <assert.h>
17319 /* Override any GCC internal prototype to avoid an error.
17320 Use char because int might match the return type of a GCC
17321 builtin and then its argument prototype would still apply. */
17326 /* The GNU C library defines this for functions which it implements
17327 to always fail with ENOSYS. Some functions are actually named
17328 something starting with __ and the normal name is an alias. */
17329 #if defined __stub_$ac_func || defined __stub___$ac_func
17336 return $ac_func ();
17341 rm -f conftest.$ac_objext conftest$ac_exeext
17342 if { (ac_try="$ac_link"
17343 case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_link") 2>conftest.er1
17350 grep -v '^ *+' conftest.er1 >conftest.err
17352 cat conftest.err >&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
17355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17356 { (case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361 (eval "$ac_try") 2>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; } &&
17365 { ac_try='test -s conftest$ac_exeext'
17366 { (case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_try") 2>&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; }; then
17375 eval "$as_ac_var=yes"
17377 echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17380 eval "$as_ac_var=no"
17383 rm -f core conftest.err conftest.$ac_objext \
17384 conftest$ac_exeext conftest.$ac_ext
17386 ac_res=`eval echo '${'$as_ac_var'}'`
17387 { echo "$as_me:$LINENO: result: $ac_res" >&5
17388 echo "${ECHO_T}$ac_res" >&6; }
17389 if test `eval echo '${'$as_ac_var'}'` = yes; then
17390 cat >>confdefs.h <<_ACEOF
17391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17401 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 cat >conftest.$ac_ext <<_ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17417 #define $ac_func innocuous_$ac_func
17419 /* System header to define __stub macros and hopefully few prototypes,
17420 which can conflict with char $ac_func (); below.
17421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17422 <limits.h> exists even on freestanding compilers. */
17425 # include <limits.h>
17427 # include <assert.h>
17432 /* Override any GCC internal prototype to avoid an error.
17433 Use char because int might match the return type of a GCC
17434 builtin and then its argument prototype would still apply. */
17439 /* The GNU C library defines this for functions which it implements
17440 to always fail with ENOSYS. Some functions are actually named
17441 something starting with __ and the normal name is an alias. */
17442 #if defined __stub_$ac_func || defined __stub___$ac_func
17449 return $ac_func ();
17454 rm -f conftest.$ac_objext conftest$ac_exeext
17455 if { (ac_try="$ac_link"
17456 case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_link") 2>conftest.er1
17463 grep -v '^ *+' conftest.er1 >conftest.err
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
17468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17469 { (case "(($ac_try" in
17470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471 *) ac_try_echo=$ac_try;;
17473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474 (eval "$ac_try") 2>&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; } &&
17478 { ac_try='test -s conftest$ac_exeext'
17479 { (case "(($ac_try" in
17480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481 *) ac_try_echo=$ac_try;;
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484 (eval "$ac_try") 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488 eval "$as_ac_var=yes"
17490 echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17493 eval "$as_ac_var=no"
17496 rm -f core conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17499 ac_res=`eval echo '${'$as_ac_var'}'`
17500 { echo "$as_me:$LINENO: result: $ac_res" >&5
17501 echo "${ECHO_T}$ac_res" >&6; }
17502 if test `eval echo '${'$as_ac_var'}'` = yes; then
17503 cat >>confdefs.h <<_ACEOF
17504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17515 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 cat >conftest.$ac_ext <<_ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17531 #define $ac_func innocuous_$ac_func
17533 /* System header to define __stub macros and hopefully few prototypes,
17534 which can conflict with char $ac_func (); below.
17535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17536 <limits.h> exists even on freestanding compilers. */
17539 # include <limits.h>
17541 # include <assert.h>
17546 /* Override any GCC internal prototype to avoid an error.
17547 Use char because int might match the return type of a GCC
17548 builtin and then its argument prototype would still apply. */
17553 /* The GNU C library defines this for functions which it implements
17554 to always fail with ENOSYS. Some functions are actually named
17555 something starting with __ and the normal name is an alias. */
17556 #if defined __stub_$ac_func || defined __stub___$ac_func
17563 return $ac_func ();
17568 rm -f conftest.$ac_objext conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_link") 2>conftest.er1
17577 grep -v '^ *+' conftest.er1 >conftest.err
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } &&
17582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17583 { (case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_try") 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; } &&
17592 { ac_try='test -s conftest$ac_exeext'
17593 { (case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_try") 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; }; then
17602 eval "$as_ac_var=yes"
17604 echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17607 eval "$as_ac_var=no"
17610 rm -f core conftest.err conftest.$ac_objext \
17611 conftest$ac_exeext conftest.$ac_ext
17613 ac_res=`eval echo '${'$as_ac_var'}'`
17614 { echo "$as_me:$LINENO: result: $ac_res" >&5
17615 echo "${ECHO_T}$ac_res" >&6; }
17616 if test `eval echo '${'$as_ac_var'}'` = yes; then
17617 cat >>confdefs.h <<_ACEOF
17618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17624 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17625 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17626 if test "${llvm_cv_c_printf_a+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17630 ac_cpp='$CPP $CPPFLAGS'
17631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17635 if test "$cross_compiling" = yes; then
17636 llvmac_cv_c_printf_a=no
17638 cat >conftest.$ac_ext <<_ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17647 #include <stdlib.h>
17653 volatile double A, B;
17657 sprintf(Buffer, "%a", A);
17661 if (A != 0x1.999999999999ap-4)
17668 rm -f conftest$ac_exeext
17669 if { (ac_try="$ac_link"
17670 case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_link") 2>&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17679 { (case "(($ac_try" in
17680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681 *) ac_try_echo=$ac_try;;
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684 (eval "$ac_try") 2>&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; }; then
17688 llvm_cv_c_printf_a=yes
17690 echo "$as_me: program exited with status $ac_status" >&5
17691 echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17694 ( exit $ac_status )
17695 llvmac_cv_c_printf_a=no
17697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17702 ac_cpp='$CPP $CPPFLAGS'
17703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17708 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17709 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17710 if test "$llvm_cv_c_printf_a" = "yes"; then
17712 cat >>confdefs.h <<\_ACEOF
17713 #define HAVE_PRINTF_A 1
17719 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17720 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17721 if test "${ac_cv_func_rand48+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 ac_cpp='$CXXCPP $CPPFLAGS'
17726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17730 cat >conftest.$ac_ext <<_ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h. */
17736 #include <stdlib.h>
17740 srand48(0);lrand48();drand48();
17745 rm -f conftest.$ac_objext
17746 if { (ac_try="$ac_compile"
17747 case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752 (eval "$ac_compile") 2>conftest.er1
17754 grep -v '^ *+' conftest.er1 >conftest.err
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17760 { (case "(($ac_try" in
17761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762 *) ac_try_echo=$ac_try;;
17764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765 (eval "$ac_try") 2>&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try='test -s conftest.$ac_objext'
17770 { (case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_try") 2>&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; }; then
17779 ac_cv_func_rand48=yes
17781 echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17784 ac_cv_func_rand48=no
17787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17789 ac_cpp='$CPP $CPPFLAGS'
17790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17795 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17796 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17798 if test "$ac_cv_func_rand48" = "yes" ; then
17800 cat >>confdefs.h <<\_ACEOF
17801 #define HAVE_RAND48 1
17807 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17808 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17809 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17812 cat >conftest.$ac_ext <<_ACEOF
17815 cat confdefs.h >>conftest.$ac_ext
17816 cat >>conftest.$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17818 $ac_includes_default
17823 char *p = (char *) strerror_s;
17831 rm -f conftest.$ac_objext
17832 if { (ac_try="$ac_compile"
17833 case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_compile") 2>conftest.er1
17840 grep -v '^ *+' conftest.er1 >conftest.err
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846 { (case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_try") 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest.$ac_objext'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 ac_cv_have_decl_strerror_s=yes
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17870 ac_cv_have_decl_strerror_s=no
17873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17875 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17876 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17877 if test $ac_cv_have_decl_strerror_s = yes; then
17879 cat >>confdefs.h <<_ACEOF
17880 #define HAVE_DECL_STRERROR_S 1
17885 cat >>confdefs.h <<_ACEOF
17886 #define HAVE_DECL_STRERROR_S 0
17894 if test "$llvm_cv_os_type" = "MingW" ; then
17895 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17896 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17897 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17900 ac_check_lib_save_LIBS=$LIBS
17902 cat >conftest.$ac_ext <<_ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17909 /* Override any GCC internal prototype to avoid an error.
17910 Use char because int might match the return type of a GCC
17911 builtin and then its argument prototype would still apply. */
17924 rm -f conftest.$ac_objext conftest$ac_exeext
17925 if { (ac_try="$ac_link"
17926 case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_link") 2>conftest.er1
17933 grep -v '^ *+' conftest.er1 >conftest.err
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17939 { (case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_try") 2>&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } &&
17948 { ac_try='test -s conftest$ac_exeext'
17949 { (case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_try") 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ac_cv_lib_gcc__alloca=yes
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17963 ac_cv_lib_gcc__alloca=no
17966 rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
17968 LIBS=$ac_check_lib_save_LIBS
17970 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17971 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17972 if test $ac_cv_lib_gcc__alloca = yes; then
17974 cat >>confdefs.h <<\_ACEOF
17975 #define HAVE__ALLOCA 1
17980 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17981 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17982 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17985 ac_check_lib_save_LIBS=$LIBS
17987 cat >conftest.$ac_ext <<_ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17994 /* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
18004 return __alloca ();
18009 rm -f conftest.$ac_objext conftest$ac_exeext
18010 if { (ac_try="$ac_link"
18011 case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_link") 2>conftest.er1
18018 grep -v '^ *+' conftest.er1 >conftest.err
18020 cat conftest.err >&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18024 { (case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_try") 2>&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest$ac_exeext'
18034 { (case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039 (eval "$ac_try") 2>&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; }; then
18043 ac_cv_lib_gcc___alloca=yes
18045 echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18048 ac_cv_lib_gcc___alloca=no
18051 rm -f core conftest.err conftest.$ac_objext \
18052 conftest$ac_exeext conftest.$ac_ext
18053 LIBS=$ac_check_lib_save_LIBS
18055 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18056 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18057 if test $ac_cv_lib_gcc___alloca = yes; then
18059 cat >>confdefs.h <<\_ACEOF
18060 #define HAVE___ALLOCA 1
18065 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18066 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18067 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18070 ac_check_lib_save_LIBS=$LIBS
18072 cat >conftest.$ac_ext <<_ACEOF
18075 cat confdefs.h >>conftest.$ac_ext
18076 cat >>conftest.$ac_ext <<_ACEOF
18077 /* end confdefs.h. */
18079 /* Override any GCC internal prototype to avoid an error.
18080 Use char because int might match the return type of a GCC
18081 builtin and then its argument prototype would still apply. */
18089 return __chkstk ();
18094 rm -f conftest.$ac_objext conftest$ac_exeext
18095 if { (ac_try="$ac_link"
18096 case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_link") 2>conftest.er1
18103 grep -v '^ *+' conftest.er1 >conftest.err
18105 cat conftest.err >&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } &&
18108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18109 { (case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_try") 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; } &&
18118 { ac_try='test -s conftest$ac_exeext'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_cv_lib_gcc___chkstk=yes
18130 echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18133 ac_cv_lib_gcc___chkstk=no
18136 rm -f core conftest.err conftest.$ac_objext \
18137 conftest$ac_exeext conftest.$ac_ext
18138 LIBS=$ac_check_lib_save_LIBS
18140 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18141 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18142 if test $ac_cv_lib_gcc___chkstk = yes; then
18144 cat >>confdefs.h <<\_ACEOF
18145 #define HAVE___CHKSTK 1
18150 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18151 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18152 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
18155 ac_check_lib_save_LIBS=$LIBS
18157 cat >conftest.$ac_ext <<_ACEOF
18160 cat confdefs.h >>conftest.$ac_ext
18161 cat >>conftest.$ac_ext <<_ACEOF
18162 /* end confdefs.h. */
18164 /* Override any GCC internal prototype to avoid an error.
18165 Use char because int might match the return type of a GCC
18166 builtin and then its argument prototype would still apply. */
18174 return ___chkstk ();
18179 rm -f conftest.$ac_objext conftest$ac_exeext
18180 if { (ac_try="$ac_link"
18181 case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_link") 2>conftest.er1
18188 grep -v '^ *+' conftest.er1 >conftest.err
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } &&
18193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18194 { (case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_try") 2>&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; } &&
18203 { ac_try='test -s conftest$ac_exeext'
18204 { (case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_try") 2>&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; }; then
18213 ac_cv_lib_gcc____chkstk=yes
18215 echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18218 ac_cv_lib_gcc____chkstk=no
18221 rm -f core conftest.err conftest.$ac_objext \
18222 conftest$ac_exeext conftest.$ac_ext
18223 LIBS=$ac_check_lib_save_LIBS
18225 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18226 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18227 if test $ac_cv_lib_gcc____chkstk = yes; then
18229 cat >>confdefs.h <<\_ACEOF
18230 #define HAVE____CHKSTK 1
18236 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18237 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18238 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
18241 ac_check_lib_save_LIBS=$LIBS
18243 cat >conftest.$ac_ext <<_ACEOF
18246 cat confdefs.h >>conftest.$ac_ext
18247 cat >>conftest.$ac_ext <<_ACEOF
18248 /* end confdefs.h. */
18250 /* Override any GCC internal prototype to avoid an error.
18251 Use char because int might match the return type of a GCC
18252 builtin and then its argument prototype would still apply. */
18260 return __ashldi3 ();
18265 rm -f conftest.$ac_objext conftest$ac_exeext
18266 if { (ac_try="$ac_link"
18267 case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_link") 2>conftest.er1
18274 grep -v '^ *+' conftest.er1 >conftest.err
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18280 { (case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_try") 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; } &&
18289 { ac_try='test -s conftest$ac_exeext'
18290 { (case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_try") 2>&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 ac_cv_lib_gcc___ashldi3=yes
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18304 ac_cv_lib_gcc___ashldi3=no
18307 rm -f core conftest.err conftest.$ac_objext \
18308 conftest$ac_exeext conftest.$ac_ext
18309 LIBS=$ac_check_lib_save_LIBS
18311 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18312 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18313 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18315 cat >>confdefs.h <<\_ACEOF
18316 #define HAVE___ASHLDI3 1
18321 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18322 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18323 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18324 echo $ECHO_N "(cached) $ECHO_C" >&6
18326 ac_check_lib_save_LIBS=$LIBS
18328 cat >conftest.$ac_ext <<_ACEOF
18331 cat confdefs.h >>conftest.$ac_ext
18332 cat >>conftest.$ac_ext <<_ACEOF
18333 /* end confdefs.h. */
18335 /* Override any GCC internal prototype to avoid an error.
18336 Use char because int might match the return type of a GCC
18337 builtin and then its argument prototype would still apply. */
18345 return __ashrdi3 ();
18350 rm -f conftest.$ac_objext conftest$ac_exeext
18351 if { (ac_try="$ac_link"
18352 case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_link") 2>conftest.er1
18359 grep -v '^ *+' conftest.er1 >conftest.err
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
18364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18365 { (case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_try") 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; } &&
18374 { ac_try='test -s conftest$ac_exeext'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
18384 ac_cv_lib_gcc___ashrdi3=yes
18386 echo "$as_me: failed program was:" >&5
18387 sed 's/^/| /' conftest.$ac_ext >&5
18389 ac_cv_lib_gcc___ashrdi3=no
18392 rm -f core conftest.err conftest.$ac_objext \
18393 conftest$ac_exeext conftest.$ac_ext
18394 LIBS=$ac_check_lib_save_LIBS
18396 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18397 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18398 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18400 cat >>confdefs.h <<\_ACEOF
18401 #define HAVE___ASHRDI3 1
18406 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18407 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18408 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18409 echo $ECHO_N "(cached) $ECHO_C" >&6
18411 ac_check_lib_save_LIBS=$LIBS
18413 cat >conftest.$ac_ext <<_ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18420 /* Override any GCC internal prototype to avoid an error.
18421 Use char because int might match the return type of a GCC
18422 builtin and then its argument prototype would still apply. */
18430 return __divdi3 ();
18435 rm -f conftest.$ac_objext conftest$ac_exeext
18436 if { (ac_try="$ac_link"
18437 case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_link") 2>conftest.er1
18444 grep -v '^ *+' conftest.er1 >conftest.err
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
18449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } &&
18459 { ac_try='test -s conftest$ac_exeext'
18460 { (case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_try") 2>&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 ac_cv_lib_gcc___divdi3=yes
18471 echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18474 ac_cv_lib_gcc___divdi3=no
18477 rm -f core conftest.err conftest.$ac_objext \
18478 conftest$ac_exeext conftest.$ac_ext
18479 LIBS=$ac_check_lib_save_LIBS
18481 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18482 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18483 if test $ac_cv_lib_gcc___divdi3 = yes; then
18485 cat >>confdefs.h <<\_ACEOF
18486 #define HAVE___DIVDI3 1
18491 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18492 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18493 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 ac_check_lib_save_LIBS=$LIBS
18498 cat >conftest.$ac_ext <<_ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18505 /* Override any GCC internal prototype to avoid an error.
18506 Use char because int might match the return type of a GCC
18507 builtin and then its argument prototype would still apply. */
18515 return __fixdfdi ();
18520 rm -f conftest.$ac_objext conftest$ac_exeext
18521 if { (ac_try="$ac_link"
18522 case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_link") 2>conftest.er1
18529 grep -v '^ *+' conftest.er1 >conftest.err
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } &&
18534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18535 { (case "(($ac_try" in
18536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537 *) ac_try_echo=$ac_try;;
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_try") 2>&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; } &&
18544 { ac_try='test -s conftest$ac_exeext'
18545 { (case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_try") 2>&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_lib_gcc___fixdfdi=yes
18556 echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18559 ac_cv_lib_gcc___fixdfdi=no
18562 rm -f core conftest.err conftest.$ac_objext \
18563 conftest$ac_exeext conftest.$ac_ext
18564 LIBS=$ac_check_lib_save_LIBS
18566 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18567 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18568 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18570 cat >>confdefs.h <<\_ACEOF
18571 #define HAVE___FIXDFDI 1
18576 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18577 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18578 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
18581 ac_check_lib_save_LIBS=$LIBS
18583 cat >conftest.$ac_ext <<_ACEOF
18586 cat confdefs.h >>conftest.$ac_ext
18587 cat >>conftest.$ac_ext <<_ACEOF
18588 /* end confdefs.h. */
18590 /* Override any GCC internal prototype to avoid an error.
18591 Use char because int might match the return type of a GCC
18592 builtin and then its argument prototype would still apply. */
18600 return __fixsfdi ();
18605 rm -f conftest.$ac_objext conftest$ac_exeext
18606 if { (ac_try="$ac_link"
18607 case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612 (eval "$ac_link") 2>conftest.er1
18614 grep -v '^ *+' conftest.er1 >conftest.err
18616 cat conftest.err >&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); } &&
18619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18620 { (case "(($ac_try" in
18621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622 *) ac_try_echo=$ac_try;;
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625 (eval "$ac_try") 2>&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest$ac_exeext'
18630 { (case "(($ac_try" in
18631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632 *) ac_try_echo=$ac_try;;
18634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635 (eval "$ac_try") 2>&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 ac_cv_lib_gcc___fixsfdi=yes
18641 echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18644 ac_cv_lib_gcc___fixsfdi=no
18647 rm -f core conftest.err conftest.$ac_objext \
18648 conftest$ac_exeext conftest.$ac_ext
18649 LIBS=$ac_check_lib_save_LIBS
18651 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18652 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18653 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18655 cat >>confdefs.h <<\_ACEOF
18656 #define HAVE___FIXSFDI 1
18661 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18662 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18663 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 ac_check_lib_save_LIBS=$LIBS
18668 cat >conftest.$ac_ext <<_ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18675 /* Override any GCC internal prototype to avoid an error.
18676 Use char because int might match the return type of a GCC
18677 builtin and then its argument prototype would still apply. */
18681 char __floatdidf ();
18685 return __floatdidf ();
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_link") 2>conftest.er1
18699 grep -v '^ *+' conftest.er1 >conftest.err
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } &&
18704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18705 { (case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_try") 2>&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; } &&
18714 { ac_try='test -s conftest$ac_exeext'
18715 { (case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_try") 2>&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18724 ac_cv_lib_gcc___floatdidf=yes
18726 echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.$ac_ext >&5
18729 ac_cv_lib_gcc___floatdidf=no
18732 rm -f core conftest.err conftest.$ac_objext \
18733 conftest$ac_exeext conftest.$ac_ext
18734 LIBS=$ac_check_lib_save_LIBS
18736 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18737 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18738 if test $ac_cv_lib_gcc___floatdidf = yes; then
18740 cat >>confdefs.h <<\_ACEOF
18741 #define HAVE___FLOATDIDF 1
18746 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18747 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18748 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18749 echo $ECHO_N "(cached) $ECHO_C" >&6
18751 ac_check_lib_save_LIBS=$LIBS
18753 cat >conftest.$ac_ext <<_ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h. */
18760 /* Override any GCC internal prototype to avoid an error.
18761 Use char because int might match the return type of a GCC
18762 builtin and then its argument prototype would still apply. */
18770 return __lshrdi3 ();
18775 rm -f conftest.$ac_objext conftest$ac_exeext
18776 if { (ac_try="$ac_link"
18777 case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_link") 2>conftest.er1
18784 grep -v '^ *+' conftest.er1 >conftest.err
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } &&
18789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18790 { (case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_try") 2>&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; } &&
18799 { ac_try='test -s conftest$ac_exeext'
18800 { (case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_try") 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 ac_cv_lib_gcc___lshrdi3=yes
18811 echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18814 ac_cv_lib_gcc___lshrdi3=no
18817 rm -f core conftest.err conftest.$ac_objext \
18818 conftest$ac_exeext conftest.$ac_ext
18819 LIBS=$ac_check_lib_save_LIBS
18821 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18822 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18823 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18825 cat >>confdefs.h <<\_ACEOF
18826 #define HAVE___LSHRDI3 1
18831 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18832 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18833 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18834 echo $ECHO_N "(cached) $ECHO_C" >&6
18836 ac_check_lib_save_LIBS=$LIBS
18838 cat >conftest.$ac_ext <<_ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h. */
18845 /* Override any GCC internal prototype to avoid an error.
18846 Use char because int might match the return type of a GCC
18847 builtin and then its argument prototype would still apply. */
18855 return __moddi3 ();
18860 rm -f conftest.$ac_objext conftest$ac_exeext
18861 if { (ac_try="$ac_link"
18862 case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_link") 2>conftest.er1
18869 grep -v '^ *+' conftest.er1 >conftest.err
18871 cat conftest.err >&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); } &&
18874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18875 { (case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_try") 2>&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); }; } &&
18884 { ac_try='test -s conftest$ac_exeext'
18885 { (case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_try") 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 ac_cv_lib_gcc___moddi3=yes
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18899 ac_cv_lib_gcc___moddi3=no
18902 rm -f core conftest.err conftest.$ac_objext \
18903 conftest$ac_exeext conftest.$ac_ext
18904 LIBS=$ac_check_lib_save_LIBS
18906 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18907 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18908 if test $ac_cv_lib_gcc___moddi3 = yes; then
18910 cat >>confdefs.h <<\_ACEOF
18911 #define HAVE___MODDI3 1
18916 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18917 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18918 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18921 ac_check_lib_save_LIBS=$LIBS
18923 cat >conftest.$ac_ext <<_ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18930 /* Override any GCC internal prototype to avoid an error.
18931 Use char because int might match the return type of a GCC
18932 builtin and then its argument prototype would still apply. */
18940 return __udivdi3 ();
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (ac_try="$ac_link"
18947 case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_link") 2>conftest.er1
18954 grep -v '^ *+' conftest.er1 >conftest.err
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } &&
18959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18960 { (case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965 (eval "$ac_try") 2>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; } &&
18969 { ac_try='test -s conftest$ac_exeext'
18970 { (case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_try") 2>&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; }; then
18979 ac_cv_lib_gcc___udivdi3=yes
18981 echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18984 ac_cv_lib_gcc___udivdi3=no
18987 rm -f core conftest.err conftest.$ac_objext \
18988 conftest$ac_exeext conftest.$ac_ext
18989 LIBS=$ac_check_lib_save_LIBS
18991 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18992 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18993 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18995 cat >>confdefs.h <<\_ACEOF
18996 #define HAVE___UDIVDI3 1
19001 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19002 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19003 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19004 echo $ECHO_N "(cached) $ECHO_C" >&6
19006 ac_check_lib_save_LIBS=$LIBS
19008 cat >conftest.$ac_ext <<_ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19015 /* Override any GCC internal prototype to avoid an error.
19016 Use char because int might match the return type of a GCC
19017 builtin and then its argument prototype would still apply. */
19025 return __umoddi3 ();
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (ac_try="$ac_link"
19032 case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037 (eval "$ac_link") 2>conftest.er1
19039 grep -v '^ *+' conftest.er1 >conftest.err
19041 cat conftest.err >&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } &&
19044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19045 { (case "(($ac_try" in
19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047 *) ac_try_echo=$ac_try;;
19049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19050 (eval "$ac_try") 2>&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; } &&
19054 { ac_try='test -s conftest$ac_exeext'
19055 { (case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_try") 2>&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064 ac_cv_lib_gcc___umoddi3=yes
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19069 ac_cv_lib_gcc___umoddi3=no
19072 rm -f core conftest.err conftest.$ac_objext \
19073 conftest$ac_exeext conftest.$ac_ext
19074 LIBS=$ac_check_lib_save_LIBS
19076 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19077 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19078 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19080 cat >>confdefs.h <<\_ACEOF
19081 #define HAVE___UMODDI3 1
19087 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19088 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19089 if test "${ac_cv_lib_gcc___main+set}" = set; then
19090 echo $ECHO_N "(cached) $ECHO_C" >&6
19092 ac_check_lib_save_LIBS=$LIBS
19094 cat >conftest.$ac_ext <<_ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19101 /* Override any GCC internal prototype to avoid an error.
19102 Use char because int might match the return type of a GCC
19103 builtin and then its argument prototype would still apply. */
19116 rm -f conftest.$ac_objext conftest$ac_exeext
19117 if { (ac_try="$ac_link"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_link") 2>conftest.er1
19125 grep -v '^ *+' conftest.er1 >conftest.err
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
19130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19131 { (case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_try") 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; } &&
19140 { ac_try='test -s conftest$ac_exeext'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
19150 ac_cv_lib_gcc___main=yes
19152 echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19155 ac_cv_lib_gcc___main=no
19158 rm -f core conftest.err conftest.$ac_objext \
19159 conftest$ac_exeext conftest.$ac_ext
19160 LIBS=$ac_check_lib_save_LIBS
19162 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19163 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19164 if test $ac_cv_lib_gcc___main = yes; then
19166 cat >>confdefs.h <<\_ACEOF
19167 #define HAVE___MAIN 1
19172 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19173 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19174 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19175 echo $ECHO_N "(cached) $ECHO_C" >&6
19177 ac_check_lib_save_LIBS=$LIBS
19179 cat >conftest.$ac_ext <<_ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19186 /* Override any GCC internal prototype to avoid an error.
19187 Use char because int might match the return type of a GCC
19188 builtin and then its argument prototype would still apply. */
19196 return __cmpdi2 ();
19201 rm -f conftest.$ac_objext conftest$ac_exeext
19202 if { (ac_try="$ac_link"
19203 case "(($ac_try" in
19204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205 *) ac_try_echo=$ac_try;;
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208 (eval "$ac_link") 2>conftest.er1
19210 grep -v '^ *+' conftest.er1 >conftest.err
19212 cat conftest.err >&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } &&
19215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19216 { (case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_try") 2>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; } &&
19225 { ac_try='test -s conftest$ac_exeext'
19226 { (case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_try") 2>&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
19235 ac_cv_lib_gcc___cmpdi2=yes
19237 echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19240 ac_cv_lib_gcc___cmpdi2=no
19243 rm -f core conftest.err conftest.$ac_objext \
19244 conftest$ac_exeext conftest.$ac_ext
19245 LIBS=$ac_check_lib_save_LIBS
19247 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19248 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19249 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE___CMPDI2 1
19259 if test "$llvm_cv_os_type" = "MingW" ; then
19260 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19261 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19262 cat >conftest.$ac_ext <<_ACEOF
19263 #include <windows.h>
19264 #include <imagehlp.h>
19265 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19266 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19268 rm -f conftest.$ac_objext
19269 if { (ac_try="$ac_compile"
19270 case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275 (eval "$ac_compile") 2>conftest.er1
19277 grep -v '^ *+' conftest.er1 >conftest.err
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
19282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19283 { (case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_try") 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } &&
19292 { ac_try='test -s conftest.$ac_objext'
19293 { (case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_try") 2>&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; }; then
19303 { echo "$as_me:$LINENO: result: yes" >&5
19304 echo "${ECHO_T}yes" >&6; }
19305 llvm_cv_win32_elmcb_pcstr="PCSTR"
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19312 { echo "$as_me:$LINENO: result: no" >&5
19313 echo "${ECHO_T}no" >&6; }
19314 llvm_cv_win32_elmcb_pcstr="PSTR"
19318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19320 cat >>confdefs.h <<_ACEOF
19321 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19327 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19328 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19329 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 ac_cpp='$CXXCPP $CPPFLAGS'
19334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19338 cat >conftest.$ac_ext <<_ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19353 rm -f conftest.$ac_objext
19354 if { (ac_try="$ac_compile"
19355 case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_compile") 2>conftest.er1
19362 grep -v '^ *+' conftest.er1 >conftest.err
19364 cat conftest.err >&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19368 { (case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_try") 2>&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try='test -s conftest.$ac_objext'
19378 { (case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_try") 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; }; then
19387 ac_cv_func_isnan_in_math_h=yes
19389 echo "$as_me: failed program was:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19392 ac_cv_func_isnan_in_math_h=no
19395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19397 ac_cpp='$CPP $CPPFLAGS'
19398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19403 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19404 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19407 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19409 cat >>confdefs.h <<\_ACEOF
19410 #define HAVE_ISNAN_IN_MATH_H 1
19415 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19416 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19417 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19421 ac_cpp='$CXXCPP $CPPFLAGS'
19422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19426 cat >conftest.$ac_ext <<_ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19441 rm -f conftest.$ac_objext
19442 if { (ac_try="$ac_compile"
19443 case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_compile") 2>conftest.er1
19450 grep -v '^ *+' conftest.er1 >conftest.err
19452 cat conftest.err >&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); } &&
19455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19456 { (case "(($ac_try" in
19457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_try") 2>&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); }; } &&
19465 { ac_try='test -s conftest.$ac_objext'
19466 { (case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_try") 2>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; }; then
19475 ac_cv_func_isnan_in_cmath=yes
19477 echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19480 ac_cv_func_isnan_in_cmath=no
19483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19485 ac_cpp='$CPP $CPPFLAGS'
19486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19491 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19492 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19494 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19496 cat >>confdefs.h <<\_ACEOF
19497 #define HAVE_ISNAN_IN_CMATH 1
19502 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19503 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19504 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19508 ac_cpp='$CXXCPP $CPPFLAGS'
19509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19513 cat >conftest.$ac_ext <<_ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19523 float f; std::isnan(f);
19528 rm -f conftest.$ac_objext
19529 if { (ac_try="$ac_compile"
19530 case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_compile") 2>conftest.er1
19537 grep -v '^ *+' conftest.er1 >conftest.err
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
19542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19543 { (case "(($ac_try" in
19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545 *) ac_try_echo=$ac_try;;
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548 (eval "$ac_try") 2>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try='test -s conftest.$ac_objext'
19553 { (case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_try") 2>&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; }; then
19562 ac_cv_func_std_isnan_in_cmath=yes
19564 echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19567 ac_cv_func_std_isnan_in_cmath=no
19570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19572 ac_cpp='$CPP $CPPFLAGS'
19573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19578 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19579 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19581 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19583 cat >>confdefs.h <<\_ACEOF
19584 #define HAVE_STD_ISNAN_IN_CMATH 1
19590 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19591 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19592 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 ac_cpp='$CXXCPP $CPPFLAGS'
19597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19601 cat >conftest.$ac_ext <<_ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19616 rm -f conftest.$ac_objext
19617 if { (ac_try="$ac_compile"
19618 case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_compile") 2>conftest.er1
19625 grep -v '^ *+' conftest.er1 >conftest.err
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19631 { (case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_try") 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 ac_cv_func_isinf_in_math_h=yes
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19655 ac_cv_func_isinf_in_math_h=no
19658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19660 ac_cpp='$CPP $CPPFLAGS'
19661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19666 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19667 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19669 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19671 cat >>confdefs.h <<\_ACEOF
19672 #define HAVE_ISINF_IN_MATH_H 1
19677 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19678 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19679 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
19683 ac_cpp='$CXXCPP $CPPFLAGS'
19684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19688 cat >conftest.$ac_ext <<_ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19703 rm -f conftest.$ac_objext
19704 if { (ac_try="$ac_compile"
19705 case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_compile") 2>conftest.er1
19712 grep -v '^ *+' conftest.er1 >conftest.err
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } &&
19717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19718 { (case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_try") 2>&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; } &&
19727 { ac_try='test -s conftest.$ac_objext'
19728 { (case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_try") 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 ac_cv_func_isinf_in_cmath=yes
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19742 ac_cv_func_isinf_in_cmath=no
19745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19747 ac_cpp='$CPP $CPPFLAGS'
19748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19753 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19754 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19756 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19758 cat >>confdefs.h <<\_ACEOF
19759 #define HAVE_ISINF_IN_CMATH 1
19764 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19765 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19766 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19770 ac_cpp='$CXXCPP $CPPFLAGS'
19771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19775 cat >conftest.$ac_ext <<_ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19785 float f; std::isinf(f)}
19790 rm -f conftest.$ac_objext
19791 if { (ac_try="$ac_compile"
19792 case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_compile") 2>conftest.er1
19799 grep -v '^ *+' conftest.er1 >conftest.err
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
19804 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19805 { (case "(($ac_try" in
19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807 *) ac_try_echo=$ac_try;;
19809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810 (eval "$ac_try") 2>&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; } &&
19814 { ac_try='test -s conftest.$ac_objext'
19815 { (case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_try") 2>&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
19824 ac_cv_func_std_isinf_in_cmath=yes
19826 echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19829 ac_cv_func_std_isinf_in_cmath=no
19832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19834 ac_cpp='$CPP $CPPFLAGS'
19835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19840 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19841 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19843 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19845 cat >>confdefs.h <<\_ACEOF
19846 #define HAVE_STD_ISINF_IN_CMATH 1
19851 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19852 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19853 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19857 ac_cpp='$CXXCPP $CPPFLAGS'
19858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19862 cat >conftest.$ac_ext <<_ACEOF
19865 cat confdefs.h >>conftest.$ac_ext
19866 cat >>conftest.$ac_ext <<_ACEOF
19867 /* end confdefs.h. */
19868 #include <ieeefp.h>
19872 float f; finite(f);
19877 rm -f conftest.$ac_objext
19878 if { (ac_try="$ac_compile"
19879 case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884 (eval "$ac_compile") 2>conftest.er1
19886 grep -v '^ *+' conftest.er1 >conftest.err
19888 cat conftest.err >&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); } &&
19891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19892 { (case "(($ac_try" in
19893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19894 *) ac_try_echo=$ac_try;;
19896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19897 (eval "$ac_try") 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; } &&
19901 { ac_try='test -s conftest.$ac_objext'
19902 { (case "(($ac_try" in
19903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904 *) ac_try_echo=$ac_try;;
19906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907 (eval "$ac_try") 2>&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; }; then
19911 ac_cv_func_finite_in_ieeefp_h=yes
19913 echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19916 ac_cv_func_finite_in_ieeefp_h=no
19919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19921 ac_cpp='$CPP $CPPFLAGS'
19922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19927 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19928 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19930 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19932 cat >>confdefs.h <<\_ACEOF
19933 #define HAVE_FINITE_IN_IEEEFP_H 1
19940 if test "$llvm_cv_platform_type" = "Unix" ; then
19943 for ac_header in stdlib.h unistd.h
19945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 ac_res=`eval echo '${'$as_ac_Header'}'`
19953 { echo "$as_me:$LINENO: result: $ac_res" >&5
19954 echo "${ECHO_T}$ac_res" >&6; }
19956 # Is the header compilable?
19957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19959 cat >conftest.$ac_ext <<_ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h. */
19965 $ac_includes_default
19966 #include <$ac_header>
19968 rm -f conftest.$ac_objext
19969 if { (ac_try="$ac_compile"
19970 case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_compile") 2>conftest.er1
19977 grep -v '^ *+' conftest.er1 >conftest.err
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } &&
19982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19983 { (case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_try") 2>&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; } &&
19992 { ac_try='test -s conftest.$ac_objext'
19993 { (case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_try") 2>&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; }; then
20002 ac_header_compiler=yes
20004 echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20007 ac_header_compiler=no
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20012 echo "${ECHO_T}$ac_header_compiler" >&6; }
20014 # Is the header present?
20015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20017 cat >conftest.$ac_ext <<_ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h. */
20023 #include <$ac_header>
20025 if { (ac_try="$ac_cpp conftest.$ac_ext"
20026 case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20033 grep -v '^ *+' conftest.er1 >conftest.err
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } >/dev/null; then
20038 if test -s conftest.err; then
20039 ac_cpp_err=$ac_c_preproc_warn_flag
20040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20047 if test -z "$ac_cpp_err"; then
20048 ac_header_preproc=yes
20050 echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20053 ac_header_preproc=no
20056 rm -f conftest.err conftest.$ac_ext
20057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20058 echo "${ECHO_T}$ac_header_preproc" >&6; }
20060 # So? What about this header?
20061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20067 ac_header_preproc=yes
20070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20083 ## ------------------------------------ ##
20084 ## Report this to http://llvm.org/bugs/ ##
20085 ## ------------------------------------ ##
20087 ) | sed "s/^/$as_me: WARNING: /" >&2
20090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 eval "$as_ac_Header=\$ac_header_preproc"
20097 ac_res=`eval echo '${'$as_ac_Header'}'`
20098 { echo "$as_me:$LINENO: result: $ac_res" >&5
20099 echo "${ECHO_T}$ac_res" >&6; }
20102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20103 cat >>confdefs.h <<_ACEOF
20104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20112 for ac_func in getpagesize
20114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20120 cat >conftest.$ac_ext <<_ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h. */
20126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20128 #define $ac_func innocuous_$ac_func
20130 /* System header to define __stub macros and hopefully few prototypes,
20131 which can conflict with char $ac_func (); below.
20132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20133 <limits.h> exists even on freestanding compilers. */
20136 # include <limits.h>
20138 # include <assert.h>
20143 /* Override any GCC internal prototype to avoid an error.
20144 Use char because int might match the return type of a GCC
20145 builtin and then its argument prototype would still apply. */
20150 /* The GNU C library defines this for functions which it implements
20151 to always fail with ENOSYS. Some functions are actually named
20152 something starting with __ and the normal name is an alias. */
20153 #if defined __stub_$ac_func || defined __stub___$ac_func
20160 return $ac_func ();
20165 rm -f conftest.$ac_objext conftest$ac_exeext
20166 if { (ac_try="$ac_link"
20167 case "(($ac_try" in
20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169 *) ac_try_echo=$ac_try;;
20171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172 (eval "$ac_link") 2>conftest.er1
20174 grep -v '^ *+' conftest.er1 >conftest.err
20176 cat conftest.err >&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } &&
20179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20180 { (case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_try") 2>&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; } &&
20189 { ac_try='test -s conftest$ac_exeext'
20190 { (case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_try") 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
20199 eval "$as_ac_var=yes"
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20204 eval "$as_ac_var=no"
20207 rm -f core conftest.err conftest.$ac_objext \
20208 conftest$ac_exeext conftest.$ac_ext
20210 ac_res=`eval echo '${'$as_ac_var'}'`
20211 { echo "$as_me:$LINENO: result: $ac_res" >&5
20212 echo "${ECHO_T}$ac_res" >&6; }
20213 if test `eval echo '${'$as_ac_var'}'` = yes; then
20214 cat >>confdefs.h <<_ACEOF
20215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20221 { echo "$as_me:$LINENO: checking for working mmap" >&5
20222 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20223 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20226 if test "$cross_compiling" = yes; then
20227 ac_cv_func_mmap_fixed_mapped=no
20229 cat >conftest.$ac_ext <<_ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235 $ac_includes_default
20236 /* malloc might have been renamed as rpl_malloc. */
20239 /* Thanks to Mike Haertel and Jim Avera for this test.
20240 Here is a matrix of mmap possibilities:
20241 mmap private not fixed
20242 mmap private fixed at somewhere currently unmapped
20243 mmap private fixed at somewhere already mapped
20244 mmap shared not fixed
20245 mmap shared fixed at somewhere currently unmapped
20246 mmap shared fixed at somewhere already mapped
20247 For private mappings, we should verify that changes cannot be read()
20248 back from the file, nor mmap's back from the file at a different
20249 address. (There have been systems where private was not correctly
20250 implemented like the infamous i386 svr4.0, and systems where the
20251 VM page cache was not coherent with the file system buffer cache
20252 like early versions of FreeBSD and possibly contemporary NetBSD.)
20253 For shared mappings, we should conversely verify that changes get
20254 propagated back to all the places they're supposed to be.
20256 Grep wants private fixed already mapped.
20257 The main things grep needs to know about mmap are:
20258 * does it exist and is it safe to write into the mmap'd area
20259 * how to use it (BSD variants) */
20262 #include <sys/mman.h>
20264 #if !STDC_HEADERS && !HAVE_STDLIB_H
20268 /* This mess was copied from the GNU getpagesize.h. */
20269 #if !HAVE_GETPAGESIZE
20270 /* Assume that all systems that can run configure have sys/param.h. */
20271 # if !HAVE_SYS_PARAM_H
20272 # define HAVE_SYS_PARAM_H 1
20275 # ifdef _SC_PAGESIZE
20276 # define getpagesize() sysconf(_SC_PAGESIZE)
20277 # else /* no _SC_PAGESIZE */
20278 # if HAVE_SYS_PARAM_H
20279 # include <sys/param.h>
20280 # ifdef EXEC_PAGESIZE
20281 # define getpagesize() EXEC_PAGESIZE
20282 # else /* no EXEC_PAGESIZE */
20284 # define getpagesize() NBPG * CLSIZE
20287 # endif /* no CLSIZE */
20288 # else /* no NBPG */
20290 # define getpagesize() NBPC
20291 # else /* no NBPC */
20293 # define getpagesize() PAGESIZE
20294 # endif /* PAGESIZE */
20295 # endif /* no NBPC */
20296 # endif /* no NBPG */
20297 # endif /* no EXEC_PAGESIZE */
20298 # else /* no HAVE_SYS_PARAM_H */
20299 # define getpagesize() 8192 /* punt totally */
20300 # endif /* no HAVE_SYS_PARAM_H */
20301 # endif /* no _SC_PAGESIZE */
20303 #endif /* no HAVE_GETPAGESIZE */
20308 char *data, *data2, *data3;
20312 pagesize = getpagesize ();
20314 /* First, make a file with some known garbage in it. */
20315 data = (char *) malloc (pagesize);
20318 for (i = 0; i < pagesize; ++i)
20319 *(data + i) = rand ();
20321 fd = creat ("conftest.mmap", 0600);
20324 if (write (fd, data, pagesize) != pagesize)
20328 /* Next, try to mmap the file at a fixed address which already has
20329 something else allocated at it. If we can, also make sure that
20330 we see the same garbage. */
20331 fd = open ("conftest.mmap", O_RDWR);
20334 data2 = (char *) malloc (2 * pagesize);
20337 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20338 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20339 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20341 for (i = 0; i < pagesize; ++i)
20342 if (*(data + i) != *(data2 + i))
20345 /* Finally, make sure that changes to the mapped area do not
20346 percolate back to the file as seen by read(). (This is a bug on
20347 some variants of i386 svr4.0.) */
20348 for (i = 0; i < pagesize; ++i)
20349 *(data2 + i) = *(data2 + i) + 1;
20350 data3 = (char *) malloc (pagesize);
20353 if (read (fd, data3, pagesize) != pagesize)
20355 for (i = 0; i < pagesize; ++i)
20356 if (*(data + i) != *(data3 + i))
20362 rm -f conftest$ac_exeext
20363 if { (ac_try="$ac_link"
20364 case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_link") 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20373 { (case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_try") 2>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20382 ac_cv_func_mmap_fixed_mapped=yes
20384 echo "$as_me: program exited with status $ac_status" >&5
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20388 ( exit $ac_status )
20389 ac_cv_func_mmap_fixed_mapped=no
20391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20396 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20397 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20398 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20400 cat >>confdefs.h <<\_ACEOF
20401 #define HAVE_MMAP 1
20405 rm -f conftest.mmap
20407 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20408 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20409 if test "${ac_cv_func_mmap_file+set}" = set; then
20410 echo $ECHO_N "(cached) $ECHO_C" >&6
20413 ac_cpp='$CPP $CPPFLAGS'
20414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20418 if test "$cross_compiling" = yes; then
20419 ac_cv_func_mmap_file=no
20421 cat >conftest.$ac_ext <<_ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20429 #include <sys/types.h>
20430 #include <sys/mman.h>
20438 fd = creat ("foo",0777);
20439 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20441 return (fd != (int) MAP_FAILED);
20446 rm -f conftest$ac_exeext
20447 if { (ac_try="$ac_link"
20448 case "(($ac_try" in
20449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450 *) ac_try_echo=$ac_try;;
20452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453 (eval "$ac_link") 2>&5
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20457 { (case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462 (eval "$ac_try") 2>&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
20466 ac_cv_func_mmap_file=yes
20468 echo "$as_me: program exited with status $ac_status" >&5
20469 echo "$as_me: failed program was:" >&5
20470 sed 's/^/| /' conftest.$ac_ext >&5
20472 ( exit $ac_status )
20473 ac_cv_func_mmap_file=no
20475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20480 ac_cpp='$CPP $CPPFLAGS'
20481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20487 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20488 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20489 if test "$ac_cv_func_mmap_file" = yes; then
20491 cat >>confdefs.h <<\_ACEOF
20492 #define HAVE_MMAP_FILE
20499 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20500 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20501 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 if test "$llvm_cv_os_type" = "Interix" ; then
20505 ac_cv_need_dev_zero_for_mmap=yes
20507 ac_cv_need_dev_zero_for_mmap=no
20511 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20512 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20513 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20515 cat >>confdefs.h <<\_ACEOF
20516 #define NEED_DEV_ZERO_FOR_MMAP 1
20521 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20523 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20524 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20526 if test "$ac_cv_func_mmap_file" = "no"
20528 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20529 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20533 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20534 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20536 ac_cpp='$CXXCPP $CPPFLAGS'
20537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20541 cat >conftest.$ac_ext <<_ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h. */
20548 volatile unsigned long val = 1;
20549 __sync_synchronize();
20550 __sync_val_compare_and_swap(&val, 1, 0);
20551 __sync_add_and_fetch(&val, 1);
20552 __sync_sub_and_fetch(&val, 1);
20557 rm -f conftest.$ac_objext conftest$ac_exeext
20558 if { (ac_try="$ac_link"
20559 case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_link") 2>conftest.er1
20566 grep -v '^ *+' conftest.er1 >conftest.err
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } &&
20571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20572 { (case "(($ac_try" in
20573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574 *) ac_try_echo=$ac_try;;
20576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577 (eval "$ac_try") 2>&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); }; } &&
20581 { ac_try='test -s conftest$ac_exeext'
20582 { (case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_try") 2>&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; }; then
20592 ac_cpp='$CPP $CPPFLAGS'
20593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20597 { echo "$as_me:$LINENO: result: yes" >&5
20598 echo "${ECHO_T}yes" >&6; }
20600 cat >>confdefs.h <<\_ACEOF
20601 #define LLVM_HAS_ATOMICS 1
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20608 { echo "$as_me:$LINENO: result: no" >&5
20609 echo "${ECHO_T}no" >&6; }
20611 cat >>confdefs.h <<\_ACEOF
20612 #define LLVM_HAS_ATOMICS 0
20615 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20616 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20619 rm -f core conftest.err conftest.$ac_objext \
20620 conftest$ac_exeext conftest.$ac_ext
20623 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20624 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20625 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20626 if test "${llvm_cv_linux_mixed+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 ac_cpp='$CPP $CPPFLAGS'
20631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20635 cat >conftest.$ac_ext <<_ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h. */
20642 error: Not x86-64 even if uname says so!
20653 rm -f conftest.$ac_objext
20654 if { (ac_try="$ac_compile"
20655 case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660 (eval "$ac_compile") 2>conftest.er1
20662 grep -v '^ *+' conftest.er1 >conftest.err
20664 cat conftest.err >&5
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); } &&
20667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20668 { (case "(($ac_try" in
20669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670 *) ac_try_echo=$ac_try;;
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673 (eval "$ac_try") 2>&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); }; } &&
20677 { ac_try='test -s conftest.$ac_objext'
20678 { (case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_try") 2>&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; }; then
20687 llvm_cv_linux_mixed=no
20689 echo "$as_me: failed program was:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20692 llvm_cv_linux_mixed=yes
20695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20697 ac_cpp='$CPP $CPPFLAGS'
20698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20704 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20705 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20707 if test "$llvm_cv_linux_mixed" = "yes"; then
20708 llvm_cv_target_arch="x86"
20714 for ac_func in __dso_handle
20716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20722 cat >conftest.$ac_ext <<_ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20730 #define $ac_func innocuous_$ac_func
20732 /* System header to define __stub macros and hopefully few prototypes,
20733 which can conflict with char $ac_func (); below.
20734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20735 <limits.h> exists even on freestanding compilers. */
20738 # include <limits.h>
20740 # include <assert.h>
20745 /* Override any GCC internal prototype to avoid an error.
20746 Use char because int might match the return type of a GCC
20747 builtin and then its argument prototype would still apply. */
20752 /* The GNU C library defines this for functions which it implements
20753 to always fail with ENOSYS. Some functions are actually named
20754 something starting with __ and the normal name is an alias. */
20755 #if defined __stub_$ac_func || defined __stub___$ac_func
20762 return $ac_func ();
20767 rm -f conftest.$ac_objext conftest$ac_exeext
20768 if { (ac_try="$ac_link"
20769 case "(($ac_try" in
20770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771 *) ac_try_echo=$ac_try;;
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774 (eval "$ac_link") 2>conftest.er1
20776 grep -v '^ *+' conftest.er1 >conftest.err
20778 cat conftest.err >&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); } &&
20781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20782 { (case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_try") 2>&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; } &&
20791 { ac_try='test -s conftest$ac_exeext'
20792 { (case "(($ac_try" in
20793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794 *) ac_try_echo=$ac_try;;
20796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797 (eval "$ac_try") 2>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; }; then
20801 eval "$as_ac_var=yes"
20803 echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.$ac_ext >&5
20806 eval "$as_ac_var=no"
20809 rm -f core conftest.err conftest.$ac_objext \
20810 conftest$ac_exeext conftest.$ac_ext
20812 ac_res=`eval echo '${'$as_ac_var'}'`
20813 { echo "$as_me:$LINENO: result: $ac_res" >&5
20814 echo "${ECHO_T}$ac_res" >&6; }
20815 if test `eval echo '${'$as_ac_var'}'` = yes; then
20816 cat >>confdefs.h <<_ACEOF
20817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20824 SHLIBEXT=$libltdl_cv_shlibext
20827 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20830 if test "${prefix}" = "NONE" ; then
20831 prefix="/usr/local"
20833 eval LLVM_PREFIX="${prefix}";
20834 eval LLVM_BINDIR="${prefix}/bin";
20835 eval LLVM_LIBDIR="${prefix}/lib";
20836 eval LLVM_DATADIR="${prefix}/share/llvm";
20837 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20838 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20839 eval LLVM_INCLUDEDIR="${prefix}/include";
20840 eval LLVM_INFODIR="${prefix}/info";
20841 eval LLVM_MANDIR="${prefix}/man";
20842 LLVM_CONFIGTIME=`date`
20855 cat >>confdefs.h <<_ACEOF
20856 #define LLVM_PREFIX "$LLVM_PREFIX"
20860 cat >>confdefs.h <<_ACEOF
20861 #define LLVM_BINDIR "$LLVM_BINDIR"
20865 cat >>confdefs.h <<_ACEOF
20866 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20870 cat >>confdefs.h <<_ACEOF
20871 #define LLVM_DATADIR "$LLVM_DATADIR"
20875 cat >>confdefs.h <<_ACEOF
20876 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20880 cat >>confdefs.h <<_ACEOF
20881 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20885 cat >>confdefs.h <<_ACEOF
20886 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20890 cat >>confdefs.h <<_ACEOF
20891 #define LLVM_INFODIR "$LLVM_INFODIR"
20895 cat >>confdefs.h <<_ACEOF
20896 #define LLVM_MANDIR "$LLVM_MANDIR"
20900 cat >>confdefs.h <<_ACEOF
20901 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20905 cat >>confdefs.h <<_ACEOF
20906 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20910 if test "$BINDINGS_TO_BUILD" = auto ; then
20911 BINDINGS_TO_BUILD=""
20912 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20913 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20916 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20922 binding_prereqs_failed=0
20923 for a_binding in $BINDINGS_TO_BUILD ; do
20924 case "$a_binding" in
20926 if test "x$OCAMLC" = x ; then
20927 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20928 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20929 binding_prereqs_failed=1
20931 if test "x$OCAMLDEP" = x ; then
20932 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20933 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20934 binding_prereqs_failed=1
20936 if test "x$OCAMLOPT" = x ; then
20937 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20938 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20940 if test "x$with_ocaml_libdir" != xauto ; then
20941 OCAML_LIBDIR=$with_ocaml_libdir
20944 ocaml_stdlib="`"$OCAMLC" -where`"
20945 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20947 # ocaml stdlib is beneath our prefix; use stdlib
20948 OCAML_LIBDIR=$ocaml_stdlib
20951 # ocaml stdlib is outside our prefix; use libdir/ocaml
20952 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20959 if test "$binding_prereqs_failed" = 1 ; then
20960 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20961 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20962 { (exit 1); exit 1; }; }
20965 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20966 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20967 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20968 echo $ECHO_N "(cached) $ECHO_C" >&6
20971 ac_cpp='$CXXCPP $CPPFLAGS'
20972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20976 oldcxxflags="$CXXFLAGS"
20977 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
20978 cat >conftest.$ac_ext <<_ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20984 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20993 rm -f conftest.$ac_objext
20994 if { (ac_try="$ac_compile"
20995 case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_compile") 2>conftest.er1
21002 grep -v '^ *+' conftest.er1 >conftest.err
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } &&
21007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21008 { (case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013 (eval "$ac_try") 2>&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; } &&
21017 { ac_try='test -s conftest.$ac_objext'
21018 { (case "(($ac_try" in
21019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020 *) ac_try_echo=$ac_try;;
21022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21023 (eval "$ac_try") 2>&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; }; then
21027 llvm_cv_cxx_visibility_inlines_hidden=yes
21029 echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21032 llvm_cv_cxx_visibility_inlines_hidden=no
21035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21036 CXXFLAGS="$oldcxxflags"
21038 ac_cpp='$CPP $CPPFLAGS'
21039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21045 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21046 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21047 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21048 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21051 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21056 if test "$llvm_cv_link_use_r" = "yes" ; then
21063 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21064 RDYNAMIC="-Wl,-export-dynamic"
21071 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21078 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21080 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21082 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21084 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21086 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21089 ac_config_files="$ac_config_files Makefile.config"
21092 ac_config_files="$ac_config_files llvm.spec"
21095 ac_config_files="$ac_config_files docs/doxygen.cfg"
21097 if test -f ${srcdir}/tools/clang/README.txt; then
21098 ac_config_headers="$ac_config_headers tools/clang/include/clang/Config/config.h"
21099 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21103 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21106 ac_config_commands="$ac_config_commands setup"
21108 ac_config_commands="$ac_config_commands Makefile"
21111 ac_config_commands="$ac_config_commands Makefile.common"
21114 ac_config_commands="$ac_config_commands examples/Makefile"
21117 ac_config_commands="$ac_config_commands lib/Makefile"
21120 ac_config_commands="$ac_config_commands runtime/Makefile"
21123 ac_config_commands="$ac_config_commands test/Makefile"
21126 ac_config_commands="$ac_config_commands test/Makefile.tests"
21129 ac_config_commands="$ac_config_commands unittests/Makefile"
21132 ac_config_commands="$ac_config_commands tools/Makefile"
21135 ac_config_commands="$ac_config_commands utils/Makefile"
21138 ac_config_commands="$ac_config_commands projects/Makefile"
21141 ac_config_commands="$ac_config_commands bindings/Makefile"
21144 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21148 cat >confcache <<\_ACEOF
21149 # This file is a shell script that caches the results of configure
21150 # tests run on this system so they can be shared between configure
21151 # scripts and configure runs, see configure's option --config-cache.
21152 # It is not useful on other systems. If it contains results you don't
21153 # want to keep, you may remove or edit it.
21155 # config.status only pays attention to the cache file if you give it
21156 # the --recheck option to rerun configure.
21158 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21159 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21160 # following values.
21164 # The following way of writing the cache mishandles newlines in values,
21165 # but we know of no workaround that is simple, portable, and efficient.
21166 # So, we kill variables containing newlines.
21167 # Ultrix sh set writes to stderr and can't be redirected directly,
21168 # and sets the high bit in the cache file unless we assign to the vars.
21170 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21171 eval ac_val=\$$ac_var
21175 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21176 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21179 _ | IFS | as_nl) ;; #(
21180 *) $as_unset $ac_var ;;
21186 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21187 *${as_nl}ac_space=\ *)
21188 # `set' does not quote correctly, so add quotes (double-quote
21189 # substitution turns \\\\ into \\, and sed turns \\ into \).
21192 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21195 # `set' quotes correctly as required by POSIX, so do not add quotes.
21196 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21205 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21207 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21209 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21210 if test -w "$cache_file"; then
21211 test "x$cache_file" != "x/dev/null" &&
21212 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21213 echo "$as_me: updating cache $cache_file" >&6;}
21214 cat confcache >$cache_file
21216 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21217 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21222 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21223 # Let make expand exec_prefix.
21224 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21226 DEFS=-DHAVE_CONFIG_H
21230 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21231 # 1. Remove the extension, and $U if already installed.
21232 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21233 ac_i=`echo "$ac_i" | sed "$ac_script"`
21234 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21235 # will be set to the directory where LIBOBJS objects are built.
21236 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21237 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21239 LIBOBJS=$ac_libobjs
21241 LTLIBOBJS=$ac_ltlibobjs
21244 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21245 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21246 Usually this means the macro was only invoked conditionally." >&5
21247 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21248 Usually this means the macro was only invoked conditionally." >&2;}
21249 { (exit 1); exit 1; }; }
21251 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21252 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21253 Usually this means the macro was only invoked conditionally." >&5
21254 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21255 Usually this means the macro was only invoked conditionally." >&2;}
21256 { (exit 1); exit 1; }; }
21259 : ${CONFIG_STATUS=./config.status}
21260 ac_clean_files_save=$ac_clean_files
21261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21262 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21263 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21264 cat >$CONFIG_STATUS <<_ACEOF
21266 # Generated by $as_me.
21267 # Run this file to recreate the current configuration.
21268 # Compiler output produced by configure, useful for debugging
21269 # configure, is in config.log if it exists.
21272 ac_cs_recheck=false
21274 SHELL=\${CONFIG_SHELL-$SHELL}
21277 cat >>$CONFIG_STATUS <<\_ACEOF
21278 ## --------------------- ##
21279 ## M4sh Initialization. ##
21280 ## --------------------- ##
21282 # Be Bourne compatible
21283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21286 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21287 # is contrary to our usage. Disable this feature.
21288 alias -g '${1+"$@"}'='"$@"'
21289 setopt NO_GLOB_SUBST
21291 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21293 BIN_SH=xpg4; export BIN_SH # for Tru64
21294 DUALCASE=1; export DUALCASE # for MKS sh
21298 # Avoid depending upon Character Ranges.
21299 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21300 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21301 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21302 as_cr_digits='0123456789'
21303 as_cr_alnum=$as_cr_Letters$as_cr_digits
21305 # The user is always right.
21306 if test "${PATH_SEPARATOR+set}" != set; then
21307 echo "#! /bin/sh" >conf$$.sh
21308 echo "exit 0" >>conf$$.sh
21310 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21318 # Support unset when possible.
21319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21327 # We need space, tab and new line, in precisely that order. Quoting is
21328 # there to prevent editors from complaining about space-tab.
21329 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21330 # splitting by setting IFS to empty value.)
21335 # Find who we are. Look in the path if we contain no directory separator.
21337 *[\\/]* ) as_myself=$0 ;;
21338 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21339 for as_dir in $PATH
21342 test -z "$as_dir" && as_dir=.
21343 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21349 # We did not find ourselves, most probably we were run as `sh COMMAND'
21350 # in which case we are not to be found in the path.
21351 if test "x$as_myself" = x; then
21354 if test ! -f "$as_myself"; then
21355 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21356 { (exit 1); exit 1; }
21359 # Work around bugs in pre-3.0 UWIN ksh.
21360 for as_var in ENV MAIL MAILPATH
21361 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21369 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21370 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21371 LC_TELEPHONE LC_TIME
21373 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21374 eval $as_var=C; export $as_var
21376 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21380 # Required to use basename.
21381 if expr a : '\(a\)' >/dev/null 2>&1 &&
21382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21389 as_basename=basename
21395 # Name of the executable.
21396 as_me=`$as_basename -- "$0" ||
21397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21398 X"$0" : 'X\(//\)$' \| \
21399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21401 sed '/^.*\/\([^/][^/]*\)\/*$/{
21420 as_lineno_1=$LINENO
21421 as_lineno_2=$LINENO
21422 test "x$as_lineno_1" != "x$as_lineno_2" &&
21423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21426 # uniformly replaced by the line number. The first 'sed' inserts a
21427 # line-number line after each line using $LINENO; the second 'sed'
21428 # does the real work. The second script uses 'N' to pair each
21429 # line-number line with the line containing $LINENO, and appends
21430 # trailing '-' during substitution so that $LINENO is not a special
21431 # case at line end.
21432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21433 # scripts with optimization help from Paolo Bonzini. Blame Lee
21434 # E. McMahon (1931-1989) for sed's syntax. :-)
21446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21449 ' >$as_me.lineno &&
21450 chmod +x "$as_me.lineno" ||
21451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21452 { (exit 1); exit 1; }; }
21454 # Don't try to exec as it changes $[0], causing all sort of problems
21455 # (the dirname of $[0] is not the place where we might find the
21456 # original and so on. Autoconf is especially sensitive to this).
21457 . "./$as_me.lineno"
21458 # Exit status is that of the last command.
21463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21469 ECHO_C= ECHO_N= ECHO_T=
21470 case `echo -n x` in
21472 case `echo 'x\c'` in
21473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21480 if expr a : '\(a\)' >/dev/null 2>&1 &&
21481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21487 rm -f conf$$ conf$$.exe conf$$.file
21488 if test -d conf$$.dir; then
21489 rm -f conf$$.dir/conf$$.file
21495 if ln -s conf$$.file conf$$ 2>/dev/null; then
21497 # ... but there are two gotchas:
21498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21500 # In both cases, we have to default to `cp -p'.
21501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21503 elif ln conf$$.file conf$$ 2>/dev/null; then
21508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21509 rmdir conf$$.dir 2>/dev/null
21511 if mkdir -p . 2>/dev/null; then
21514 test -d ./-p && rmdir ./-p
21518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21519 # systems may use methods other than mode bits to determine executability.
21520 cat >conf$$.file <<_ASEOF
21524 chmod +x conf$$.file
21525 if test -x conf$$.file >/dev/null 2>&1; then
21526 as_executable_p="test -x"
21532 # Sed expression to map a string onto a valid CPP name.
21533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21535 # Sed expression to map a string onto a valid variable name.
21536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21541 # Save the log message, to keep $[0] and so on meaningful, and to
21542 # report actual input values of CONFIG_FILES etc. instead of their
21543 # values after options handling.
21545 This file was extended by LLVM $as_me 3.1svn, which was
21546 generated by GNU Autoconf 2.60. Invocation command line was
21548 CONFIG_FILES = $CONFIG_FILES
21549 CONFIG_HEADERS = $CONFIG_HEADERS
21550 CONFIG_LINKS = $CONFIG_LINKS
21551 CONFIG_COMMANDS = $CONFIG_COMMANDS
21554 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21559 cat >>$CONFIG_STATUS <<_ACEOF
21560 # Files that config.status was made for.
21561 config_files="$ac_config_files"
21562 config_headers="$ac_config_headers"
21563 config_commands="$ac_config_commands"
21567 cat >>$CONFIG_STATUS <<\_ACEOF
21569 \`$as_me' instantiates files from templates according to the
21570 current configuration.
21572 Usage: $0 [OPTIONS] [FILE]...
21574 -h, --help print this help, then exit
21575 -V, --version print version number, then exit
21576 -q, --quiet do not print progress messages
21577 -d, --debug don't remove temporary files
21578 --recheck update $as_me by reconfiguring in the same conditions
21579 --file=FILE[:TEMPLATE]
21580 instantiate the configuration file FILE
21581 --header=FILE[:TEMPLATE]
21582 instantiate the configuration header FILE
21584 Configuration files:
21587 Configuration headers:
21590 Configuration commands:
21593 Report bugs to <bug-autoconf@gnu.org>."
21596 cat >>$CONFIG_STATUS <<_ACEOF
21598 LLVM config.status 3.1svn
21599 configured by $0, generated by GNU Autoconf 2.60,
21600 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21602 Copyright (C) 2006 Free Software Foundation, Inc.
21603 This config.status script is free software; the Free Software Foundation
21604 gives unlimited permission to copy, distribute and modify it."
21611 cat >>$CONFIG_STATUS <<\_ACEOF
21612 # If no file are specified by the user, then we need to provide default
21613 # value. By we need to know if files were specified by the user.
21619 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21620 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21631 # Handling of the options.
21632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21634 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21635 echo "$ac_cs_version"; exit ;;
21636 --debug | --debu | --deb | --de | --d | -d )
21638 --file | --fil | --fi | --f )
21640 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21641 ac_need_defaults=false;;
21642 --header | --heade | --head | --hea )
21644 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21645 ac_need_defaults=false;;
21647 # Conflict between --help and --header
21648 { echo "$as_me: error: ambiguous option: $1
21649 Try \`$0 --help' for more information." >&2
21650 { (exit 1); exit 1; }; };;
21651 --help | --hel | -h )
21652 echo "$ac_cs_usage"; exit ;;
21653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21654 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21657 # This is an error.
21658 -*) { echo "$as_me: error: unrecognized option: $1
21659 Try \`$0 --help' for more information." >&2
21660 { (exit 1); exit 1; }; } ;;
21662 *) ac_config_targets="$ac_config_targets $1"
21663 ac_need_defaults=false ;;
21669 ac_configure_extra_args=
21671 if $ac_cs_silent; then
21673 ac_configure_extra_args="$ac_configure_extra_args --silent"
21677 cat >>$CONFIG_STATUS <<_ACEOF
21678 if \$ac_cs_recheck; then
21679 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21680 CONFIG_SHELL=$SHELL
21681 export CONFIG_SHELL
21682 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21686 cat >>$CONFIG_STATUS <<\_ACEOF
21690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21691 ## Running $as_me. ##
21697 cat >>$CONFIG_STATUS <<_ACEOF
21701 llvm_src="${srcdir}"
21705 cat >>$CONFIG_STATUS <<\_ACEOF
21707 # Handling of arguments.
21708 for ac_config_target in $ac_config_targets
21710 case $ac_config_target in
21711 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21712 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21713 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21714 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21715 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21716 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21717 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21718 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21719 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21720 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21721 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21722 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21723 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21724 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21725 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21726 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21727 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21728 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21729 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21730 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21731 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21732 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21733 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21734 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21735 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21736 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21738 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21739 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21740 { (exit 1); exit 1; }; };;
21745 # If the user did not use the arguments to specify the items to instantiate,
21746 # then the envvar interface is used. Set only those that are not.
21747 # We use the long form for the default assignment because of an extremely
21748 # bizarre bug on SunOS 4.1.3.
21749 if $ac_need_defaults; then
21750 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21751 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21752 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21755 # Have a temporary directory for convenience. Make it in the build tree
21756 # simply because there is no reason against having it here, and in addition,
21757 # creating and moving files from /tmp can sometimes cause problems.
21758 # Hook for its removal unless debugging.
21759 # Note that there is a small window in which the directory will not be cleaned:
21760 # after its creation but before its name has been assigned to `$tmp'.
21764 trap 'exit_status=$?
21765 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21767 trap '{ (exit 1); exit 1; }' 1 2 13 15
21769 # Create a (secure) tmp directory for tmp files.
21772 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21773 test -n "$tmp" && test -d "$tmp"
21776 tmp=./conf$$-$RANDOM
21777 (umask 077 && mkdir "$tmp")
21780 echo "$me: cannot create a temporary directory in ." >&2
21781 { (exit 1); exit 1; }
21785 # Set up the sed scripts for CONFIG_FILES section.
21788 # No need to generate the scripts if there are no CONFIG_FILES.
21789 # This happens for instance when ./config.status config.h
21790 if test -n "$CONFIG_FILES"; then
21797 for ac_last_try in false false false false false :; do
21798 cat >conf$$subs.sed <<_ACEOF
21799 SHELL!$SHELL$ac_delim
21800 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21801 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21802 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21803 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21804 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21805 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21806 exec_prefix!$exec_prefix$ac_delim
21807 prefix!$prefix$ac_delim
21808 program_transform_name!$program_transform_name$ac_delim
21809 bindir!$bindir$ac_delim
21810 sbindir!$sbindir$ac_delim
21811 libexecdir!$libexecdir$ac_delim
21812 datarootdir!$datarootdir$ac_delim
21813 datadir!$datadir$ac_delim
21814 sysconfdir!$sysconfdir$ac_delim
21815 sharedstatedir!$sharedstatedir$ac_delim
21816 localstatedir!$localstatedir$ac_delim
21817 includedir!$includedir$ac_delim
21818 oldincludedir!$oldincludedir$ac_delim
21819 docdir!$docdir$ac_delim
21820 infodir!$infodir$ac_delim
21821 htmldir!$htmldir$ac_delim
21822 dvidir!$dvidir$ac_delim
21823 pdfdir!$pdfdir$ac_delim
21824 psdir!$psdir$ac_delim
21825 libdir!$libdir$ac_delim
21826 localedir!$localedir$ac_delim
21827 mandir!$mandir$ac_delim
21828 DEFS!$DEFS$ac_delim
21829 ECHO_C!$ECHO_C$ac_delim
21830 ECHO_N!$ECHO_N$ac_delim
21831 ECHO_T!$ECHO_T$ac_delim
21832 LIBS!$LIBS$ac_delim
21833 build_alias!$build_alias$ac_delim
21834 host_alias!$host_alias$ac_delim
21835 target_alias!$target_alias$ac_delim
21836 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21838 CFLAGS!$CFLAGS$ac_delim
21839 LDFLAGS!$LDFLAGS$ac_delim
21840 CPPFLAGS!$CPPFLAGS$ac_delim
21841 ac_ct_CC!$ac_ct_CC$ac_delim
21842 EXEEXT!$EXEEXT$ac_delim
21843 OBJEXT!$OBJEXT$ac_delim
21845 CXXFLAGS!$CXXFLAGS$ac_delim
21846 ac_ct_CXX!$ac_ct_CXX$ac_delim
21848 subdirs!$subdirs$ac_delim
21849 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21850 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21851 build!$build$ac_delim
21852 build_cpu!$build_cpu$ac_delim
21853 build_vendor!$build_vendor$ac_delim
21854 build_os!$build_os$ac_delim
21855 host!$host$ac_delim
21856 host_cpu!$host_cpu$ac_delim
21857 host_vendor!$host_vendor$ac_delim
21858 host_os!$host_os$ac_delim
21859 target!$target$ac_delim
21860 target_cpu!$target_cpu$ac_delim
21861 target_vendor!$target_vendor$ac_delim
21862 target_os!$target_os$ac_delim
21864 HOST_OS!$HOST_OS$ac_delim
21865 TARGET_OS!$TARGET_OS$ac_delim
21866 LINKALL!$LINKALL$ac_delim
21867 NOLINKALL!$NOLINKALL$ac_delim
21868 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21869 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21870 ARCH!$ARCH$ac_delim
21871 ENDIAN!$ENDIAN$ac_delim
21872 GREP!$GREP$ac_delim
21873 EGREP!$EGREP$ac_delim
21874 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21875 BUILD_CC!$BUILD_CC$ac_delim
21876 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21877 BUILD_CXX!$BUILD_CXX$ac_delim
21878 CVSBUILD!$CVSBUILD$ac_delim
21879 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21880 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21881 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21882 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21883 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21884 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21885 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21886 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21888 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21889 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21890 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21891 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21892 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21893 ENABLE_PIC!$ENABLE_PIC$ac_delim
21894 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21895 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21898 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21900 elif $ac_last_try; then
21901 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21902 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21903 { (exit 1); exit 1; }; }
21905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21909 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21910 if test -n "$ac_eof"; then
21911 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21912 ac_eof=`expr $ac_eof + 1`
21915 cat >>$CONFIG_STATUS <<_ACEOF
21916 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21920 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21921 s/^/s,@/; s/!/@,|#_!!_#|/
21924 s/'"$ac_delim"'$/,g/; t
21926 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21927 ' >>$CONFIG_STATUS <conf$$subs.sed
21928 rm -f conf$$subs.sed
21929 cat >>$CONFIG_STATUS <<_ACEOF
21935 for ac_last_try in false false false false false :; do
21936 cat >conf$$subs.sed <<_ACEOF
21937 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21938 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21939 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21940 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21941 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21942 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21943 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21944 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21945 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21946 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21947 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21948 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21949 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21951 ifGNUmake!$ifGNUmake$ac_delim
21952 LN_S!$LN_S$ac_delim
21955 DATE!$DATE$ac_delim
21956 FIND!$FIND$ac_delim
21957 MKDIR!$MKDIR$ac_delim
21959 RANLIB!$RANLIB$ac_delim
21964 BINPWD!$BINPWD$ac_delim
21965 GRAPHVIZ!$GRAPHVIZ$ac_delim
21968 NEATO!$NEATO$ac_delim
21969 TWOPI!$TWOPI$ac_delim
21970 CIRCO!$CIRCO$ac_delim
21972 DOTTY!$DOTTY$ac_delim
21973 XDOT_PY!$XDOT_PY$ac_delim
21974 PERL!$PERL$ac_delim
21975 HAVE_PERL!$HAVE_PERL$ac_delim
21976 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21977 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21978 INSTALL_DATA!$INSTALL_DATA$ac_delim
21979 BZIP2!$BZIP2$ac_delim
21981 DOXYGEN!$DOXYGEN$ac_delim
21982 GROFF!$GROFF$ac_delim
21983 GZIPBIN!$GZIPBIN$ac_delim
21984 POD2HTML!$POD2HTML$ac_delim
21985 POD2MAN!$POD2MAN$ac_delim
21986 PDFROFF!$PDFROFF$ac_delim
21987 RUNTEST!$RUNTEST$ac_delim
21988 TCLSH!$TCLSH$ac_delim
21990 OCAMLC!$OCAMLC$ac_delim
21991 OCAMLOPT!$OCAMLOPT$ac_delim
21992 OCAMLDEP!$OCAMLDEP$ac_delim
21993 OCAMLDOC!$OCAMLDOC$ac_delim
21995 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21996 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21997 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21998 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21999 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22000 LIBADD_DL!$LIBADD_DL$ac_delim
22001 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22002 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22003 USE_UDIS86!$USE_UDIS86$ac_delim
22004 USE_OPROFILE!$USE_OPROFILE$ac_delim
22005 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22006 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22007 MMAP_FILE!$MMAP_FILE$ac_delim
22008 SHLIBEXT!$SHLIBEXT$ac_delim
22009 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22010 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22011 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22012 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22013 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22014 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22015 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22016 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22017 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22018 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22019 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22020 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22021 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22022 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22023 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22024 RPATH!$RPATH$ac_delim
22025 RDYNAMIC!$RDYNAMIC$ac_delim
22026 LIBOBJS!$LIBOBJS$ac_delim
22027 LTLIBOBJS!$LTLIBOBJS$ac_delim
22030 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22032 elif $ac_last_try; then
22033 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22034 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22035 { (exit 1); exit 1; }; }
22037 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22041 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22042 if test -n "$ac_eof"; then
22043 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22044 ac_eof=`expr $ac_eof + 1`
22047 cat >>$CONFIG_STATUS <<_ACEOF
22048 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22052 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22053 s/^/s,@/; s/!/@,|#_!!_#|/
22056 s/'"$ac_delim"'$/,g/; t
22058 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22059 ' >>$CONFIG_STATUS <conf$$subs.sed
22060 rm -f conf$$subs.sed
22061 cat >>$CONFIG_STATUS <<_ACEOF
22068 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22069 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22070 # trailing colons and then remove the whole line if VPATH becomes empty
22071 # (actually we leave an empty line to preserve line numbers).
22072 if test "x$srcdir" = x.; then
22073 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22074 s/:*\$(srcdir):*/:/
22075 s/:*\${srcdir}:*/:/
22077 s/^\([^=]*=[ ]*\):*/\1/
22083 cat >>$CONFIG_STATUS <<\_ACEOF
22084 fi # test -n "$CONFIG_FILES"
22087 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22090 :[FHLC]) ac_mode=$ac_tag; continue;;
22092 case $ac_mode$ac_tag in
22094 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22095 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22096 { (exit 1); exit 1; }; };;
22097 :[FH]-) ac_tag=-:-;;
22098 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22115 -) ac_f="$tmp/stdin";;
22116 *) # Look for the file first in the build tree, then in the source tree
22117 # (if the path is not absolute). The absolute path cannot be DOS-style,
22118 # because $ac_f cannot contain `:'.
22122 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22124 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22125 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22126 { (exit 1); exit 1; }; };;
22128 ac_file_inputs="$ac_file_inputs $ac_f"
22131 # Let's still pretend it is `configure' which instantiates (i.e., don't
22132 # use $as_me), people would be surprised to read:
22133 # /* config.h. Generated by config.status. */
22134 configure_input="Generated from "`IFS=:
22135 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22136 if test x"$ac_file" != x-; then
22137 configure_input="$ac_file. $configure_input"
22138 { echo "$as_me:$LINENO: creating $ac_file" >&5
22139 echo "$as_me: creating $ac_file" >&6;}
22143 *:-:* | *:-) cat >"$tmp/stdin";;
22148 ac_dir=`$as_dirname -- "$ac_file" ||
22149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22150 X"$ac_file" : 'X\(//\)[^/]' \| \
22151 X"$ac_file" : 'X\(//\)$' \| \
22152 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22158 /^X\(\/\/\)[^/].*/{
22173 -*) as_dir=./$as_dir;;
22175 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22179 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22180 *) as_qdir=$as_dir;;
22182 as_dirs="'$as_qdir' $as_dirs"
22183 as_dir=`$as_dirname -- "$as_dir" ||
22184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22185 X"$as_dir" : 'X\(//\)[^/]' \| \
22186 X"$as_dir" : 'X\(//\)$' \| \
22187 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22193 /^X\(\/\/\)[^/].*/{
22206 test -d "$as_dir" && break
22208 test -z "$as_dirs" || eval "mkdir $as_dirs"
22209 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22210 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22211 { (exit 1); exit 1; }; }; }
22215 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22217 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22218 # A ".." for each directory in $ac_dir_suffix.
22219 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22220 case $ac_top_builddir_sub in
22221 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22222 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22225 ac_abs_top_builddir=$ac_pwd
22226 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22227 # for backward compatibility:
22228 ac_top_builddir=$ac_top_build_prefix
22231 .) # We are building in place.
22233 ac_top_srcdir=$ac_top_builddir_sub
22234 ac_abs_top_srcdir=$ac_pwd ;;
22235 [\\/]* | ?:[\\/]* ) # Absolute name.
22236 ac_srcdir=$srcdir$ac_dir_suffix;
22237 ac_top_srcdir=$srcdir
22238 ac_abs_top_srcdir=$srcdir ;;
22239 *) # Relative name.
22240 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22241 ac_top_srcdir=$ac_top_build_prefix$srcdir
22242 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22244 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22254 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22255 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22259 cat >>$CONFIG_STATUS <<\_ACEOF
22260 # If the template does not know about datarootdir, expand it.
22261 # FIXME: This hack should be removed a few years after 2.60.
22262 ac_datarootdir_hack=; ac_datarootdir_seen=
22264 case `sed -n '/datarootdir/ {
22273 ' $ac_file_inputs` in
22274 *datarootdir*) ac_datarootdir_seen=yes;;
22275 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22276 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22277 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22279 cat >>$CONFIG_STATUS <<_ACEOF
22280 ac_datarootdir_hack='
22281 s&@datadir@&$datadir&g
22282 s&@docdir@&$docdir&g
22283 s&@infodir@&$infodir&g
22284 s&@localedir@&$localedir&g
22285 s&@mandir@&$mandir&g
22286 s&\\\${datarootdir}&$datarootdir&g' ;;
22290 # Neutralize VPATH when `$srcdir' = `.'.
22291 # Shell code in configure.ac might set extrasub.
22292 # FIXME: do we really want to maintain this feature?
22293 cat >>$CONFIG_STATUS <<_ACEOF
22297 cat >>$CONFIG_STATUS <<\_ACEOF
22299 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22300 s&@configure_input@&$configure_input&;t t
22301 s&@top_builddir@&$ac_top_builddir_sub&;t t
22302 s&@srcdir@&$ac_srcdir&;t t
22303 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22304 s&@top_srcdir@&$ac_top_srcdir&;t t
22305 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22306 s&@builddir@&$ac_builddir&;t t
22307 s&@abs_builddir@&$ac_abs_builddir&;t t
22308 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22309 s&@INSTALL@&$ac_INSTALL&;t t
22310 $ac_datarootdir_hack
22311 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22313 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22314 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22315 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22316 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22317 which seems to be undefined. Please make sure it is defined." >&5
22318 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22319 which seems to be undefined. Please make sure it is defined." >&2;}
22323 -) cat "$tmp/out"; rm -f "$tmp/out";;
22324 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22333 # Transform confdefs.h into a sed script `conftest.defines', that
22334 # substitutes the proper values into config.h.in to produce config.h.
22335 rm -f conftest.defines conftest.tail
22336 # First, append a space to every undef/define line, to ease matching.
22337 echo 's/$/ /' >conftest.defines
22338 # Then, protect against being on the right side of a sed subst, or in
22339 # an unquoted here document, in config.status. If some macros were
22340 # called several times there might be several #defines for the same
22341 # symbol, which is useless. But do not sort them, since the last
22342 # AC_DEFINE must be honored.
22343 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22344 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22345 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22346 # PARAMS is the parameter list in the macro definition--in most cases, it's
22347 # just an empty string.
22348 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22349 ac_dB='\\)[ (].*,\\1define\\2'
22357 s/^[ ]*#[ ]*define[ ][ ]*//
22362 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22363 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22364 ' >>conftest.defines
22366 # Remove the space that was appended to ease matching.
22367 # Then replace #undef with comments. This is necessary, for
22368 # example, in the case of _POSIX_SOURCE, which is predefined and required
22369 # on some systems where configure will not decide to define it.
22370 # (The regexp can be short, since the line contains either #define or #undef.)
22372 s,^[ #]*u.*,/* & */,' >>conftest.defines
22374 # Break up conftest.defines:
22375 ac_max_sed_lines=50
22377 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22378 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22379 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22381 ac_in='$ac_file_inputs'
22382 ac_out='"$tmp/out1"'
22383 ac_nxt='"$tmp/out2"'
22387 # Write a here document:
22388 cat >>$CONFIG_STATUS <<_ACEOF
22389 # First, check the format of the line:
22390 cat >"\$tmp/defines.sed" <<\\CEOF
22391 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22392 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22396 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22398 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22399 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22400 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22401 grep . conftest.tail >/dev/null || break
22402 rm -f conftest.defines
22403 mv conftest.tail conftest.defines
22405 rm -f conftest.defines conftest.tail
22407 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22408 cat >>$CONFIG_STATUS <<\_ACEOF
22409 if test x"$ac_file" != x-; then
22410 echo "/* $configure_input */" >"$tmp/config.h"
22411 cat "$ac_result" >>"$tmp/config.h"
22412 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22413 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22414 echo "$as_me: $ac_file is unchanged" >&6;}
22417 mv "$tmp/config.h" $ac_file
22420 echo "/* $configure_input */"
22426 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22427 echo "$as_me: executing $ac_file commands" >&6;}
22432 case $ac_file$ac_mode in
22433 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22434 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22435 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22436 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22437 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22438 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22439 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22440 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22441 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22442 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22443 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22444 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22445 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22446 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22447 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22448 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22449 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22450 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22451 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22452 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22453 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22454 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22455 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22456 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22457 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22458 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22464 { (exit 0); exit 0; }
22466 chmod +x $CONFIG_STATUS
22467 ac_clean_files=$ac_clean_files_save
22470 # configure is writing to config.log, and then calls config.status.
22471 # config.status does its own redirection, appending to config.log.
22472 # Unfortunately, on DOS this fails, as config.log is still kept open
22473 # by configure, so config.status won't be able to write to it; its
22474 # output is simply discarded. So we exec the FD to /dev/null,
22475 # effectively closing config.log, so it can be properly (re)opened and
22476 # appended to by config.status. When coming back to configure, we
22477 # need to make the FD available again.
22478 if test "$no_create" != yes; then
22480 ac_config_status_args=
22481 test "$silent" = yes &&
22482 ac_config_status_args="$ac_config_status_args --quiet"
22484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22487 # would make configure fail if this is the last instruction.
22488 $ac_cs_success || { (exit 1); exit 1; }
22492 # CONFIG_SUBDIRS section.
22494 if test "$no_recursion" != yes; then
22496 # Remove --cache-file and --srcdir arguments so they do not pile up.
22497 ac_sub_configure_args=
22499 eval "set x $ac_configure_args"
22503 if test -n "$ac_prev"; then
22508 -cache-file | --cache-file | --cache-fil | --cache-fi \
22509 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22510 ac_prev=cache_file ;;
22511 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22512 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22515 --config-cache | -C)
22517 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22519 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22521 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22523 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22527 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22529 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22533 # Always prepend --prefix to ensure using the same prefix
22534 # in subdir configurations.
22535 ac_arg="--prefix=$prefix"
22537 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22539 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22542 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22544 # Do not complain, so a configure script can configure whichever
22545 # parts of a large source tree are present.
22546 test -d "$srcdir/$ac_dir" || continue
22548 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22549 echo "$as_me:$LINENO: $ac_msg" >&5
22553 -*) as_dir=./$as_dir;;
22555 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22559 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22560 *) as_qdir=$as_dir;;
22562 as_dirs="'$as_qdir' $as_dirs"
22563 as_dir=`$as_dirname -- "$as_dir" ||
22564 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22565 X"$as_dir" : 'X\(//\)[^/]' \| \
22566 X"$as_dir" : 'X\(//\)$' \| \
22567 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22573 /^X\(\/\/\)[^/].*/{
22586 test -d "$as_dir" && break
22588 test -z "$as_dirs" || eval "mkdir $as_dirs"
22589 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22590 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22591 { (exit 1); exit 1; }; }; }
22595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22597 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22598 # A ".." for each directory in $ac_dir_suffix.
22599 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22600 case $ac_top_builddir_sub in
22601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22605 ac_abs_top_builddir=$ac_pwd
22606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22607 # for backward compatibility:
22608 ac_top_builddir=$ac_top_build_prefix
22611 .) # We are building in place.
22613 ac_top_srcdir=$ac_top_builddir_sub
22614 ac_abs_top_srcdir=$ac_pwd ;;
22615 [\\/]* | ?:[\\/]* ) # Absolute name.
22616 ac_srcdir=$srcdir$ac_dir_suffix;
22617 ac_top_srcdir=$srcdir
22618 ac_abs_top_srcdir=$srcdir ;;
22619 *) # Relative name.
22620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22621 ac_top_srcdir=$ac_top_build_prefix$srcdir
22622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22629 # Check for guested configure; otherwise get Cygnus style configure.
22630 if test -f "$ac_srcdir/configure.gnu"; then
22631 ac_sub_configure=$ac_srcdir/configure.gnu
22632 elif test -f "$ac_srcdir/configure"; then
22633 ac_sub_configure=$ac_srcdir/configure
22634 elif test -f "$ac_srcdir/configure.in"; then
22635 # This should be Cygnus configure.
22636 ac_sub_configure=$ac_aux_dir/configure
22638 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22639 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22643 # The recursion is here.
22644 if test -n "$ac_sub_configure"; then
22645 # Make the cache file name correct relative to the subdirectory.
22646 case $cache_file in
22647 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22648 *) # Relative name.
22649 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22652 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22653 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22654 # The eval makes quoting arguments work.
22655 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22656 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22657 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22658 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22659 { (exit 1); exit 1; }; }