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-2011 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
566 PACKAGE_BUGREPORT='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-2011 University of Illinois at Urbana-Champaign.
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by LLVM $as_me 3.1svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next=false
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next=true ;;
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1716 if test -n "$ac_subst_files"; then
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1723 for ac_var in $ac_subst_files
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1734 if test -s confdefs.h; then
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 for ac_signal in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1825 # Check that the precious variables saved in the cache have kept the same
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
1831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg=$ac_var=$ac_new_val ;;
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916 if test -f "$ac_dir/install-sh"; then
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 elif test -f "$ac_dir/install.sh"; then
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 elif test -f "$ac_dir/shtool"; then
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959 if test -n "$ac_tool_prefix"; then
1960 for ac_prog in clang llvm-gcc gcc
1962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 if test -n "$CC"; then
1991 { echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6; }
1994 { echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6; }
1999 test -n "$CC" && break
2002 if test -z "$CC"; then
2004 for ac_prog in clang llvm-gcc gcc
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$ac_ct_CC"; then
2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_ac_ct_CC="$ac_prog"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6; }
2038 { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2043 test -n "$ac_ct_CC" && break
2046 if test "x$ac_ct_CC" = x; then
2049 case $cross_compiling:$ac_tool_warned in
2051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet. If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&5
2054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055 whose name does not start with the host triplet. If you think this
2056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2057 ac_tool_warned=yes ;;
2064 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO: checking for C compiler version" >&5
2072 ac_compiler=`set X $ac_compile; echo $2`
2073 { (ac_try="$ac_compiler --version >&5"
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079 (eval "$ac_compiler --version >&5") 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083 { (ac_try="$ac_compiler -v >&5"
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_compiler -v >&5") 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093 { (ac_try="$ac_compiler -V >&5"
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler -V >&5") 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2104 cat >conftest.$ac_ext <<_ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2119 ac_clean_files_save=$ac_clean_files
2120 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2121 # Try to create an executable without -o first, disregard a.out.
2122 # It will help us diagnose broken compilers, and finding out an intuition
2124 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2125 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2126 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2128 # List of possible output files, starting from the most likely.
2129 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2130 # only as a last resort. b.out is created by i960 compilers.
2131 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2133 # The IRIX 6 linker writes into existing files which may not be
2134 # executable, retaining their permissions. Remove them first so a
2135 # subsequent execution test works.
2137 for ac_file in $ac_files
2140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2141 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2146 if { (ac_try="$ac_link_default"
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2152 (eval "$ac_link_default") 2>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
2156 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2158 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2159 # so that the user can short-circuit this test for compilers unknown to
2161 for ac_file in $ac_files
2163 test -f "$ac_file" || continue
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2168 # We found the default executable, but exeext='' is most
2172 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2174 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176 # We set ac_cv_exeext here because the later test for it is not
2177 # safe: cross compilers may not add the suffix if given an `-o'
2178 # argument, so we may need to know it at that point already.
2179 # Even if this section looks crufty: it has the advantage of
2186 test "$ac_cv_exeext" = no && ac_cv_exeext=
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2192 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: C compiler cannot create executables
2195 See \`config.log' for more details." >&2;}
2196 { (exit 77); exit 77; }; }
2199 ac_exeext=$ac_cv_exeext
2200 { echo "$as_me:$LINENO: result: $ac_file" >&5
2201 echo "${ECHO_T}$ac_file" >&6; }
2203 # Check that the compiler produces executables we can run. If not, either
2204 # the compiler is broken, or we cross compile.
2205 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2207 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208 # If not cross compiling, check that we can run a simple program.
2209 if test "$cross_compiling" != yes; then
2210 if { ac_try='./$ac_file'
2211 { (case "(($ac_try" in
2212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213 *) ac_try_echo=$ac_try;;
2215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216 (eval "$ac_try") 2>&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2222 if test "$cross_compiling" = maybe; then
2225 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&2;}
2231 { (exit 1); exit 1; }; }
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6; }
2238 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2239 ac_clean_files=$ac_clean_files_save
2240 # Check that the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2244 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245 echo "${ECHO_T}$cross_compiling" >&6; }
2247 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2249 if { (ac_try="$ac_link"
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_link") 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
2259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2261 # work properly (i.e., refer to `conftest.exe'), while it won't with
2263 for ac_file in conftest.exe conftest conftest.*; do
2264 test -f "$ac_file" || continue
2266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
2280 rm -f conftest$ac_cv_exeext
2281 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2284 rm -f conftest.$ac_ext
2285 EXEEXT=$ac_cv_exeext
2287 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2289 if test "${ac_cv_objext+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 cat >conftest.$ac_ext <<_ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 rm -f conftest.o conftest.obj
2308 if { (ac_try="$ac_compile"
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314 (eval "$ac_compile") 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
2318 for ac_file in conftest.o conftest.obj conftest.*; do
2319 test -f "$ac_file" || continue;
2321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2330 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2339 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340 echo "${ECHO_T}$ac_cv_objext" >&6; }
2341 OBJEXT=$ac_cv_objext
2343 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2345 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 cat >conftest.$ac_ext <<_ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2366 rm -f conftest.$ac_objext
2367 if { (ac_try="$ac_compile"
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compile") 2>conftest.er1
2375 grep -v '^ *+' conftest.er1 >conftest.err
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381 { (case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_try") 2>&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_try") 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2412 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2417 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_cc_g+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 ac_save_c_werror_flag=$ac_c_werror_flag
2423 ac_c_werror_flag=yes
2426 cat >conftest.$ac_ext <<_ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2441 rm -f conftest.$ac_objext
2442 if { (ac_try="$ac_compile"
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448 (eval "$ac_compile") 2>conftest.er1
2450 grep -v '^ *+' conftest.er1 >conftest.err
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2456 { (case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_try") 2>&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 rm -f conftest.$ac_objext
2497 if { (ac_try="$ac_compile"
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2505 grep -v '^ *+' conftest.er1 >conftest.err
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511 { (case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_try") 2>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; } &&
2520 { ac_try='test -s conftest.$ac_objext'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2532 echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2535 ac_c_werror_flag=$ac_save_c_werror_flag
2537 cat >conftest.$ac_ext <<_ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2552 rm -f conftest.$ac_objext
2553 if { (ac_try="$ac_compile"
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compile") 2>conftest.er1
2561 grep -v '^ *+' conftest.er1 >conftest.err
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 ac_c_werror_flag=$ac_save_c_werror_flag
2603 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2605 if test "$ac_test_CFLAGS" = set; then
2606 CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608 if test "$GCC" = yes; then
2614 if test "$GCC" = yes; then
2620 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2621 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_cc_c89+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 ac_cv_prog_cc_c89=no
2627 cat >conftest.$ac_ext <<_ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2635 #include <sys/types.h>
2636 #include <sys/stat.h>
2637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2638 struct buf { int x; };
2639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640 static char *e (p, i)
2646 static char *f (char * (*g) (char **, int), char **p, ...)
2651 s = g (p, va_arg (v,int));
2656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2657 function prototypes and stuff, but not '\xHH' hex character constants.
2658 These don't provoke an error unfortunately, instead are silently treated
2659 as 'x'. The following induces an error, until -std is added to get
2660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2661 array size at least. It's necessary to write '\x00'==0 to get something
2662 that's true only with -std. */
2663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2665 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2666 inside strings and character constants. */
2668 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2670 int test (int i, double x);
2671 struct s1 {int (*f) (int a);};
2672 struct s2 {int (*f) (double a);};
2673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2687 CC="$ac_save_CC $ac_arg"
2688 rm -f conftest.$ac_objext
2689 if { (ac_try="$ac_compile"
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compile") 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_try") 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_try") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 ac_cv_prog_cc_c89=$ac_arg
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2730 rm -f core conftest.err conftest.$ac_objext
2731 test "x$ac_cv_prog_cc_c89" != "xno" && break
2733 rm -f conftest.$ac_ext
2738 case "x$ac_cv_prog_cc_c89" in
2740 { echo "$as_me:$LINENO: result: none needed" >&5
2741 echo "${ECHO_T}none needed" >&6; } ;;
2743 { echo "$as_me:$LINENO: result: unsupported" >&5
2744 echo "${ECHO_T}unsupported" >&6; } ;;
2746 CC="$CC $ac_cv_prog_cc_c89"
2747 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2748 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759 ac_cpp='$CXXCPP $CPPFLAGS'
2760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2763 if test -z "$CXX"; then
2764 if test -n "$CCC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in clang++ llvm-g++ g++
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_CXX+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 if test -n "$CXX"; then
2778 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$CXX"; then
2799 { echo "$as_me:$LINENO: result: $CXX" >&5
2800 echo "${ECHO_T}$CXX" >&6; }
2802 { echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6; }
2807 test -n "$CXX" && break
2810 if test -z "$CXX"; then
2812 for ac_prog in clang++ llvm-g++ g++
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 if test -n "$ac_ct_CXX"; then
2822 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CXX="$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2842 if test -n "$ac_ct_CXX"; then
2843 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2844 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2846 { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2851 test -n "$ac_ct_CXX" && break
2854 if test "x$ac_ct_CXX" = x; then
2857 case $cross_compiling:$ac_tool_warned in
2859 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet. If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&5
2862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863 whose name does not start with the host triplet. If you think this
2864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865 ac_tool_warned=yes ;;
2873 # Provide some information about the compiler.
2874 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2875 ac_compiler=`set X $ac_compile; echo $2`
2876 { (ac_try="$ac_compiler --version >&5"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compiler --version >&5") 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886 { (ac_try="$ac_compiler -v >&5"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler -v >&5") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896 { (ac_try="$ac_compiler -V >&5"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler -V >&5") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2907 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2908 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2909 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 cat >conftest.$ac_ext <<_ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2945 { (case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_try") 2>&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2976 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2978 GXX=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CXXFLAGS=${CXXFLAGS+set}
2980 ac_save_CXXFLAGS=$CXXFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2982 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cxx_g+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2987 ac_cxx_werror_flag=yes
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_prog_cxx_g=yes
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3045 cat >conftest.$ac_ext <<_ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3069 grep -v '^ *+' conftest.er1 >conftest.err
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3125 grep -v '^ *+' conftest.er1 >conftest.err
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_prog_cxx_g=yes
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3167 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3168 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3169 if test "$ac_test_CXXFLAGS" = set; then
3170 CXXFLAGS=$ac_save_CXXFLAGS
3171 elif test $ac_cv_prog_cxx_g = yes; then
3172 if test "$GXX" = yes; then
3178 if test "$GXX" = yes; then
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3197 # On Suns, sometimes $CPP names a directory.
3198 if test -n "$CPP" && test -d "$CPP"; then
3201 if test -z "$CPP"; then
3202 if test "${ac_cv_prog_CPP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3209 for ac_c_preproc_warn_flag in '' yes
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error" is here to catch this case.
3217 cat >conftest.$ac_ext <<_ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3224 # include <limits.h>
3226 # include <assert.h>
3230 if { (ac_try="$ac_cpp conftest.$ac_ext"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null; then
3243 if test -s conftest.err; then
3244 ac_cpp_err=$ac_c_preproc_warn_flag
3245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252 if test -z "$ac_cpp_err"; then
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 # Broken: fails on valid input.
3262 rm -f conftest.err conftest.$ac_ext
3264 # OK, works on sane cases. Now check whether nonexistent headers
3265 # can be detected and how.
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3272 #include <ac_nonexistent.h>
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3296 if test -z "$ac_cpp_err"; then
3297 # Broken: success on invalid input.
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 # Passes both tests.
3308 rm -f conftest.err conftest.$ac_ext
3311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312 rm -f conftest.err conftest.$ac_ext
3313 if $ac_preproc_ok; then
3325 { echo "$as_me:$LINENO: result: $CPP" >&5
3326 echo "${ECHO_T}$CPP" >&6; }
3328 for ac_c_preproc_warn_flag in '' yes
3330 # Use a header file that comes with gcc, so configuring glibc
3331 # with a fresh cross-compiler works.
3332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333 # <limits.h> exists even on freestanding compilers.
3334 # On the NeXT, cc -E runs the code through the compiler's parser,
3335 # not just through cpp. "Syntax error" is here to catch this case.
3336 cat >conftest.$ac_ext <<_ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3343 # include <limits.h>
3345 # include <assert.h>
3349 if { (ac_try="$ac_cpp conftest.$ac_ext"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3357 grep -v '^ *+' conftest.er1 >conftest.err
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3371 if test -z "$ac_cpp_err"; then
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 # Broken: fails on valid input.
3381 rm -f conftest.err conftest.$ac_ext
3383 # OK, works on sane cases. Now check whether nonexistent headers
3384 # can be detected and how.
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 #include <ac_nonexistent.h>
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3415 if test -z "$ac_cpp_err"; then
3416 # Broken: success on invalid input.
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 # Passes both tests.
3427 rm -f conftest.err conftest.$ac_ext
3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431 rm -f conftest.err conftest.$ac_ext
3432 if $ac_preproc_ok; then
3435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&5
3437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438 See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 if test -d ${srcdir}/projects/llvm-gcc ; then
3452 subdirs="$subdirs projects/llvm-gcc"
3456 if test -d ${srcdir}/projects/test-suite ; then
3457 subdirs="$subdirs projects/test-suite"
3461 if test -d ${srcdir}/projects/llvm-test ; then
3462 subdirs="$subdirs projects/llvm-test"
3466 if test -d ${srcdir}/projects/poolalloc ; then
3467 subdirs="$subdirs projects/poolalloc"
3471 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3472 subdirs="$subdirs projects/llvm-poolalloc"
3476 for i in `ls ${srcdir}/projects`
3478 if test -d ${srcdir}/projects/${i} ; then
3480 sample) subdirs="$subdirs projects/sample"
3482 privbracket) subdirs="$subdirs projects/privbracket"
3484 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3486 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3488 llvm-java) subdirs="$subdirs projects/llvm-java"
3490 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3492 safecode) subdirs="$subdirs projects/safecode"
3494 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3503 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3504 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3510 # Check whether --enable-polly was given.
3511 if test "${enable_polly+set}" = set; then
3512 enableval=$enable_polly;
3517 case "$enableval" in
3522 default) ENABLE_POLLY=1
3524 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3525 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3526 { (exit 1); exit 1; }; } ;;
3530 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3533 subdirs="$subdirs tools/polly"
3538 # Make sure we can run config.sub.
3539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3540 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3541 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3542 { (exit 1); exit 1; }; }
3544 { echo "$as_me:$LINENO: checking build system type" >&5
3545 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3546 if test "${ac_cv_build+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 ac_build_alias=$build_alias
3550 test "x$ac_build_alias" = x &&
3551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3552 test "x$ac_build_alias" = x &&
3553 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3554 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3555 { (exit 1); exit 1; }; }
3556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3558 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3559 { (exit 1); exit 1; }; }
3562 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3563 echo "${ECHO_T}$ac_cv_build" >&6; }
3564 case $ac_cv_build in
3566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3567 echo "$as_me: error: invalid value of canonical build" >&2;}
3568 { (exit 1); exit 1; }; };;
3571 ac_save_IFS=$IFS; IFS='-'
3577 # Remember, the first character of IFS is used to create $*,
3578 # except with old shells:
3581 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3584 { echo "$as_me:$LINENO: checking host system type" >&5
3585 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3586 if test "${ac_cv_host+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 if test "x$host_alias" = x; then
3590 ac_cv_host=$ac_cv_build
3592 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3593 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3594 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3595 { (exit 1); exit 1; }; }
3599 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3600 echo "${ECHO_T}$ac_cv_host" >&6; }
3603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3604 echo "$as_me: error: invalid value of canonical host" >&2;}
3605 { (exit 1); exit 1; }; };;
3608 ac_save_IFS=$IFS; IFS='-'
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3618 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3621 { echo "$as_me:$LINENO: checking target system type" >&5
3622 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3623 if test "${ac_cv_target+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 if test "x$target_alias" = x; then
3627 ac_cv_target=$ac_cv_host
3629 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3630 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3631 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3632 { (exit 1); exit 1; }; }
3636 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3637 echo "${ECHO_T}$ac_cv_target" >&6; }
3638 case $ac_cv_target in
3640 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3641 echo "$as_me: error: invalid value of canonical target" >&2;}
3642 { (exit 1); exit 1; }; };;
3644 target=$ac_cv_target
3645 ac_save_IFS=$IFS; IFS='-'
3651 # Remember, the first character of IFS is used to create $*,
3652 # except with old shells:
3655 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3658 # The aliases save the names the user supplied, while $host etc.
3659 # will get canonicalized.
3660 test -n "$target_alias" &&
3661 test "$program_prefix$program_suffix$program_transform_name" = \
3663 program_prefix=${target_alias}-
3665 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3666 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3667 if test "${llvm_cv_os_type+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="AIX"
3675 llvm_cv_platform_type="Unix" ;;
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="IRIX"
3680 llvm_cv_platform_type="Unix" ;;
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="Cygwin"
3685 llvm_cv_platform_type="Unix" ;;
3687 llvm_cv_link_all_option="-Wl,-all_load"
3688 llvm_cv_no_link_all_option="-Wl,-noall_load"
3689 llvm_cv_os_type="Darwin"
3690 llvm_cv_platform_type="Unix" ;;
3692 llvm_cv_link_all_option="-Wl,-all_load"
3693 llvm_cv_no_link_all_option="-Wl,-noall_load"
3694 llvm_cv_os_type="Minix"
3695 llvm_cv_platform_type="Unix" ;;
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 xcore-*) llvm_cv_target_arch="XCore" ;;
3890 msp430-*) llvm_cv_target_arch="MSP430" ;;
3891 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3892 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3893 ptx-*) llvm_cv_target_arch="PTX" ;;
3894 *) llvm_cv_target_arch="Unknown" ;;
3897 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3898 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3900 if test "$llvm_cv_target_arch" = "Unknown" ; then
3901 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3902 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3905 # Determine the LLVM native architecture for the target
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 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5312 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5313 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5314 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5315 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5316 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5317 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5318 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5319 host) case "$llvm_cv_target_arch" in
5320 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5321 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5322 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5323 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5324 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5325 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5326 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5327 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5328 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5329 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5330 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5331 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5332 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5333 echo "$as_me: error: Can not set target to build" >&2;}
5334 { (exit 1); exit 1; }; } ;;
5336 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5337 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5338 { (exit 1); exit 1; }; } ;;
5343 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5346 # Determine whether we are building LLVM support for the native architecture.
5347 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5348 for a_target in $TARGETS_TO_BUILD; do
5349 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5351 cat >>confdefs.h <<_ACEOF
5352 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5355 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5356 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5357 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5358 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5359 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5360 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5363 cat >>confdefs.h <<_ACEOF
5364 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5368 cat >>confdefs.h <<_ACEOF
5369 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5373 cat >>confdefs.h <<_ACEOF
5374 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5378 cat >>confdefs.h <<_ACEOF
5379 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5382 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5384 cat >>confdefs.h <<_ACEOF
5385 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5392 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5393 # target feature def files.
5394 LLVM_ENUM_TARGETS=""
5395 LLVM_ENUM_ASM_PRINTERS=""
5396 LLVM_ENUM_ASM_PARSERS=""
5397 LLVM_ENUM_DISASSEMBLERS=""
5398 for target_to_build in $TARGETS_TO_BUILD; do
5399 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5400 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5401 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5403 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5404 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5406 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5407 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5415 # Check whether --enable-cbe-printf-a was given.
5416 if test "${enable_cbe_printf_a+set}" = set; then
5417 enableval=$enable_cbe_printf_a;
5422 case "$enableval" in
5423 yes) ENABLE_CBE_PRINTF_A=1
5425 no) ENABLE_CBE_PRINTF_A=0
5427 default) ENABLE_CBE_PRINTF_A=1
5429 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5430 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5431 { (exit 1); exit 1; }; } ;;
5434 cat >>confdefs.h <<_ACEOF
5435 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5440 # Check whether --with-optimize-option was given.
5441 if test "${with_optimize_option+set}" = set; then
5442 withval=$with_optimize_option;
5447 { echo "$as_me:$LINENO: checking optimization flags" >&5
5448 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5451 case "$llvm_cv_os_type" in
5452 FreeBSD) optimize_option=-O2 ;;
5453 MingW) optimize_option=-O2 ;;
5454 *) optimize_option=-O3 ;;
5456 *) optimize_option="$withval" ;;
5458 OPTIMIZE_OPTION=$optimize_option
5460 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5461 echo "${ECHO_T}$optimize_option" >&6; }
5464 # Check whether --with-extra-options was given.
5465 if test "${with_extra_options+set}" = set; then
5466 withval=$with_extra_options;
5472 default) EXTRA_OPTIONS= ;;
5473 *) EXTRA_OPTIONS=$withval ;;
5475 EXTRA_OPTIONS=$EXTRA_OPTIONS
5479 # Check whether --with-extra-ld-options was given.
5480 if test "${with_extra_ld_options+set}" = set; then
5481 withval=$with_extra_ld_options;
5487 default) EXTRA_LD_OPTIONS= ;;
5488 *) EXTRA_LD_OPTIONS=$withval ;;
5490 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5493 # Check whether --enable-bindings was given.
5494 if test "${enable_bindings+set}" = set; then
5495 enableval=$enable_bindings;
5500 BINDINGS_TO_BUILD=""
5501 case "$enableval" in
5502 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5503 all ) BINDINGS_TO_BUILD="ocaml" ;;
5504 none | no) BINDINGS_TO_BUILD="" ;;
5505 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5506 case "$a_binding" in
5507 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5508 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5509 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5510 { (exit 1); exit 1; }; } ;;
5517 # Check whether --with-ocaml-libdir was given.
5518 if test "${with_ocaml_libdir+set}" = set; then
5519 withval=$with_ocaml_libdir;
5525 auto) with_ocaml_libdir="$withval" ;;
5526 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5527 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5528 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5529 { (exit 1); exit 1; }; } ;;
5533 # Check whether --with-clang-srcdir was given.
5534 if test "${with_clang_srcdir+set}" = set; then
5535 withval=$with_clang_srcdir;
5541 -) clang_src_root="" ;;
5542 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5543 *) clang_src_root="$ac_pwd/$withval" ;;
5545 CLANG_SRC_ROOT=$clang_src_root
5549 # Check whether --with-clang-resource-dir was given.
5550 if test "${with_clang_resource_dir+set}" = set; then
5551 withval=$with_clang_resource_dir;
5557 cat >>confdefs.h <<_ACEOF
5558 #define CLANG_RESOURCE_DIR "$withval"
5563 # Check whether --with-c-include-dirs was given.
5564 if test "${with_c_include_dirs+set}" = set; then
5565 withval=$with_c_include_dirs;
5571 cat >>confdefs.h <<_ACEOF
5572 #define C_INCLUDE_DIRS "$withval"
5577 # Check whether --with-cxx-include-root was given.
5578 if test "${with_cxx_include_root+set}" = set; then
5579 withval=$with_cxx_include_root;
5585 cat >>confdefs.h <<_ACEOF
5586 #define CXX_INCLUDE_ROOT "$withval"
5591 # Check whether --with-cxx-include-arch was given.
5592 if test "${with_cxx_include_arch+set}" = set; then
5593 withval=$with_cxx_include_arch;
5599 cat >>confdefs.h <<_ACEOF
5600 #define CXX_INCLUDE_ARCH "$withval"
5605 # Check whether --with-cxx-include-32bit-dir was given.
5606 if test "${with_cxx_include_32bit_dir+set}" = set; then
5607 withval=$with_cxx_include_32bit_dir;
5613 cat >>confdefs.h <<_ACEOF
5614 #define CXX_INCLUDE_32BIT_DIR "$withval"
5619 # Check whether --with-cxx-include-64bit-dir was given.
5620 if test "${with_cxx_include_64bit_dir+set}" = set; then
5621 withval=$with_cxx_include_64bit_dir;
5627 cat >>confdefs.h <<_ACEOF
5628 #define CXX_INCLUDE_64BIT_DIR "$withval"
5633 # Check whether --with-binutils-include was given.
5634 if test "${with_binutils_include+set}" = set; then
5635 withval=$with_binutils_include;
5641 default) WITH_BINUTILS_INCDIR=default ;;
5642 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5643 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5644 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5645 { (exit 1); exit 1; }; } ;;
5647 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5648 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5650 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5651 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5652 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5653 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5654 { (exit 1); exit 1; }; };
5659 # Check whether --with-bug-report-url was given.
5660 if test "${with_bug_report_url+set}" = set; then
5661 withval=$with_bug_report_url;
5663 withval="http://llvm.org/bugs/"
5667 cat >>confdefs.h <<_ACEOF
5668 #define BUG_REPORT_URL "$withval"
5672 # Check whether --enable-libffi was given.
5673 if test "${enable_libffi+set}" = set; then
5674 enableval=$enable_libffi; case "$enableval" in
5675 yes) llvm_cv_enable_libffi="yes" ;;
5676 no) llvm_cv_enable_libffi="no" ;;
5677 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5678 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5679 { (exit 1); exit 1; }; } ;;
5682 llvm_cv_enable_libffi=no
5687 # Check whether --with-internal-prefix was given.
5688 if test "${with_internal_prefix+set}" = set; then
5689 withval=$with_internal_prefix;
5694 INTERNAL_PREFIX=$withval
5698 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5699 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5700 if test "${lt_cv_path_NM+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 if test -n "$NM"; then
5704 # Let the user override the test.
5707 lt_nm_to_check="${ac_tool_prefix}nm"
5708 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5709 lt_nm_to_check="$lt_nm_to_check nm"
5711 for lt_tmp_nm in $lt_nm_to_check; do
5712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5713 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5715 test -z "$ac_dir" && ac_dir=.
5716 tmp_nm="$ac_dir/$lt_tmp_nm"
5717 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5718 # Check to see if the nm accepts a BSD-compat flag.
5719 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5720 # nm: unknown option "B" ignored
5721 # Tru64's nm complains that /dev/null is an invalid object file
5722 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5723 */dev/null* | *'Invalid file or object type'*)
5724 lt_cv_path_NM="$tmp_nm -B"
5728 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5730 lt_cv_path_NM="$tmp_nm -p"
5734 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5735 continue # so that we can try to find one that supports BSD flags
5744 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5747 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5748 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5753 { echo "$as_me:$LINENO: checking for GNU make" >&5
5754 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5755 if test "${llvm_cv_gnu_make_command+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 llvm_cv_gnu_make_command=''
5759 for a in "$MAKE" make gmake gnumake ; do
5760 if test -z "$a" ; then continue ; fi ;
5761 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5763 llvm_cv_gnu_make_command=$a ;
5768 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5769 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5770 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5774 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5775 echo "${ECHO_T}\"Not found\"" >&6; };
5779 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5780 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5782 if test "$LN_S" = "ln -s"; then
5783 { echo "$as_me:$LINENO: result: yes" >&5
5784 echo "${ECHO_T}yes" >&6; }
5786 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5787 echo "${ECHO_T}no, using $LN_S" >&6; }
5790 # Extract the first word of "cmp", so it can be a program name with args.
5791 set dummy cmp; ac_word=$2
5792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5794 if test "${ac_cv_path_CMP+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5822 if test -n "$CMP"; then
5823 { echo "$as_me:$LINENO: result: $CMP" >&5
5824 echo "${ECHO_T}$CMP" >&6; }
5826 { echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6; }
5831 # Extract the first word of "cp", so it can be a program name with args.
5832 set dummy cp; ac_word=$2
5833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5835 if test "${ac_cv_path_CP+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5863 if test -n "$CP"; then
5864 { echo "$as_me:$LINENO: result: $CP" >&5
5865 echo "${ECHO_T}$CP" >&6; }
5867 { echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6; }
5872 # Extract the first word of "date", so it can be a program name with args.
5873 set dummy date; ac_word=$2
5874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5876 if test "${ac_cv_path_DATE+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5891 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5903 DATE=$ac_cv_path_DATE
5904 if test -n "$DATE"; then
5905 { echo "$as_me:$LINENO: result: $DATE" >&5
5906 echo "${ECHO_T}$DATE" >&6; }
5908 { echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6; }
5913 # Extract the first word of "find", so it can be a program name with args.
5914 set dummy find; ac_word=$2
5915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5917 if test "${ac_cv_path_FIND+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5944 FIND=$ac_cv_path_FIND
5945 if test -n "$FIND"; then
5946 { echo "$as_me:$LINENO: result: $FIND" >&5
5947 echo "${ECHO_T}$FIND" >&6; }
5949 { echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6; }
5954 # Extract the first word of "grep", so it can be a program name with args.
5955 set dummy grep; ac_word=$2
5956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5958 if test "${ac_cv_path_GREP+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5985 GREP=$ac_cv_path_GREP
5986 if test -n "$GREP"; then
5987 { echo "$as_me:$LINENO: result: $GREP" >&5
5988 echo "${ECHO_T}$GREP" >&6; }
5990 { echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6; }
5995 # Extract the first word of "mkdir", so it can be a program name with args.
5996 set dummy mkdir; ac_word=$2
5997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999 if test "${ac_cv_path_MKDIR+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6026 MKDIR=$ac_cv_path_MKDIR
6027 if test -n "$MKDIR"; then
6028 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6029 echo "${ECHO_T}$MKDIR" >&6; }
6031 { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6036 # Extract the first word of "mv", so it can be a program name with args.
6037 set dummy mv; ac_word=$2
6038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6040 if test "${ac_cv_path_MV+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6068 if test -n "$MV"; then
6069 { echo "$as_me:$LINENO: result: $MV" >&5
6070 echo "${ECHO_T}$MV" >&6; }
6072 { echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6; }
6077 if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6079 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082 if test "${ac_cv_prog_RANLIB+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 if test -n "$RANLIB"; then
6086 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 RANLIB=$ac_cv_prog_RANLIB
6106 if test -n "$RANLIB"; then
6107 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6108 echo "${ECHO_T}$RANLIB" >&6; }
6110 { echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6; }
6116 if test -z "$ac_cv_prog_RANLIB"; then
6117 ac_ct_RANLIB=$RANLIB
6118 # Extract the first word of "ranlib", so it can be a program name with args.
6119 set dummy ranlib; ac_word=$2
6120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6122 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 if test -n "$ac_ct_RANLIB"; then
6126 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6135 ac_cv_prog_ac_ct_RANLIB="ranlib"
6136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6146 if test -n "$ac_ct_RANLIB"; then
6147 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6148 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6150 { echo "$as_me:$LINENO: result: no" >&5
6151 echo "${ECHO_T}no" >&6; }
6154 if test "x$ac_ct_RANLIB" = x; then
6157 case $cross_compiling:$ac_tool_warned in
6159 { echo "$as_me:$LINENO: 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." >&5
6162 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6163 whose name does not start with the host triplet. If you think this
6164 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6165 ac_tool_warned=yes ;;
6167 RANLIB=$ac_ct_RANLIB
6170 RANLIB="$ac_cv_prog_RANLIB"
6173 if test -n "$ac_tool_prefix"; then
6174 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6175 set dummy ${ac_tool_prefix}ar; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_prog_AR+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 if test -n "$AR"; then
6182 ac_cv_prog_AR="$AR" # Let the user override the test.
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6191 ac_cv_prog_AR="${ac_tool_prefix}ar"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 if test -n "$AR"; then
6203 { echo "$as_me:$LINENO: result: $AR" >&5
6204 echo "${ECHO_T}$AR" >&6; }
6206 { echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6; }
6212 if test -z "$ac_cv_prog_AR"; then
6214 # Extract the first word of "ar", so it can be a program name with args.
6215 set dummy ar; ac_word=$2
6216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6218 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 if test -n "$ac_ct_AR"; then
6222 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6231 ac_cv_prog_ac_ct_AR="ar"
6232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6242 if test -n "$ac_ct_AR"; then
6243 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6244 echo "${ECHO_T}$ac_ct_AR" >&6; }
6246 { echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6; }
6250 if test "x$ac_ct_AR" = x; then
6253 case $cross_compiling:$ac_tool_warned in
6255 { echo "$as_me:$LINENO: 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." >&5
6258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6259 whose name does not start with the host triplet. If you think this
6260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6261 ac_tool_warned=yes ;;
6269 # Extract the first word of "rm", so it can be a program name with args.
6270 set dummy rm; ac_word=$2
6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273 if test "${ac_cv_path_RM+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6301 if test -n "$RM"; then
6302 { echo "$as_me:$LINENO: result: $RM" >&5
6303 echo "${ECHO_T}$RM" >&6; }
6305 { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6310 # Extract the first word of "sed", so it can be a program name with args.
6311 set dummy sed; ac_word=$2
6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314 if test "${ac_cv_path_SED+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6342 if test -n "$SED"; then
6343 { echo "$as_me:$LINENO: result: $SED" >&5
6344 echo "${ECHO_T}$SED" >&6; }
6346 { echo "$as_me:$LINENO: result: no" >&5
6347 echo "${ECHO_T}no" >&6; }
6351 # Extract the first word of "tar", so it can be a program name with args.
6352 set dummy tar; ac_word=$2
6353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355 if test "${ac_cv_path_TAR+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6383 if test -n "$TAR"; then
6384 { echo "$as_me:$LINENO: result: $TAR" >&5
6385 echo "${ECHO_T}$TAR" >&6; }
6387 { echo "$as_me:$LINENO: result: no" >&5
6388 echo "${ECHO_T}no" >&6; }
6392 # Extract the first word of "pwd", so it can be a program name with args.
6393 set dummy pwd; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_path_BINPWD+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6423 BINPWD=$ac_cv_path_BINPWD
6424 if test -n "$BINPWD"; then
6425 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6426 echo "${ECHO_T}$BINPWD" >&6; }
6428 { echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6; }
6434 # Extract the first word of "Graphviz", so it can be a program name with args.
6435 set dummy Graphviz; ac_word=$2
6436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6438 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6465 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6466 if test -n "$GRAPHVIZ"; then
6467 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6468 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6470 { echo "$as_me:$LINENO: result: no" >&5
6471 echo "${ECHO_T}no" >&6; }
6475 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6477 cat >>confdefs.h <<\_ACEOF
6478 #define HAVE_GRAPHVIZ 1
6481 if test "$llvm_cv_os_type" = "MingW" ; then
6482 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6485 cat >>confdefs.h <<_ACEOF
6486 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6490 # Extract the first word of "dot", so it can be a program name with args.
6491 set dummy dot; ac_word=$2
6492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6494 if test "${ac_cv_path_DOT+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6522 if test -n "$DOT"; then
6523 { echo "$as_me:$LINENO: result: $DOT" >&5
6524 echo "${ECHO_T}$DOT" >&6; }
6526 { echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6; }
6531 if test "$DOT" != "echo dot" ; then
6533 cat >>confdefs.h <<\_ACEOF
6537 if test "$llvm_cv_os_type" = "MingW" ; then
6538 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6541 cat >>confdefs.h <<_ACEOF
6542 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6546 # Extract the first word of "fdp", so it can be a program name with args.
6547 set dummy fdp; ac_word=$2
6548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6550 if test "${ac_cv_path_FDP+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6578 if test -n "$FDP"; then
6579 { echo "$as_me:$LINENO: result: $FDP" >&5
6580 echo "${ECHO_T}$FDP" >&6; }
6582 { echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6; }
6587 if test "$FDP" != "echo fdp" ; then
6589 cat >>confdefs.h <<\_ACEOF
6593 if test "$llvm_cv_os_type" = "MingW" ; then
6594 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6597 cat >>confdefs.h <<_ACEOF
6598 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6602 # Extract the first word of "neato", so it can be a program name with args.
6603 set dummy neato; ac_word=$2
6604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6606 if test "${ac_cv_path_NEATO+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6633 NEATO=$ac_cv_path_NEATO
6634 if test -n "$NEATO"; then
6635 { echo "$as_me:$LINENO: result: $NEATO" >&5
6636 echo "${ECHO_T}$NEATO" >&6; }
6638 { echo "$as_me:$LINENO: result: no" >&5
6639 echo "${ECHO_T}no" >&6; }
6643 if test "$NEATO" != "echo neato" ; then
6645 cat >>confdefs.h <<\_ACEOF
6646 #define HAVE_NEATO 1
6649 if test "$llvm_cv_os_type" = "MingW" ; then
6650 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6653 cat >>confdefs.h <<_ACEOF
6654 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6658 # Extract the first word of "twopi", so it can be a program name with args.
6659 set dummy twopi; ac_word=$2
6660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662 if test "${ac_cv_path_TWOPI+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6677 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6689 TWOPI=$ac_cv_path_TWOPI
6690 if test -n "$TWOPI"; then
6691 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6692 echo "${ECHO_T}$TWOPI" >&6; }
6694 { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6699 if test "$TWOPI" != "echo twopi" ; then
6701 cat >>confdefs.h <<\_ACEOF
6702 #define HAVE_TWOPI 1
6705 if test "$llvm_cv_os_type" = "MingW" ; then
6706 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6709 cat >>confdefs.h <<_ACEOF
6710 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6714 # Extract the first word of "circo", so it can be a program name with args.
6715 set dummy circo; ac_word=$2
6716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718 if test "${ac_cv_path_CIRCO+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6745 CIRCO=$ac_cv_path_CIRCO
6746 if test -n "$CIRCO"; then
6747 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6748 echo "${ECHO_T}$CIRCO" >&6; }
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6755 if test "$CIRCO" != "echo circo" ; then
6757 cat >>confdefs.h <<\_ACEOF
6758 #define HAVE_CIRCO 1
6761 if test "$llvm_cv_os_type" = "MingW" ; then
6762 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6765 cat >>confdefs.h <<_ACEOF
6766 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6770 for ac_prog in gv gsview32
6772 # Extract the first word of "$ac_prog", so it can be a program name with args.
6773 set dummy $ac_prog; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_GV+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 if test -n "$GV"; then
6804 { echo "$as_me:$LINENO: result: $GV" >&5
6805 echo "${ECHO_T}$GV" >&6; }
6807 { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6812 test -n "$GV" && break
6814 test -n "$GV" || GV="echo gv"
6816 if test "$GV" != "echo gv" ; then
6818 cat >>confdefs.h <<\_ACEOF
6822 if test "$llvm_cv_os_type" = "MingW" ; then
6823 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6826 cat >>confdefs.h <<_ACEOF
6827 #define LLVM_PATH_GV "$GV${EXEEXT}"
6831 # Extract the first word of "dotty", so it can be a program name with args.
6832 set dummy dotty; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_DOTTY+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6862 DOTTY=$ac_cv_path_DOTTY
6863 if test -n "$DOTTY"; then
6864 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6865 echo "${ECHO_T}$DOTTY" >&6; }
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6872 if test "$DOTTY" != "echo dotty" ; then
6874 cat >>confdefs.h <<\_ACEOF
6875 #define HAVE_DOTTY 1
6878 if test "$llvm_cv_os_type" = "MingW" ; then
6879 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6882 cat >>confdefs.h <<_ACEOF
6883 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6887 # Extract the first word of "xdot.py", so it can be a program name with args.
6888 set dummy xdot.py; ac_word=$2
6889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6918 XDOT_PY=$ac_cv_path_XDOT_PY
6919 if test -n "$XDOT_PY"; then
6920 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6921 echo "${ECHO_T}$XDOT_PY" >&6; }
6923 { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6928 if test "$XDOT_PY" != "echo xdot.py" ; then
6930 cat >>confdefs.h <<\_ACEOF
6931 #define HAVE_XDOT_PY 1
6934 if test "$llvm_cv_os_type" = "MingW" ; then
6935 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6938 cat >>confdefs.h <<_ACEOF
6939 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6945 # Extract the first word of "perl", so it can be a program name with args.
6946 set dummy perl; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_path_PERL+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6976 PERL=$ac_cv_path_PERL
6977 if test -n "$PERL"; then
6978 { echo "$as_me:$LINENO: result: $PERL" >&5
6979 echo "${ECHO_T}$PERL" >&6; }
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6986 if test "$PERL" != "none"; then
6987 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6988 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6989 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6990 { echo "$as_me:$LINENO: result: yes" >&5
6991 echo "${ECHO_T}yes" >&6; }
6994 { echo "$as_me:$LINENO: result: not found" >&5
6995 echo "${ECHO_T}not found" >&6; }
7000 if test x"$PERL" = xnone; then
7003 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7004 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7005 { (exit 1); exit 1; }; }
7011 # Find a good install program. We prefer a C program (faster),
7012 # so one script is as good as another. But avoid the broken or
7013 # incompatible versions:
7014 # SysV /etc/install, /usr/sbin/install
7015 # SunOS /usr/etc/install
7016 # IRIX /sbin/install
7018 # AmigaOS /C/install, which installs bootblocks on floppy discs
7019 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7020 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7022 # OS/2's system install, which has a completely different semantic
7023 # ./install, which can be erroneously created by make from ./install.sh.
7024 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7025 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7026 if test -z "$INSTALL"; then
7027 if test "${ac_cv_path_install+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir=.
7035 # Account for people who put trailing slashes in PATH elements.
7037 ./ | .// | /cC/* | \
7038 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7039 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7042 # OSF1 and SCO ODT 3.0 have their own names for install.
7043 # Don't use installbsd from OSF since it installs stuff as root
7045 for ac_prog in ginstall scoinst install; do
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7048 if test $ac_prog = install &&
7049 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7050 # AIX install. It has an incompatible calling convention.
7052 elif test $ac_prog = install &&
7053 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7054 # program-specific install script used by HP pwplus--don't use.
7057 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7070 if test "${ac_cv_path_install+set}" = set; then
7071 INSTALL=$ac_cv_path_install
7073 # As a last resort, use the slow shell script. Don't cache a
7074 # value for INSTALL within a source directory, because that will
7075 # break other packages using the cache if that directory is
7076 # removed, or if the value is a relative name.
7077 INSTALL=$ac_install_sh
7080 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7081 echo "${ECHO_T}$INSTALL" >&6; }
7083 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7084 # It thinks the first close brace ends the variable substitution.
7085 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7087 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7089 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7092 [\\/$]* | ?:[\\/]* ) ;;
7093 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7096 # Extract the first word of "bzip2", so it can be a program name with args.
7097 set dummy bzip2; ac_word=$2
7098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100 if test "${ac_cv_path_BZIP2+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 BZIP2=$ac_cv_path_BZIP2
7127 if test -n "$BZIP2"; then
7128 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7129 echo "${ECHO_T}$BZIP2" >&6; }
7131 { echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6; }
7136 # Extract the first word of "cat", so it can be a program name with args.
7137 set dummy cat; ac_word=$2
7138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140 if test "${ac_cv_path_CAT+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 if test -n "$CAT"; then
7168 { echo "$as_me:$LINENO: result: $CAT" >&5
7169 echo "${ECHO_T}$CAT" >&6; }
7171 { echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6; }
7176 # Extract the first word of "doxygen", so it can be a program name with args.
7177 set dummy doxygen; ac_word=$2
7178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7180 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 DOXYGEN=$ac_cv_path_DOXYGEN
7207 if test -n "$DOXYGEN"; then
7208 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7209 echo "${ECHO_T}$DOXYGEN" >&6; }
7211 { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7216 # Extract the first word of "groff", so it can be a program name with args.
7217 set dummy groff; ac_word=$2
7218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220 if test "${ac_cv_path_GROFF+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 GROFF=$ac_cv_path_GROFF
7247 if test -n "$GROFF"; then
7248 { echo "$as_me:$LINENO: result: $GROFF" >&5
7249 echo "${ECHO_T}$GROFF" >&6; }
7251 { echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6; }
7256 # Extract the first word of "gzip", so it can be a program name with args.
7257 set dummy gzip; ac_word=$2
7258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 GZIPBIN=$ac_cv_path_GZIPBIN
7287 if test -n "$GZIPBIN"; then
7288 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7289 echo "${ECHO_T}$GZIPBIN" >&6; }
7291 { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7296 # Extract the first word of "pod2html", so it can be a program name with args.
7297 set dummy pod2html; ac_word=$2
7298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300 if test "${ac_cv_path_POD2HTML+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 POD2HTML=$ac_cv_path_POD2HTML
7327 if test -n "$POD2HTML"; then
7328 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7329 echo "${ECHO_T}$POD2HTML" >&6; }
7331 { echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6; }
7336 # Extract the first word of "pod2man", so it can be a program name with args.
7337 set dummy pod2man; ac_word=$2
7338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7340 if test "${ac_cv_path_POD2MAN+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7355 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 POD2MAN=$ac_cv_path_POD2MAN
7367 if test -n "$POD2MAN"; then
7368 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7369 echo "${ECHO_T}$POD2MAN" >&6; }
7371 { echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6; }
7376 # Extract the first word of "pdfroff", so it can be a program name with args.
7377 set dummy pdfroff; ac_word=$2
7378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380 if test "${ac_cv_path_PDFROFF+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 PDFROFF=$ac_cv_path_PDFROFF
7407 if test -n "$PDFROFF"; then
7408 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7409 echo "${ECHO_T}$PDFROFF" >&6; }
7411 { echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6; }
7416 # Extract the first word of "runtest", so it can be a program name with args.
7417 set dummy runtest; ac_word=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_path_RUNTEST+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 RUNTEST=$ac_cv_path_RUNTEST
7447 if test -n "$RUNTEST"; then
7448 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7449 echo "${ECHO_T}$RUNTEST" >&6; }
7451 { echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6; }
7458 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7459 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7461 # Check whether --with-tclinclude was given.
7462 if test "${with_tclinclude+set}" = set; then
7463 withval=$with_tclinclude; with_tclinclude=${withval}
7468 if test "${ac_cv_path_tclsh+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 if test x"${with_tclinclude}" != x ; then
7473 if test -f ${with_tclinclude}/tclsh ; then
7474 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7475 elif test -f ${with_tclinclude}/src/tclsh ; then
7476 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7478 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7479 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7480 { (exit 1); exit 1; }; }
7486 if test x"${ac_cv_path_tclsh}" = x ; then
7487 { echo "$as_me:$LINENO: result: none" >&5
7488 echo "${ECHO_T}none" >&6; }
7489 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
7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_TCLSH+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 TCLSH=$ac_cv_path_TCLSH
7522 if test -n "$TCLSH"; then
7523 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7524 echo "${ECHO_T}$TCLSH" >&6; }
7526 { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7531 test -n "$TCLSH" && break
7534 if test x"${TCLSH}" = x ; then
7535 ac_cv_path_tclsh='';
7537 ac_cv_path_tclsh="${TCLSH}";
7540 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7541 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7542 TCLSH="${ac_cv_path_tclsh}"
7546 # Extract the first word of "zip", so it can be a program name with args.
7547 set dummy zip; ac_word=$2
7548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7550 if test "${ac_cv_path_ZIP+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7565 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 if test -n "$ZIP"; then
7578 { echo "$as_me:$LINENO: result: $ZIP" >&5
7579 echo "${ECHO_T}$ZIP" >&6; }
7581 { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7586 for ac_prog in ocamlc
7588 # Extract the first word of "$ac_prog", so it can be a program name with args.
7589 set dummy $ac_prog; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_path_OCAMLC+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7607 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 OCAMLC=$ac_cv_path_OCAMLC
7619 if test -n "$OCAMLC"; then
7620 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7621 echo "${ECHO_T}$OCAMLC" >&6; }
7623 { echo "$as_me:$LINENO: result: no" >&5
7624 echo "${ECHO_T}no" >&6; }
7628 test -n "$OCAMLC" && break
7631 for ac_prog in ocamlopt
7633 # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 OCAMLOPT=$ac_cv_path_OCAMLOPT
7664 if test -n "$OCAMLOPT"; then
7665 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7666 echo "${ECHO_T}$OCAMLOPT" >&6; }
7668 { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7673 test -n "$OCAMLOPT" && break
7676 for ac_prog in ocamldep
7678 # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy $ac_prog; ac_word=$2
7680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7682 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 OCAMLDEP=$ac_cv_path_OCAMLDEP
7709 if test -n "$OCAMLDEP"; then
7710 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7711 echo "${ECHO_T}$OCAMLDEP" >&6; }
7713 { echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6; }
7718 test -n "$OCAMLDEP" && break
7721 for ac_prog in ocamldoc
7723 # Extract the first word of "$ac_prog", so it can be a program name with args.
7724 set dummy $ac_prog; ac_word=$2
7725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7727 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7742 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 OCAMLDOC=$ac_cv_path_OCAMLDOC
7754 if test -n "$OCAMLDOC"; then
7755 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7756 echo "${ECHO_T}$OCAMLDOC" >&6; }
7758 { echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6; }
7763 test -n "$OCAMLDOC" && break
7766 for ac_prog in gas as
7768 # Extract the first word of "$ac_prog", so it can be a program name with args.
7769 set dummy $ac_prog; ac_word=$2
7770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7772 if test "${ac_cv_path_GAS+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 if test -n "$GAS"; then
7800 { echo "$as_me:$LINENO: result: $GAS" >&5
7801 echo "${ECHO_T}$GAS" >&6; }
7803 { echo "$as_me:$LINENO: result: no" >&5
7804 echo "${ECHO_T}no" >&6; }
7808 test -n "$GAS" && break
7812 { echo "$as_me:$LINENO: checking for linker version" >&5
7813 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7814 if test "${llvm_cv_link_version+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 version_string="$(ld -v 2>&1 | head -1)"
7821 if (echo "$version_string" | grep -q "ld64"); then
7822 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7824 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7828 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7829 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7831 cat >>confdefs.h <<_ACEOF
7832 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7837 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7838 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7839 if test "${llvm_cv_link_use_r+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 ac_cpp='$CPP $CPPFLAGS'
7844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7849 CFLAGS="$CFLAGS -Wl,-R."
7850 cat >conftest.$ac_ext <<_ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7865 rm -f conftest.$ac_objext conftest$ac_exeext
7866 if { (ac_try="$ac_link"
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_link") 2>conftest.er1
7874 grep -v '^ *+' conftest.er1 >conftest.err
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7880 { (case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_try") 2>&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; } &&
7889 { ac_try='test -s conftest$ac_exeext'
7890 { (case "(($ac_try" in
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_try") 2>&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7899 llvm_cv_link_use_r=yes
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7904 llvm_cv_link_use_r=no
7907 rm -f core conftest.err conftest.$ac_objext \
7908 conftest$ac_exeext conftest.$ac_ext
7911 ac_cpp='$CPP $CPPFLAGS'
7912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7918 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7919 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7920 if test "$llvm_cv_link_use_r" = yes ; then
7922 cat >>confdefs.h <<\_ACEOF
7923 #define HAVE_LINK_R 1
7929 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7930 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7931 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7935 ac_cpp='$CPP $CPPFLAGS'
7936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7957 rm -f conftest.$ac_objext conftest$ac_exeext
7958 if { (ac_try="$ac_link"
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_link") 2>conftest.er1
7966 grep -v '^ *+' conftest.er1 >conftest.err
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7972 { (case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_try") 2>&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; } &&
7981 { ac_try='test -s conftest$ac_exeext'
7982 { (case "(($ac_try" in
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_try") 2>&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 llvm_cv_link_use_export_dynamic=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 llvm_cv_link_use_export_dynamic=no
7999 rm -f core conftest.err conftest.$ac_objext \
8000 conftest$ac_exeext conftest.$ac_ext
8003 ac_cpp='$CPP $CPPFLAGS'
8004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8011 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8012 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8014 cat >>confdefs.h <<\_ACEOF
8015 #define HAVE_LINK_EXPORT_DYNAMIC 1
8021 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8022 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8023 if test "${llvm_cv_link_use_version_script+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 ac_cpp='$CPP $CPPFLAGS'
8028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8034 # The following code is from the autoconf manual,
8035 # "11.13: Limitations of Usual Tools".
8036 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8037 # Use mktemp if possible; otherwise fall back on mkdir,
8038 # with $RANDOM to make collisions less likely.
8042 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8044 test -n "$tmp" && test -d "$tmp"
8046 tmp=$TMPDIR/foo$$-$RANDOM
8047 (umask 077 && mkdir "$tmp")
8050 echo "{" > "$tmp/export.map"
8051 echo " global: main;" >> "$tmp/export.map"
8052 echo " local: *;" >> "$tmp/export.map"
8053 echo "};" >> "$tmp/export.map"
8055 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8056 cat >conftest.$ac_ext <<_ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8071 rm -f conftest.$ac_objext conftest$ac_exeext
8072 if { (ac_try="$ac_link"
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_link") 2>conftest.er1
8080 grep -v '^ *+' conftest.er1 >conftest.err
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086 { (case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_try") 2>&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try='test -s conftest$ac_exeext'
8096 { (case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_try") 2>&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8105 llvm_cv_link_use_version_script=yes
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 llvm_cv_link_use_version_script=no
8113 rm -f core conftest.err conftest.$ac_objext \
8114 conftest$ac_exeext conftest.$ac_ext
8115 rm "$tmp/export.map"
8119 ac_cpp='$CPP $CPPFLAGS'
8120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8126 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8127 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8128 if test "$llvm_cv_link_use_version_script" = yes ; then
8129 HAVE_LINK_VERSION_SCRIPT=1
8136 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8137 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8138 if test "${ac_cv_c_const+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 cat >conftest.$ac_ext <<_ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8151 /* FIXME: Include the comments suggested by Paul. */
8153 /* Ultrix mips cc rejects this. */
8154 typedef int charset[2];
8156 /* SunOS 4.1.1 cc rejects this. */
8157 char const *const *ccp;
8159 /* NEC SVR4.0.2 mips cc rejects this. */
8160 struct point {int x, y;};
8161 static struct point const zero = {0,0};
8162 /* AIX XL C 1.02.0.0 rejects this.
8163 It does not let you subtract one const X* pointer from another in
8164 an arm of an if-expression whose if-part is not a constant
8166 const char *g = "string";
8167 ccp = &g + (g ? g-g : 0);
8168 /* HPUX 7.0 cc rejects these. */
8171 ccp = (char const *const *) p;
8172 { /* SCO 3.2v4 cc rejects this. */
8174 char const *s = 0 ? (char *) 0 : (char const *) 0;
8179 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8181 const int *foo = &x[0];
8184 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8185 typedef const int *iptr;
8189 { /* AIX XL C 1.02.0.0 rejects this saying
8190 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8191 struct s { int j; const int *ap[3]; };
8192 struct s *b; b->j = 5;
8194 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8198 return !x[0] && !zero.x;
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8214 grep -v '^ *+' conftest.er1 >conftest.err
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8220 { (case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_try") 2>&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try='test -s conftest.$ac_objext'
8230 { (case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_try") 2>&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8250 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8251 if test $ac_cv_c_const = no; then
8253 cat >>confdefs.h <<\_ACEOF
8265 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8266 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8267 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8268 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 cat >conftest.$ac_ext <<_ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 #include <sys/types.h>
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8299 grep -v '^ *+' conftest.er1 >conftest.err
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8305 { (case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_try") 2>&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try='test -s conftest.$ac_objext'
8315 { (case "(($ac_try" in
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_try") 2>&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 eval "$as_ac_Header=yes"
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8329 eval "$as_ac_Header=no"
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 ac_res=`eval echo '${'$as_ac_Header'}'`
8335 { echo "$as_me:$LINENO: result: $ac_res" >&5
8336 echo "${ECHO_T}$ac_res" >&6; }
8337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8338 cat >>confdefs.h <<_ACEOF
8339 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8342 ac_header_dirent=$ac_hdr; break
8346 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8347 if test $ac_header_dirent = dirent.h; then
8348 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8349 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8350 if test "${ac_cv_search_opendir+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 ac_func_search_save_LIBS=$LIBS
8354 cat >conftest.$ac_ext <<_ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8361 /* Override any GCC internal prototype to avoid an error.
8362 Use char because int might match the return type of a GCC
8363 builtin and then its argument prototype would still apply. */
8376 for ac_lib in '' dir; do
8377 if test -z "$ac_lib"; then
8378 ac_res="none required"
8381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (ac_try="$ac_link"
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_link") 2>conftest.er1
8392 grep -v '^ *+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8398 { (case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_try") 2>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest$ac_exeext'
8408 { (case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_try") 2>&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 ac_cv_search_opendir=$ac_res
8419 echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8425 rm -f core conftest.err conftest.$ac_objext \
8427 if test "${ac_cv_search_opendir+set}" = set; then
8431 if test "${ac_cv_search_opendir+set}" = set; then
8434 ac_cv_search_opendir=no
8437 LIBS=$ac_func_search_save_LIBS
8439 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8440 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8441 ac_res=$ac_cv_search_opendir
8442 if test "$ac_res" != no; then
8443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8448 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8449 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8450 if test "${ac_cv_search_opendir+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 ac_func_search_save_LIBS=$LIBS
8454 cat >conftest.$ac_ext <<_ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8461 /* Override any GCC internal prototype to avoid an error.
8462 Use char because int might match the return type of a GCC
8463 builtin and then its argument prototype would still apply. */
8476 for ac_lib in '' x; do
8477 if test -z "$ac_lib"; then
8478 ac_res="none required"
8481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (ac_try="$ac_link"
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_link") 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8498 { (case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_try") 2>&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_try") 2>&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
8517 ac_cv_search_opendir=$ac_res
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8525 rm -f core conftest.err conftest.$ac_objext \
8527 if test "${ac_cv_search_opendir+set}" = set; then
8531 if test "${ac_cv_search_opendir+set}" = set; then
8534 ac_cv_search_opendir=no
8537 LIBS=$ac_func_search_save_LIBS
8539 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8540 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8541 ac_res=$ac_cv_search_opendir
8542 if test "$ac_res" != no; then
8543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8550 for ac_header in dlfcn.h
8552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 ac_res=`eval echo '${'$as_ac_Header'}'`
8560 { echo "$as_me:$LINENO: result: $ac_res" >&5
8561 echo "${ECHO_T}$ac_res" >&6; }
8563 # Is the header compilable?
8564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 $ac_includes_default
8573 #include <$ac_header>
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
8589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8590 { (case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_try") 2>&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; } &&
8599 { ac_try='test -s conftest.$ac_objext'
8600 { (case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_try") 2>&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8609 ac_header_compiler=yes
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 ac_header_compiler=no
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8619 echo "${ECHO_T}$ac_header_compiler" >&6; }
8621 # Is the header present?
8622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8624 cat >conftest.$ac_ext <<_ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 #include <$ac_header>
8632 if { (ac_try="$ac_cpp conftest.$ac_ext"
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8640 grep -v '^ *+' conftest.er1 >conftest.err
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } >/dev/null; then
8645 if test -s conftest.err; then
8646 ac_cpp_err=$ac_c_preproc_warn_flag
8647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8654 if test -z "$ac_cpp_err"; then
8655 ac_header_preproc=yes
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 ac_header_preproc=no
8663 rm -f conftest.err conftest.$ac_ext
8664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8665 echo "${ECHO_T}$ac_header_preproc" >&6; }
8667 # So? What about this header?
8668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8674 ac_header_preproc=yes
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8684 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8690 ## ------------------------------------ ##
8691 ## Report this to http://llvm.org/bugs/ ##
8692 ## ------------------------------------ ##
8694 ) | sed "s/^/$as_me: WARNING: /" >&2
8697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 eval "$as_ac_Header=\$ac_header_preproc"
8704 ac_res=`eval echo '${'$as_ac_Header'}'`
8705 { echo "$as_me:$LINENO: result: $ac_res" >&5
8706 echo "${ECHO_T}$ac_res" >&6; }
8709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8710 cat >>confdefs.h <<_ACEOF
8711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8718 # Check whether --enable-ltdl-install was given.
8719 if test "${enable_ltdl_install+set}" = set; then
8720 enableval=$enable_ltdl_install;
8726 if test x"${enable_ltdl_install-no}" != xno; then
8728 INSTALL_LTDL_FALSE='#'
8730 INSTALL_LTDL_TRUE='#'
8736 if test x"${enable_ltdl_convenience-no}" != xno; then
8737 CONVENIENCE_LTDL_TRUE=
8738 CONVENIENCE_LTDL_FALSE='#'
8740 CONVENIENCE_LTDL_TRUE='#'
8741 CONVENIENCE_LTDL_FALSE=
8745 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8746 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8748 libname_spec='lib$name'
8756 shlibpath_overrides_runpath=unknown
8758 dynamic_linker="$host_os ld.so"
8759 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8760 if test "$GCC" = yes; then
8761 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8762 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8763 # if the path contains ";" then we assume it to be the separator
8764 # otherwise default to the standard path separator (i.e. ":") - it is
8765 # assumed that no part of a normal pathname contains ";" but that should
8766 # okay in the real world where ";" in dirpaths is itself problematic.
8767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8774 need_lib_prefix=unknown
8775 hardcode_into_libs=no
8777 # when you set need_version to no, make sure it does not cause -set_version
8778 # flags to be left without arguments
8779 need_version=unknown
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8785 shlibpath_var=LIBPATH
8787 # AIX 3 has no versioning support, so we append a major version to the name.
8788 soname_spec='${libname}${release}${shared_ext}$major'
8795 hardcode_into_libs=yes
8796 if test "$host_cpu" = ia64; then
8797 # AIX 5 supports IA64
8798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8799 shlibpath_var=LD_LIBRARY_PATH
8801 # With GCC up to 2.95.x, collect2 would create an import file
8802 # for dependence libraries. The import file would start with
8803 # the line `#! .'. This would cause the generated library to
8804 # depend on `.', always an invalid library. This was fixed in
8805 # development snapshots of GCC prior to 3.0.
8807 aix4 | aix4.[01] | aix4.[01].*)
8808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8810 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8818 # soname into executable. Probably we can add versioning support to
8819 # collect2, so additional links can be useful in future.
8820 if test "$aix_use_runtimelinking" = yes; then
8821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8822 # instead of lib<name>.a to let people know that these are not
8823 # typical AIX shared libraries.
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8826 # We preserve .a as extension for shared libraries through AIX4.2
8827 # and later when we are not doing run time linking.
8828 library_names_spec='${libname}${release}.a $libname.a'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8831 shlibpath_var=LIBPATH
8836 library_names_spec='$libname.ixlibrary $libname.a'
8837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8838 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'
8842 library_names_spec='${libname}${shared_ext}'
8843 dynamic_linker="$host_os ld.so"
8844 shlibpath_var=LIBRARY_PATH
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851 soname_spec='${libname}${release}${shared_ext}$major'
8852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8853 shlibpath_var=LD_LIBRARY_PATH
8854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8856 # the default ld.so.conf also contains /usr/contrib/lib and
8857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8858 # libtool to hard-code these into programs
8861 cygwin* | mingw* | pw32*)
8862 version_type=windows
8867 case $GCC,$host_os in
8868 yes,cygwin* | yes,mingw* | yes,pw32*)
8869 library_names_spec='$libname.dll.a'
8870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8871 postinstall_cmds='base_file=`basename \${file}`~
8872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8873 dldir=$destdir/`dirname \$dlpath`~
8874 test -d \$dldir || mkdir -p \$dldir~
8875 $install_prog $dir/$dlname \$dldir/$dlname~
8876 chmod a+x \$dldir/$dlname'
8877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8878 dlpath=$dir/\$dldll~
8880 shlibpath_overrides_runpath=yes
8884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8885 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8886 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8889 # MinGW DLLs use traditional 'lib' prefix
8890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8892 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8893 # It is most probably a Windows format PATH printed by
8894 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8895 # path with ; separators, and with drive letters. We can handle the
8896 # drive letters (cygwin fileutils understands them), so leave them,
8897 # especially as we might pass files found there to a mingw objdump,
8898 # which wouldn't understand a cygwinified path. Ahh.
8899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8905 # pw32 DLLs use 'pw' prefix rather than 'lib'
8906 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8915 dynamic_linker='Win32 ld.exe'
8916 # FIXME: first we should search . and the directory the executable is in
8920 darwin* | rhapsody*)
8921 dynamic_linker="$host_os dyld"
8925 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8926 soname_spec='${libname}${release}${major}$shared_ext'
8927 shlibpath_overrides_runpath=yes
8928 shlibpath_var=DYLD_LIBRARY_PATH
8929 shrext_cmds='.dylib'
8930 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8931 if test "$GCC" = yes; then
8932 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"`
8934 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 shlibpath_var=LD_LIBRARY_PATH
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 shlibpath_overrides_runpath=no
8960 hardcode_into_libs=yes
8961 dynamic_linker='GNU ld.so'
8964 freebsd* | dragonfly*)
8965 # DragonFly does not have aout. When/if they implement a new
8966 # versioning mechanism, adjust this.
8967 if test -x /usr/bin/objformat; then
8968 objformat=`/usr/bin/objformat`
8971 freebsd[123].*) objformat=aout ;;
8975 version_type=freebsd-$objformat
8976 case $version_type in
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8987 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=yes
8992 freebsd3.[01]* | freebsdelf3.[01]*)
8993 shlibpath_overrides_runpath=yes
8994 hardcode_into_libs=yes
8996 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8997 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8998 shlibpath_overrides_runpath=no
8999 hardcode_into_libs=yes
9001 freebsd*) # from 4.6 on
9002 shlibpath_overrides_runpath=yes
9003 hardcode_into_libs=yes
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 shlibpath_var=LD_LIBRARY_PATH
9015 hardcode_into_libs=yes
9018 hpux9* | hpux10* | hpux11*)
9019 # Give a soname corresponding to the major version so that dld.sl refuses to
9020 # link against other versions.
9027 hardcode_into_libs=yes
9028 dynamic_linker="$host_os dld.so"
9029 shlibpath_var=LD_LIBRARY_PATH
9030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 if test "X$HPUX_IA64_MODE" = X32; then
9034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9036 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9042 hardcode_into_libs=yes
9043 dynamic_linker="$host_os dld.sl"
9044 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9053 dynamic_linker="$host_os dld.sl"
9054 shlibpath_var=SHLIB_PATH
9055 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9060 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9061 postinstall_cmds='chmod 555 $lib'
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 shlibpath_overrides_runpath=no
9073 hardcode_into_libs=yes
9076 irix5* | irix6* | nonstopux*)
9078 nonstopux*) version_type=nonstopux ;;
9080 if test "$lt_cv_prog_gnu_ld" = yes; then
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9091 irix5* | nonstopux*)
9095 case $LD in # libtool.m4 will add one of these switches to LD
9096 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9097 libsuff= shlibsuff= libmagic=32-bit;;
9098 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9099 libsuff=32 shlibsuff=N32 libmagic=N32;;
9100 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9101 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9102 *) libsuff= shlibsuff= libmagic=never-match;;
9106 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9107 shlibpath_overrides_runpath=no
9108 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9109 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9110 hardcode_into_libs=yes
9113 # No shared lib support for Linux oldld, aout, or coff.
9114 linux*oldld* | linux*aout* | linux*coff*)
9118 # This must be Linux ELF.
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 shlibpath_overrides_runpath=no
9128 # This implies no fast_install, which is unacceptable.
9129 # Some rework will be needed to allow for fast_install
9130 # before this can be enabled.
9131 hardcode_into_libs=yes
9133 # Append ld.so.conf contents to the search path
9134 if test -f /etc/ld.so.conf; then
9135 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' ' '`
9136 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9139 # We used to test for /lib/ld.so.1 and disable shared libraries on
9140 # powerpc, because MkLinux only supported shared libraries with the
9141 # GNU dynamic linker. Since this was broken with cross compilers,
9142 # most powerpc-linux boxes support dynamic linking these days and
9143 # people can always --disable-shared, the test was removed, and we
9144 # assume the GNU/Linux dynamic linker is in use.
9145 dynamic_linker='GNU/Linux ld.so'
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 shlibpath_overrides_runpath=no
9156 hardcode_into_libs=yes
9157 dynamic_linker='GNU ld.so'
9164 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9167 dynamic_linker='NetBSD (a.out) ld.so'
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9171 dynamic_linker='NetBSD ld.elf_so'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 shlibpath_overrides_runpath=yes
9175 hardcode_into_libs=yes
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 shlibpath_overrides_runpath=yes
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 shlibpath_overrides_runpath=yes
9197 sys_lib_dlsearch_path_spec="/usr/lib"
9199 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9201 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9202 *) need_version=no ;;
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9209 openbsd2.[89] | openbsd2.[89].*)
9210 shlibpath_overrides_runpath=no
9213 shlibpath_overrides_runpath=yes
9217 shlibpath_overrides_runpath=yes
9222 libname_spec='$name'
9225 library_names_spec='$libname${shared_ext} $libname.a'
9226 dynamic_linker='OS/2 ld.exe'
9227 shlibpath_var=LIBPATH
9230 osf3* | osf4* | osf5*)
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9238 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 soname_spec='${libname}${release}${shared_ext}$major'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 shlibpath_overrides_runpath=yes
9249 hardcode_into_libs=yes
9250 # ldd complains unless libraries are executable
9251 postinstall_cmds='chmod +x $lib'
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9258 shlibpath_var=LD_LIBRARY_PATH
9259 shlibpath_overrides_runpath=yes
9260 if test "$with_gnu_ld" = yes; then
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 shlibpath_var=LD_LIBRARY_PATH
9271 case $host_vendor in
9273 shlibpath_overrides_runpath=no
9275 export_dynamic_flag_spec='${wl}-Blargedynsym'
9276 runpath_var=LD_RUN_PATH
9284 shlibpath_overrides_runpath=no
9285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9291 if test -d /usr/nec ;then
9293 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9294 soname_spec='$libname${shared_ext}.$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9300 version_type=freebsd-elf
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 hardcode_into_libs=yes
9307 if test "$with_gnu_ld" = yes; then
9308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9309 shlibpath_overrides_runpath=no
9311 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9312 shlibpath_overrides_runpath=yes
9315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9319 sys_lib_dlsearch_path_spec='/usr/lib'
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 shlibpath_var=LD_LIBRARY_PATH
9333 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9334 echo "${ECHO_T}$dynamic_linker" >&6; }
9335 test "$dynamic_linker" = no && can_build_shared=no
9337 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9338 if test "$GCC" = yes; then
9339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9343 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9344 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9345 if test "${libltdl_cv_shlibext+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 eval libltdl_cv_shlibext=$shrext_cmds
9353 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9354 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9355 if test -n "$libltdl_cv_shlibext"; then
9357 cat >>confdefs.h <<_ACEOF
9358 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9364 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9365 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9366 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 libltdl_cv_shlibpath_var="$shlibpath_var"
9371 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9372 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9373 if test -n "$libltdl_cv_shlibpath_var"; then
9375 cat >>confdefs.h <<_ACEOF
9376 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9382 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9383 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9384 if test "${libltdl_cv_sys_search_path+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9389 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9390 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9391 if test -n "$libltdl_cv_sys_search_path"; then
9393 for dir in $libltdl_cv_sys_search_path; do
9394 if test -z "$sys_search_path"; then
9395 sys_search_path="$dir"
9397 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9401 cat >>confdefs.h <<_ACEOF
9402 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9407 { echo "$as_me:$LINENO: checking for objdir" >&5
9408 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9409 if test "${libltdl_cv_objdir+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 libltdl_cv_objdir="$objdir"
9413 if test -n "$objdir"; then
9416 rm -f .libs 2>/dev/null
9417 mkdir .libs 2>/dev/null
9418 if test -d .libs; then
9419 libltdl_cv_objdir=.libs
9421 # MS-DOS does not allow filenames that begin with a dot.
9422 libltdl_cv_objdir=_libs
9424 rmdir .libs 2>/dev/null
9428 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9429 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9431 cat >>confdefs.h <<_ACEOF
9432 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9440 # Check for command to grab the raw symbol name followed by C symbol from nm.
9441 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9442 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9443 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 # These are sane defaults that work on at least a few old systems.
9448 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9450 # Character class describing NM global symbol codes.
9451 symcode='[BCDEGRST]'
9453 # Regexp to match symbols that can be accessed directly from C.
9454 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9456 # Transform an extracted symbol line into a proper C declaration
9457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9459 # Transform an extracted symbol line into symbol name and symbol address
9460 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'"
9462 # Define system-specific variables.
9467 cygwin* | mingw* | pw32*)
9468 symcode='[ABCDGISTW]'
9470 hpux*) # Its linker distinguishes data from code symbols
9471 if test "$host_cpu" = ia64; then
9472 symcode='[ABCDEGRST]'
9474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9475 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'"
9478 if test "$host_cpu" = ia64; then
9479 symcode='[ABCDGIRSTW]'
9480 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9481 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'"
9485 symcode='[BCDEGRST]'
9488 symcode='[BCDEGQRST]'
9499 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9507 # Handle CRLF in mingw tool chain
9511 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9515 # If we're using GNU nm, then use its standard symbol codes.
9516 case `$NM -V 2>&1` in
9517 *GNU* | *'with BFD'*)
9518 symcode='[ABCDGIRSTW]' ;;
9521 # Try without a prefix undercore, then with it.
9522 for ac_symprfx in "" "_"; do
9524 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9525 symxfrm="\\1 $ac_symprfx\\2 \\2"
9527 # Write the raw and C identifiers.
9528 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9530 # Check to see that the pipe works correctly.
9534 cat > conftest.$ac_ext <<EOF
9539 void nm_test_func(){}
9543 int main(){nm_test_var='a';nm_test_func();return(0);}
9546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9547 (eval $ac_compile) 2>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; then
9551 # Now try to grab the symbols.
9553 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9554 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && test -s "$nlist"; then
9558 # Try sorting and uniquifying the output.
9559 if sort "$nlist" | uniq > "$nlist"T; then
9560 mv -f "$nlist"T "$nlist"
9565 # Make sure that we snagged all the symbols we need.
9566 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9567 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9568 cat <<EOF > conftest.$ac_ext
9574 # Now generate the symbol file.
9575 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9577 cat <<EOF >> conftest.$ac_ext
9578 #if defined (__STDC__) && __STDC__
9579 # define lt_ptr_t void *
9581 # define lt_ptr_t char *
9585 /* The mapping between symbol names and symbols. */
9590 lt_preloaded_symbols[] =
9593 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9594 cat <<\EOF >> conftest.$ac_ext
9602 # Now try linking the two files.
9603 mv conftest.$ac_objext conftstm.$ac_objext
9604 lt_save_LIBS="$LIBS"
9605 lt_save_CFLAGS="$CFLAGS"
9606 LIBS="conftstm.$ac_objext"
9607 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609 (eval $ac_link) 2>&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9615 LIBS="$lt_save_LIBS"
9616 CFLAGS="$lt_save_CFLAGS"
9618 echo "cannot find nm_test_func in $nlist" >&5
9621 echo "cannot find nm_test_var in $nlist" >&5
9624 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9627 echo "$progname: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9630 rm -f conftest* conftst*
9632 # Do not use the global_symbol_pipe unless it works.
9633 if test "$pipe_works" = yes; then
9636 lt_cv_sys_global_symbol_pipe=
9642 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9643 lt_cv_sys_global_symbol_to_cdecl=
9645 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9646 { echo "$as_me:$LINENO: result: failed" >&5
9647 echo "${ECHO_T}failed" >&6; }
9649 { echo "$as_me:$LINENO: result: ok" >&5
9650 echo "${ECHO_T}ok" >&6; }
9654 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9655 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9656 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9660 libltdl_cv_preloaded_symbols=yes
9662 libltdl_cv_preloaded_symbols=no
9666 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9667 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9668 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9670 cat >>confdefs.h <<\_ACEOF
9671 #define HAVE_PRELOADED_SYMBOLS 1
9679 ac_cpp='$CPP $CPPFLAGS'
9680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9685 { echo "$as_me:$LINENO: checking for shl_load" >&5
9686 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9687 if test "${ac_cv_func_shl_load+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 cat >conftest.$ac_ext <<_ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9698 #define shl_load innocuous_shl_load
9700 /* System header to define __stub macros and hopefully few prototypes,
9701 which can conflict with char shl_load (); below.
9702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9703 <limits.h> exists even on freestanding compilers. */
9706 # include <limits.h>
9708 # include <assert.h>
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9720 /* The GNU C library defines this for functions which it implements
9721 to always fail with ENOSYS. Some functions are actually named
9722 something starting with __ and the normal name is an alias. */
9723 #if defined __stub_shl_load || defined __stub___shl_load
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (ac_try="$ac_link"
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_link") 2>conftest.er1
9744 grep -v '^ *+' conftest.er1 >conftest.err
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9750 { (case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_try") 2>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_try") 2>&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_func_shl_load=yes
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9774 ac_cv_func_shl_load=no
9777 rm -f core conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext conftest.$ac_ext
9780 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9781 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9782 if test $ac_cv_func_shl_load = yes; then
9784 cat >>confdefs.h <<\_ACEOF
9785 #define HAVE_SHL_LOAD 1
9789 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9790 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9791 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 ac_check_lib_save_LIBS=$LIBS
9796 cat >conftest.$ac_ext <<_ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9803 /* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>conftest.er1
9827 grep -v '^ *+' conftest.er1 >conftest.err
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
9843 { (case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_try") 2>&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_lib_dld_shl_load=yes
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_cv_lib_dld_shl_load=no
9860 rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9864 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9865 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9866 if test $ac_cv_lib_dld_shl_load = yes; then
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_SHL_LOAD 1
9872 LIBADD_DL="$LIBADD_DL -ldld"
9874 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9875 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9876 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 ac_check_lib_save_LIBS=$LIBS
9881 cat >conftest.$ac_ext <<_ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9888 /* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_link") 2>conftest.er1
9912 grep -v '^ *+' conftest.er1 >conftest.err
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_lib_dl_dlopen=yes
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_cv_lib_dl_dlopen=no
9945 rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947 LIBS=$ac_check_lib_save_LIBS
9949 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9950 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9951 if test $ac_cv_lib_dl_dlopen = yes; then
9953 cat >>confdefs.h <<\_ACEOF
9954 #define HAVE_LIBDL 1
9957 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9959 cat >conftest.$ac_ext <<_ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
9986 grep -v '^ *+' conftest.er1 >conftest.err
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992 { (case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_try") 2>&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_try") 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10012 cat >>confdefs.h <<\_ACEOF
10013 #define HAVE_LIBDL 1
10015 libltdl_cv_func_dlopen="yes"
10017 echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10020 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10021 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10022 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-lsvld $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10034 /* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_link") 2>conftest.er1
10058 grep -v '^ *+' conftest.er1 >conftest.err
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } &&
10063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; } &&
10073 { ac_try='test -s conftest$ac_exeext'
10074 { (case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_try") 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_lib_svld_dlopen=yes
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_cv_lib_svld_dlopen=no
10091 rm -f core conftest.err conftest.$ac_objext \
10092 conftest$ac_exeext conftest.$ac_ext
10093 LIBS=$ac_check_lib_save_LIBS
10095 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10096 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10097 if test $ac_cv_lib_svld_dlopen = yes; then
10099 cat >>confdefs.h <<\_ACEOF
10100 #define HAVE_LIBDL 1
10103 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10105 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10106 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10107 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 ac_check_lib_save_LIBS=$LIBS
10112 cat >conftest.$ac_ext <<_ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10119 /* Override any GCC internal prototype to avoid an error.
10120 Use char because int might match the return type of a GCC
10121 builtin and then its argument prototype would still apply. */
10129 return dld_link ();
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (ac_try="$ac_link"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_link") 2>conftest.er1
10143 grep -v '^ *+' conftest.er1 >conftest.err
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
10148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10149 { (case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_try") 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest$ac_exeext'
10159 { (case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164 (eval "$ac_try") 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; }; then
10168 ac_cv_lib_dld_dld_link=yes
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10173 ac_cv_lib_dld_dld_link=no
10176 rm -f core conftest.err conftest.$ac_objext \
10177 conftest$ac_exeext conftest.$ac_ext
10178 LIBS=$ac_check_lib_save_LIBS
10180 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10181 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10182 if test $ac_cv_lib_dld_dld_link = yes; then
10184 cat >>confdefs.h <<\_ACEOF
10188 LIBADD_DL="$LIBADD_DL -ldld"
10190 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10191 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10192 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 cat >conftest.$ac_ext <<_ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10203 #define _dyld_func_lookup innocuous__dyld_func_lookup
10205 /* System header to define __stub macros and hopefully few prototypes,
10206 which can conflict with char _dyld_func_lookup (); below.
10207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10208 <limits.h> exists even on freestanding compilers. */
10211 # include <limits.h>
10213 # include <assert.h>
10216 #undef _dyld_func_lookup
10218 /* Override any GCC internal prototype to avoid an error.
10219 Use char because int might match the return type of a GCC
10220 builtin and then its argument prototype would still apply. */
10224 char _dyld_func_lookup ();
10225 /* The GNU C library defines this for functions which it implements
10226 to always fail with ENOSYS. Some functions are actually named
10227 something starting with __ and the normal name is an alias. */
10228 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10235 return _dyld_func_lookup ();
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (ac_try="$ac_link"
10242 case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_link") 2>conftest.er1
10249 grep -v '^ *+' conftest.er1 >conftest.err
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest$ac_exeext'
10265 { (case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_try") 2>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }; then
10274 ac_cv_func__dyld_func_lookup=yes
10276 echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10279 ac_cv_func__dyld_func_lookup=no
10282 rm -f core conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10285 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10286 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10287 if test $ac_cv_func__dyld_func_lookup = yes; then
10289 cat >>confdefs.h <<\_ACEOF
10290 #define HAVE_DYLD 1
10304 rm -f core conftest.err conftest.$ac_objext \
10305 conftest$ac_exeext conftest.$ac_ext
10316 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10318 lt_save_LIBS="$LIBS"
10319 LIBS="$LIBS $LIBADD_DL"
10321 for ac_func in dlerror
10323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10324 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 cat >conftest.$ac_ext <<_ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10337 #define $ac_func innocuous_$ac_func
10339 /* System header to define __stub macros and hopefully few prototypes,
10340 which can conflict with char $ac_func (); below.
10341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10342 <limits.h> exists even on freestanding compilers. */
10345 # include <limits.h>
10347 # include <assert.h>
10352 /* Override any GCC internal prototype to avoid an error.
10353 Use char because int might match the return type of a GCC
10354 builtin and then its argument prototype would still apply. */
10359 /* The GNU C library defines this for functions which it implements
10360 to always fail with ENOSYS. Some functions are actually named
10361 something starting with __ and the normal name is an alias. */
10362 #if defined __stub_$ac_func || defined __stub___$ac_func
10369 return $ac_func ();
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (ac_try="$ac_link"
10376 case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_link") 2>conftest.er1
10383 grep -v '^ *+' conftest.er1 >conftest.err
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
10388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10389 { (case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_try") 2>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; } &&
10398 { ac_try='test -s conftest$ac_exeext'
10399 { (case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_try") 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 eval "$as_ac_var=yes"
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 eval "$as_ac_var=no"
10416 rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10419 ac_res=`eval echo '${'$as_ac_var'}'`
10420 { echo "$as_me:$LINENO: result: $ac_res" >&5
10421 echo "${ECHO_T}$ac_res" >&6; }
10422 if test `eval echo '${'$as_ac_var'}'` = yes; then
10423 cat >>confdefs.h <<_ACEOF
10424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10430 LIBS="$lt_save_LIBS"
10433 ac_cpp='$CPP $CPPFLAGS'
10434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10440 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10441 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10442 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 ac_cv_sys_symbol_underscore=no
10446 cat > conftest.$ac_ext <<EOF
10447 void nm_test_func(){}
10448 int main(){nm_test_func;return 0;}
10450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10451 (eval $ac_compile) 2>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; then
10455 # Now try to grab the symbols.
10456 ac_nlist=conftest.nm
10457 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10458 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } && test -s "$ac_nlist"; then
10462 # See whether the symbols have a leading underscore.
10463 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10464 ac_cv_sys_symbol_underscore=yes
10466 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10469 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10473 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10476 echo "configure: failed program was:" >&5
10482 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10483 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10486 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10487 if test x"$libltdl_cv_func_dlopen" = xyes ||
10488 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10489 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10490 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10491 if test "${libltdl_cv_need_uscore+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10494 libltdl_cv_need_uscore=unknown
10496 LIBS="$LIBS $LIBADD_DL"
10497 if test "$cross_compiling" = yes; then :
10498 libltdl_cv_need_uscore=cross
10500 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10501 lt_status=$lt_dlunknown
10502 cat > conftest.$ac_ext <<EOF
10503 #line 10503 "configure"
10504 #include "confdefs.h"
10513 # define LT_DLGLOBAL RTLD_GLOBAL
10516 # define LT_DLGLOBAL DL_GLOBAL
10518 # define LT_DLGLOBAL 0
10522 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10523 find out it does not work in some platform. */
10524 #ifndef LT_DLLAZY_OR_NOW
10526 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10529 # define LT_DLLAZY_OR_NOW DL_LAZY
10532 # define LT_DLLAZY_OR_NOW RTLD_NOW
10535 # define LT_DLLAZY_OR_NOW DL_NOW
10537 # define LT_DLLAZY_OR_NOW 0
10545 extern "C" void exit (int);
10548 void fnord() { int i=42;}
10551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10552 int status = $lt_dlunknown;
10556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10557 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10558 /* dlclose (self); */
10566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567 (eval $ac_link) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10571 (./conftest; exit; ) >&5 2>/dev/null
10573 case x$lt_status in
10574 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10575 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10576 x$lt_dlunknown|x*) ;;
10579 # compilation failed
10588 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10589 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10593 if test x"$libltdl_cv_need_uscore" = xyes; then
10595 cat >>confdefs.h <<\_ACEOF
10596 #define NEED_USCORE 1
10602 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10603 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10604 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 # PORTME does your system automatically load deplibs for dlopen?
10608 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10609 # For now, we just catch OSes we know something about -- in the
10610 # future, we'll try test this programmatically.
10611 libltdl_cv_sys_dlopen_deplibs=unknown
10613 aix3*|aix4.1.*|aix4.2.*)
10614 # Unknown whether this is true for these versions of AIX, but
10615 # we want this `case' here to explicitly catch those versions.
10616 libltdl_cv_sys_dlopen_deplibs=unknown
10619 libltdl_cv_sys_dlopen_deplibs=yes
10622 # Assuming the user has installed a libdl from somewhere, this is true
10623 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10624 libltdl_cv_sys_dlopen_deplibs=yes
10626 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10627 # GNU and its variants, using gnu ld.so (Glibc)
10628 libltdl_cv_sys_dlopen_deplibs=yes
10631 libltdl_cv_sys_dlopen_deplibs=yes
10634 libltdl_cv_sys_dlopen_deplibs=yes
10636 irix[12345]*|irix6.[01]*)
10637 # Catch all versions of IRIX before 6.2, and indicate that we don't
10638 # know how it worked for any of those versions.
10639 libltdl_cv_sys_dlopen_deplibs=unknown
10642 # The case above catches anything before 6.2, and it's known that
10643 # at 6.2 and later dlopen does load deplibs.
10644 libltdl_cv_sys_dlopen_deplibs=yes
10647 libltdl_cv_sys_dlopen_deplibs=yes
10650 libltdl_cv_sys_dlopen_deplibs=yes
10653 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10654 # it did *not* use an RPATH in a shared library to find objects the
10655 # library depends on, so we explicitly say `no'.
10656 libltdl_cv_sys_dlopen_deplibs=no
10658 osf5.0|osf5.0a|osf5.1)
10659 # dlopen *does* load deplibs and with the right loader patch applied
10660 # it even uses RPATH in a shared library to search for shared objects
10661 # that the library depends on, but there's no easy way to know if that
10662 # patch is installed. Since this is the case, all we can really
10663 # say is unknown -- it depends on the patch being installed. If
10664 # it is, this changes to `yes'. Without it, it would be `no'.
10665 libltdl_cv_sys_dlopen_deplibs=unknown
10668 # the two cases above should catch all versions of osf <= 5.1. Read
10669 # the comments above for what we know about them.
10670 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10671 # is used to find them so we can finally say `yes'.
10672 libltdl_cv_sys_dlopen_deplibs=yes
10675 libltdl_cv_sys_dlopen_deplibs=yes
10677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10678 libltdl_cv_sys_dlopen_deplibs=yes
10683 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10684 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10685 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10687 cat >>confdefs.h <<\_ACEOF
10688 #define LTDL_DLOPEN_DEPLIBS 1
10694 for ac_header in argz.h
10696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 ac_res=`eval echo '${'$as_ac_Header'}'`
10704 { echo "$as_me:$LINENO: result: $ac_res" >&5
10705 echo "${ECHO_T}$ac_res" >&6; }
10707 # Is the header compilable?
10708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10710 cat >conftest.$ac_ext <<_ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10716 $ac_includes_default
10717 #include <$ac_header>
10719 rm -f conftest.$ac_objext
10720 if { (ac_try="$ac_compile"
10721 case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_compile") 2>conftest.er1
10728 grep -v '^ *+' conftest.er1 >conftest.err
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } &&
10733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10734 { (case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_try") 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try='test -s conftest.$ac_objext'
10744 { (case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_try") 2>&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }; then
10753 ac_header_compiler=yes
10755 echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10758 ac_header_compiler=no
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10763 echo "${ECHO_T}$ac_header_compiler" >&6; }
10765 # Is the header present?
10766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10768 cat >conftest.$ac_ext <<_ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10774 #include <$ac_header>
10776 if { (ac_try="$ac_cpp conftest.$ac_ext"
10777 case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10784 grep -v '^ *+' conftest.er1 >conftest.err
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } >/dev/null; then
10789 if test -s conftest.err; then
10790 ac_cpp_err=$ac_c_preproc_warn_flag
10791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10798 if test -z "$ac_cpp_err"; then
10799 ac_header_preproc=yes
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10804 ac_header_preproc=no
10807 rm -f conftest.err conftest.$ac_ext
10808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10809 echo "${ECHO_T}$ac_header_preproc" >&6; }
10811 # So? What about this header?
10812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10818 ac_header_preproc=yes
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10834 ## ------------------------------------ ##
10835 ## Report this to http://llvm.org/bugs/ ##
10836 ## ------------------------------------ ##
10838 ) | sed "s/^/$as_me: WARNING: /" >&2
10841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 eval "$as_ac_Header=\$ac_header_preproc"
10848 ac_res=`eval echo '${'$as_ac_Header'}'`
10849 { echo "$as_me:$LINENO: result: $ac_res" >&5
10850 echo "${ECHO_T}$ac_res" >&6; }
10853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10854 cat >>confdefs.h <<_ACEOF
10855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10863 { echo "$as_me:$LINENO: checking for error_t" >&5
10864 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10865 if test "${ac_cv_type_error_t+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 cat >conftest.$ac_ext <<_ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h. */
10878 typedef error_t ac__type_new_;
10882 if ((ac__type_new_ *) 0)
10884 if (sizeof (ac__type_new_))
10890 rm -f conftest.$ac_objext
10891 if { (ac_try="$ac_compile"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_compile") 2>conftest.er1
10899 grep -v '^ *+' conftest.er1 >conftest.err
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
10904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10905 { (case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_try") 2>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; } &&
10914 { ac_try='test -s conftest.$ac_objext'
10915 { (case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_try") 2>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 ac_cv_type_error_t=yes
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 ac_cv_type_error_t=no
10932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10935 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10936 if test $ac_cv_type_error_t = yes; then
10938 cat >>confdefs.h <<_ACEOF
10939 #define HAVE_ERROR_T 1
10945 cat >>confdefs.h <<\_ACEOF
10946 #define error_t int
10957 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 cat >conftest.$ac_ext <<_ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10973 #define $ac_func innocuous_$ac_func
10975 /* System header to define __stub macros and hopefully few prototypes,
10976 which can conflict with char $ac_func (); below.
10977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978 <limits.h> exists even on freestanding compilers. */
10981 # include <limits.h>
10983 # include <assert.h>
10988 /* Override any GCC internal prototype to avoid an error.
10989 Use char because int might match the return type of a GCC
10990 builtin and then its argument prototype would still apply. */
10995 /* The GNU C library defines this for functions which it implements
10996 to always fail with ENOSYS. Some functions are actually named
10997 something starting with __ and the normal name is an alias. */
10998 #if defined __stub_$ac_func || defined __stub___$ac_func
11005 return $ac_func ();
11010 rm -f conftest.$ac_objext conftest$ac_exeext
11011 if { (ac_try="$ac_link"
11012 case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_link") 2>conftest.er1
11019 grep -v '^ *+' conftest.er1 >conftest.err
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
11024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11025 { (case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_try") 2>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; } &&
11034 { ac_try='test -s conftest$ac_exeext'
11035 { (case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_try") 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 eval "$as_ac_var=yes"
11046 echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11049 eval "$as_ac_var=no"
11052 rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11055 ac_res=`eval echo '${'$as_ac_var'}'`
11056 { echo "$as_me:$LINENO: result: $ac_res" >&5
11057 echo "${ECHO_T}$ac_res" >&6; }
11058 if test `eval echo '${'$as_ac_var'}'` = yes; then
11059 cat >>confdefs.h <<_ACEOF
11060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11093 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 ac_res=`eval echo '${'$as_ac_Header'}'`
11104 { echo "$as_me:$LINENO: result: $ac_res" >&5
11105 echo "${ECHO_T}$ac_res" >&6; }
11107 # Is the header compilable?
11108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 $ac_includes_default
11117 #include <$ac_header>
11119 rm -f conftest.$ac_objext
11120 if { (ac_try="$ac_compile"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_compile") 2>conftest.er1
11128 grep -v '^ *+' conftest.er1 >conftest.err
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } &&
11133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11134 { (case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_try") 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; } &&
11143 { ac_try='test -s conftest.$ac_objext'
11144 { (case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_try") 2>&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 ac_header_compiler=yes
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 ac_header_compiler=no
11161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11163 echo "${ECHO_T}$ac_header_compiler" >&6; }
11165 # Is the header present?
11166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11168 cat >conftest.$ac_ext <<_ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 #include <$ac_header>
11176 if { (ac_try="$ac_cpp conftest.$ac_ext"
11177 case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11184 grep -v '^ *+' conftest.er1 >conftest.err
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } >/dev/null; then
11189 if test -s conftest.err; then
11190 ac_cpp_err=$ac_c_preproc_warn_flag
11191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11198 if test -z "$ac_cpp_err"; then
11199 ac_header_preproc=yes
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11204 ac_header_preproc=no
11207 rm -f conftest.err conftest.$ac_ext
11208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11209 echo "${ECHO_T}$ac_header_preproc" >&6; }
11211 # So? What about this header?
11212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11218 ac_header_preproc=yes
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11234 ## ------------------------------------ ##
11235 ## Report this to http://llvm.org/bugs/ ##
11236 ## ------------------------------------ ##
11238 ) | sed "s/^/$as_me: WARNING: /" >&2
11241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 eval "$as_ac_Header=\$ac_header_preproc"
11248 ac_res=`eval echo '${'$as_ac_Header'}'`
11249 { echo "$as_me:$LINENO: result: $ac_res" >&5
11250 echo "${ECHO_T}$ac_res" >&6; }
11253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11254 cat >>confdefs.h <<_ACEOF
11255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11266 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 ac_res=`eval echo '${'$as_ac_Header'}'`
11276 { echo "$as_me:$LINENO: result: $ac_res" >&5
11277 echo "${ECHO_T}$ac_res" >&6; }
11279 # Is the header compilable?
11280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11282 cat >conftest.$ac_ext <<_ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 $ac_includes_default
11289 #include <$ac_header>
11291 rm -f conftest.$ac_objext
11292 if { (ac_try="$ac_compile"
11293 case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_compile") 2>conftest.er1
11300 grep -v '^ *+' conftest.er1 >conftest.err
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306 { (case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_try") 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try='test -s conftest.$ac_objext'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 ac_header_compiler=yes
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11330 ac_header_compiler=no
11333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11335 echo "${ECHO_T}$ac_header_compiler" >&6; }
11337 # Is the header present?
11338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11340 cat >conftest.$ac_ext <<_ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h. */
11346 #include <$ac_header>
11348 if { (ac_try="$ac_cpp conftest.$ac_ext"
11349 case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11356 grep -v '^ *+' conftest.er1 >conftest.err
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } >/dev/null; then
11361 if test -s conftest.err; then
11362 ac_cpp_err=$ac_c_preproc_warn_flag
11363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11370 if test -z "$ac_cpp_err"; then
11371 ac_header_preproc=yes
11373 echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11376 ac_header_preproc=no
11379 rm -f conftest.err conftest.$ac_ext
11380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381 echo "${ECHO_T}$ac_header_preproc" >&6; }
11383 # So? What about this header?
11384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11390 ac_header_preproc=yes
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11406 ## ------------------------------------ ##
11407 ## Report this to http://llvm.org/bugs/ ##
11408 ## ------------------------------------ ##
11410 ) | sed "s/^/$as_me: WARNING: /" >&2
11413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 eval "$as_ac_Header=\$ac_header_preproc"
11420 ac_res=`eval echo '${'$as_ac_Header'}'`
11421 { echo "$as_me:$LINENO: result: $ac_res" >&5
11422 echo "${ECHO_T}$ac_res" >&6; }
11425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11436 for ac_header in string.h strings.h
11438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 ac_res=`eval echo '${'$as_ac_Header'}'`
11446 { echo "$as_me:$LINENO: result: $ac_res" >&5
11447 echo "${ECHO_T}$ac_res" >&6; }
11449 # Is the header compilable?
11450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11452 cat >conftest.$ac_ext <<_ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458 $ac_includes_default
11459 #include <$ac_header>
11461 rm -f conftest.$ac_objext
11462 if { (ac_try="$ac_compile"
11463 case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_compile") 2>conftest.er1
11470 grep -v '^ *+' conftest.er1 >conftest.err
11472 cat conftest.err >&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } &&
11475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11476 { (case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_try") 2>&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; } &&
11485 { ac_try='test -s conftest.$ac_objext'
11486 { (case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_try") 2>&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; }; then
11495 ac_header_compiler=yes
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11500 ac_header_compiler=no
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11505 echo "${ECHO_T}$ac_header_compiler" >&6; }
11507 # Is the header present?
11508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11510 cat >conftest.$ac_ext <<_ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 #include <$ac_header>
11518 if { (ac_try="$ac_cpp conftest.$ac_ext"
11519 case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11526 grep -v '^ *+' conftest.er1 >conftest.err
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } >/dev/null; then
11531 if test -s conftest.err; then
11532 ac_cpp_err=$ac_c_preproc_warn_flag
11533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11540 if test -z "$ac_cpp_err"; then
11541 ac_header_preproc=yes
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11546 ac_header_preproc=no
11549 rm -f conftest.err conftest.$ac_ext
11550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11551 echo "${ECHO_T}$ac_header_preproc" >&6; }
11553 # So? What about this header?
11554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11560 ac_header_preproc=yes
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11576 ## ------------------------------------ ##
11577 ## Report this to http://llvm.org/bugs/ ##
11578 ## ------------------------------------ ##
11580 ) | sed "s/^/$as_me: WARNING: /" >&2
11583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 eval "$as_ac_Header=\$ac_header_preproc"
11590 ac_res=`eval echo '${'$as_ac_Header'}'`
11591 { echo "$as_me:$LINENO: result: $ac_res" >&5
11592 echo "${ECHO_T}$ac_res" >&6; }
11595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11596 cat >>confdefs.h <<_ACEOF
11597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11607 for ac_func in strchr index
11609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 cat >conftest.$ac_ext <<_ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11623 #define $ac_func innocuous_$ac_func
11625 /* System header to define __stub macros and hopefully few prototypes,
11626 which can conflict with char $ac_func (); below.
11627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628 <limits.h> exists even on freestanding compilers. */
11631 # include <limits.h>
11633 # include <assert.h>
11638 /* Override any GCC internal prototype to avoid an error.
11639 Use char because int might match the return type of a GCC
11640 builtin and then its argument prototype would still apply. */
11645 /* The GNU C library defines this for functions which it implements
11646 to always fail with ENOSYS. Some functions are actually named
11647 something starting with __ and the normal name is an alias. */
11648 #if defined __stub_$ac_func || defined __stub___$ac_func
11655 return $ac_func ();
11660 rm -f conftest.$ac_objext conftest$ac_exeext
11661 if { (ac_try="$ac_link"
11662 case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_link") 2>conftest.er1
11669 grep -v '^ *+' conftest.er1 >conftest.err
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11675 { (case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_try") 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; } &&
11684 { ac_try='test -s conftest$ac_exeext'
11685 { (case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_try") 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 eval "$as_ac_var=yes"
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11699 eval "$as_ac_var=no"
11702 rm -f core conftest.err conftest.$ac_objext \
11703 conftest$ac_exeext conftest.$ac_ext
11705 ac_res=`eval echo '${'$as_ac_var'}'`
11706 { echo "$as_me:$LINENO: result: $ac_res" >&5
11707 echo "${ECHO_T}$ac_res" >&6; }
11708 if test `eval echo '${'$as_ac_var'}'` = yes; then
11709 cat >>confdefs.h <<_ACEOF
11710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11718 for ac_func in strrchr rindex
11720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11726 cat >conftest.$ac_ext <<_ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11734 #define $ac_func innocuous_$ac_func
11736 /* System header to define __stub macros and hopefully few prototypes,
11737 which can conflict with char $ac_func (); below.
11738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11739 <limits.h> exists even on freestanding compilers. */
11742 # include <limits.h>
11744 # include <assert.h>
11749 /* Override any GCC internal prototype to avoid an error.
11750 Use char because int might match the return type of a GCC
11751 builtin and then its argument prototype would still apply. */
11756 /* The GNU C library defines this for functions which it implements
11757 to always fail with ENOSYS. Some functions are actually named
11758 something starting with __ and the normal name is an alias. */
11759 #if defined __stub_$ac_func || defined __stub___$ac_func
11766 return $ac_func ();
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (ac_try="$ac_link"
11773 case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_link") 2>conftest.er1
11780 grep -v '^ *+' conftest.er1 >conftest.err
11782 cat conftest.err >&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } &&
11785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11786 { (case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_try") 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest$ac_exeext'
11796 { (case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_try") 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 eval "$as_ac_var=yes"
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 eval "$as_ac_var=no"
11813 rm -f core conftest.err conftest.$ac_objext \
11814 conftest$ac_exeext conftest.$ac_ext
11816 ac_res=`eval echo '${'$as_ac_var'}'`
11817 { echo "$as_me:$LINENO: result: $ac_res" >&5
11818 echo "${ECHO_T}$ac_res" >&6; }
11819 if test `eval echo '${'$as_ac_var'}'` = yes; then
11820 cat >>confdefs.h <<_ACEOF
11821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11829 for ac_func in memcpy bcopy
11831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 cat >conftest.$ac_ext <<_ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11845 #define $ac_func innocuous_$ac_func
11847 /* System header to define __stub macros and hopefully few prototypes,
11848 which can conflict with char $ac_func (); below.
11849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11850 <limits.h> exists even on freestanding compilers. */
11853 # include <limits.h>
11855 # include <assert.h>
11860 /* Override any GCC internal prototype to avoid an error.
11861 Use char because int might match the return type of a GCC
11862 builtin and then its argument prototype would still apply. */
11867 /* The GNU C library defines this for functions which it implements
11868 to always fail with ENOSYS. Some functions are actually named
11869 something starting with __ and the normal name is an alias. */
11870 #if defined __stub_$ac_func || defined __stub___$ac_func
11877 return $ac_func ();
11882 rm -f conftest.$ac_objext conftest$ac_exeext
11883 if { (ac_try="$ac_link"
11884 case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_link") 2>conftest.er1
11891 grep -v '^ *+' conftest.er1 >conftest.err
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11897 { (case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902 (eval "$ac_try") 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; } &&
11906 { ac_try='test -s conftest$ac_exeext'
11907 { (case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_try") 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 eval "$as_ac_var=yes"
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11921 eval "$as_ac_var=no"
11924 rm -f core conftest.err conftest.$ac_objext \
11925 conftest$ac_exeext conftest.$ac_ext
11927 ac_res=`eval echo '${'$as_ac_var'}'`
11928 { echo "$as_me:$LINENO: result: $ac_res" >&5
11929 echo "${ECHO_T}$ac_res" >&6; }
11930 if test `eval echo '${'$as_ac_var'}'` = yes; then
11931 cat >>confdefs.h <<_ACEOF
11932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11940 for ac_func in memmove strcmp
11942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 cat >conftest.$ac_ext <<_ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11956 #define $ac_func innocuous_$ac_func
11958 /* System header to define __stub macros and hopefully few prototypes,
11959 which can conflict with char $ac_func (); below.
11960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11961 <limits.h> exists even on freestanding compilers. */
11964 # include <limits.h>
11966 # include <assert.h>
11971 /* Override any GCC internal prototype to avoid an error.
11972 Use char because int might match the return type of a GCC
11973 builtin and then its argument prototype would still apply. */
11978 /* The GNU C library defines this for functions which it implements
11979 to always fail with ENOSYS. Some functions are actually named
11980 something starting with __ and the normal name is an alias. */
11981 #if defined __stub_$ac_func || defined __stub___$ac_func
11988 return $ac_func ();
11993 rm -f conftest.$ac_objext conftest$ac_exeext
11994 if { (ac_try="$ac_link"
11995 case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_link") 2>conftest.er1
12002 grep -v '^ *+' conftest.er1 >conftest.err
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } &&
12007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12008 { (case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_try") 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; } &&
12017 { ac_try='test -s conftest$ac_exeext'
12018 { (case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_try") 2>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; }; then
12027 eval "$as_ac_var=yes"
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12032 eval "$as_ac_var=no"
12035 rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12038 ac_res=`eval echo '${'$as_ac_var'}'`
12039 { echo "$as_me:$LINENO: result: $ac_res" >&5
12040 echo "${ECHO_T}$ac_res" >&6; }
12041 if test `eval echo '${'$as_ac_var'}'` = yes; then
12042 cat >>confdefs.h <<_ACEOF
12043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12052 for ac_func in closedir opendir readdir
12054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12060 cat >conftest.$ac_ext <<_ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12068 #define $ac_func innocuous_$ac_func
12070 /* System header to define __stub macros and hopefully few prototypes,
12071 which can conflict with char $ac_func (); below.
12072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12073 <limits.h> exists even on freestanding compilers. */
12076 # include <limits.h>
12078 # include <assert.h>
12083 /* Override any GCC internal prototype to avoid an error.
12084 Use char because int might match the return type of a GCC
12085 builtin and then its argument prototype would still apply. */
12090 /* The GNU C library defines this for functions which it implements
12091 to always fail with ENOSYS. Some functions are actually named
12092 something starting with __ and the normal name is an alias. */
12093 #if defined __stub_$ac_func || defined __stub___$ac_func
12100 return $ac_func ();
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (ac_try="$ac_link"
12107 case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_link") 2>conftest.er1
12114 grep -v '^ *+' conftest.er1 >conftest.err
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120 { (case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest$ac_exeext'
12130 { (case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_try") 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; }; then
12139 eval "$as_ac_var=yes"
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12144 eval "$as_ac_var=no"
12147 rm -f core conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12150 ac_res=`eval echo '${'$as_ac_var'}'`
12151 { echo "$as_me:$LINENO: result: $ac_res" >&5
12152 echo "${ECHO_T}$ac_res" >&6; }
12153 if test `eval echo '${'$as_ac_var'}'` = yes; then
12154 cat >>confdefs.h <<_ACEOF
12155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12163 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12164 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12177 if test "$GCC" != "yes" && test "$ICC" != "yes"
12179 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12180 echo "$as_me: error: gcc|icc required but not found" >&2;}
12181 { (exit 1); exit 1; }; }
12184 if test "$GXX" != "yes" && test "$IXX" != "yes"
12186 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12187 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12188 { (exit 1); exit 1; }; }
12191 if test "$GCC" = "yes"
12193 cat >conftest.$ac_ext <<_ACEOF
12194 #if !defined(__GNUC__) || __GNUC__ < 3
12195 #error Unsupported GCC version
12199 rm -f conftest.$ac_objext
12200 if { (ac_try="$ac_compile"
12201 case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_compile") 2>conftest.er1
12208 grep -v '^ *+' conftest.er1 >conftest.err
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12214 { (case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_try") 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; } &&
12223 { ac_try='test -s conftest.$ac_objext'
12224 { (case "(($ac_try" in
12225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226 *) ac_try_echo=$ac_try;;
12228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229 (eval "$ac_try") 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; }; then
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12238 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12239 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12240 { (exit 1); exit 1; }; }
12243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12246 if test -z "$llvm_cv_gnu_make_command"
12248 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12249 echo "$as_me: error: GNU Make required but not found" >&2;}
12250 { (exit 1); exit 1; }; }
12253 { echo "$as_me:$LINENO: result: ok" >&5
12254 echo "${ECHO_T}ok" >&6; }
12256 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12257 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12258 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12260 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12262 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12263 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12267 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12268 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12269 if test "${ac_cv_lib_m_sin+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12272 ac_check_lib_save_LIBS=$LIBS
12274 cat >conftest.$ac_ext <<_ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12296 rm -f conftest.$ac_objext conftest$ac_exeext
12297 if { (ac_try="$ac_link"
12298 case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_link") 2>conftest.er1
12305 grep -v '^ *+' conftest.er1 >conftest.err
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12311 { (case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_try") 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; } &&
12320 { ac_try='test -s conftest$ac_exeext'
12321 { (case "(($ac_try" in
12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326 (eval "$ac_try") 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_cv_lib_m_sin=yes
12332 echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12338 rm -f core conftest.err conftest.$ac_objext \
12339 conftest$ac_exeext conftest.$ac_ext
12340 LIBS=$ac_check_lib_save_LIBS
12342 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12343 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12344 if test $ac_cv_lib_m_sin = yes; then
12345 cat >>confdefs.h <<_ACEOF
12346 #define HAVE_LIBM 1
12353 if test "$llvm_cv_os_type" = "MingW" ; then
12355 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12356 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12357 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 ac_check_lib_save_LIBS=$LIBS
12361 LIBS="-limagehlp $LIBS"
12362 cat >conftest.$ac_ext <<_ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (ac_try="$ac_link"
12380 case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_link") 2>conftest.er1
12387 grep -v '^ *+' conftest.er1 >conftest.err
12389 cat conftest.err >&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
12392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12393 { (case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_try") 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; } &&
12402 { ac_try='test -s conftest$ac_exeext'
12403 { (case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_try") 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 ac_cv_lib_imagehlp_main=yes
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12417 ac_cv_lib_imagehlp_main=no
12420 rm -f core conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12422 LIBS=$ac_check_lib_save_LIBS
12424 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12425 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12426 if test $ac_cv_lib_imagehlp_main = yes; then
12427 cat >>confdefs.h <<_ACEOF
12428 #define HAVE_LIBIMAGEHLP 1
12431 LIBS="-limagehlp $LIBS"
12436 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12437 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12438 if test "${ac_cv_lib_psapi_main+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 ac_check_lib_save_LIBS=$LIBS
12442 LIBS="-lpsapi $LIBS"
12443 cat >conftest.$ac_ext <<_ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12459 rm -f conftest.$ac_objext conftest$ac_exeext
12460 if { (ac_try="$ac_link"
12461 case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_link") 2>conftest.er1
12468 grep -v '^ *+' conftest.er1 >conftest.err
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12474 { (case "(($ac_try" in
12475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476 *) ac_try_echo=$ac_try;;
12478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479 (eval "$ac_try") 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } &&
12483 { ac_try='test -s conftest$ac_exeext'
12484 { (case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_try") 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 ac_cv_lib_psapi_main=yes
12495 echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12498 ac_cv_lib_psapi_main=no
12501 rm -f core conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12503 LIBS=$ac_check_lib_save_LIBS
12505 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12506 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12507 if test $ac_cv_lib_psapi_main = yes; then
12508 cat >>confdefs.h <<_ACEOF
12509 #define HAVE_LIBPSAPI 1
12512 LIBS="-lpsapi $LIBS"
12518 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12519 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12520 if test "${ac_cv_search_dlopen+set}" = set; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
12523 ac_func_search_save_LIBS=$LIBS
12524 cat >conftest.$ac_ext <<_ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12531 /* Override any GCC internal prototype to avoid an error.
12532 Use char because int might match the return type of a GCC
12533 builtin and then its argument prototype would still apply. */
12546 for ac_lib in '' dl; do
12547 if test -z "$ac_lib"; then
12548 ac_res="none required"
12551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (ac_try="$ac_link"
12555 case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560 (eval "$ac_link") 2>conftest.er1
12562 grep -v '^ *+' conftest.er1 >conftest.err
12564 cat conftest.err >&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12568 { (case "(($ac_try" in
12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570 *) ac_try_echo=$ac_try;;
12572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573 (eval "$ac_try") 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; } &&
12577 { ac_try='test -s conftest$ac_exeext'
12578 { (case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_try") 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12587 ac_cv_search_dlopen=$ac_res
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12595 rm -f core conftest.err conftest.$ac_objext \
12597 if test "${ac_cv_search_dlopen+set}" = set; then
12601 if test "${ac_cv_search_dlopen+set}" = set; then
12604 ac_cv_search_dlopen=no
12606 rm conftest.$ac_ext
12607 LIBS=$ac_func_search_save_LIBS
12609 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12610 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12611 ac_res=$ac_cv_search_dlopen
12612 if test "$ac_res" != no; then
12613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12615 cat >>confdefs.h <<\_ACEOF
12616 #define HAVE_DLOPEN 1
12620 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12621 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12625 if test "$llvm_cv_enable_libffi" = "yes" ; then
12626 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12627 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12628 if test "${ac_cv_search_ffi_call+set}" = set; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 ac_func_search_save_LIBS=$LIBS
12632 cat >conftest.$ac_ext <<_ACEOF
12635 cat confdefs.h >>conftest.$ac_ext
12636 cat >>conftest.$ac_ext <<_ACEOF
12637 /* end confdefs.h. */
12639 /* Override any GCC internal prototype to avoid an error.
12640 Use char because int might match the return type of a GCC
12641 builtin and then its argument prototype would still apply. */
12649 return ffi_call ();
12654 for ac_lib in '' ffi; do
12655 if test -z "$ac_lib"; then
12656 ac_res="none required"
12659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (ac_try="$ac_link"
12663 case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_link") 2>conftest.er1
12670 grep -v '^ *+' conftest.er1 >conftest.err
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12676 { (case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_try") 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest$ac_exeext'
12686 { (case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_try") 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 ac_cv_search_ffi_call=$ac_res
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12703 rm -f core conftest.err conftest.$ac_objext \
12705 if test "${ac_cv_search_ffi_call+set}" = set; then
12709 if test "${ac_cv_search_ffi_call+set}" = set; then
12712 ac_cv_search_ffi_call=no
12714 rm conftest.$ac_ext
12715 LIBS=$ac_func_search_save_LIBS
12717 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12718 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12719 ac_res=$ac_cv_search_ffi_call
12720 if test "$ac_res" != no; then
12721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12723 cat >>confdefs.h <<\_ACEOF
12724 #define HAVE_FFI_CALL 1
12728 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12729 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12730 { (exit 1); exit 1; }; }
12735 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12736 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12737 if test "${ac_cv_search_mallinfo+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 ac_func_search_save_LIBS=$LIBS
12741 cat >conftest.$ac_ext <<_ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h. */
12748 /* Override any GCC internal prototype to avoid an error.
12749 Use char because int might match the return type of a GCC
12750 builtin and then its argument prototype would still apply. */
12758 return mallinfo ();
12763 for ac_lib in '' malloc; do
12764 if test -z "$ac_lib"; then
12765 ac_res="none required"
12768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12770 rm -f conftest.$ac_objext conftest$ac_exeext
12771 if { (ac_try="$ac_link"
12772 case "(($ac_try" in
12773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774 *) ac_try_echo=$ac_try;;
12776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777 (eval "$ac_link") 2>conftest.er1
12779 grep -v '^ *+' conftest.er1 >conftest.err
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
12784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12785 { (case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_try") 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; } &&
12794 { ac_try='test -s conftest$ac_exeext'
12795 { (case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_try") 2>&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; }; then
12804 ac_cv_search_mallinfo=$ac_res
12806 echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12812 rm -f core conftest.err conftest.$ac_objext \
12814 if test "${ac_cv_search_mallinfo+set}" = set; then
12818 if test "${ac_cv_search_mallinfo+set}" = set; then
12821 ac_cv_search_mallinfo=no
12823 rm conftest.$ac_ext
12824 LIBS=$ac_func_search_save_LIBS
12826 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12827 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12828 ac_res=$ac_cv_search_mallinfo
12829 if test "$ac_res" != no; then
12830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12832 cat >>confdefs.h <<\_ACEOF
12833 #define HAVE_MALLINFO 1
12839 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12841 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12842 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12843 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 ac_check_lib_save_LIBS=$LIBS
12847 LIBS="-lpthread $LIBS"
12848 cat >conftest.$ac_ext <<_ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12855 /* Override any GCC internal prototype to avoid an error.
12856 Use char because int might match the return type of a GCC
12857 builtin and then its argument prototype would still apply. */
12861 char pthread_mutex_init ();
12865 return pthread_mutex_init ();
12870 rm -f conftest.$ac_objext conftest$ac_exeext
12871 if { (ac_try="$ac_link"
12872 case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_link") 2>conftest.er1
12879 grep -v '^ *+' conftest.er1 >conftest.err
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12885 { (case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_try") 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try='test -s conftest$ac_exeext'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 ac_cv_lib_pthread_pthread_mutex_init=yes
12906 echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12909 ac_cv_lib_pthread_pthread_mutex_init=no
12912 rm -f core conftest.err conftest.$ac_objext \
12913 conftest$ac_exeext conftest.$ac_ext
12914 LIBS=$ac_check_lib_save_LIBS
12916 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12917 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12918 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12919 cat >>confdefs.h <<_ACEOF
12920 #define HAVE_LIBPTHREAD 1
12923 LIBS="-lpthread $LIBS"
12927 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12928 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12929 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12932 ac_func_search_save_LIBS=$LIBS
12933 cat >conftest.$ac_ext <<_ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12940 /* Override any GCC internal prototype to avoid an error.
12941 Use char because int might match the return type of a GCC
12942 builtin and then its argument prototype would still apply. */
12946 char pthread_mutex_lock ();
12950 return pthread_mutex_lock ();
12955 for ac_lib in '' pthread; do
12956 if test -z "$ac_lib"; then
12957 ac_res="none required"
12960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12962 rm -f conftest.$ac_objext conftest$ac_exeext
12963 if { (ac_try="$ac_link"
12964 case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_link") 2>conftest.er1
12971 grep -v '^ *+' conftest.er1 >conftest.err
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977 { (case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_try") 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest$ac_exeext'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 ac_cv_search_pthread_mutex_lock=$ac_res
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13004 rm -f core conftest.err conftest.$ac_objext \
13006 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13010 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13013 ac_cv_search_pthread_mutex_lock=no
13015 rm conftest.$ac_ext
13016 LIBS=$ac_func_search_save_LIBS
13018 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13019 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13020 ac_res=$ac_cv_search_pthread_mutex_lock
13021 if test "$ac_res" != no; then
13022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13024 cat >>confdefs.h <<\_ACEOF
13025 #define HAVE_PTHREAD_MUTEX_LOCK 1
13030 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13031 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13032 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 ac_func_search_save_LIBS=$LIBS
13036 cat >conftest.$ac_ext <<_ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13043 /* Override any GCC internal prototype to avoid an error.
13044 Use char because int might match the return type of a GCC
13045 builtin and then its argument prototype would still apply. */
13049 char pthread_rwlock_init ();
13053 return pthread_rwlock_init ();
13058 for ac_lib in '' pthread; do
13059 if test -z "$ac_lib"; then
13060 ac_res="none required"
13063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13065 rm -f conftest.$ac_objext conftest$ac_exeext
13066 if { (ac_try="$ac_link"
13067 case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_link") 2>conftest.er1
13074 grep -v '^ *+' conftest.er1 >conftest.err
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
13079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13080 { (case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_try") 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest$ac_exeext'
13090 { (case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_try") 2>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13099 ac_cv_search_pthread_rwlock_init=$ac_res
13101 echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13107 rm -f core conftest.err conftest.$ac_objext \
13109 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13113 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13116 ac_cv_search_pthread_rwlock_init=no
13118 rm conftest.$ac_ext
13119 LIBS=$ac_func_search_save_LIBS
13121 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13122 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13123 ac_res=$ac_cv_search_pthread_rwlock_init
13124 if test "$ac_res" != no; then
13125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13127 cat >>confdefs.h <<\_ACEOF
13128 #define HAVE_PTHREAD_RWLOCK_INIT 1
13133 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13134 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13135 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
13138 ac_func_search_save_LIBS=$LIBS
13139 cat >conftest.$ac_ext <<_ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13146 /* Override any GCC internal prototype to avoid an error.
13147 Use char because int might match the return type of a GCC
13148 builtin and then its argument prototype would still apply. */
13152 char pthread_getspecific ();
13156 return pthread_getspecific ();
13161 for ac_lib in '' pthread; do
13162 if test -z "$ac_lib"; then
13163 ac_res="none required"
13166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13168 rm -f conftest.$ac_objext conftest$ac_exeext
13169 if { (ac_try="$ac_link"
13170 case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_link") 2>conftest.er1
13177 grep -v '^ *+' conftest.er1 >conftest.err
13179 cat conftest.err >&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); } &&
13182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13183 { (case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_try") 2>&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; } &&
13192 { ac_try='test -s conftest$ac_exeext'
13193 { (case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_try") 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 ac_cv_search_pthread_getspecific=$ac_res
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13210 rm -f core conftest.err conftest.$ac_objext \
13212 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13216 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13219 ac_cv_search_pthread_getspecific=no
13221 rm conftest.$ac_ext
13222 LIBS=$ac_func_search_save_LIBS
13224 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13225 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13226 ac_res=$ac_cv_search_pthread_getspecific
13227 if test "$ac_res" != no; then
13228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13230 cat >>confdefs.h <<\_ACEOF
13231 #define HAVE_PTHREAD_GETSPECIFIC 1
13239 # Check whether --with-udis86 was given.
13240 if test "${with_udis86+set}" = set; then
13241 withval=$with_udis86;
13246 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13249 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13250 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13251 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 ac_check_lib_save_LIBS=$LIBS
13255 LIBS="-ludis86 $LIBS"
13256 cat >conftest.$ac_ext <<_ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13263 /* Override any GCC internal prototype to avoid an error.
13264 Use char because int might match the return type of a GCC
13265 builtin and then its argument prototype would still apply. */
13278 rm -f conftest.$ac_objext conftest$ac_exeext
13279 if { (ac_try="$ac_link"
13280 case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_link") 2>conftest.er1
13287 grep -v '^ *+' conftest.er1 >conftest.err
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; } &&
13302 { ac_try='test -s conftest$ac_exeext'
13303 { (case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_try") 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_cv_lib_udis86_ud_init=yes
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 ac_cv_lib_udis86_ud_init=no
13320 rm -f core conftest.err conftest.$ac_objext \
13321 conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13324 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13325 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13326 if test $ac_cv_lib_udis86_ud_init = yes; then
13327 cat >>confdefs.h <<_ACEOF
13328 #define HAVE_LIBUDIS86 1
13331 LIBS="-ludis86 $LIBS"
13335 echo "Error! You need to have libudis86 around."
13347 cat >>confdefs.h <<_ACEOF
13348 #define USE_UDIS86 $USE_UDIS86
13353 # Check whether --with-oprofile was given.
13354 if test "${with_oprofile+set}" = set; then
13355 withval=$with_oprofile;
13359 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13360 no) llvm_cv_oppath=
13363 *) llvm_cv_oppath="${withval}/lib/oprofile"
13364 CPPFLAGS="-I${withval}/include";;
13366 if test -n "$llvm_cv_oppath" ; then
13367 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13368 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13369 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13370 if test "${ac_cv_search_bfd_init+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 ac_func_search_save_LIBS=$LIBS
13374 cat >conftest.$ac_ext <<_ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13381 /* Override any GCC internal prototype to avoid an error.
13382 Use char because int might match the return type of a GCC
13383 builtin and then its argument prototype would still apply. */
13391 return bfd_init ();
13396 for ac_lib in '' bfd; do
13397 if test -z "$ac_lib"; then
13398 ac_res="none required"
13401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13403 rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_link") 2>conftest.er1
13412 grep -v '^ *+' conftest.er1 >conftest.err
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } &&
13417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13418 { (case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_try") 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; } &&
13427 { ac_try='test -s conftest$ac_exeext'
13428 { (case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_try") 2>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
13437 ac_cv_search_bfd_init=$ac_res
13439 echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13445 rm -f core conftest.err conftest.$ac_objext \
13447 if test "${ac_cv_search_bfd_init+set}" = set; then
13451 if test "${ac_cv_search_bfd_init+set}" = set; then
13454 ac_cv_search_bfd_init=no
13456 rm conftest.$ac_ext
13457 LIBS=$ac_func_search_save_LIBS
13459 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13460 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13461 ac_res=$ac_cv_search_bfd_init
13462 if test "$ac_res" != no; then
13463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13467 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13468 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13469 if test "${ac_cv_search_op_open_agent+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 ac_func_search_save_LIBS=$LIBS
13473 cat >conftest.$ac_ext <<_ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13480 /* Override any GCC internal prototype to avoid an error.
13481 Use char because int might match the return type of a GCC
13482 builtin and then its argument prototype would still apply. */
13486 char op_open_agent ();
13490 return op_open_agent ();
13495 for ac_lib in '' opagent; do
13496 if test -z "$ac_lib"; then
13497 ac_res="none required"
13500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13502 rm -f conftest.$ac_objext conftest$ac_exeext
13503 if { (ac_try="$ac_link"
13504 case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_link") 2>conftest.er1
13511 grep -v '^ *+' conftest.er1 >conftest.err
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } &&
13516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13517 { (case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_try") 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try='test -s conftest$ac_exeext'
13527 { (case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_try") 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 ac_cv_search_op_open_agent=$ac_res
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13544 rm -f core conftest.err conftest.$ac_objext \
13546 if test "${ac_cv_search_op_open_agent+set}" = set; then
13550 if test "${ac_cv_search_op_open_agent+set}" = set; then
13553 ac_cv_search_op_open_agent=no
13555 rm conftest.$ac_ext
13556 LIBS=$ac_func_search_save_LIBS
13558 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13559 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13560 ac_res=$ac_cv_search_op_open_agent
13561 if test "$ac_res" != no; then
13562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13566 echo "Error! You need to have libopagent around."
13571 if test "${ac_cv_header_opagent_h+set}" = set; then
13572 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13573 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13574 if test "${ac_cv_header_opagent_h+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13578 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13580 # Is the header compilable?
13581 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13582 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13583 cat >conftest.$ac_ext <<_ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13589 $ac_includes_default
13590 #include <opagent.h>
13592 rm -f conftest.$ac_objext
13593 if { (ac_try="$ac_compile"
13594 case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_compile") 2>conftest.er1
13601 grep -v '^ *+' conftest.er1 >conftest.err
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; } &&
13616 { ac_try='test -s conftest.$ac_objext'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 ac_header_compiler=yes
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13631 ac_header_compiler=no
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13636 echo "${ECHO_T}$ac_header_compiler" >&6; }
13638 # Is the header present?
13639 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13640 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13641 cat >conftest.$ac_ext <<_ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13647 #include <opagent.h>
13649 if { (ac_try="$ac_cpp conftest.$ac_ext"
13650 case "(($ac_try" in
13651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652 *) ac_try_echo=$ac_try;;
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13657 grep -v '^ *+' conftest.er1 >conftest.err
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } >/dev/null; then
13662 if test -s conftest.err; then
13663 ac_cpp_err=$ac_c_preproc_warn_flag
13664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13671 if test -z "$ac_cpp_err"; then
13672 ac_header_preproc=yes
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13677 ac_header_preproc=no
13680 rm -f conftest.err conftest.$ac_ext
13681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13682 echo "${ECHO_T}$ac_header_preproc" >&6; }
13684 # So? What about this header?
13685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13687 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13688 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13689 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13690 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13691 ac_header_preproc=yes
13694 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13695 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13696 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13697 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13698 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13699 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13700 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13701 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13702 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13703 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13704 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13705 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13707 ## ------------------------------------ ##
13708 ## Report this to http://llvm.org/bugs/ ##
13709 ## ------------------------------------ ##
13711 ) | sed "s/^/$as_me: WARNING: /" >&2
13714 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13715 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13716 if test "${ac_cv_header_opagent_h+set}" = set; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13719 ac_cv_header_opagent_h=$ac_header_preproc
13721 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13722 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13725 if test $ac_cv_header_opagent_h = yes; then
13729 echo "Error! You need to have opagent.h around."
13745 cat >>confdefs.h <<_ACEOF
13746 #define USE_OPROFILE $USE_OPROFILE
13756 ac_header_dirent=no
13757 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13758 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13759 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13760 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
13764 cat >conftest.$ac_ext <<_ACEOF
13767 cat confdefs.h >>conftest.$ac_ext
13768 cat >>conftest.$ac_ext <<_ACEOF
13769 /* end confdefs.h. */
13770 #include <sys/types.h>
13782 rm -f conftest.$ac_objext
13783 if { (ac_try="$ac_compile"
13784 case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789 (eval "$ac_compile") 2>conftest.er1
13791 grep -v '^ *+' conftest.er1 >conftest.err
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13797 { (case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_try") 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; } &&
13806 { ac_try='test -s conftest.$ac_objext'
13807 { (case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_try") 2>&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; }; then
13816 eval "$as_ac_Header=yes"
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13821 eval "$as_ac_Header=no"
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13826 ac_res=`eval echo '${'$as_ac_Header'}'`
13827 { echo "$as_me:$LINENO: result: $ac_res" >&5
13828 echo "${ECHO_T}$ac_res" >&6; }
13829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13830 cat >>confdefs.h <<_ACEOF
13831 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13834 ac_header_dirent=$ac_hdr; break
13838 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13839 if test $ac_header_dirent = dirent.h; then
13840 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13841 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13842 if test "${ac_cv_search_opendir+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13845 ac_func_search_save_LIBS=$LIBS
13846 cat >conftest.$ac_ext <<_ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13853 /* Override any GCC internal prototype to avoid an error.
13854 Use char because int might match the return type of a GCC
13855 builtin and then its argument prototype would still apply. */
13868 for ac_lib in '' dir; do
13869 if test -z "$ac_lib"; then
13870 ac_res="none required"
13873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13875 rm -f conftest.$ac_objext conftest$ac_exeext
13876 if { (ac_try="$ac_link"
13877 case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_link") 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13890 { (case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_try") 2>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; } &&
13899 { ac_try='test -s conftest$ac_exeext'
13900 { (case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_try") 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909 ac_cv_search_opendir=$ac_res
13911 echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13917 rm -f core conftest.err conftest.$ac_objext \
13919 if test "${ac_cv_search_opendir+set}" = set; then
13923 if test "${ac_cv_search_opendir+set}" = set; then
13926 ac_cv_search_opendir=no
13928 rm conftest.$ac_ext
13929 LIBS=$ac_func_search_save_LIBS
13931 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13932 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13933 ac_res=$ac_cv_search_opendir
13934 if test "$ac_res" != no; then
13935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13940 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13941 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13942 if test "${ac_cv_search_opendir+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 ac_func_search_save_LIBS=$LIBS
13946 cat >conftest.$ac_ext <<_ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13953 /* Override any GCC internal prototype to avoid an error.
13954 Use char because int might match the return type of a GCC
13955 builtin and then its argument prototype would still apply. */
13968 for ac_lib in '' x; do
13969 if test -z "$ac_lib"; then
13970 ac_res="none required"
13973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13975 rm -f conftest.$ac_objext conftest$ac_exeext
13976 if { (ac_try="$ac_link"
13977 case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_link") 2>conftest.er1
13984 grep -v '^ *+' conftest.er1 >conftest.err
13986 cat conftest.err >&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
13989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13990 { (case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995 (eval "$ac_try") 2>&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; } &&
13999 { ac_try='test -s conftest$ac_exeext'
14000 { (case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_try") 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 ac_cv_search_opendir=$ac_res
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14017 rm -f core conftest.err conftest.$ac_objext \
14019 if test "${ac_cv_search_opendir+set}" = set; then
14023 if test "${ac_cv_search_opendir+set}" = set; then
14026 ac_cv_search_opendir=no
14028 rm conftest.$ac_ext
14029 LIBS=$ac_func_search_save_LIBS
14031 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14032 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14033 ac_res=$ac_cv_search_opendir
14034 if test "$ac_res" != no; then
14035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14041 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14042 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14043 if test "${ac_cv_header_mmap_anon+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 ac_cpp='$CPP $CPPFLAGS'
14048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14052 cat >conftest.$ac_ext <<_ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14058 #include <sys/mman.h>
14059 #include <unistd.h>
14064 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14069 rm -f conftest.$ac_objext
14070 if { (ac_try="$ac_compile"
14071 case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_compile") 2>conftest.er1
14078 grep -v '^ *+' conftest.er1 >conftest.err
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14084 { (case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_try") 2>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try='test -s conftest.$ac_objext'
14094 { (case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_try") 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 ac_cv_header_mmap_anon=yes
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14108 ac_cv_header_mmap_anon=no
14111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14113 ac_cpp='$CPP $CPPFLAGS'
14114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14120 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14121 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14122 if test "$ac_cv_header_mmap_anon" = yes; then
14124 cat >>confdefs.h <<\_ACEOF
14125 #define HAVE_MMAP_ANONYMOUS 1
14130 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14131 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14132 if test "${ac_cv_header_stat_broken+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 cat >conftest.$ac_ext <<_ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 #include <sys/types.h>
14142 #include <sys/stat.h>
14144 #if defined S_ISBLK && defined S_IFDIR
14145 # if S_ISBLK (S_IFDIR)
14150 #if defined S_ISBLK && defined S_IFCHR
14151 # if S_ISBLK (S_IFCHR)
14156 #if defined S_ISLNK && defined S_IFREG
14157 # if S_ISLNK (S_IFREG)
14162 #if defined S_ISSOCK && defined S_IFREG
14163 # if S_ISSOCK (S_IFREG)
14169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14170 $EGREP "You lose" >/dev/null 2>&1; then
14171 ac_cv_header_stat_broken=yes
14173 ac_cv_header_stat_broken=no
14178 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14179 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14180 if test $ac_cv_header_stat_broken = yes; then
14182 cat >>confdefs.h <<\_ACEOF
14183 #define STAT_MACROS_BROKEN 1
14188 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14189 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14190 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 cat >conftest.$ac_ext <<_ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h. */
14199 #include <sys/types.h>
14200 #include <sys/wait.h>
14201 #ifndef WEXITSTATUS
14202 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14205 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14213 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14218 rm -f conftest.$ac_objext
14219 if { (ac_try="$ac_compile"
14220 case "(($ac_try" in
14221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222 *) ac_try_echo=$ac_try;;
14224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14225 (eval "$ac_compile") 2>conftest.er1
14227 grep -v '^ *+' conftest.er1 >conftest.err
14229 cat conftest.err >&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } &&
14232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14233 { (case "(($ac_try" in
14234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238 (eval "$ac_try") 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; } &&
14242 { ac_try='test -s conftest.$ac_objext'
14243 { (case "(($ac_try" in
14244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245 *) ac_try_echo=$ac_try;;
14247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248 (eval "$ac_try") 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14252 ac_cv_header_sys_wait_h=yes
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14257 ac_cv_header_sys_wait_h=no
14260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14262 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14263 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14264 if test $ac_cv_header_sys_wait_h = yes; then
14266 cat >>confdefs.h <<\_ACEOF
14267 #define HAVE_SYS_WAIT_H 1
14272 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14273 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14274 if test "${ac_cv_header_time+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 cat >conftest.$ac_ext <<_ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 #include <sys/types.h>
14284 #include <sys/time.h>
14290 if ((struct tm *) 0)
14296 rm -f conftest.$ac_objext
14297 if { (ac_try="$ac_compile"
14298 case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_compile") 2>conftest.er1
14305 grep -v '^ *+' conftest.er1 >conftest.err
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14311 { (case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_try") 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest.$ac_objext'
14321 { (case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_try") 2>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
14330 ac_cv_header_time=yes
14332 echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14335 ac_cv_header_time=no
14338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14341 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14342 if test $ac_cv_header_time = yes; then
14344 cat >>confdefs.h <<\_ACEOF
14345 #define TIME_WITH_SYS_TIME 1
14357 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 ac_res=`eval echo '${'$as_ac_Header'}'`
14367 { echo "$as_me:$LINENO: result: $ac_res" >&5
14368 echo "${ECHO_T}$ac_res" >&6; }
14370 # Is the header compilable?
14371 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14373 cat >conftest.$ac_ext <<_ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 $ac_includes_default
14380 #include <$ac_header>
14382 rm -f conftest.$ac_objext
14383 if { (ac_try="$ac_compile"
14384 case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_compile") 2>conftest.er1
14391 grep -v '^ *+' conftest.er1 >conftest.err
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } &&
14396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14397 { (case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_try") 2>&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; } &&
14406 { ac_try='test -s conftest.$ac_objext'
14407 { (case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_try") 2>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 ac_header_compiler=yes
14418 echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14421 ac_header_compiler=no
14424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14426 echo "${ECHO_T}$ac_header_compiler" >&6; }
14428 # Is the header present?
14429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14431 cat >conftest.$ac_ext <<_ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14437 #include <$ac_header>
14439 if { (ac_try="$ac_cpp conftest.$ac_ext"
14440 case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14447 grep -v '^ *+' conftest.er1 >conftest.err
14449 cat conftest.err >&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } >/dev/null; then
14452 if test -s conftest.err; then
14453 ac_cpp_err=$ac_c_preproc_warn_flag
14454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14461 if test -z "$ac_cpp_err"; then
14462 ac_header_preproc=yes
14464 echo "$as_me: failed program was:" >&5
14465 sed 's/^/| /' conftest.$ac_ext >&5
14467 ac_header_preproc=no
14470 rm -f conftest.err conftest.$ac_ext
14471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14472 echo "${ECHO_T}$ac_header_preproc" >&6; }
14474 # So? What about this header?
14475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14481 ac_header_preproc=yes
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14497 ## ------------------------------------ ##
14498 ## Report this to http://llvm.org/bugs/ ##
14499 ## ------------------------------------ ##
14501 ) | sed "s/^/$as_me: WARNING: /" >&2
14504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 eval "$as_ac_Header=\$ac_header_preproc"
14511 ac_res=`eval echo '${'$as_ac_Header'}'`
14512 { echo "$as_me:$LINENO: result: $ac_res" >&5
14513 echo "${ECHO_T}$ac_res" >&6; }
14516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14517 cat >>confdefs.h <<_ACEOF
14518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14531 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 ac_res=`eval echo '${'$as_ac_Header'}'`
14541 { echo "$as_me:$LINENO: result: $ac_res" >&5
14542 echo "${ECHO_T}$ac_res" >&6; }
14544 # Is the header compilable?
14545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14547 cat >conftest.$ac_ext <<_ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h. */
14553 $ac_includes_default
14554 #include <$ac_header>
14556 rm -f conftest.$ac_objext
14557 if { (ac_try="$ac_compile"
14558 case "(($ac_try" in
14559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560 *) ac_try_echo=$ac_try;;
14562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563 (eval "$ac_compile") 2>conftest.er1
14565 grep -v '^ *+' conftest.er1 >conftest.err
14567 cat conftest.err >&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } &&
14570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14571 { (case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_try") 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; } &&
14580 { ac_try='test -s conftest.$ac_objext'
14581 { (case "(($ac_try" in
14582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583 *) ac_try_echo=$ac_try;;
14585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586 (eval "$ac_try") 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 ac_header_compiler=yes
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 ac_header_compiler=no
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14600 echo "${ECHO_T}$ac_header_compiler" >&6; }
14602 # Is the header present?
14603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14605 cat >conftest.$ac_ext <<_ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14611 #include <$ac_header>
14613 if { (ac_try="$ac_cpp conftest.$ac_ext"
14614 case "(($ac_try" in
14615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616 *) ac_try_echo=$ac_try;;
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14621 grep -v '^ *+' conftest.er1 >conftest.err
14623 cat conftest.err >&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } >/dev/null; then
14626 if test -s conftest.err; then
14627 ac_cpp_err=$ac_c_preproc_warn_flag
14628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14635 if test -z "$ac_cpp_err"; then
14636 ac_header_preproc=yes
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14641 ac_header_preproc=no
14644 rm -f conftest.err conftest.$ac_ext
14645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14646 echo "${ECHO_T}$ac_header_preproc" >&6; }
14648 # So? What about this header?
14649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14655 ac_header_preproc=yes
14658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14671 ## ------------------------------------ ##
14672 ## Report this to http://llvm.org/bugs/ ##
14673 ## ------------------------------------ ##
14675 ) | sed "s/^/$as_me: WARNING: /" >&2
14678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14683 eval "$as_ac_Header=\$ac_header_preproc"
14685 ac_res=`eval echo '${'$as_ac_Header'}'`
14686 { echo "$as_me:$LINENO: result: $ac_res" >&5
14687 echo "${ECHO_T}$ac_res" >&6; }
14690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14691 cat >>confdefs.h <<_ACEOF
14692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14701 for ac_header in utime.h windows.h
14703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 ac_res=`eval echo '${'$as_ac_Header'}'`
14711 { echo "$as_me:$LINENO: result: $ac_res" >&5
14712 echo "${ECHO_T}$ac_res" >&6; }
14714 # Is the header compilable?
14715 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14717 cat >conftest.$ac_ext <<_ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 $ac_includes_default
14724 #include <$ac_header>
14726 rm -f conftest.$ac_objext
14727 if { (ac_try="$ac_compile"
14728 case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_compile") 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } &&
14740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14741 { (case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_try") 2>&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; } &&
14750 { ac_try='test -s conftest.$ac_objext'
14751 { (case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_try") 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; }; then
14760 ac_header_compiler=yes
14762 echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14765 ac_header_compiler=no
14768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14769 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14770 echo "${ECHO_T}$ac_header_compiler" >&6; }
14772 # Is the header present?
14773 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14775 cat >conftest.$ac_ext <<_ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14781 #include <$ac_header>
14783 if { (ac_try="$ac_cpp conftest.$ac_ext"
14784 case "(($ac_try" in
14785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786 *) ac_try_echo=$ac_try;;
14788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14791 grep -v '^ *+' conftest.er1 >conftest.err
14793 cat conftest.err >&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); } >/dev/null; then
14796 if test -s conftest.err; then
14797 ac_cpp_err=$ac_c_preproc_warn_flag
14798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14805 if test -z "$ac_cpp_err"; then
14806 ac_header_preproc=yes
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14811 ac_header_preproc=no
14814 rm -f conftest.err conftest.$ac_ext
14815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14816 echo "${ECHO_T}$ac_header_preproc" >&6; }
14818 # So? What about this header?
14819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14825 ac_header_preproc=yes
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14835 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14841 ## ------------------------------------ ##
14842 ## Report this to http://llvm.org/bugs/ ##
14843 ## ------------------------------------ ##
14845 ) | sed "s/^/$as_me: WARNING: /" >&2
14848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 eval "$as_ac_Header=\$ac_header_preproc"
14855 ac_res=`eval echo '${'$as_ac_Header'}'`
14856 { echo "$as_me:$LINENO: result: $ac_res" >&5
14857 echo "${ECHO_T}$ac_res" >&6; }
14860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14861 cat >>confdefs.h <<_ACEOF
14862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14874 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14883 ac_res=`eval echo '${'$as_ac_Header'}'`
14884 { echo "$as_me:$LINENO: result: $ac_res" >&5
14885 echo "${ECHO_T}$ac_res" >&6; }
14887 # Is the header compilable?
14888 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14890 cat >conftest.$ac_ext <<_ACEOF
14893 cat confdefs.h >>conftest.$ac_ext
14894 cat >>conftest.$ac_ext <<_ACEOF
14895 /* end confdefs.h. */
14896 $ac_includes_default
14897 #include <$ac_header>
14899 rm -f conftest.$ac_objext
14900 if { (ac_try="$ac_compile"
14901 case "(($ac_try" in
14902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903 *) ac_try_echo=$ac_try;;
14905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906 (eval "$ac_compile") 2>conftest.er1
14908 grep -v '^ *+' conftest.er1 >conftest.err
14910 cat conftest.err >&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } &&
14913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14914 { (case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_try") 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; } &&
14923 { ac_try='test -s conftest.$ac_objext'
14924 { (case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_try") 2>&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
14933 ac_header_compiler=yes
14935 echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14938 ac_header_compiler=no
14941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14943 echo "${ECHO_T}$ac_header_compiler" >&6; }
14945 # Is the header present?
14946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14948 cat >conftest.$ac_ext <<_ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14954 #include <$ac_header>
14956 if { (ac_try="$ac_cpp conftest.$ac_ext"
14957 case "(($ac_try" in
14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 *) ac_try_echo=$ac_try;;
14961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14964 grep -v '^ *+' conftest.er1 >conftest.err
14966 cat conftest.err >&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } >/dev/null; then
14969 if test -s conftest.err; then
14970 ac_cpp_err=$ac_c_preproc_warn_flag
14971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14978 if test -z "$ac_cpp_err"; then
14979 ac_header_preproc=yes
14981 echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14984 ac_header_preproc=no
14987 rm -f conftest.err conftest.$ac_ext
14988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14989 echo "${ECHO_T}$ac_header_preproc" >&6; }
14991 # So? What about this header?
14992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14998 ac_header_preproc=yes
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15014 ## ------------------------------------ ##
15015 ## Report this to http://llvm.org/bugs/ ##
15016 ## ------------------------------------ ##
15018 ) | sed "s/^/$as_me: WARNING: /" >&2
15021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 eval "$as_ac_Header=\$ac_header_preproc"
15028 ac_res=`eval echo '${'$as_ac_Header'}'`
15029 { echo "$as_me:$LINENO: result: $ac_res" >&5
15030 echo "${ECHO_T}$ac_res" >&6; }
15033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15034 cat >>confdefs.h <<_ACEOF
15035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15046 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 ac_res=`eval echo '${'$as_ac_Header'}'`
15056 { echo "$as_me:$LINENO: result: $ac_res" >&5
15057 echo "${ECHO_T}$ac_res" >&6; }
15059 # Is the header compilable?
15060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15062 cat >conftest.$ac_ext <<_ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068 $ac_includes_default
15069 #include <$ac_header>
15071 rm -f conftest.$ac_objext
15072 if { (ac_try="$ac_compile"
15073 case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_compile") 2>conftest.er1
15080 grep -v '^ *+' conftest.er1 >conftest.err
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15086 { (case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_try") 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } &&
15095 { ac_try='test -s conftest.$ac_objext'
15096 { (case "(($ac_try" in
15097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098 *) ac_try_echo=$ac_try;;
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101 (eval "$ac_try") 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_header_compiler=yes
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 ac_header_compiler=no
15113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15115 echo "${ECHO_T}$ac_header_compiler" >&6; }
15117 # Is the header present?
15118 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15120 cat >conftest.$ac_ext <<_ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126 #include <$ac_header>
15128 if { (ac_try="$ac_cpp conftest.$ac_ext"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15136 grep -v '^ *+' conftest.er1 >conftest.err
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } >/dev/null; then
15141 if test -s conftest.err; then
15142 ac_cpp_err=$ac_c_preproc_warn_flag
15143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15150 if test -z "$ac_cpp_err"; then
15151 ac_header_preproc=yes
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15156 ac_header_preproc=no
15159 rm -f conftest.err conftest.$ac_ext
15160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15161 echo "${ECHO_T}$ac_header_preproc" >&6; }
15163 # So? What about this header?
15164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15170 ac_header_preproc=yes
15173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15186 ## ------------------------------------ ##
15187 ## Report this to http://llvm.org/bugs/ ##
15188 ## ------------------------------------ ##
15190 ) | sed "s/^/$as_me: WARNING: /" >&2
15193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15196 echo $ECHO_N "(cached) $ECHO_C" >&6
15198 eval "$as_ac_Header=\$ac_header_preproc"
15200 ac_res=`eval echo '${'$as_ac_Header'}'`
15201 { echo "$as_me:$LINENO: result: $ac_res" >&5
15202 echo "${ECHO_T}$ac_res" >&6; }
15205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15206 cat >>confdefs.h <<_ACEOF
15207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15215 for ac_header in valgrind/valgrind.h
15217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 ac_res=`eval echo '${'$as_ac_Header'}'`
15225 { echo "$as_me:$LINENO: result: $ac_res" >&5
15226 echo "${ECHO_T}$ac_res" >&6; }
15228 # Is the header compilable?
15229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15231 cat >conftest.$ac_ext <<_ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15237 $ac_includes_default
15238 #include <$ac_header>
15240 rm -f conftest.$ac_objext
15241 if { (ac_try="$ac_compile"
15242 case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_compile") 2>conftest.er1
15249 grep -v '^ *+' conftest.er1 >conftest.err
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; } &&
15264 { ac_try='test -s conftest.$ac_objext'
15265 { (case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_try") 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 ac_header_compiler=yes
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 ac_header_compiler=no
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15284 echo "${ECHO_T}$ac_header_compiler" >&6; }
15286 # Is the header present?
15287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15289 cat >conftest.$ac_ext <<_ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 #include <$ac_header>
15297 if { (ac_try="$ac_cpp conftest.$ac_ext"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15305 grep -v '^ *+' conftest.er1 >conftest.err
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } >/dev/null; then
15310 if test -s conftest.err; then
15311 ac_cpp_err=$ac_c_preproc_warn_flag
15312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15319 if test -z "$ac_cpp_err"; then
15320 ac_header_preproc=yes
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 ac_header_preproc=no
15328 rm -f conftest.err conftest.$ac_ext
15329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15330 echo "${ECHO_T}$ac_header_preproc" >&6; }
15332 # So? What about this header?
15333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15339 ac_header_preproc=yes
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15355 ## ------------------------------------ ##
15356 ## Report this to http://llvm.org/bugs/ ##
15357 ## ------------------------------------ ##
15359 ) | sed "s/^/$as_me: WARNING: /" >&2
15362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 eval "$as_ac_Header=\$ac_header_preproc"
15369 ac_res=`eval echo '${'$as_ac_Header'}'`
15370 { echo "$as_me:$LINENO: result: $ac_res" >&5
15371 echo "${ECHO_T}$ac_res" >&6; }
15374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15375 cat >>confdefs.h <<_ACEOF
15376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15384 for ac_header in fenv.h
15386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 ac_res=`eval echo '${'$as_ac_Header'}'`
15394 { echo "$as_me:$LINENO: result: $ac_res" >&5
15395 echo "${ECHO_T}$ac_res" >&6; }
15397 # Is the header compilable?
15398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15400 cat >conftest.$ac_ext <<_ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15406 $ac_includes_default
15407 #include <$ac_header>
15409 rm -f conftest.$ac_objext
15410 if { (ac_try="$ac_compile"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_compile") 2>conftest.er1
15418 grep -v '^ *+' conftest.er1 >conftest.err
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15424 { (case "(($ac_try" in
15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 *) ac_try_echo=$ac_try;;
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429 (eval "$ac_try") 2>&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; } &&
15433 { ac_try='test -s conftest.$ac_objext'
15434 { (case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_try") 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15443 ac_header_compiler=yes
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15448 ac_header_compiler=no
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15453 echo "${ECHO_T}$ac_header_compiler" >&6; }
15455 # Is the header present?
15456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15458 cat >conftest.$ac_ext <<_ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 #include <$ac_header>
15466 if { (ac_try="$ac_cpp conftest.$ac_ext"
15467 case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15474 grep -v '^ *+' conftest.er1 >conftest.err
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } >/dev/null; then
15479 if test -s conftest.err; then
15480 ac_cpp_err=$ac_c_preproc_warn_flag
15481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15488 if test -z "$ac_cpp_err"; then
15489 ac_header_preproc=yes
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15494 ac_header_preproc=no
15497 rm -f conftest.err conftest.$ac_ext
15498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15499 echo "${ECHO_T}$ac_header_preproc" >&6; }
15501 # So? What about this header?
15502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15508 ac_header_preproc=yes
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15524 ## ------------------------------------ ##
15525 ## Report this to http://llvm.org/bugs/ ##
15526 ## ------------------------------------ ##
15528 ) | sed "s/^/$as_me: WARNING: /" >&2
15531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 eval "$as_ac_Header=\$ac_header_preproc"
15538 ac_res=`eval echo '${'$as_ac_Header'}'`
15539 { echo "$as_me:$LINENO: result: $ac_res" >&5
15540 echo "${ECHO_T}$ac_res" >&6; }
15543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15544 cat >>confdefs.h <<_ACEOF
15545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15552 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15554 for ac_header in pthread.h
15556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 ac_res=`eval echo '${'$as_ac_Header'}'`
15564 { echo "$as_me:$LINENO: result: $ac_res" >&5
15565 echo "${ECHO_T}$ac_res" >&6; }
15567 # Is the header compilable?
15568 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15570 cat >conftest.$ac_ext <<_ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h. */
15576 $ac_includes_default
15577 #include <$ac_header>
15579 rm -f conftest.$ac_objext
15580 if { (ac_try="$ac_compile"
15581 case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586 (eval "$ac_compile") 2>conftest.er1
15588 grep -v '^ *+' conftest.er1 >conftest.err
15590 cat conftest.err >&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } &&
15593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15594 { (case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_try") 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; } &&
15603 { ac_try='test -s conftest.$ac_objext'
15604 { (case "(($ac_try" in
15605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606 *) ac_try_echo=$ac_try;;
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609 (eval "$ac_try") 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; }; then
15613 ac_header_compiler=yes
15615 echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 ac_header_compiler=no
15621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15623 echo "${ECHO_T}$ac_header_compiler" >&6; }
15625 # Is the header present?
15626 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15628 cat >conftest.$ac_ext <<_ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15634 #include <$ac_header>
15636 if { (ac_try="$ac_cpp conftest.$ac_ext"
15637 case "(($ac_try" in
15638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15639 *) ac_try_echo=$ac_try;;
15641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15644 grep -v '^ *+' conftest.er1 >conftest.err
15646 cat conftest.err >&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } >/dev/null; then
15649 if test -s conftest.err; then
15650 ac_cpp_err=$ac_c_preproc_warn_flag
15651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15658 if test -z "$ac_cpp_err"; then
15659 ac_header_preproc=yes
15661 echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15664 ac_header_preproc=no
15667 rm -f conftest.err conftest.$ac_ext
15668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15669 echo "${ECHO_T}$ac_header_preproc" >&6; }
15671 # So? What about this header?
15672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15678 ac_header_preproc=yes
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15684 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15688 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15694 ## ------------------------------------ ##
15695 ## Report this to http://llvm.org/bugs/ ##
15696 ## ------------------------------------ ##
15698 ) | sed "s/^/$as_me: WARNING: /" >&2
15701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 eval "$as_ac_Header=\$ac_header_preproc"
15708 ac_res=`eval echo '${'$as_ac_Header'}'`
15709 { echo "$as_me:$LINENO: result: $ac_res" >&5
15710 echo "${ECHO_T}$ac_res" >&6; }
15713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15714 cat >>confdefs.h <<_ACEOF
15715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15731 if test "$llvm_cv_enable_libffi" = "yes" ; then
15734 for ac_header in ffi.h ffi/ffi.h
15736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 ac_res=`eval echo '${'$as_ac_Header'}'`
15744 { echo "$as_me:$LINENO: result: $ac_res" >&5
15745 echo "${ECHO_T}$ac_res" >&6; }
15747 # Is the header compilable?
15748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15750 cat >conftest.$ac_ext <<_ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 $ac_includes_default
15757 #include <$ac_header>
15759 rm -f conftest.$ac_objext
15760 if { (ac_try="$ac_compile"
15761 case "(($ac_try" in
15762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763 *) ac_try_echo=$ac_try;;
15765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15766 (eval "$ac_compile") 2>conftest.er1
15768 grep -v '^ *+' conftest.er1 >conftest.err
15770 cat conftest.err >&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } &&
15773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15774 { (case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_try") 2>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try='test -s conftest.$ac_objext'
15784 { (case "(($ac_try" in
15785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786 *) ac_try_echo=$ac_try;;
15788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789 (eval "$ac_try") 2>&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 ac_header_compiler=yes
15795 echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15798 ac_header_compiler=no
15801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15803 echo "${ECHO_T}$ac_header_compiler" >&6; }
15805 # Is the header present?
15806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15808 cat >conftest.$ac_ext <<_ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15814 #include <$ac_header>
15816 if { (ac_try="$ac_cpp conftest.$ac_ext"
15817 case "(($ac_try" in
15818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819 *) ac_try_echo=$ac_try;;
15821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15824 grep -v '^ *+' conftest.er1 >conftest.err
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } >/dev/null; then
15829 if test -s conftest.err; then
15830 ac_cpp_err=$ac_c_preproc_warn_flag
15831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15838 if test -z "$ac_cpp_err"; then
15839 ac_header_preproc=yes
15841 echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15844 ac_header_preproc=no
15847 rm -f conftest.err conftest.$ac_ext
15848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15849 echo "${ECHO_T}$ac_header_preproc" >&6; }
15851 # So? What about this header?
15852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15858 ac_header_preproc=yes
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15874 ## ------------------------------------ ##
15875 ## Report this to http://llvm.org/bugs/ ##
15876 ## ------------------------------------ ##
15878 ) | sed "s/^/$as_me: WARNING: /" >&2
15881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 eval "$as_ac_Header=\$ac_header_preproc"
15888 ac_res=`eval echo '${'$as_ac_Header'}'`
15889 { echo "$as_me:$LINENO: result: $ac_res" >&5
15890 echo "${ECHO_T}$ac_res" >&6; }
15893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15894 cat >>confdefs.h <<_ACEOF
15895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15905 for ac_header in CrashReporterClient.h
15907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15914 ac_res=`eval echo '${'$as_ac_Header'}'`
15915 { echo "$as_me:$LINENO: result: $ac_res" >&5
15916 echo "${ECHO_T}$ac_res" >&6; }
15918 # Is the header compilable?
15919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15921 cat >conftest.$ac_ext <<_ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h. */
15927 $ac_includes_default
15928 #include <$ac_header>
15930 rm -f conftest.$ac_objext
15931 if { (ac_try="$ac_compile"
15932 case "(($ac_try" in
15933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15934 *) ac_try_echo=$ac_try;;
15936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15937 (eval "$ac_compile") 2>conftest.er1
15939 grep -v '^ *+' conftest.er1 >conftest.err
15941 cat conftest.err >&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } &&
15944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15945 { (case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_try") 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; } &&
15954 { ac_try='test -s conftest.$ac_objext'
15955 { (case "(($ac_try" in
15956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957 *) ac_try_echo=$ac_try;;
15959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960 (eval "$ac_try") 2>&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_header_compiler=yes
15966 echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15969 ac_header_compiler=no
15972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15974 echo "${ECHO_T}$ac_header_compiler" >&6; }
15976 # Is the header present?
15977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15979 cat >conftest.$ac_ext <<_ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15985 #include <$ac_header>
15987 if { (ac_try="$ac_cpp conftest.$ac_ext"
15988 case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15995 grep -v '^ *+' conftest.er1 >conftest.err
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } >/dev/null; then
16000 if test -s conftest.err; then
16001 ac_cpp_err=$ac_c_preproc_warn_flag
16002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16009 if test -z "$ac_cpp_err"; then
16010 ac_header_preproc=yes
16012 echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16015 ac_header_preproc=no
16018 rm -f conftest.err conftest.$ac_ext
16019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16020 echo "${ECHO_T}$ac_header_preproc" >&6; }
16022 # So? What about this header?
16023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16029 ac_header_preproc=yes
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16045 ## ------------------------------------ ##
16046 ## Report this to http://llvm.org/bugs/ ##
16047 ## ------------------------------------ ##
16049 ) | sed "s/^/$as_me: WARNING: /" >&2
16052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16057 eval "$as_ac_Header=\$ac_header_preproc"
16059 ac_res=`eval echo '${'$as_ac_Header'}'`
16060 { echo "$as_me:$LINENO: result: $ac_res" >&5
16061 echo "${ECHO_T}$ac_res" >&6; }
16064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16065 cat >>confdefs.h <<_ACEOF
16066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16074 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16075 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16076 cat >conftest.$ac_ext <<_ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 extern const char *__crashreporter_info__;
16084 __crashreporter_info__ = "test";
16089 rm -f conftest.$ac_objext conftest$ac_exeext
16090 if { (ac_try="$ac_link"
16091 case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_link") 2>conftest.er1
16098 grep -v '^ *+' conftest.er1 >conftest.err
16100 cat conftest.err >&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16104 { (case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_try") 2>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; } &&
16113 { ac_try='test -s conftest$ac_exeext'
16114 { (case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119 (eval "$ac_try") 2>&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; }; then
16123 { echo "$as_me:$LINENO: result: yes" >&5
16124 echo "${ECHO_T}yes" >&6; }
16126 cat >>confdefs.h <<\_ACEOF
16127 #define HAVE_CRASHREPORTER_INFO 1
16131 echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16134 { echo "$as_me:$LINENO: result: no" >&5
16135 echo "${ECHO_T}no" >&6; }
16137 cat >>confdefs.h <<\_ACEOF
16138 #define HAVE_CRASHREPORTER_INFO 0
16143 rm -f core conftest.err conftest.$ac_objext \
16144 conftest$ac_exeext conftest.$ac_ext
16149 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16150 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16151 if test "${ac_cv_huge_val_sanity+set}" = set; then
16152 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 ac_cpp='$CXXCPP $CPPFLAGS'
16157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16161 ac_save_CXXFLAGS=$CXXFLAGS
16163 if test "$cross_compiling" = yes; then
16164 ac_cv_huge_val_sanity=yes
16166 cat >conftest.$ac_ext <<_ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16176 double x = HUGE_VAL; return x != x;
16181 rm -f conftest$ac_exeext
16182 if { (ac_try="$ac_link"
16183 case "(($ac_try" in
16184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185 *) ac_try_echo=$ac_try;;
16187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16188 (eval "$ac_link") 2>&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16192 { (case "(($ac_try" in
16193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194 *) ac_try_echo=$ac_try;;
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197 (eval "$ac_try") 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_cv_huge_val_sanity=yes
16203 echo "$as_me: program exited with status $ac_status" >&5
16204 echo "$as_me: failed program was:" >&5
16205 sed 's/^/| /' conftest.$ac_ext >&5
16207 ( exit $ac_status )
16208 ac_cv_huge_val_sanity=no
16210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16214 CXXFLAGS=$ac_save_CXXFLAGS
16216 ac_cpp='$CPP $CPPFLAGS'
16217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16223 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16224 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16225 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16228 { echo "$as_me:$LINENO: checking for pid_t" >&5
16229 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16230 if test "${ac_cv_type_pid_t+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 cat >conftest.$ac_ext <<_ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 $ac_includes_default
16240 typedef pid_t ac__type_new_;
16244 if ((ac__type_new_ *) 0)
16246 if (sizeof (ac__type_new_))
16252 rm -f conftest.$ac_objext
16253 if { (ac_try="$ac_compile"
16254 case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_compile") 2>conftest.er1
16261 grep -v '^ *+' conftest.er1 >conftest.err
16263 cat conftest.err >&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16267 { (case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_try") 2>&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; } &&
16276 { ac_try='test -s conftest.$ac_objext'
16277 { (case "(($ac_try" in
16278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279 *) ac_try_echo=$ac_try;;
16281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282 (eval "$ac_try") 2>&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16286 ac_cv_type_pid_t=yes
16288 echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16291 ac_cv_type_pid_t=no
16294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16297 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16298 if test $ac_cv_type_pid_t = yes; then
16302 cat >>confdefs.h <<_ACEOF
16308 { echo "$as_me:$LINENO: checking for size_t" >&5
16309 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16310 if test "${ac_cv_type_size_t+set}" = set; then
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16313 cat >conftest.$ac_ext <<_ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16319 $ac_includes_default
16320 typedef size_t ac__type_new_;
16324 if ((ac__type_new_ *) 0)
16326 if (sizeof (ac__type_new_))
16332 rm -f conftest.$ac_objext
16333 if { (ac_try="$ac_compile"
16334 case "(($ac_try" in
16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336 *) ac_try_echo=$ac_try;;
16338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339 (eval "$ac_compile") 2>conftest.er1
16341 grep -v '^ *+' conftest.er1 >conftest.err
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16347 { (case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_try") 2>&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest.$ac_objext'
16357 { (case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_try") 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_cv_type_size_t=yes
16368 echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16371 ac_cv_type_size_t=no
16374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16376 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16377 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16378 if test $ac_cv_type_size_t = yes; then
16382 cat >>confdefs.h <<_ACEOF
16383 #define size_t unsigned int
16389 cat >>confdefs.h <<_ACEOF
16390 #define RETSIGTYPE void
16393 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16394 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16395 if test "${ac_cv_struct_tm+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
16398 cat >conftest.$ac_ext <<_ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16404 #include <sys/types.h>
16410 struct tm *tp; tp->tm_sec;
16415 rm -f conftest.$ac_objext
16416 if { (ac_try="$ac_compile"
16417 case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_compile") 2>conftest.er1
16424 grep -v '^ *+' conftest.er1 >conftest.err
16426 cat conftest.err >&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } &&
16429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16430 { (case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_try") 2>&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; } &&
16439 { ac_try='test -s conftest.$ac_objext'
16440 { (case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445 (eval "$ac_try") 2>&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; }; then
16449 ac_cv_struct_tm=time.h
16451 echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16454 ac_cv_struct_tm=sys/time.h
16457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16459 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16460 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16461 if test $ac_cv_struct_tm = sys/time.h; then
16463 cat >>confdefs.h <<\_ACEOF
16464 #define TM_IN_SYS_TIME 1
16469 { echo "$as_me:$LINENO: checking for int64_t" >&5
16470 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16471 if test "${ac_cv_type_int64_t+set}" = set; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16474 cat >conftest.$ac_ext <<_ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16480 $ac_includes_default
16481 typedef int64_t ac__type_new_;
16485 if ((ac__type_new_ *) 0)
16487 if (sizeof (ac__type_new_))
16493 rm -f conftest.$ac_objext
16494 if { (ac_try="$ac_compile"
16495 case "(($ac_try" in
16496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497 *) ac_try_echo=$ac_try;;
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500 (eval "$ac_compile") 2>conftest.er1
16502 grep -v '^ *+' conftest.er1 >conftest.err
16504 cat conftest.err >&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } &&
16507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16508 { (case "(($ac_try" in
16509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510 *) ac_try_echo=$ac_try;;
16512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513 (eval "$ac_try") 2>&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; } &&
16517 { ac_try='test -s conftest.$ac_objext'
16518 { (case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_try") 2>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; }; then
16527 ac_cv_type_int64_t=yes
16529 echo "$as_me: failed program was:" >&5
16530 sed 's/^/| /' conftest.$ac_ext >&5
16532 ac_cv_type_int64_t=no
16535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16537 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16538 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16539 if test $ac_cv_type_int64_t = yes; then
16541 cat >>confdefs.h <<_ACEOF
16542 #define HAVE_INT64_T 1
16547 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16548 echo "$as_me: error: Type int64_t required but not found" >&2;}
16549 { (exit 1); exit 1; }; }
16552 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16553 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16554 if test "${ac_cv_type_uint64_t+set}" = set; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 cat >conftest.$ac_ext <<_ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16563 $ac_includes_default
16564 typedef uint64_t ac__type_new_;
16568 if ((ac__type_new_ *) 0)
16570 if (sizeof (ac__type_new_))
16576 rm -f conftest.$ac_objext
16577 if { (ac_try="$ac_compile"
16578 case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_compile") 2>conftest.er1
16585 grep -v '^ *+' conftest.er1 >conftest.err
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16591 { (case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_try") 2>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; } &&
16600 { ac_try='test -s conftest.$ac_objext'
16601 { (case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_try") 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_cv_type_uint64_t=yes
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 ac_cv_type_uint64_t=no
16618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16621 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16622 if test $ac_cv_type_uint64_t = yes; then
16624 cat >>confdefs.h <<_ACEOF
16625 #define HAVE_UINT64_T 1
16630 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16631 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16632 if test "${ac_cv_type_u_int64_t+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 cat >conftest.$ac_ext <<_ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h. */
16641 $ac_includes_default
16642 typedef u_int64_t ac__type_new_;
16646 if ((ac__type_new_ *) 0)
16648 if (sizeof (ac__type_new_))
16654 rm -f conftest.$ac_objext
16655 if { (ac_try="$ac_compile"
16656 case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_compile") 2>conftest.er1
16663 grep -v '^ *+' conftest.er1 >conftest.err
16665 cat conftest.err >&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
16668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16669 { (case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674 (eval "$ac_try") 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; } &&
16678 { ac_try='test -s conftest.$ac_objext'
16679 { (case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684 (eval "$ac_try") 2>&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; }; then
16688 ac_cv_type_u_int64_t=yes
16690 echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16693 ac_cv_type_u_int64_t=no
16696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16698 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16699 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16700 if test $ac_cv_type_u_int64_t = yes; then
16702 cat >>confdefs.h <<_ACEOF
16703 #define HAVE_U_INT64_T 1
16708 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16709 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16710 { (exit 1); exit 1; }; }
16724 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16730 echo $ECHO_N "(cached) $ECHO_C" >&6
16732 cat >conftest.$ac_ext <<_ACEOF
16735 cat confdefs.h >>conftest.$ac_ext
16736 cat >>conftest.$ac_ext <<_ACEOF
16737 /* end confdefs.h. */
16738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16740 #define $ac_func innocuous_$ac_func
16742 /* System header to define __stub macros and hopefully few prototypes,
16743 which can conflict with char $ac_func (); below.
16744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16745 <limits.h> exists even on freestanding compilers. */
16748 # include <limits.h>
16750 # include <assert.h>
16755 /* Override any GCC internal prototype to avoid an error.
16756 Use char because int might match the return type of a GCC
16757 builtin and then its argument prototype would still apply. */
16762 /* The GNU C library defines this for functions which it implements
16763 to always fail with ENOSYS. Some functions are actually named
16764 something starting with __ and the normal name is an alias. */
16765 #if defined __stub_$ac_func || defined __stub___$ac_func
16772 return $ac_func ();
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (ac_try="$ac_link"
16779 case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_link") 2>conftest.er1
16786 grep -v '^ *+' conftest.er1 >conftest.err
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
16791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16792 { (case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_try") 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest$ac_exeext'
16802 { (case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_try") 2>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 eval "$as_ac_var=yes"
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 eval "$as_ac_var=no"
16819 rm -f core conftest.err conftest.$ac_objext \
16820 conftest$ac_exeext conftest.$ac_ext
16822 ac_res=`eval echo '${'$as_ac_var'}'`
16823 { echo "$as_me:$LINENO: result: $ac_res" >&5
16824 echo "${ECHO_T}$ac_res" >&6; }
16825 if test `eval echo '${'$as_ac_var'}'` = yes; then
16826 cat >>confdefs.h <<_ACEOF
16827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16837 for ac_func in powf fmodf strtof round
16839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16845 cat >conftest.$ac_ext <<_ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h. */
16851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16853 #define $ac_func innocuous_$ac_func
16855 /* System header to define __stub macros and hopefully few prototypes,
16856 which can conflict with char $ac_func (); below.
16857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16858 <limits.h> exists even on freestanding compilers. */
16861 # include <limits.h>
16863 # include <assert.h>
16868 /* Override any GCC internal prototype to avoid an error.
16869 Use char because int might match the return type of a GCC
16870 builtin and then its argument prototype would still apply. */
16875 /* The GNU C library defines this for functions which it implements
16876 to always fail with ENOSYS. Some functions are actually named
16877 something starting with __ and the normal name is an alias. */
16878 #if defined __stub_$ac_func || defined __stub___$ac_func
16885 return $ac_func ();
16890 rm -f conftest.$ac_objext conftest$ac_exeext
16891 if { (ac_try="$ac_link"
16892 case "(($ac_try" in
16893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894 *) ac_try_echo=$ac_try;;
16896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897 (eval "$ac_link") 2>conftest.er1
16899 grep -v '^ *+' conftest.er1 >conftest.err
16901 cat conftest.err >&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
16904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16905 { (case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_try") 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; } &&
16914 { ac_try='test -s conftest$ac_exeext'
16915 { (case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_try") 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 eval "$as_ac_var=yes"
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16929 eval "$as_ac_var=no"
16932 rm -f core conftest.err conftest.$ac_objext \
16933 conftest$ac_exeext conftest.$ac_ext
16935 ac_res=`eval echo '${'$as_ac_var'}'`
16936 { echo "$as_me:$LINENO: result: $ac_res" >&5
16937 echo "${ECHO_T}$ac_res" >&6; }
16938 if test `eval echo '${'$as_ac_var'}'` = yes; then
16939 cat >>confdefs.h <<_ACEOF
16940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16951 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 cat >conftest.$ac_ext <<_ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16967 #define $ac_func innocuous_$ac_func
16969 /* System header to define __stub macros and hopefully few prototypes,
16970 which can conflict with char $ac_func (); below.
16971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16972 <limits.h> exists even on freestanding compilers. */
16975 # include <limits.h>
16977 # include <assert.h>
16982 /* Override any GCC internal prototype to avoid an error.
16983 Use char because int might match the return type of a GCC
16984 builtin and then its argument prototype would still apply. */
16989 /* The GNU C library defines this for functions which it implements
16990 to always fail with ENOSYS. Some functions are actually named
16991 something starting with __ and the normal name is an alias. */
16992 #if defined __stub_$ac_func || defined __stub___$ac_func
16999 return $ac_func ();
17004 rm -f conftest.$ac_objext conftest$ac_exeext
17005 if { (ac_try="$ac_link"
17006 case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_link") 2>conftest.er1
17013 grep -v '^ *+' conftest.er1 >conftest.err
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } &&
17018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17019 { (case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_try") 2>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; } &&
17028 { ac_try='test -s conftest$ac_exeext'
17029 { (case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_try") 2>&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; }; then
17038 eval "$as_ac_var=yes"
17040 echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17043 eval "$as_ac_var=no"
17046 rm -f core conftest.err conftest.$ac_objext \
17047 conftest$ac_exeext conftest.$ac_ext
17049 ac_res=`eval echo '${'$as_ac_var'}'`
17050 { echo "$as_me:$LINENO: result: $ac_res" >&5
17051 echo "${ECHO_T}$ac_res" >&6; }
17052 if test `eval echo '${'$as_ac_var'}'` = yes; then
17053 cat >>confdefs.h <<_ACEOF
17054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17063 for ac_func in isatty mkdtemp mkstemp
17065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 cat >conftest.$ac_ext <<_ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17079 #define $ac_func innocuous_$ac_func
17081 /* System header to define __stub macros and hopefully few prototypes,
17082 which can conflict with char $ac_func (); below.
17083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17084 <limits.h> exists even on freestanding compilers. */
17087 # include <limits.h>
17089 # include <assert.h>
17094 /* Override any GCC internal prototype to avoid an error.
17095 Use char because int might match the return type of a GCC
17096 builtin and then its argument prototype would still apply. */
17101 /* The GNU C library defines this for functions which it implements
17102 to always fail with ENOSYS. Some functions are actually named
17103 something starting with __ and the normal name is an alias. */
17104 #if defined __stub_$ac_func || defined __stub___$ac_func
17111 return $ac_func ();
17116 rm -f conftest.$ac_objext conftest$ac_exeext
17117 if { (ac_try="$ac_link"
17118 case "(($ac_try" in
17119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120 *) ac_try_echo=$ac_try;;
17122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17123 (eval "$ac_link") 2>conftest.er1
17125 grep -v '^ *+' conftest.er1 >conftest.err
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17131 { (case "(($ac_try" in
17132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133 *) ac_try_echo=$ac_try;;
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136 (eval "$ac_try") 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; } &&
17140 { ac_try='test -s conftest$ac_exeext'
17141 { (case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146 (eval "$ac_try") 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; }; then
17150 eval "$as_ac_var=yes"
17152 echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17155 eval "$as_ac_var=no"
17158 rm -f core conftest.err conftest.$ac_objext \
17159 conftest$ac_exeext conftest.$ac_ext
17161 ac_res=`eval echo '${'$as_ac_var'}'`
17162 { echo "$as_me:$LINENO: result: $ac_res" >&5
17163 echo "${ECHO_T}$ac_res" >&6; }
17164 if test `eval echo '${'$as_ac_var'}'` = yes; then
17165 cat >>confdefs.h <<_ACEOF
17166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17179 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17182 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17184 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 cat >conftest.$ac_ext <<_ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17195 #define $ac_func innocuous_$ac_func
17197 /* System header to define __stub macros and hopefully few prototypes,
17198 which can conflict with char $ac_func (); below.
17199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17200 <limits.h> exists even on freestanding compilers. */
17203 # include <limits.h>
17205 # include <assert.h>
17210 /* Override any GCC internal prototype to avoid an error.
17211 Use char because int might match the return type of a GCC
17212 builtin and then its argument prototype would still apply. */
17217 /* The GNU C library defines this for functions which it implements
17218 to always fail with ENOSYS. Some functions are actually named
17219 something starting with __ and the normal name is an alias. */
17220 #if defined __stub_$ac_func || defined __stub___$ac_func
17227 return $ac_func ();
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (ac_try="$ac_link"
17234 case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_link") 2>conftest.er1
17241 grep -v '^ *+' conftest.er1 >conftest.err
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } &&
17246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17247 { (case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_try") 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest$ac_exeext'
17257 { (case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_try") 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 eval "$as_ac_var=yes"
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 eval "$as_ac_var=no"
17274 rm -f core conftest.err conftest.$ac_objext \
17275 conftest$ac_exeext conftest.$ac_ext
17277 ac_res=`eval echo '${'$as_ac_var'}'`
17278 { echo "$as_me:$LINENO: result: $ac_res" >&5
17279 echo "${ECHO_T}$ac_res" >&6; }
17280 if test `eval echo '${'$as_ac_var'}'` = yes; then
17281 cat >>confdefs.h <<_ACEOF
17282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17291 for ac_func in strerror strerror_r setenv
17293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17299 cat >conftest.$ac_ext <<_ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17307 #define $ac_func innocuous_$ac_func
17309 /* System header to define __stub macros and hopefully few prototypes,
17310 which can conflict with char $ac_func (); below.
17311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17312 <limits.h> exists even on freestanding compilers. */
17315 # include <limits.h>
17317 # include <assert.h>
17322 /* Override any GCC internal prototype to avoid an error.
17323 Use char because int might match the return type of a GCC
17324 builtin and then its argument prototype would still apply. */
17329 /* The GNU C library defines this for functions which it implements
17330 to always fail with ENOSYS. Some functions are actually named
17331 something starting with __ and the normal name is an alias. */
17332 #if defined __stub_$ac_func || defined __stub___$ac_func
17339 return $ac_func ();
17344 rm -f conftest.$ac_objext conftest$ac_exeext
17345 if { (ac_try="$ac_link"
17346 case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_link") 2>conftest.er1
17353 grep -v '^ *+' conftest.er1 >conftest.err
17355 cat conftest.err >&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } &&
17358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17359 { (case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_try") 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest$ac_exeext'
17369 { (case "(($ac_try" in
17370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371 *) ac_try_echo=$ac_try;;
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374 (eval "$ac_try") 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17378 eval "$as_ac_var=yes"
17380 echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17383 eval "$as_ac_var=no"
17386 rm -f core conftest.err conftest.$ac_objext \
17387 conftest$ac_exeext conftest.$ac_ext
17389 ac_res=`eval echo '${'$as_ac_var'}'`
17390 { echo "$as_me:$LINENO: result: $ac_res" >&5
17391 echo "${ECHO_T}$ac_res" >&6; }
17392 if test `eval echo '${'$as_ac_var'}'` = yes; then
17393 cat >>confdefs.h <<_ACEOF
17394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17404 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 cat >conftest.$ac_ext <<_ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17420 #define $ac_func innocuous_$ac_func
17422 /* System header to define __stub macros and hopefully few prototypes,
17423 which can conflict with char $ac_func (); below.
17424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17425 <limits.h> exists even on freestanding compilers. */
17428 # include <limits.h>
17430 # include <assert.h>
17435 /* Override any GCC internal prototype to avoid an error.
17436 Use char because int might match the return type of a GCC
17437 builtin and then its argument prototype would still apply. */
17442 /* The GNU C library defines this for functions which it implements
17443 to always fail with ENOSYS. Some functions are actually named
17444 something starting with __ and the normal name is an alias. */
17445 #if defined __stub_$ac_func || defined __stub___$ac_func
17452 return $ac_func ();
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (ac_try="$ac_link"
17459 case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_link") 2>conftest.er1
17466 grep -v '^ *+' conftest.er1 >conftest.err
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } &&
17471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17472 { (case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_try") 2>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest$ac_exeext'
17482 { (case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_try") 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 eval "$as_ac_var=yes"
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17496 eval "$as_ac_var=no"
17499 rm -f core conftest.err conftest.$ac_objext \
17500 conftest$ac_exeext conftest.$ac_ext
17502 ac_res=`eval echo '${'$as_ac_var'}'`
17503 { echo "$as_me:$LINENO: result: $ac_res" >&5
17504 echo "${ECHO_T}$ac_res" >&6; }
17505 if test `eval echo '${'$as_ac_var'}'` = yes; then
17506 cat >>confdefs.h <<_ACEOF
17507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17518 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17521 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17524 echo $ECHO_N "(cached) $ECHO_C" >&6
17526 cat >conftest.$ac_ext <<_ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17534 #define $ac_func innocuous_$ac_func
17536 /* System header to define __stub macros and hopefully few prototypes,
17537 which can conflict with char $ac_func (); below.
17538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17539 <limits.h> exists even on freestanding compilers. */
17542 # include <limits.h>
17544 # include <assert.h>
17549 /* Override any GCC internal prototype to avoid an error.
17550 Use char because int might match the return type of a GCC
17551 builtin and then its argument prototype would still apply. */
17556 /* The GNU C library defines this for functions which it implements
17557 to always fail with ENOSYS. Some functions are actually named
17558 something starting with __ and the normal name is an alias. */
17559 #if defined __stub_$ac_func || defined __stub___$ac_func
17566 return $ac_func ();
17571 rm -f conftest.$ac_objext conftest$ac_exeext
17572 if { (ac_try="$ac_link"
17573 case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_link") 2>conftest.er1
17580 grep -v '^ *+' conftest.er1 >conftest.err
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } &&
17585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17586 { (case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_try") 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; } &&
17595 { ac_try='test -s conftest$ac_exeext'
17596 { (case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_try") 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 eval "$as_ac_var=yes"
17607 echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17610 eval "$as_ac_var=no"
17613 rm -f core conftest.err conftest.$ac_objext \
17614 conftest$ac_exeext conftest.$ac_ext
17616 ac_res=`eval echo '${'$as_ac_var'}'`
17617 { echo "$as_me:$LINENO: result: $ac_res" >&5
17618 echo "${ECHO_T}$ac_res" >&6; }
17619 if test `eval echo '${'$as_ac_var'}'` = yes; then
17620 cat >>confdefs.h <<_ACEOF
17621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17627 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17628 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17629 if test "${llvm_cv_c_printf_a+set}" = set; then
17630 echo $ECHO_N "(cached) $ECHO_C" >&6
17633 ac_cpp='$CPP $CPPFLAGS'
17634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17638 if test "$cross_compiling" = yes; then
17639 llvmac_cv_c_printf_a=no
17641 cat >conftest.$ac_ext <<_ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17650 #include <stdlib.h>
17656 volatile double A, B;
17660 sprintf(Buffer, "%a", A);
17664 if (A != 0x1.999999999999ap-4)
17671 rm -f conftest$ac_exeext
17672 if { (ac_try="$ac_link"
17673 case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_link") 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17682 { (case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_try") 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; }; then
17691 llvm_cv_c_printf_a=yes
17693 echo "$as_me: program exited with status $ac_status" >&5
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 ( exit $ac_status )
17698 llvmac_cv_c_printf_a=no
17700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17705 ac_cpp='$CPP $CPPFLAGS'
17706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17711 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17712 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17713 if test "$llvm_cv_c_printf_a" = "yes"; then
17715 cat >>confdefs.h <<\_ACEOF
17716 #define HAVE_PRINTF_A 1
17722 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17723 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17724 if test "${ac_cv_func_rand48+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17728 ac_cpp='$CXXCPP $CPPFLAGS'
17729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17733 cat >conftest.$ac_ext <<_ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17739 #include <stdlib.h>
17743 srand48(0);lrand48();drand48();
17748 rm -f conftest.$ac_objext
17749 if { (ac_try="$ac_compile"
17750 case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_compile") 2>conftest.er1
17757 grep -v '^ *+' conftest.er1 >conftest.err
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17763 { (case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_try") 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest.$ac_objext'
17773 { (case "(($ac_try" in
17774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775 *) ac_try_echo=$ac_try;;
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778 (eval "$ac_try") 2>&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
17782 ac_cv_func_rand48=yes
17784 echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17787 ac_cv_func_rand48=no
17790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17792 ac_cpp='$CPP $CPPFLAGS'
17793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17798 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17799 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17801 if test "$ac_cv_func_rand48" = "yes" ; then
17803 cat >>confdefs.h <<\_ACEOF
17804 #define HAVE_RAND48 1
17810 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17811 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17812 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 cat >conftest.$ac_ext <<_ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17821 $ac_includes_default
17826 char *p = (char *) strerror_s;
17834 rm -f conftest.$ac_objext
17835 if { (ac_try="$ac_compile"
17836 case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_compile") 2>conftest.er1
17843 grep -v '^ *+' conftest.er1 >conftest.err
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17849 { (case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_try") 2>&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try='test -s conftest.$ac_objext'
17859 { (case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_try") 2>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_cv_have_decl_strerror_s=yes
17870 echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17873 ac_cv_have_decl_strerror_s=no
17876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17879 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17880 if test $ac_cv_have_decl_strerror_s = yes; then
17882 cat >>confdefs.h <<_ACEOF
17883 #define HAVE_DECL_STRERROR_S 1
17888 cat >>confdefs.h <<_ACEOF
17889 #define HAVE_DECL_STRERROR_S 0
17897 if test "$llvm_cv_os_type" = "MingW" ; then
17898 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17899 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17900 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 ac_check_lib_save_LIBS=$LIBS
17905 cat >conftest.$ac_ext <<_ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h. */
17912 /* Override any GCC internal prototype to avoid an error.
17913 Use char because int might match the return type of a GCC
17914 builtin and then its argument prototype would still apply. */
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (ac_try="$ac_link"
17929 case "(($ac_try" in
17930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931 *) ac_try_echo=$ac_try;;
17933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_link") 2>conftest.er1
17936 grep -v '^ *+' conftest.er1 >conftest.err
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
17941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17942 { (case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_try") 2>&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest$ac_exeext'
17952 { (case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_try") 2>&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; }; then
17961 ac_cv_lib_gcc__alloca=yes
17963 echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17966 ac_cv_lib_gcc__alloca=no
17969 rm -f core conftest.err conftest.$ac_objext \
17970 conftest$ac_exeext conftest.$ac_ext
17971 LIBS=$ac_check_lib_save_LIBS
17973 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17974 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17975 if test $ac_cv_lib_gcc__alloca = yes; then
17977 cat >>confdefs.h <<\_ACEOF
17978 #define HAVE__ALLOCA 1
17983 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17984 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17985 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17988 ac_check_lib_save_LIBS=$LIBS
17990 cat >conftest.$ac_ext <<_ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17997 /* Override any GCC internal prototype to avoid an error.
17998 Use char because int might match the return type of a GCC
17999 builtin and then its argument prototype would still apply. */
18007 return __alloca ();
18012 rm -f conftest.$ac_objext conftest$ac_exeext
18013 if { (ac_try="$ac_link"
18014 case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_link") 2>conftest.er1
18021 grep -v '^ *+' conftest.er1 >conftest.err
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } &&
18026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18027 { (case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_try") 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; } &&
18036 { ac_try='test -s conftest$ac_exeext'
18037 { (case "(($ac_try" in
18038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039 *) ac_try_echo=$ac_try;;
18041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042 (eval "$ac_try") 2>&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; }; then
18046 ac_cv_lib_gcc___alloca=yes
18048 echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18051 ac_cv_lib_gcc___alloca=no
18054 rm -f core conftest.err conftest.$ac_objext \
18055 conftest$ac_exeext conftest.$ac_ext
18056 LIBS=$ac_check_lib_save_LIBS
18058 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18059 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18060 if test $ac_cv_lib_gcc___alloca = yes; then
18062 cat >>confdefs.h <<\_ACEOF
18063 #define HAVE___ALLOCA 1
18068 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18069 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18070 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18073 ac_check_lib_save_LIBS=$LIBS
18075 cat >conftest.$ac_ext <<_ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h. */
18082 /* Override any GCC internal prototype to avoid an error.
18083 Use char because int might match the return type of a GCC
18084 builtin and then its argument prototype would still apply. */
18092 return __chkstk ();
18097 rm -f conftest.$ac_objext conftest$ac_exeext
18098 if { (ac_try="$ac_link"
18099 case "(($ac_try" in
18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101 *) ac_try_echo=$ac_try;;
18103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104 (eval "$ac_link") 2>conftest.er1
18106 grep -v '^ *+' conftest.er1 >conftest.err
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } &&
18111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest$ac_exeext'
18122 { (case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_try") 2>&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 ac_cv_lib_gcc___chkstk=yes
18133 echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18136 ac_cv_lib_gcc___chkstk=no
18139 rm -f core conftest.err conftest.$ac_objext \
18140 conftest$ac_exeext conftest.$ac_ext
18141 LIBS=$ac_check_lib_save_LIBS
18143 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18144 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18145 if test $ac_cv_lib_gcc___chkstk = yes; then
18147 cat >>confdefs.h <<\_ACEOF
18148 #define HAVE___CHKSTK 1
18153 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18154 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18155 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18156 echo $ECHO_N "(cached) $ECHO_C" >&6
18158 ac_check_lib_save_LIBS=$LIBS
18160 cat >conftest.$ac_ext <<_ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h. */
18167 /* Override any GCC internal prototype to avoid an error.
18168 Use char because int might match the return type of a GCC
18169 builtin and then its argument prototype would still apply. */
18177 return ___chkstk ();
18182 rm -f conftest.$ac_objext conftest$ac_exeext
18183 if { (ac_try="$ac_link"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_link") 2>conftest.er1
18191 grep -v '^ *+' conftest.er1 >conftest.err
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } &&
18196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18197 { (case "(($ac_try" in
18198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199 *) ac_try_echo=$ac_try;;
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202 (eval "$ac_try") 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; } &&
18206 { ac_try='test -s conftest$ac_exeext'
18207 { (case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212 (eval "$ac_try") 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_cv_lib_gcc____chkstk=yes
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18221 ac_cv_lib_gcc____chkstk=no
18224 rm -f core conftest.err conftest.$ac_objext \
18225 conftest$ac_exeext conftest.$ac_ext
18226 LIBS=$ac_check_lib_save_LIBS
18228 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18229 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18230 if test $ac_cv_lib_gcc____chkstk = yes; then
18232 cat >>confdefs.h <<\_ACEOF
18233 #define HAVE____CHKSTK 1
18239 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18240 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18241 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18244 ac_check_lib_save_LIBS=$LIBS
18246 cat >conftest.$ac_ext <<_ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h. */
18253 /* Override any GCC internal prototype to avoid an error.
18254 Use char because int might match the return type of a GCC
18255 builtin and then its argument prototype would still apply. */
18263 return __ashldi3 ();
18268 rm -f conftest.$ac_objext conftest$ac_exeext
18269 if { (ac_try="$ac_link"
18270 case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_link") 2>conftest.er1
18277 grep -v '^ *+' conftest.er1 >conftest.err
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
18282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18283 { (case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_try") 2>&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; } &&
18292 { ac_try='test -s conftest$ac_exeext'
18293 { (case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298 (eval "$ac_try") 2>&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; }; then
18302 ac_cv_lib_gcc___ashldi3=yes
18304 echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18307 ac_cv_lib_gcc___ashldi3=no
18310 rm -f core conftest.err conftest.$ac_objext \
18311 conftest$ac_exeext conftest.$ac_ext
18312 LIBS=$ac_check_lib_save_LIBS
18314 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18315 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18316 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18318 cat >>confdefs.h <<\_ACEOF
18319 #define HAVE___ASHLDI3 1
18324 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18325 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18326 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18329 ac_check_lib_save_LIBS=$LIBS
18331 cat >conftest.$ac_ext <<_ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18338 /* Override any GCC internal prototype to avoid an error.
18339 Use char because int might match the return type of a GCC
18340 builtin and then its argument prototype would still apply. */
18348 return __ashrdi3 ();
18353 rm -f conftest.$ac_objext conftest$ac_exeext
18354 if { (ac_try="$ac_link"
18355 case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360 (eval "$ac_link") 2>conftest.er1
18362 grep -v '^ *+' conftest.er1 >conftest.err
18364 cat conftest.err >&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } &&
18367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18368 { (case "(($ac_try" in
18369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18370 *) ac_try_echo=$ac_try;;
18372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18373 (eval "$ac_try") 2>&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; } &&
18377 { ac_try='test -s conftest$ac_exeext'
18378 { (case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383 (eval "$ac_try") 2>&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; }; then
18387 ac_cv_lib_gcc___ashrdi3=yes
18389 echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18392 ac_cv_lib_gcc___ashrdi3=no
18395 rm -f core conftest.err conftest.$ac_objext \
18396 conftest$ac_exeext conftest.$ac_ext
18397 LIBS=$ac_check_lib_save_LIBS
18399 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18400 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18401 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18403 cat >>confdefs.h <<\_ACEOF
18404 #define HAVE___ASHRDI3 1
18409 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18410 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18411 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18412 echo $ECHO_N "(cached) $ECHO_C" >&6
18414 ac_check_lib_save_LIBS=$LIBS
18416 cat >conftest.$ac_ext <<_ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18423 /* Override any GCC internal prototype to avoid an error.
18424 Use char because int might match the return type of a GCC
18425 builtin and then its argument prototype would still apply. */
18433 return __divdi3 ();
18438 rm -f conftest.$ac_objext conftest$ac_exeext
18439 if { (ac_try="$ac_link"
18440 case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_link") 2>conftest.er1
18447 grep -v '^ *+' conftest.er1 >conftest.err
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } &&
18452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18453 { (case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_try") 2>&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest$ac_exeext'
18463 { (case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_try") 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 ac_cv_lib_gcc___divdi3=yes
18474 echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18477 ac_cv_lib_gcc___divdi3=no
18480 rm -f core conftest.err conftest.$ac_objext \
18481 conftest$ac_exeext conftest.$ac_ext
18482 LIBS=$ac_check_lib_save_LIBS
18484 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18485 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18486 if test $ac_cv_lib_gcc___divdi3 = yes; then
18488 cat >>confdefs.h <<\_ACEOF
18489 #define HAVE___DIVDI3 1
18494 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18495 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18496 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18499 ac_check_lib_save_LIBS=$LIBS
18501 cat >conftest.$ac_ext <<_ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18508 /* Override any GCC internal prototype to avoid an error.
18509 Use char because int might match the return type of a GCC
18510 builtin and then its argument prototype would still apply. */
18518 return __fixdfdi ();
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (ac_try="$ac_link"
18525 case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_link") 2>conftest.er1
18532 grep -v '^ *+' conftest.er1 >conftest.err
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest$ac_exeext'
18548 { (case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_try") 2>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 ac_cv_lib_gcc___fixdfdi=yes
18559 echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18562 ac_cv_lib_gcc___fixdfdi=no
18565 rm -f core conftest.err conftest.$ac_objext \
18566 conftest$ac_exeext conftest.$ac_ext
18567 LIBS=$ac_check_lib_save_LIBS
18569 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18570 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18571 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18573 cat >>confdefs.h <<\_ACEOF
18574 #define HAVE___FIXDFDI 1
18579 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18580 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18581 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 ac_check_lib_save_LIBS=$LIBS
18586 cat >conftest.$ac_ext <<_ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h. */
18593 /* Override any GCC internal prototype to avoid an error.
18594 Use char because int might match the return type of a GCC
18595 builtin and then its argument prototype would still apply. */
18603 return __fixsfdi ();
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (ac_try="$ac_link"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_link") 2>conftest.er1
18617 grep -v '^ *+' conftest.er1 >conftest.err
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18623 { (case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_try") 2>&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; } &&
18632 { ac_try='test -s conftest$ac_exeext'
18633 { (case "(($ac_try" in
18634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635 *) ac_try_echo=$ac_try;;
18637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638 (eval "$ac_try") 2>&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_cv_lib_gcc___fixsfdi=yes
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18647 ac_cv_lib_gcc___fixsfdi=no
18650 rm -f core conftest.err conftest.$ac_objext \
18651 conftest$ac_exeext conftest.$ac_ext
18652 LIBS=$ac_check_lib_save_LIBS
18654 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18655 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18656 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18658 cat >>confdefs.h <<\_ACEOF
18659 #define HAVE___FIXSFDI 1
18664 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18665 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18666 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
18669 ac_check_lib_save_LIBS=$LIBS
18671 cat >conftest.$ac_ext <<_ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18678 /* Override any GCC internal prototype to avoid an error.
18679 Use char because int might match the return type of a GCC
18680 builtin and then its argument prototype would still apply. */
18684 char __floatdidf ();
18688 return __floatdidf ();
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (ac_try="$ac_link"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_link") 2>conftest.er1
18702 grep -v '^ *+' conftest.er1 >conftest.err
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } &&
18707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18708 { (case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_try") 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; } &&
18717 { ac_try='test -s conftest$ac_exeext'
18718 { (case "(($ac_try" in
18719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720 *) ac_try_echo=$ac_try;;
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723 (eval "$ac_try") 2>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; }; then
18727 ac_cv_lib_gcc___floatdidf=yes
18729 echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18732 ac_cv_lib_gcc___floatdidf=no
18735 rm -f core conftest.err conftest.$ac_objext \
18736 conftest$ac_exeext conftest.$ac_ext
18737 LIBS=$ac_check_lib_save_LIBS
18739 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18740 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18741 if test $ac_cv_lib_gcc___floatdidf = yes; then
18743 cat >>confdefs.h <<\_ACEOF
18744 #define HAVE___FLOATDIDF 1
18749 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18750 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18751 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18754 ac_check_lib_save_LIBS=$LIBS
18756 cat >conftest.$ac_ext <<_ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18763 /* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
18773 return __lshrdi3 ();
18778 rm -f conftest.$ac_objext conftest$ac_exeext
18779 if { (ac_try="$ac_link"
18780 case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_link") 2>conftest.er1
18787 grep -v '^ *+' conftest.er1 >conftest.err
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try='test -s conftest$ac_exeext'
18803 { (case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_try") 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 ac_cv_lib_gcc___lshrdi3=yes
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18817 ac_cv_lib_gcc___lshrdi3=no
18820 rm -f core conftest.err conftest.$ac_objext \
18821 conftest$ac_exeext conftest.$ac_ext
18822 LIBS=$ac_check_lib_save_LIBS
18824 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18825 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18826 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18828 cat >>confdefs.h <<\_ACEOF
18829 #define HAVE___LSHRDI3 1
18834 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18835 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18836 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 ac_check_lib_save_LIBS=$LIBS
18841 cat >conftest.$ac_ext <<_ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h. */
18848 /* Override any GCC internal prototype to avoid an error.
18849 Use char because int might match the return type of a GCC
18850 builtin and then its argument prototype would still apply. */
18858 return __moddi3 ();
18863 rm -f conftest.$ac_objext conftest$ac_exeext
18864 if { (ac_try="$ac_link"
18865 case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870 (eval "$ac_link") 2>conftest.er1
18872 grep -v '^ *+' conftest.er1 >conftest.err
18874 cat conftest.err >&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } &&
18877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18878 { (case "(($ac_try" in
18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880 *) ac_try_echo=$ac_try;;
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883 (eval "$ac_try") 2>&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; } &&
18887 { ac_try='test -s conftest$ac_exeext'
18888 { (case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_try") 2>&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18897 ac_cv_lib_gcc___moddi3=yes
18899 echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18902 ac_cv_lib_gcc___moddi3=no
18905 rm -f core conftest.err conftest.$ac_objext \
18906 conftest$ac_exeext conftest.$ac_ext
18907 LIBS=$ac_check_lib_save_LIBS
18909 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18910 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18911 if test $ac_cv_lib_gcc___moddi3 = yes; then
18913 cat >>confdefs.h <<\_ACEOF
18914 #define HAVE___MODDI3 1
18919 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18920 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18921 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18924 ac_check_lib_save_LIBS=$LIBS
18926 cat >conftest.$ac_ext <<_ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18933 /* Override any GCC internal prototype to avoid an error.
18934 Use char because int might match the return type of a GCC
18935 builtin and then its argument prototype would still apply. */
18943 return __udivdi3 ();
18948 rm -f conftest.$ac_objext conftest$ac_exeext
18949 if { (ac_try="$ac_link"
18950 case "(($ac_try" in
18951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952 *) ac_try_echo=$ac_try;;
18954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18955 (eval "$ac_link") 2>conftest.er1
18957 grep -v '^ *+' conftest.er1 >conftest.err
18959 cat conftest.err >&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); } &&
18962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18963 { (case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_try") 2>&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; } &&
18972 { ac_try='test -s conftest$ac_exeext'
18973 { (case "(($ac_try" in
18974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975 *) ac_try_echo=$ac_try;;
18977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18978 (eval "$ac_try") 2>&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
18982 ac_cv_lib_gcc___udivdi3=yes
18984 echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18987 ac_cv_lib_gcc___udivdi3=no
18990 rm -f core conftest.err conftest.$ac_objext \
18991 conftest$ac_exeext conftest.$ac_ext
18992 LIBS=$ac_check_lib_save_LIBS
18994 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18995 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18996 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18998 cat >>confdefs.h <<\_ACEOF
18999 #define HAVE___UDIVDI3 1
19004 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19005 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19006 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19009 ac_check_lib_save_LIBS=$LIBS
19011 cat >conftest.$ac_ext <<_ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h. */
19018 /* Override any GCC internal prototype to avoid an error.
19019 Use char because int might match the return type of a GCC
19020 builtin and then its argument prototype would still apply. */
19028 return __umoddi3 ();
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (ac_try="$ac_link"
19035 case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_link") 2>conftest.er1
19042 grep -v '^ *+' conftest.er1 >conftest.err
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } &&
19047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; } &&
19057 { ac_try='test -s conftest$ac_exeext'
19058 { (case "(($ac_try" in
19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060 *) ac_try_echo=$ac_try;;
19062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063 (eval "$ac_try") 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_cv_lib_gcc___umoddi3=yes
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19072 ac_cv_lib_gcc___umoddi3=no
19075 rm -f core conftest.err conftest.$ac_objext \
19076 conftest$ac_exeext conftest.$ac_ext
19077 LIBS=$ac_check_lib_save_LIBS
19079 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19080 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19081 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19083 cat >>confdefs.h <<\_ACEOF
19084 #define HAVE___UMODDI3 1
19090 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19091 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19092 if test "${ac_cv_lib_gcc___main+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 ac_check_lib_save_LIBS=$LIBS
19097 cat >conftest.$ac_ext <<_ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h. */
19104 /* Override any GCC internal prototype to avoid an error.
19105 Use char because int might match the return type of a GCC
19106 builtin and then its argument prototype would still apply. */
19119 rm -f conftest.$ac_objext conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_link") 2>conftest.er1
19128 grep -v '^ *+' conftest.er1 >conftest.err
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
19133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19134 { (case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_try") 2>&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; } &&
19143 { ac_try='test -s conftest$ac_exeext'
19144 { (case "(($ac_try" in
19145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146 *) ac_try_echo=$ac_try;;
19148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19149 (eval "$ac_try") 2>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 ac_cv_lib_gcc___main=yes
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19158 ac_cv_lib_gcc___main=no
19161 rm -f core conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
19163 LIBS=$ac_check_lib_save_LIBS
19165 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19166 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19167 if test $ac_cv_lib_gcc___main = yes; then
19169 cat >>confdefs.h <<\_ACEOF
19170 #define HAVE___MAIN 1
19175 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19176 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19177 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 ac_check_lib_save_LIBS=$LIBS
19182 cat >conftest.$ac_ext <<_ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19189 /* Override any GCC internal prototype to avoid an error.
19190 Use char because int might match the return type of a GCC
19191 builtin and then its argument prototype would still apply. */
19199 return __cmpdi2 ();
19204 rm -f conftest.$ac_objext conftest$ac_exeext
19205 if { (ac_try="$ac_link"
19206 case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211 (eval "$ac_link") 2>conftest.er1
19213 grep -v '^ *+' conftest.er1 >conftest.err
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19219 { (case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_try") 2>&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; } &&
19228 { ac_try='test -s conftest$ac_exeext'
19229 { (case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_try") 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_lib_gcc___cmpdi2=yes
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19243 ac_cv_lib_gcc___cmpdi2=no
19246 rm -f core conftest.err conftest.$ac_objext \
19247 conftest$ac_exeext conftest.$ac_ext
19248 LIBS=$ac_check_lib_save_LIBS
19250 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19251 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19252 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19254 cat >>confdefs.h <<\_ACEOF
19255 #define HAVE___CMPDI2 1
19262 if test "$llvm_cv_os_type" = "MingW" ; then
19263 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19264 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19265 cat >conftest.$ac_ext <<_ACEOF
19266 #include <windows.h>
19267 #include <imagehlp.h>
19268 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19269 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19271 rm -f conftest.$ac_objext
19272 if { (ac_try="$ac_compile"
19273 case "(($ac_try" in
19274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275 *) ac_try_echo=$ac_try;;
19277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278 (eval "$ac_compile") 2>conftest.er1
19280 grep -v '^ *+' conftest.er1 >conftest.err
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
19285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19286 { (case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19291 (eval "$ac_try") 2>&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; } &&
19295 { ac_try='test -s conftest.$ac_objext'
19296 { (case "(($ac_try" in
19297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298 *) ac_try_echo=$ac_try;;
19300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301 (eval "$ac_try") 2>&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; }; then
19306 { echo "$as_me:$LINENO: result: yes" >&5
19307 echo "${ECHO_T}yes" >&6; }
19308 llvm_cv_win32_elmcb_pcstr="PCSTR"
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19315 { echo "$as_me:$LINENO: result: no" >&5
19316 echo "${ECHO_T}no" >&6; }
19317 llvm_cv_win32_elmcb_pcstr="PSTR"
19321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19323 cat >>confdefs.h <<_ACEOF
19324 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19330 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19331 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19332 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19336 ac_cpp='$CXXCPP $CPPFLAGS'
19337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19341 cat >conftest.$ac_ext <<_ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19356 rm -f conftest.$ac_objext
19357 if { (ac_try="$ac_compile"
19358 case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_compile") 2>conftest.er1
19365 grep -v '^ *+' conftest.er1 >conftest.err
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } &&
19370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19371 { (case "(($ac_try" in
19372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373 *) ac_try_echo=$ac_try;;
19375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19376 (eval "$ac_try") 2>&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; } &&
19380 { ac_try='test -s conftest.$ac_objext'
19381 { (case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_try") 2>&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; }; then
19390 ac_cv_func_isnan_in_math_h=yes
19392 echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19395 ac_cv_func_isnan_in_math_h=no
19398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19400 ac_cpp='$CPP $CPPFLAGS'
19401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19406 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19407 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19410 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19412 cat >>confdefs.h <<\_ACEOF
19413 #define HAVE_ISNAN_IN_MATH_H 1
19418 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19419 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19420 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 ac_cpp='$CXXCPP $CPPFLAGS'
19425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19429 cat >conftest.$ac_ext <<_ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19444 rm -f conftest.$ac_objext
19445 if { (ac_try="$ac_compile"
19446 case "(($ac_try" in
19447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448 *) ac_try_echo=$ac_try;;
19450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451 (eval "$ac_compile") 2>conftest.er1
19453 grep -v '^ *+' conftest.er1 >conftest.err
19455 cat conftest.err >&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } &&
19458 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19459 { (case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_try") 2>&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest.$ac_objext'
19469 { (case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_try") 2>&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 ac_cv_func_isnan_in_cmath=yes
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 ac_cv_func_isnan_in_cmath=no
19486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19488 ac_cpp='$CPP $CPPFLAGS'
19489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19494 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19495 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19497 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19499 cat >>confdefs.h <<\_ACEOF
19500 #define HAVE_ISNAN_IN_CMATH 1
19505 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19506 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19507 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 ac_cpp='$CXXCPP $CPPFLAGS'
19512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19516 cat >conftest.$ac_ext <<_ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19526 float f; std::isnan(f);
19531 rm -f conftest.$ac_objext
19532 if { (ac_try="$ac_compile"
19533 case "(($ac_try" in
19534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535 *) ac_try_echo=$ac_try;;
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538 (eval "$ac_compile") 2>conftest.er1
19540 grep -v '^ *+' conftest.er1 >conftest.err
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
19545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19546 { (case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551 (eval "$ac_try") 2>&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; } &&
19555 { ac_try='test -s conftest.$ac_objext'
19556 { (case "(($ac_try" in
19557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558 *) ac_try_echo=$ac_try;;
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561 (eval "$ac_try") 2>&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19565 ac_cv_func_std_isnan_in_cmath=yes
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19570 ac_cv_func_std_isnan_in_cmath=no
19573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19575 ac_cpp='$CPP $CPPFLAGS'
19576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19581 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19582 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19584 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19586 cat >>confdefs.h <<\_ACEOF
19587 #define HAVE_STD_ISNAN_IN_CMATH 1
19593 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19594 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19595 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 ac_cpp='$CXXCPP $CPPFLAGS'
19600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19604 cat >conftest.$ac_ext <<_ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19619 rm -f conftest.$ac_objext
19620 if { (ac_try="$ac_compile"
19621 case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_compile") 2>conftest.er1
19628 grep -v '^ *+' conftest.er1 >conftest.err
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest.$ac_objext'
19644 { (case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_try") 2>&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
19653 ac_cv_func_isinf_in_math_h=yes
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 ac_cv_func_isinf_in_math_h=no
19661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19663 ac_cpp='$CPP $CPPFLAGS'
19664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19669 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19670 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19672 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19674 cat >>confdefs.h <<\_ACEOF
19675 #define HAVE_ISINF_IN_MATH_H 1
19680 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19681 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19682 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 ac_cpp='$CXXCPP $CPPFLAGS'
19687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19691 cat >conftest.$ac_ext <<_ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19706 rm -f conftest.$ac_objext
19707 if { (ac_try="$ac_compile"
19708 case "(($ac_try" in
19709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710 *) ac_try_echo=$ac_try;;
19712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19713 (eval "$ac_compile") 2>conftest.er1
19715 grep -v '^ *+' conftest.er1 >conftest.err
19717 cat conftest.err >&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } &&
19720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19721 { (case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726 (eval "$ac_try") 2>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest.$ac_objext'
19731 { (case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_try") 2>&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; }; then
19740 ac_cv_func_isinf_in_cmath=yes
19742 echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19745 ac_cv_func_isinf_in_cmath=no
19748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750 ac_cpp='$CPP $CPPFLAGS'
19751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19756 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19757 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19759 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19761 cat >>confdefs.h <<\_ACEOF
19762 #define HAVE_ISINF_IN_CMATH 1
19767 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19768 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19769 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 ac_cpp='$CXXCPP $CPPFLAGS'
19774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19778 cat >conftest.$ac_ext <<_ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h. */
19788 float f; std::isinf(f)}
19793 rm -f conftest.$ac_objext
19794 if { (ac_try="$ac_compile"
19795 case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_compile") 2>conftest.er1
19802 grep -v '^ *+' conftest.er1 >conftest.err
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } &&
19807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19808 { (case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_try") 2>&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; } &&
19817 { ac_try='test -s conftest.$ac_objext'
19818 { (case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_try") 2>&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 ac_cv_func_std_isinf_in_cmath=yes
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19832 ac_cv_func_std_isinf_in_cmath=no
19835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19837 ac_cpp='$CPP $CPPFLAGS'
19838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19843 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19844 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19846 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19848 cat >>confdefs.h <<\_ACEOF
19849 #define HAVE_STD_ISINF_IN_CMATH 1
19854 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19855 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19856 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19860 ac_cpp='$CXXCPP $CPPFLAGS'
19861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19865 cat >conftest.$ac_ext <<_ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 #include <ieeefp.h>
19875 float f; finite(f);
19880 rm -f conftest.$ac_objext
19881 if { (ac_try="$ac_compile"
19882 case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_compile") 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; } &&
19904 { ac_try='test -s conftest.$ac_objext'
19905 { (case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_try") 2>&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; }; then
19914 ac_cv_func_finite_in_ieeefp_h=yes
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 ac_cv_func_finite_in_ieeefp_h=no
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19924 ac_cpp='$CPP $CPPFLAGS'
19925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19930 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19931 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19933 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19935 cat >>confdefs.h <<\_ACEOF
19936 #define HAVE_FINITE_IN_IEEEFP_H 1
19943 if test "$llvm_cv_platform_type" = "Unix" ; then
19946 for ac_header in stdlib.h unistd.h
19948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19955 ac_res=`eval echo '${'$as_ac_Header'}'`
19956 { echo "$as_me:$LINENO: result: $ac_res" >&5
19957 echo "${ECHO_T}$ac_res" >&6; }
19959 # Is the header compilable?
19960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 $ac_includes_default
19969 #include <$ac_header>
19971 rm -f conftest.$ac_objext
19972 if { (ac_try="$ac_compile"
19973 case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_compile") 2>conftest.er1
19980 grep -v '^ *+' conftest.er1 >conftest.err
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
19985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19986 { (case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_try") 2>&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; } &&
19995 { ac_try='test -s conftest.$ac_objext'
19996 { (case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_try") 2>&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20005 ac_header_compiler=yes
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20010 ac_header_compiler=no
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20015 echo "${ECHO_T}$ac_header_compiler" >&6; }
20017 # Is the header present?
20018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 #include <$ac_header>
20028 if { (ac_try="$ac_cpp conftest.$ac_ext"
20029 case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20036 grep -v '^ *+' conftest.er1 >conftest.err
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } >/dev/null; then
20041 if test -s conftest.err; then
20042 ac_cpp_err=$ac_c_preproc_warn_flag
20043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20050 if test -z "$ac_cpp_err"; then
20051 ac_header_preproc=yes
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 ac_header_preproc=no
20059 rm -f conftest.err conftest.$ac_ext
20060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061 echo "${ECHO_T}$ac_header_preproc" >&6; }
20063 # So? What about this header?
20064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20070 ac_header_preproc=yes
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20086 ## ------------------------------------ ##
20087 ## Report this to http://llvm.org/bugs/ ##
20088 ## ------------------------------------ ##
20090 ) | sed "s/^/$as_me: WARNING: /" >&2
20093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 eval "$as_ac_Header=\$ac_header_preproc"
20100 ac_res=`eval echo '${'$as_ac_Header'}'`
20101 { echo "$as_me:$LINENO: result: $ac_res" >&5
20102 echo "${ECHO_T}$ac_res" >&6; }
20105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20106 cat >>confdefs.h <<_ACEOF
20107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20115 for ac_func in getpagesize
20117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20123 cat >conftest.$ac_ext <<_ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20131 #define $ac_func innocuous_$ac_func
20133 /* System header to define __stub macros and hopefully few prototypes,
20134 which can conflict with char $ac_func (); below.
20135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20136 <limits.h> exists even on freestanding compilers. */
20139 # include <limits.h>
20141 # include <assert.h>
20146 /* Override any GCC internal prototype to avoid an error.
20147 Use char because int might match the return type of a GCC
20148 builtin and then its argument prototype would still apply. */
20153 /* The GNU C library defines this for functions which it implements
20154 to always fail with ENOSYS. Some functions are actually named
20155 something starting with __ and the normal name is an alias. */
20156 #if defined __stub_$ac_func || defined __stub___$ac_func
20163 return $ac_func ();
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (ac_try="$ac_link"
20170 case "(($ac_try" in
20171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172 *) ac_try_echo=$ac_try;;
20174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175 (eval "$ac_link") 2>conftest.er1
20177 grep -v '^ *+' conftest.er1 >conftest.err
20179 cat conftest.err >&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); } &&
20182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20183 { (case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_try") 2>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; } &&
20192 { ac_try='test -s conftest$ac_exeext'
20193 { (case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_try") 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
20202 eval "$as_ac_var=yes"
20204 echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20207 eval "$as_ac_var=no"
20210 rm -f core conftest.err conftest.$ac_objext \
20211 conftest$ac_exeext conftest.$ac_ext
20213 ac_res=`eval echo '${'$as_ac_var'}'`
20214 { echo "$as_me:$LINENO: result: $ac_res" >&5
20215 echo "${ECHO_T}$ac_res" >&6; }
20216 if test `eval echo '${'$as_ac_var'}'` = yes; then
20217 cat >>confdefs.h <<_ACEOF
20218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20224 { echo "$as_me:$LINENO: checking for working mmap" >&5
20225 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20226 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20229 if test "$cross_compiling" = yes; then
20230 ac_cv_func_mmap_fixed_mapped=no
20232 cat >conftest.$ac_ext <<_ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20238 $ac_includes_default
20239 /* malloc might have been renamed as rpl_malloc. */
20242 /* Thanks to Mike Haertel and Jim Avera for this test.
20243 Here is a matrix of mmap possibilities:
20244 mmap private not fixed
20245 mmap private fixed at somewhere currently unmapped
20246 mmap private fixed at somewhere already mapped
20247 mmap shared not fixed
20248 mmap shared fixed at somewhere currently unmapped
20249 mmap shared fixed at somewhere already mapped
20250 For private mappings, we should verify that changes cannot be read()
20251 back from the file, nor mmap's back from the file at a different
20252 address. (There have been systems where private was not correctly
20253 implemented like the infamous i386 svr4.0, and systems where the
20254 VM page cache was not coherent with the file system buffer cache
20255 like early versions of FreeBSD and possibly contemporary NetBSD.)
20256 For shared mappings, we should conversely verify that changes get
20257 propagated back to all the places they're supposed to be.
20259 Grep wants private fixed already mapped.
20260 The main things grep needs to know about mmap are:
20261 * does it exist and is it safe to write into the mmap'd area
20262 * how to use it (BSD variants) */
20265 #include <sys/mman.h>
20267 #if !STDC_HEADERS && !HAVE_STDLIB_H
20271 /* This mess was copied from the GNU getpagesize.h. */
20272 #if !HAVE_GETPAGESIZE
20273 /* Assume that all systems that can run configure have sys/param.h. */
20274 # if !HAVE_SYS_PARAM_H
20275 # define HAVE_SYS_PARAM_H 1
20278 # ifdef _SC_PAGESIZE
20279 # define getpagesize() sysconf(_SC_PAGESIZE)
20280 # else /* no _SC_PAGESIZE */
20281 # if HAVE_SYS_PARAM_H
20282 # include <sys/param.h>
20283 # ifdef EXEC_PAGESIZE
20284 # define getpagesize() EXEC_PAGESIZE
20285 # else /* no EXEC_PAGESIZE */
20287 # define getpagesize() NBPG * CLSIZE
20290 # endif /* no CLSIZE */
20291 # else /* no NBPG */
20293 # define getpagesize() NBPC
20294 # else /* no NBPC */
20296 # define getpagesize() PAGESIZE
20297 # endif /* PAGESIZE */
20298 # endif /* no NBPC */
20299 # endif /* no NBPG */
20300 # endif /* no EXEC_PAGESIZE */
20301 # else /* no HAVE_SYS_PARAM_H */
20302 # define getpagesize() 8192 /* punt totally */
20303 # endif /* no HAVE_SYS_PARAM_H */
20304 # endif /* no _SC_PAGESIZE */
20306 #endif /* no HAVE_GETPAGESIZE */
20311 char *data, *data2, *data3;
20315 pagesize = getpagesize ();
20317 /* First, make a file with some known garbage in it. */
20318 data = (char *) malloc (pagesize);
20321 for (i = 0; i < pagesize; ++i)
20322 *(data + i) = rand ();
20324 fd = creat ("conftest.mmap", 0600);
20327 if (write (fd, data, pagesize) != pagesize)
20331 /* Next, try to mmap the file at a fixed address which already has
20332 something else allocated at it. If we can, also make sure that
20333 we see the same garbage. */
20334 fd = open ("conftest.mmap", O_RDWR);
20337 data2 = (char *) malloc (2 * pagesize);
20340 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20341 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20342 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20344 for (i = 0; i < pagesize; ++i)
20345 if (*(data + i) != *(data2 + i))
20348 /* Finally, make sure that changes to the mapped area do not
20349 percolate back to the file as seen by read(). (This is a bug on
20350 some variants of i386 svr4.0.) */
20351 for (i = 0; i < pagesize; ++i)
20352 *(data2 + i) = *(data2 + i) + 1;
20353 data3 = (char *) malloc (pagesize);
20356 if (read (fd, data3, pagesize) != pagesize)
20358 for (i = 0; i < pagesize; ++i)
20359 if (*(data + i) != *(data3 + i))
20365 rm -f conftest$ac_exeext
20366 if { (ac_try="$ac_link"
20367 case "(($ac_try" in
20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369 *) ac_try_echo=$ac_try;;
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372 (eval "$ac_link") 2>&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20376 { (case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_try") 2>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; }; then
20385 ac_cv_func_mmap_fixed_mapped=yes
20387 echo "$as_me: program exited with status $ac_status" >&5
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20391 ( exit $ac_status )
20392 ac_cv_func_mmap_fixed_mapped=no
20394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20399 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20400 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20401 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20403 cat >>confdefs.h <<\_ACEOF
20404 #define HAVE_MMAP 1
20408 rm -f conftest.mmap
20410 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20411 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20412 if test "${ac_cv_func_mmap_file+set}" = set; then
20413 echo $ECHO_N "(cached) $ECHO_C" >&6
20416 ac_cpp='$CPP $CPPFLAGS'
20417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20421 if test "$cross_compiling" = yes; then
20422 ac_cv_func_mmap_file=no
20424 cat >conftest.$ac_ext <<_ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20432 #include <sys/types.h>
20433 #include <sys/mman.h>
20441 fd = creat ("foo",0777);
20442 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20444 return (fd != (int) MAP_FAILED);
20449 rm -f conftest$ac_exeext
20450 if { (ac_try="$ac_link"
20451 case "(($ac_try" in
20452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453 *) ac_try_echo=$ac_try;;
20455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20456 (eval "$ac_link") 2>&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20460 { (case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_try") 2>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; }; then
20469 ac_cv_func_mmap_file=yes
20471 echo "$as_me: program exited with status $ac_status" >&5
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 ( exit $ac_status )
20476 ac_cv_func_mmap_file=no
20478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20483 ac_cpp='$CPP $CPPFLAGS'
20484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20490 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20491 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20492 if test "$ac_cv_func_mmap_file" = yes; then
20494 cat >>confdefs.h <<\_ACEOF
20495 #define HAVE_MMAP_FILE
20502 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20503 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20504 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 if test "$llvm_cv_os_type" = "Interix" ; then
20508 ac_cv_need_dev_zero_for_mmap=yes
20510 ac_cv_need_dev_zero_for_mmap=no
20514 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20515 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20516 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20518 cat >>confdefs.h <<\_ACEOF
20519 #define NEED_DEV_ZERO_FOR_MMAP 1
20524 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20526 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20527 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20529 if test "$ac_cv_func_mmap_file" = "no"
20531 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20532 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20536 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20537 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20539 ac_cpp='$CXXCPP $CPPFLAGS'
20540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20544 cat >conftest.$ac_ext <<_ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20551 volatile unsigned long val = 1;
20552 __sync_synchronize();
20553 __sync_val_compare_and_swap(&val, 1, 0);
20554 __sync_add_and_fetch(&val, 1);
20555 __sync_sub_and_fetch(&val, 1);
20560 rm -f conftest.$ac_objext conftest$ac_exeext
20561 if { (ac_try="$ac_link"
20562 case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_link") 2>conftest.er1
20569 grep -v '^ *+' conftest.er1 >conftest.err
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } &&
20574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20575 { (case "(($ac_try" in
20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577 *) ac_try_echo=$ac_try;;
20579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580 (eval "$ac_try") 2>&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; } &&
20584 { ac_try='test -s conftest$ac_exeext'
20585 { (case "(($ac_try" in
20586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587 *) ac_try_echo=$ac_try;;
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590 (eval "$ac_try") 2>&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20595 ac_cpp='$CPP $CPPFLAGS'
20596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20600 { echo "$as_me:$LINENO: result: yes" >&5
20601 echo "${ECHO_T}yes" >&6; }
20603 cat >>confdefs.h <<\_ACEOF
20604 #define LLVM_HAS_ATOMICS 1
20608 echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20611 { echo "$as_me:$LINENO: result: no" >&5
20612 echo "${ECHO_T}no" >&6; }
20614 cat >>confdefs.h <<\_ACEOF
20615 #define LLVM_HAS_ATOMICS 0
20618 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20619 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20622 rm -f core conftest.err conftest.$ac_objext \
20623 conftest$ac_exeext conftest.$ac_ext
20626 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20627 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20628 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20629 if test "${llvm_cv_linux_mixed+set}" = set; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
20633 ac_cpp='$CPP $CPPFLAGS'
20634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20638 cat >conftest.$ac_ext <<_ACEOF
20641 cat confdefs.h >>conftest.$ac_ext
20642 cat >>conftest.$ac_ext <<_ACEOF
20643 /* end confdefs.h. */
20645 error: Not x86-64 even if uname says so!
20656 rm -f conftest.$ac_objext
20657 if { (ac_try="$ac_compile"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_compile") 2>conftest.er1
20665 grep -v '^ *+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } &&
20670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20671 { (case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_try") 2>&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; } &&
20680 { ac_try='test -s conftest.$ac_objext'
20681 { (case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_try") 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 llvm_cv_linux_mixed=no
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 llvm_cv_linux_mixed=yes
20698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20700 ac_cpp='$CPP $CPPFLAGS'
20701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20707 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20708 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20710 if test "$llvm_cv_linux_mixed" = "yes"; then
20711 llvm_cv_target_arch="x86"
20717 for ac_func in __dso_handle
20719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20723 echo $ECHO_N "(cached) $ECHO_C" >&6
20725 cat >conftest.$ac_ext <<_ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20733 #define $ac_func innocuous_$ac_func
20735 /* System header to define __stub macros and hopefully few prototypes,
20736 which can conflict with char $ac_func (); below.
20737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20738 <limits.h> exists even on freestanding compilers. */
20741 # include <limits.h>
20743 # include <assert.h>
20748 /* Override any GCC internal prototype to avoid an error.
20749 Use char because int might match the return type of a GCC
20750 builtin and then its argument prototype would still apply. */
20755 /* The GNU C library defines this for functions which it implements
20756 to always fail with ENOSYS. Some functions are actually named
20757 something starting with __ and the normal name is an alias. */
20758 #if defined __stub_$ac_func || defined __stub___$ac_func
20765 return $ac_func ();
20770 rm -f conftest.$ac_objext conftest$ac_exeext
20771 if { (ac_try="$ac_link"
20772 case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_link") 2>conftest.er1
20779 grep -v '^ *+' conftest.er1 >conftest.err
20781 cat conftest.err >&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } &&
20784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20785 { (case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790 (eval "$ac_try") 2>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; } &&
20794 { ac_try='test -s conftest$ac_exeext'
20795 { (case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800 (eval "$ac_try") 2>&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; }; then
20804 eval "$as_ac_var=yes"
20806 echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20809 eval "$as_ac_var=no"
20812 rm -f core conftest.err conftest.$ac_objext \
20813 conftest$ac_exeext conftest.$ac_ext
20815 ac_res=`eval echo '${'$as_ac_var'}'`
20816 { echo "$as_me:$LINENO: result: $ac_res" >&5
20817 echo "${ECHO_T}$ac_res" >&6; }
20818 if test `eval echo '${'$as_ac_var'}'` = yes; then
20819 cat >>confdefs.h <<_ACEOF
20820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20827 SHLIBEXT=$libltdl_cv_shlibext
20830 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20833 # Translate the various configuration directories and other basic
20834 # information into substitutions that will end up in Makefile.config.in
20835 # that these configured values can be used by the makefiles
20836 if test "${prefix}" = "NONE" ; then
20837 prefix="/usr/local"
20839 eval LLVM_PREFIX="${prefix}";
20840 eval LLVM_BINDIR="${prefix}/bin";
20841 eval LLVM_LIBDIR="${prefix}/lib";
20842 eval LLVM_DATADIR="${prefix}/share/llvm";
20843 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20844 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20845 eval LLVM_INCLUDEDIR="${prefix}/include";
20846 eval LLVM_INFODIR="${prefix}/info";
20847 eval LLVM_MANDIR="${prefix}/man";
20848 LLVM_CONFIGTIME=`date`
20860 # Place the various directores into the config.h file as #defines so that we
20861 # can know about the installation paths within LLVM.
20863 cat >>confdefs.h <<_ACEOF
20864 #define LLVM_PREFIX "$LLVM_PREFIX"
20868 cat >>confdefs.h <<_ACEOF
20869 #define LLVM_BINDIR "$LLVM_BINDIR"
20873 cat >>confdefs.h <<_ACEOF
20874 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20878 cat >>confdefs.h <<_ACEOF
20879 #define LLVM_DATADIR "$LLVM_DATADIR"
20883 cat >>confdefs.h <<_ACEOF
20884 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20888 cat >>confdefs.h <<_ACEOF
20889 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20893 cat >>confdefs.h <<_ACEOF
20894 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20898 cat >>confdefs.h <<_ACEOF
20899 #define LLVM_INFODIR "$LLVM_INFODIR"
20903 cat >>confdefs.h <<_ACEOF
20904 #define LLVM_MANDIR "$LLVM_MANDIR"
20908 cat >>confdefs.h <<_ACEOF
20909 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20913 cat >>confdefs.h <<_ACEOF
20914 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20918 # Determine which bindings to build.
20919 if test "$BINDINGS_TO_BUILD" = auto ; then
20920 BINDINGS_TO_BUILD=""
20921 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20922 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20925 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20928 # This isn't really configurey, but it avoids having to repeat the list in
20933 # Do any work necessary to ensure that bindings have what they need.
20934 binding_prereqs_failed=0
20935 for a_binding in $BINDINGS_TO_BUILD ; do
20936 case "$a_binding" in
20938 if test "x$OCAMLC" = x ; then
20939 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20940 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20941 binding_prereqs_failed=1
20943 if test "x$OCAMLDEP" = x ; then
20944 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20945 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20946 binding_prereqs_failed=1
20948 if test "x$OCAMLOPT" = x ; then
20949 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20950 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20952 if test "x$with_ocaml_libdir" != xauto ; then
20953 OCAML_LIBDIR=$with_ocaml_libdir
20956 ocaml_stdlib="`"$OCAMLC" -where`"
20957 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20959 # ocaml stdlib is beneath our prefix; use stdlib
20960 OCAML_LIBDIR=$ocaml_stdlib
20963 # ocaml stdlib is outside our prefix; use libdir/ocaml
20964 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20971 if test "$binding_prereqs_failed" = 1 ; then
20972 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20973 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20974 { (exit 1); exit 1; }; }
20977 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20978 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20979 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 ac_cpp='$CXXCPP $CPPFLAGS'
20984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20988 oldcxxflags="$CXXFLAGS"
20989 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
20990 cat >conftest.$ac_ext <<_ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
20996 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21005 rm -f conftest.$ac_objext
21006 if { (ac_try="$ac_compile"
21007 case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_compile") 2>conftest.er1
21014 grep -v '^ *+' conftest.er1 >conftest.err
21016 cat conftest.err >&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } &&
21019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21020 { (case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_try") 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; } &&
21029 { ac_try='test -s conftest.$ac_objext'
21030 { (case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_try") 2>&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; }; then
21039 llvm_cv_cxx_visibility_inlines_hidden=yes
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21044 llvm_cv_cxx_visibility_inlines_hidden=no
21047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048 CXXFLAGS="$oldcxxflags"
21050 ac_cpp='$CPP $CPPFLAGS'
21051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21057 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21058 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21059 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21060 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21063 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21068 if test "$llvm_cv_link_use_r" = "yes" ; then
21075 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21076 RDYNAMIC="-Wl,-export-dynamic"
21083 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21090 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21092 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21094 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21096 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21098 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21101 ac_config_files="$ac_config_files Makefile.config"
21104 ac_config_files="$ac_config_files llvm.spec"
21107 ac_config_files="$ac_config_files docs/doxygen.cfg"
21109 if test -f ${srcdir}/tools/clang/README.txt; then
21110 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21114 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21117 ac_config_commands="$ac_config_commands setup"
21119 ac_config_commands="$ac_config_commands Makefile"
21122 ac_config_commands="$ac_config_commands Makefile.common"
21125 ac_config_commands="$ac_config_commands examples/Makefile"
21128 ac_config_commands="$ac_config_commands lib/Makefile"
21131 ac_config_commands="$ac_config_commands runtime/Makefile"
21134 ac_config_commands="$ac_config_commands test/Makefile"
21137 ac_config_commands="$ac_config_commands test/Makefile.tests"
21140 ac_config_commands="$ac_config_commands unittests/Makefile"
21143 ac_config_commands="$ac_config_commands tools/Makefile"
21146 ac_config_commands="$ac_config_commands utils/Makefile"
21149 ac_config_commands="$ac_config_commands projects/Makefile"
21152 ac_config_commands="$ac_config_commands bindings/Makefile"
21155 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21159 cat >confcache <<\_ACEOF
21160 # This file is a shell script that caches the results of configure
21161 # tests run on this system so they can be shared between configure
21162 # scripts and configure runs, see configure's option --config-cache.
21163 # It is not useful on other systems. If it contains results you don't
21164 # want to keep, you may remove or edit it.
21166 # config.status only pays attention to the cache file if you give it
21167 # the --recheck option to rerun configure.
21169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21171 # following values.
21175 # The following way of writing the cache mishandles newlines in values,
21176 # but we know of no workaround that is simple, portable, and efficient.
21177 # So, we kill variables containing newlines.
21178 # Ultrix sh set writes to stderr and can't be redirected directly,
21179 # and sets the high bit in the cache file unless we assign to the vars.
21181 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21182 eval ac_val=\$$ac_var
21186 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21187 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21190 _ | IFS | as_nl) ;; #(
21191 *) $as_unset $ac_var ;;
21197 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21198 *${as_nl}ac_space=\ *)
21199 # `set' does not quote correctly, so add quotes (double-quote
21200 # substitution turns \\\\ into \\, and sed turns \\ into \).
21203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21206 # `set' quotes correctly as required by POSIX, so do not add quotes.
21207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21216 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21218 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21220 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21221 if test -w "$cache_file"; then
21222 test "x$cache_file" != "x/dev/null" &&
21223 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21224 echo "$as_me: updating cache $cache_file" >&6;}
21225 cat confcache >$cache_file
21227 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21228 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21233 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21234 # Let make expand exec_prefix.
21235 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21237 DEFS=-DHAVE_CONFIG_H
21241 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21242 # 1. Remove the extension, and $U if already installed.
21243 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21244 ac_i=`echo "$ac_i" | sed "$ac_script"`
21245 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21246 # will be set to the directory where LIBOBJS objects are built.
21247 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21248 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21250 LIBOBJS=$ac_libobjs
21252 LTLIBOBJS=$ac_ltlibobjs
21255 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21256 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21257 Usually this means the macro was only invoked conditionally." >&5
21258 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21259 Usually this means the macro was only invoked conditionally." >&2;}
21260 { (exit 1); exit 1; }; }
21262 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21263 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21264 Usually this means the macro was only invoked conditionally." >&5
21265 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21266 Usually this means the macro was only invoked conditionally." >&2;}
21267 { (exit 1); exit 1; }; }
21270 : ${CONFIG_STATUS=./config.status}
21271 ac_clean_files_save=$ac_clean_files
21272 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21273 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21274 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21275 cat >$CONFIG_STATUS <<_ACEOF
21277 # Generated by $as_me.
21278 # Run this file to recreate the current configuration.
21279 # Compiler output produced by configure, useful for debugging
21280 # configure, is in config.log if it exists.
21283 ac_cs_recheck=false
21285 SHELL=\${CONFIG_SHELL-$SHELL}
21288 cat >>$CONFIG_STATUS <<\_ACEOF
21289 ## --------------------- ##
21290 ## M4sh Initialization. ##
21291 ## --------------------- ##
21293 # Be Bourne compatible
21294 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21297 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21298 # is contrary to our usage. Disable this feature.
21299 alias -g '${1+"$@"}'='"$@"'
21300 setopt NO_GLOB_SUBST
21302 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21304 BIN_SH=xpg4; export BIN_SH # for Tru64
21305 DUALCASE=1; export DUALCASE # for MKS sh
21309 # Avoid depending upon Character Ranges.
21310 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21311 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21312 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21313 as_cr_digits='0123456789'
21314 as_cr_alnum=$as_cr_Letters$as_cr_digits
21316 # The user is always right.
21317 if test "${PATH_SEPARATOR+set}" != set; then
21318 echo "#! /bin/sh" >conf$$.sh
21319 echo "exit 0" >>conf$$.sh
21321 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21329 # Support unset when possible.
21330 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21338 # We need space, tab and new line, in precisely that order. Quoting is
21339 # there to prevent editors from complaining about space-tab.
21340 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21341 # splitting by setting IFS to empty value.)
21346 # Find who we are. Look in the path if we contain no directory separator.
21348 *[\\/]* ) as_myself=$0 ;;
21349 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21350 for as_dir in $PATH
21353 test -z "$as_dir" && as_dir=.
21354 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21360 # We did not find ourselves, most probably we were run as `sh COMMAND'
21361 # in which case we are not to be found in the path.
21362 if test "x$as_myself" = x; then
21365 if test ! -f "$as_myself"; then
21366 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21367 { (exit 1); exit 1; }
21370 # Work around bugs in pre-3.0 UWIN ksh.
21371 for as_var in ENV MAIL MAILPATH
21372 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21380 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21381 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21382 LC_TELEPHONE LC_TIME
21384 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21385 eval $as_var=C; export $as_var
21387 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21391 # Required to use basename.
21392 if expr a : '\(a\)' >/dev/null 2>&1 &&
21393 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21399 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21400 as_basename=basename
21406 # Name of the executable.
21407 as_me=`$as_basename -- "$0" ||
21408 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21409 X"$0" : 'X\(//\)$' \| \
21410 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21412 sed '/^.*\/\([^/][^/]*\)\/*$/{
21431 as_lineno_1=$LINENO
21432 as_lineno_2=$LINENO
21433 test "x$as_lineno_1" != "x$as_lineno_2" &&
21434 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21436 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21437 # uniformly replaced by the line number. The first 'sed' inserts a
21438 # line-number line after each line using $LINENO; the second 'sed'
21439 # does the real work. The second script uses 'N' to pair each
21440 # line-number line with the line containing $LINENO, and appends
21441 # trailing '-' during substitution so that $LINENO is not a special
21442 # case at line end.
21443 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21444 # scripts with optimization help from Paolo Bonzini. Blame Lee
21445 # E. McMahon (1931-1989) for sed's syntax. :-)
21457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21460 ' >$as_me.lineno &&
21461 chmod +x "$as_me.lineno" ||
21462 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21463 { (exit 1); exit 1; }; }
21465 # Don't try to exec as it changes $[0], causing all sort of problems
21466 # (the dirname of $[0] is not the place where we might find the
21467 # original and so on. Autoconf is especially sensitive to this).
21468 . "./$as_me.lineno"
21469 # Exit status is that of the last command.
21474 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21480 ECHO_C= ECHO_N= ECHO_T=
21481 case `echo -n x` in
21483 case `echo 'x\c'` in
21484 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21491 if expr a : '\(a\)' >/dev/null 2>&1 &&
21492 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21498 rm -f conf$$ conf$$.exe conf$$.file
21499 if test -d conf$$.dir; then
21500 rm -f conf$$.dir/conf$$.file
21506 if ln -s conf$$.file conf$$ 2>/dev/null; then
21508 # ... but there are two gotchas:
21509 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21510 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21511 # In both cases, we have to default to `cp -p'.
21512 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21514 elif ln conf$$.file conf$$ 2>/dev/null; then
21519 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21520 rmdir conf$$.dir 2>/dev/null
21522 if mkdir -p . 2>/dev/null; then
21525 test -d ./-p && rmdir ./-p
21529 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21530 # systems may use methods other than mode bits to determine executability.
21531 cat >conf$$.file <<_ASEOF
21535 chmod +x conf$$.file
21536 if test -x conf$$.file >/dev/null 2>&1; then
21537 as_executable_p="test -x"
21543 # Sed expression to map a string onto a valid CPP name.
21544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21546 # Sed expression to map a string onto a valid variable name.
21547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21552 # Save the log message, to keep $[0] and so on meaningful, and to
21553 # report actual input values of CONFIG_FILES etc. instead of their
21554 # values after options handling.
21556 This file was extended by LLVM $as_me 3.1svn, which was
21557 generated by GNU Autoconf 2.60. Invocation command line was
21559 CONFIG_FILES = $CONFIG_FILES
21560 CONFIG_HEADERS = $CONFIG_HEADERS
21561 CONFIG_LINKS = $CONFIG_LINKS
21562 CONFIG_COMMANDS = $CONFIG_COMMANDS
21565 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21570 cat >>$CONFIG_STATUS <<_ACEOF
21571 # Files that config.status was made for.
21572 config_files="$ac_config_files"
21573 config_headers="$ac_config_headers"
21574 config_commands="$ac_config_commands"
21578 cat >>$CONFIG_STATUS <<\_ACEOF
21580 \`$as_me' instantiates files from templates according to the
21581 current configuration.
21583 Usage: $0 [OPTIONS] [FILE]...
21585 -h, --help print this help, then exit
21586 -V, --version print version number, then exit
21587 -q, --quiet do not print progress messages
21588 -d, --debug don't remove temporary files
21589 --recheck update $as_me by reconfiguring in the same conditions
21590 --file=FILE[:TEMPLATE]
21591 instantiate the configuration file FILE
21592 --header=FILE[:TEMPLATE]
21593 instantiate the configuration header FILE
21595 Configuration files:
21598 Configuration headers:
21601 Configuration commands:
21604 Report bugs to <bug-autoconf@gnu.org>."
21607 cat >>$CONFIG_STATUS <<_ACEOF
21609 LLVM config.status 3.1svn
21610 configured by $0, generated by GNU Autoconf 2.60,
21611 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21613 Copyright (C) 2006 Free Software Foundation, Inc.
21614 This config.status script is free software; the Free Software Foundation
21615 gives unlimited permission to copy, distribute and modify it."
21622 cat >>$CONFIG_STATUS <<\_ACEOF
21623 # If no file are specified by the user, then we need to provide default
21624 # value. By we need to know if files were specified by the user.
21630 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21631 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21642 # Handling of the options.
21643 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21645 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21646 echo "$ac_cs_version"; exit ;;
21647 --debug | --debu | --deb | --de | --d | -d )
21649 --file | --fil | --fi | --f )
21651 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21652 ac_need_defaults=false;;
21653 --header | --heade | --head | --hea )
21655 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21656 ac_need_defaults=false;;
21658 # Conflict between --help and --header
21659 { echo "$as_me: error: ambiguous option: $1
21660 Try \`$0 --help' for more information." >&2
21661 { (exit 1); exit 1; }; };;
21662 --help | --hel | -h )
21663 echo "$ac_cs_usage"; exit ;;
21664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21665 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21668 # This is an error.
21669 -*) { echo "$as_me: error: unrecognized option: $1
21670 Try \`$0 --help' for more information." >&2
21671 { (exit 1); exit 1; }; } ;;
21673 *) ac_config_targets="$ac_config_targets $1"
21674 ac_need_defaults=false ;;
21680 ac_configure_extra_args=
21682 if $ac_cs_silent; then
21684 ac_configure_extra_args="$ac_configure_extra_args --silent"
21688 cat >>$CONFIG_STATUS <<_ACEOF
21689 if \$ac_cs_recheck; then
21690 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21691 CONFIG_SHELL=$SHELL
21692 export CONFIG_SHELL
21693 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21697 cat >>$CONFIG_STATUS <<\_ACEOF
21701 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21702 ## Running $as_me. ##
21708 cat >>$CONFIG_STATUS <<_ACEOF
21712 llvm_src="${srcdir}"
21716 cat >>$CONFIG_STATUS <<\_ACEOF
21718 # Handling of arguments.
21719 for ac_config_target in $ac_config_targets
21721 case $ac_config_target in
21722 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21723 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21724 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21725 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21726 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21727 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21728 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21729 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21730 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21731 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21732 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21733 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21734 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21735 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21736 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21737 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21738 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21739 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21740 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21741 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21742 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21743 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21744 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21745 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21746 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21747 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21749 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21750 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21751 { (exit 1); exit 1; }; };;
21756 # If the user did not use the arguments to specify the items to instantiate,
21757 # then the envvar interface is used. Set only those that are not.
21758 # We use the long form for the default assignment because of an extremely
21759 # bizarre bug on SunOS 4.1.3.
21760 if $ac_need_defaults; then
21761 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21762 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21763 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21766 # Have a temporary directory for convenience. Make it in the build tree
21767 # simply because there is no reason against having it here, and in addition,
21768 # creating and moving files from /tmp can sometimes cause problems.
21769 # Hook for its removal unless debugging.
21770 # Note that there is a small window in which the directory will not be cleaned:
21771 # after its creation but before its name has been assigned to `$tmp'.
21775 trap 'exit_status=$?
21776 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21778 trap '{ (exit 1); exit 1; }' 1 2 13 15
21780 # Create a (secure) tmp directory for tmp files.
21783 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21784 test -n "$tmp" && test -d "$tmp"
21787 tmp=./conf$$-$RANDOM
21788 (umask 077 && mkdir "$tmp")
21791 echo "$me: cannot create a temporary directory in ." >&2
21792 { (exit 1); exit 1; }
21796 # Set up the sed scripts for CONFIG_FILES section.
21799 # No need to generate the scripts if there are no CONFIG_FILES.
21800 # This happens for instance when ./config.status config.h
21801 if test -n "$CONFIG_FILES"; then
21808 for ac_last_try in false false false false false :; do
21809 cat >conf$$subs.sed <<_ACEOF
21810 SHELL!$SHELL$ac_delim
21811 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21812 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21813 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21814 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21815 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21816 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21817 exec_prefix!$exec_prefix$ac_delim
21818 prefix!$prefix$ac_delim
21819 program_transform_name!$program_transform_name$ac_delim
21820 bindir!$bindir$ac_delim
21821 sbindir!$sbindir$ac_delim
21822 libexecdir!$libexecdir$ac_delim
21823 datarootdir!$datarootdir$ac_delim
21824 datadir!$datadir$ac_delim
21825 sysconfdir!$sysconfdir$ac_delim
21826 sharedstatedir!$sharedstatedir$ac_delim
21827 localstatedir!$localstatedir$ac_delim
21828 includedir!$includedir$ac_delim
21829 oldincludedir!$oldincludedir$ac_delim
21830 docdir!$docdir$ac_delim
21831 infodir!$infodir$ac_delim
21832 htmldir!$htmldir$ac_delim
21833 dvidir!$dvidir$ac_delim
21834 pdfdir!$pdfdir$ac_delim
21835 psdir!$psdir$ac_delim
21836 libdir!$libdir$ac_delim
21837 localedir!$localedir$ac_delim
21838 mandir!$mandir$ac_delim
21839 DEFS!$DEFS$ac_delim
21840 ECHO_C!$ECHO_C$ac_delim
21841 ECHO_N!$ECHO_N$ac_delim
21842 ECHO_T!$ECHO_T$ac_delim
21843 LIBS!$LIBS$ac_delim
21844 build_alias!$build_alias$ac_delim
21845 host_alias!$host_alias$ac_delim
21846 target_alias!$target_alias$ac_delim
21847 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21849 CFLAGS!$CFLAGS$ac_delim
21850 LDFLAGS!$LDFLAGS$ac_delim
21851 CPPFLAGS!$CPPFLAGS$ac_delim
21852 ac_ct_CC!$ac_ct_CC$ac_delim
21853 EXEEXT!$EXEEXT$ac_delim
21854 OBJEXT!$OBJEXT$ac_delim
21856 CXXFLAGS!$CXXFLAGS$ac_delim
21857 ac_ct_CXX!$ac_ct_CXX$ac_delim
21859 subdirs!$subdirs$ac_delim
21860 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21861 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21862 build!$build$ac_delim
21863 build_cpu!$build_cpu$ac_delim
21864 build_vendor!$build_vendor$ac_delim
21865 build_os!$build_os$ac_delim
21866 host!$host$ac_delim
21867 host_cpu!$host_cpu$ac_delim
21868 host_vendor!$host_vendor$ac_delim
21869 host_os!$host_os$ac_delim
21870 target!$target$ac_delim
21871 target_cpu!$target_cpu$ac_delim
21872 target_vendor!$target_vendor$ac_delim
21873 target_os!$target_os$ac_delim
21875 HOST_OS!$HOST_OS$ac_delim
21876 TARGET_OS!$TARGET_OS$ac_delim
21877 LINKALL!$LINKALL$ac_delim
21878 NOLINKALL!$NOLINKALL$ac_delim
21879 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21880 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21881 ARCH!$ARCH$ac_delim
21882 ENDIAN!$ENDIAN$ac_delim
21883 GREP!$GREP$ac_delim
21884 EGREP!$EGREP$ac_delim
21885 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21886 BUILD_CC!$BUILD_CC$ac_delim
21887 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21888 BUILD_CXX!$BUILD_CXX$ac_delim
21889 CVSBUILD!$CVSBUILD$ac_delim
21890 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21891 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21892 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21893 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21894 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21895 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21896 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21897 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21899 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21900 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21901 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21902 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21903 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21904 ENABLE_PIC!$ENABLE_PIC$ac_delim
21905 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21906 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21909 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21911 elif $ac_last_try; then
21912 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21913 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21914 { (exit 1); exit 1; }; }
21916 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21920 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21921 if test -n "$ac_eof"; then
21922 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21923 ac_eof=`expr $ac_eof + 1`
21926 cat >>$CONFIG_STATUS <<_ACEOF
21927 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21931 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21932 s/^/s,@/; s/!/@,|#_!!_#|/
21935 s/'"$ac_delim"'$/,g/; t
21937 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21938 ' >>$CONFIG_STATUS <conf$$subs.sed
21939 rm -f conf$$subs.sed
21940 cat >>$CONFIG_STATUS <<_ACEOF
21946 for ac_last_try in false false false false false :; do
21947 cat >conf$$subs.sed <<_ACEOF
21948 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21949 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21950 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21951 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21952 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21953 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21954 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21955 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21956 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21957 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21958 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21959 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21960 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21962 ifGNUmake!$ifGNUmake$ac_delim
21963 LN_S!$LN_S$ac_delim
21966 DATE!$DATE$ac_delim
21967 FIND!$FIND$ac_delim
21968 MKDIR!$MKDIR$ac_delim
21970 RANLIB!$RANLIB$ac_delim
21975 BINPWD!$BINPWD$ac_delim
21976 GRAPHVIZ!$GRAPHVIZ$ac_delim
21979 NEATO!$NEATO$ac_delim
21980 TWOPI!$TWOPI$ac_delim
21981 CIRCO!$CIRCO$ac_delim
21983 DOTTY!$DOTTY$ac_delim
21984 XDOT_PY!$XDOT_PY$ac_delim
21985 PERL!$PERL$ac_delim
21986 HAVE_PERL!$HAVE_PERL$ac_delim
21987 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21988 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21989 INSTALL_DATA!$INSTALL_DATA$ac_delim
21990 BZIP2!$BZIP2$ac_delim
21992 DOXYGEN!$DOXYGEN$ac_delim
21993 GROFF!$GROFF$ac_delim
21994 GZIPBIN!$GZIPBIN$ac_delim
21995 POD2HTML!$POD2HTML$ac_delim
21996 POD2MAN!$POD2MAN$ac_delim
21997 PDFROFF!$PDFROFF$ac_delim
21998 RUNTEST!$RUNTEST$ac_delim
21999 TCLSH!$TCLSH$ac_delim
22001 OCAMLC!$OCAMLC$ac_delim
22002 OCAMLOPT!$OCAMLOPT$ac_delim
22003 OCAMLDEP!$OCAMLDEP$ac_delim
22004 OCAMLDOC!$OCAMLDOC$ac_delim
22006 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22007 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22008 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22009 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22010 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22011 LIBADD_DL!$LIBADD_DL$ac_delim
22012 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22013 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22014 USE_UDIS86!$USE_UDIS86$ac_delim
22015 USE_OPROFILE!$USE_OPROFILE$ac_delim
22016 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22017 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22018 MMAP_FILE!$MMAP_FILE$ac_delim
22019 SHLIBEXT!$SHLIBEXT$ac_delim
22020 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22021 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22022 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22023 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22024 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22025 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22026 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22027 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22028 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22029 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22030 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22031 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22032 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22033 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22034 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22035 RPATH!$RPATH$ac_delim
22036 RDYNAMIC!$RDYNAMIC$ac_delim
22037 LIBOBJS!$LIBOBJS$ac_delim
22038 LTLIBOBJS!$LTLIBOBJS$ac_delim
22041 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22043 elif $ac_last_try; then
22044 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22045 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22046 { (exit 1); exit 1; }; }
22048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22052 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22053 if test -n "$ac_eof"; then
22054 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22055 ac_eof=`expr $ac_eof + 1`
22058 cat >>$CONFIG_STATUS <<_ACEOF
22059 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22063 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22064 s/^/s,@/; s/!/@,|#_!!_#|/
22067 s/'"$ac_delim"'$/,g/; t
22069 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22070 ' >>$CONFIG_STATUS <conf$$subs.sed
22071 rm -f conf$$subs.sed
22072 cat >>$CONFIG_STATUS <<_ACEOF
22079 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22080 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22081 # trailing colons and then remove the whole line if VPATH becomes empty
22082 # (actually we leave an empty line to preserve line numbers).
22083 if test "x$srcdir" = x.; then
22084 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22085 s/:*\$(srcdir):*/:/
22086 s/:*\${srcdir}:*/:/
22088 s/^\([^=]*=[ ]*\):*/\1/
22094 cat >>$CONFIG_STATUS <<\_ACEOF
22095 fi # test -n "$CONFIG_FILES"
22098 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22101 :[FHLC]) ac_mode=$ac_tag; continue;;
22103 case $ac_mode$ac_tag in
22105 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22106 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22107 { (exit 1); exit 1; }; };;
22108 :[FH]-) ac_tag=-:-;;
22109 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22126 -) ac_f="$tmp/stdin";;
22127 *) # Look for the file first in the build tree, then in the source tree
22128 # (if the path is not absolute). The absolute path cannot be DOS-style,
22129 # because $ac_f cannot contain `:'.
22133 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22135 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22136 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22137 { (exit 1); exit 1; }; };;
22139 ac_file_inputs="$ac_file_inputs $ac_f"
22142 # Let's still pretend it is `configure' which instantiates (i.e., don't
22143 # use $as_me), people would be surprised to read:
22144 # /* config.h. Generated by config.status. */
22145 configure_input="Generated from "`IFS=:
22146 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22147 if test x"$ac_file" != x-; then
22148 configure_input="$ac_file. $configure_input"
22149 { echo "$as_me:$LINENO: creating $ac_file" >&5
22150 echo "$as_me: creating $ac_file" >&6;}
22154 *:-:* | *:-) cat >"$tmp/stdin";;
22159 ac_dir=`$as_dirname -- "$ac_file" ||
22160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22161 X"$ac_file" : 'X\(//\)[^/]' \| \
22162 X"$ac_file" : 'X\(//\)$' \| \
22163 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22169 /^X\(\/\/\)[^/].*/{
22184 -*) as_dir=./$as_dir;;
22186 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22190 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22191 *) as_qdir=$as_dir;;
22193 as_dirs="'$as_qdir' $as_dirs"
22194 as_dir=`$as_dirname -- "$as_dir" ||
22195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22196 X"$as_dir" : 'X\(//\)[^/]' \| \
22197 X"$as_dir" : 'X\(//\)$' \| \
22198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22204 /^X\(\/\/\)[^/].*/{
22217 test -d "$as_dir" && break
22219 test -z "$as_dirs" || eval "mkdir $as_dirs"
22220 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22221 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22222 { (exit 1); exit 1; }; }; }
22226 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22229 # A ".." for each directory in $ac_dir_suffix.
22230 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22231 case $ac_top_builddir_sub in
22232 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22233 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22236 ac_abs_top_builddir=$ac_pwd
22237 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22238 # for backward compatibility:
22239 ac_top_builddir=$ac_top_build_prefix
22242 .) # We are building in place.
22244 ac_top_srcdir=$ac_top_builddir_sub
22245 ac_abs_top_srcdir=$ac_pwd ;;
22246 [\\/]* | ?:[\\/]* ) # Absolute name.
22247 ac_srcdir=$srcdir$ac_dir_suffix;
22248 ac_top_srcdir=$srcdir
22249 ac_abs_top_srcdir=$srcdir ;;
22250 *) # Relative name.
22251 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22252 ac_top_srcdir=$ac_top_build_prefix$srcdir
22253 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22255 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22265 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22266 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22270 cat >>$CONFIG_STATUS <<\_ACEOF
22271 # If the template does not know about datarootdir, expand it.
22272 # FIXME: This hack should be removed a few years after 2.60.
22273 ac_datarootdir_hack=; ac_datarootdir_seen=
22275 case `sed -n '/datarootdir/ {
22284 ' $ac_file_inputs` in
22285 *datarootdir*) ac_datarootdir_seen=yes;;
22286 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22287 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22288 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22290 cat >>$CONFIG_STATUS <<_ACEOF
22291 ac_datarootdir_hack='
22292 s&@datadir@&$datadir&g
22293 s&@docdir@&$docdir&g
22294 s&@infodir@&$infodir&g
22295 s&@localedir@&$localedir&g
22296 s&@mandir@&$mandir&g
22297 s&\\\${datarootdir}&$datarootdir&g' ;;
22301 # Neutralize VPATH when `$srcdir' = `.'.
22302 # Shell code in configure.ac might set extrasub.
22303 # FIXME: do we really want to maintain this feature?
22304 cat >>$CONFIG_STATUS <<_ACEOF
22308 cat >>$CONFIG_STATUS <<\_ACEOF
22310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22311 s&@configure_input@&$configure_input&;t t
22312 s&@top_builddir@&$ac_top_builddir_sub&;t t
22313 s&@srcdir@&$ac_srcdir&;t t
22314 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22315 s&@top_srcdir@&$ac_top_srcdir&;t t
22316 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22317 s&@builddir@&$ac_builddir&;t t
22318 s&@abs_builddir@&$ac_abs_builddir&;t t
22319 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22320 s&@INSTALL@&$ac_INSTALL&;t t
22321 $ac_datarootdir_hack
22322 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22324 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22325 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22326 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22327 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22328 which seems to be undefined. Please make sure it is defined." >&5
22329 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22330 which seems to be undefined. Please make sure it is defined." >&2;}
22334 -) cat "$tmp/out"; rm -f "$tmp/out";;
22335 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22344 # Transform confdefs.h into a sed script `conftest.defines', that
22345 # substitutes the proper values into config.h.in to produce config.h.
22346 rm -f conftest.defines conftest.tail
22347 # First, append a space to every undef/define line, to ease matching.
22348 echo 's/$/ /' >conftest.defines
22349 # Then, protect against being on the right side of a sed subst, or in
22350 # an unquoted here document, in config.status. If some macros were
22351 # called several times there might be several #defines for the same
22352 # symbol, which is useless. But do not sort them, since the last
22353 # AC_DEFINE must be honored.
22354 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22355 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22356 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22357 # PARAMS is the parameter list in the macro definition--in most cases, it's
22358 # just an empty string.
22359 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22360 ac_dB='\\)[ (].*,\\1define\\2'
22368 s/^[ ]*#[ ]*define[ ][ ]*//
22373 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22374 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22375 ' >>conftest.defines
22377 # Remove the space that was appended to ease matching.
22378 # Then replace #undef with comments. This is necessary, for
22379 # example, in the case of _POSIX_SOURCE, which is predefined and required
22380 # on some systems where configure will not decide to define it.
22381 # (The regexp can be short, since the line contains either #define or #undef.)
22383 s,^[ #]*u.*,/* & */,' >>conftest.defines
22385 # Break up conftest.defines:
22386 ac_max_sed_lines=50
22388 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22389 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22390 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22392 ac_in='$ac_file_inputs'
22393 ac_out='"$tmp/out1"'
22394 ac_nxt='"$tmp/out2"'
22398 # Write a here document:
22399 cat >>$CONFIG_STATUS <<_ACEOF
22400 # First, check the format of the line:
22401 cat >"\$tmp/defines.sed" <<\\CEOF
22402 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22403 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22407 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22409 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22410 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22411 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22412 grep . conftest.tail >/dev/null || break
22413 rm -f conftest.defines
22414 mv conftest.tail conftest.defines
22416 rm -f conftest.defines conftest.tail
22418 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22419 cat >>$CONFIG_STATUS <<\_ACEOF
22420 if test x"$ac_file" != x-; then
22421 echo "/* $configure_input */" >"$tmp/config.h"
22422 cat "$ac_result" >>"$tmp/config.h"
22423 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22424 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22425 echo "$as_me: $ac_file is unchanged" >&6;}
22428 mv "$tmp/config.h" $ac_file
22431 echo "/* $configure_input */"
22437 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22438 echo "$as_me: executing $ac_file commands" >&6;}
22443 case $ac_file$ac_mode in
22444 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22445 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22446 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22447 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22448 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22449 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22450 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22451 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22452 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22453 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22454 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22455 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22456 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22457 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22458 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22459 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22460 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22461 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22462 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22463 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22464 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22465 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22466 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22467 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22468 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22469 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22475 { (exit 0); exit 0; }
22477 chmod +x $CONFIG_STATUS
22478 ac_clean_files=$ac_clean_files_save
22481 # configure is writing to config.log, and then calls config.status.
22482 # config.status does its own redirection, appending to config.log.
22483 # Unfortunately, on DOS this fails, as config.log is still kept open
22484 # by configure, so config.status won't be able to write to it; its
22485 # output is simply discarded. So we exec the FD to /dev/null,
22486 # effectively closing config.log, so it can be properly (re)opened and
22487 # appended to by config.status. When coming back to configure, we
22488 # need to make the FD available again.
22489 if test "$no_create" != yes; then
22491 ac_config_status_args=
22492 test "$silent" = yes &&
22493 ac_config_status_args="$ac_config_status_args --quiet"
22495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22498 # would make configure fail if this is the last instruction.
22499 $ac_cs_success || { (exit 1); exit 1; }
22503 # CONFIG_SUBDIRS section.
22505 if test "$no_recursion" != yes; then
22507 # Remove --cache-file and --srcdir arguments so they do not pile up.
22508 ac_sub_configure_args=
22510 eval "set x $ac_configure_args"
22514 if test -n "$ac_prev"; then
22519 -cache-file | --cache-file | --cache-fil | --cache-fi \
22520 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22521 ac_prev=cache_file ;;
22522 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22523 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22526 --config-cache | -C)
22528 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22530 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22532 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22534 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22538 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22540 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22544 # Always prepend --prefix to ensure using the same prefix
22545 # in subdir configurations.
22546 ac_arg="--prefix=$prefix"
22548 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22550 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22553 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22555 # Do not complain, so a configure script can configure whichever
22556 # parts of a large source tree are present.
22557 test -d "$srcdir/$ac_dir" || continue
22559 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22560 echo "$as_me:$LINENO: $ac_msg" >&5
22564 -*) as_dir=./$as_dir;;
22566 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22570 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22571 *) as_qdir=$as_dir;;
22573 as_dirs="'$as_qdir' $as_dirs"
22574 as_dir=`$as_dirname -- "$as_dir" ||
22575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22576 X"$as_dir" : 'X\(//\)[^/]' \| \
22577 X"$as_dir" : 'X\(//\)$' \| \
22578 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22584 /^X\(\/\/\)[^/].*/{
22597 test -d "$as_dir" && break
22599 test -z "$as_dirs" || eval "mkdir $as_dirs"
22600 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22601 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22602 { (exit 1); exit 1; }; }; }
22606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22608 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22609 # A ".." for each directory in $ac_dir_suffix.
22610 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22611 case $ac_top_builddir_sub in
22612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22616 ac_abs_top_builddir=$ac_pwd
22617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22618 # for backward compatibility:
22619 ac_top_builddir=$ac_top_build_prefix
22622 .) # We are building in place.
22624 ac_top_srcdir=$ac_top_builddir_sub
22625 ac_abs_top_srcdir=$ac_pwd ;;
22626 [\\/]* | ?:[\\/]* ) # Absolute name.
22627 ac_srcdir=$srcdir$ac_dir_suffix;
22628 ac_top_srcdir=$srcdir
22629 ac_abs_top_srcdir=$srcdir ;;
22630 *) # Relative name.
22631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22632 ac_top_srcdir=$ac_top_build_prefix$srcdir
22633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22640 # Check for guested configure; otherwise get Cygnus style configure.
22641 if test -f "$ac_srcdir/configure.gnu"; then
22642 ac_sub_configure=$ac_srcdir/configure.gnu
22643 elif test -f "$ac_srcdir/configure"; then
22644 ac_sub_configure=$ac_srcdir/configure
22645 elif test -f "$ac_srcdir/configure.in"; then
22646 # This should be Cygnus configure.
22647 ac_sub_configure=$ac_aux_dir/configure
22649 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22650 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22654 # The recursion is here.
22655 if test -n "$ac_sub_configure"; then
22656 # Make the cache file name correct relative to the subdirectory.
22657 case $cache_file in
22658 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22659 *) # Relative name.
22660 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22663 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22664 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22665 # The eval makes quoting arguments work.
22666 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22667 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22668 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22669 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22670 { (exit 1); exit 1; }; }