2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.9svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2010 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='2.9svn'
565 PACKAGE_STRING='llvm 2.9svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
683 ENABLE_EXPENSIVE_CHECKS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
753 HAVE_LINK_VERSION_SCRIPT
756 CONVENIENCE_LTDL_TRUE
757 CONVENIENCE_LTDL_FALSE
765 NO_MISSING_FIELD_INITIALIZERS
790 ENABLE_VISIBILITY_INLINES_HIDDEN
796 ac_precious_vars='build_alias
807 ac_subdirs_all='projects/llvm-gcc
811 projects/llvm-poolalloc
814 projects/llvm-stacker
819 projects/llvm-kernel'
821 # Initialize some variables set by options.
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name=s,x,x,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 -enable-* | --enable-*)
941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
962 -help | --help | --hel | --he | -h)
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 sbindir=$ac_optarg ;;
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 sharedstatedir=$ac_optarg ;;
1109 -site | --site | --sit)
1111 -site=* | --site=* | --sit=*)
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
1156 # Obsolete; use --with-x.
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
1204 # Be sure to have absolute directory names.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of llvm 2.9svn:";;
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1398 --enable-expensive-checks
1399 Compile with expensive debug checks enabled (default
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
1405 --enable-jit Enable Just In Time Compiling (default is YES)
1406 --enable-doxygen Build doxygen documentation (default is NO)
1407 --enable-threads Use threads if available (default is YES)
1408 --enable-pic Build LLVM with Position Independent Code (default
1410 --enable-shared Build a shared library and link tools against it
1412 --enable-timestamps Enable embedding timestamp information in build
1414 --enable-targets Build specific host targets: all or
1415 target1,target2,... Valid targets are: host, x86,
1416 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1417 pic16, xcore, msp430, systemz, blackfin, ptx, cbe,
1418 and cpp (default=all)
1419 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1421 --enable-bindings Build specific language bindings:
1422 all,auto,none,{binding-name} (default=auto)
1423 --enable-libffi Check for the presence of libffi (default is NO)
1424 --enable-ltdl-install install libltdl
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1431 --with-llvmgcc Specify location of llvm-gcc driver (default
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1435 --with-clang Specify location of clang compiler (default is
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1439 --with-optimize-option Select the compiler options to use for optimized
1441 --with-extra-options Specify additional options to compile LLVM with
1442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 --with-c-include-dirs Colon separated list of directories clang will
1446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
1452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
1454 --with-tclinclude directory where tcl headers are
1455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
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>
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" || continue
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1503 .) # We are building in place.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 llvm configure 2.9svn
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-2010 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 2.9svn, 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-2010 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; }; }
1956 if test -d ${srcdir}/projects/llvm-gcc ; then
1957 subdirs="$subdirs projects/llvm-gcc"
1961 if test -d ${srcdir}/projects/test-suite ; then
1962 subdirs="$subdirs projects/test-suite"
1966 if test -d ${srcdir}/projects/llvm-test ; then
1967 subdirs="$subdirs projects/llvm-test"
1971 if test -d ${srcdir}/projects/poolalloc ; then
1972 subdirs="$subdirs projects/poolalloc"
1976 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977 subdirs="$subdirs projects/llvm-poolalloc"
1981 for i in `ls ${srcdir}/projects`
1983 if test -d ${srcdir}/projects/${i} ; then
1985 sample) subdirs="$subdirs projects/sample"
1987 privbracket) subdirs="$subdirs projects/privbracket"
1989 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1991 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1993 llvm-java) subdirs="$subdirs projects/llvm-java"
1995 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1997 safecode) subdirs="$subdirs projects/safecode"
1999 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2007 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2008 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2015 # Make sure we can run config.sub.
2016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2017 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019 { (exit 1); exit 1; }; }
2021 { echo "$as_me:$LINENO: checking build system type" >&5
2022 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023 if test "${ac_cv_build+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 ac_build_alias=$build_alias
2027 test "x$ac_build_alias" = x &&
2028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029 test "x$ac_build_alias" = x &&
2030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032 { (exit 1); exit 1; }; }
2033 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2039 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 echo "${ECHO_T}$ac_cv_build" >&6; }
2041 case $ac_cv_build in
2043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044 echo "$as_me: error: invalid value of canonical build" >&2;}
2045 { (exit 1); exit 1; }; };;
2048 ac_save_IFS=$IFS; IFS='-'
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2061 { echo "$as_me:$LINENO: checking host system type" >&5
2062 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_host+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test "x$host_alias" = x; then
2067 ac_cv_host=$ac_cv_build
2069 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077 echo "${ECHO_T}$ac_cv_host" >&6; }
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081 echo "$as_me: error: invalid value of canonical host" >&2;}
2082 { (exit 1); exit 1; }; };;
2085 ac_save_IFS=$IFS; IFS='-'
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2098 { echo "$as_me:$LINENO: checking target system type" >&5
2099 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_target+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test "x$target_alias" = x; then
2104 ac_cv_target=$ac_cv_host
2106 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2114 echo "${ECHO_T}$ac_cv_target" >&6; }
2115 case $ac_cv_target in
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2118 echo "$as_me: error: invalid value of canonical target" >&2;}
2119 { (exit 1); exit 1; }; };;
2121 target=$ac_cv_target
2122 ac_save_IFS=$IFS; IFS='-'
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2132 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2135 # The aliases save the names the user supplied, while $host etc.
2136 # will get canonicalized.
2137 test -n "$target_alias" &&
2138 test "$program_prefix$program_suffix$program_transform_name" = \
2140 program_prefix=${target_alias}-
2142 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2143 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2144 if test "${llvm_cv_os_type+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 llvm_cv_link_all_option="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2151 llvm_cv_os_type="AIX"
2152 llvm_cv_platform_type="Unix" ;;
2154 llvm_cv_link_all_option="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156 llvm_cv_os_type="IRIX"
2157 llvm_cv_platform_type="Unix" ;;
2159 llvm_cv_link_all_option="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2161 llvm_cv_os_type="Cygwin"
2162 llvm_cv_platform_type="Unix" ;;
2164 llvm_cv_link_all_option="-Wl,-all_load"
2165 llvm_cv_no_link_all_option="-Wl,-noall_load"
2166 llvm_cv_os_type="Darwin"
2167 llvm_cv_platform_type="Unix" ;;
2169 llvm_cv_link_all_option="-Wl,-all_load"
2170 llvm_cv_no_link_all_option="-Wl,-noall_load"
2171 llvm_cv_os_type="Minix"
2172 llvm_cv_platform_type="Unix" ;;
2174 llvm_cv_link_all_option="-Wl,--whole-archive"
2175 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2176 llvm_cv_os_type="FreeBSD"
2177 llvm_cv_platform_type="Unix" ;;
2179 llvm_cv_link_all_option="-Wl,--whole-archive"
2180 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2181 llvm_cv_os_type="OpenBSD"
2182 llvm_cv_platform_type="Unix" ;;
2184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186 llvm_cv_os_type="NetBSD"
2187 llvm_cv_platform_type="Unix" ;;
2189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191 llvm_cv_os_type="DragonFly"
2192 llvm_cv_platform_type="Unix" ;;
2194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196 llvm_cv_os_type="HP-UX"
2197 llvm_cv_platform_type="Unix" ;;
2199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201 llvm_cv_os_type="Interix"
2202 llvm_cv_platform_type="Unix" ;;
2204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2206 llvm_cv_os_type="Linux"
2207 llvm_cv_platform_type="Unix" ;;
2209 llvm_cv_link_all_option="-Wl,-z,allextract"
2210 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2211 llvm_cv_os_type="SunOS"
2212 llvm_cv_platform_type="Unix" ;;
2214 llvm_cv_link_all_option="-Wl,-z,allextract"
2215 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2216 llvm_cv_os_type="AuroraUX"
2217 llvm_cv_platform_type="Unix" ;;
2219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2221 llvm_cv_os_type="Win32"
2222 llvm_cv_platform_type="Win32" ;;
2224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226 llvm_cv_os_type="MingW"
2227 llvm_cv_platform_type="Win32" ;;
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="Haiku"
2232 llvm_cv_platform_type="Unix" ;;
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="Freestanding"
2237 llvm_cv_platform_type="Unix" ;;
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="Freestanding"
2242 llvm_cv_platform_type="Unix" ;;
2244 llvm_cv_link_all_option=""
2245 llvm_cv_no_link_all_option=""
2246 llvm_cv_os_type="Unknown"
2247 llvm_cv_platform_type="Unknown" ;;
2250 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2251 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2253 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2254 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2255 if test "${llvm_cv_target_os_type+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 llvm_cv_target_os_type="AIX" ;;
2262 llvm_cv_target_os_type="IRIX" ;;
2264 llvm_cv_target_os_type="Cygwin" ;;
2266 llvm_cv_target_os_type="Darwin" ;;
2268 llvm_cv_target_os_type="Minix" ;;
2270 llvm_cv_target_os_type="FreeBSD" ;;
2272 llvm_cv_target_os_type="OpenBSD" ;;
2274 llvm_cv_target_os_type="NetBSD" ;;
2276 llvm_cv_target_os_type="DragonFly" ;;
2278 llvm_cv_target_os_type="HP-UX" ;;
2280 llvm_cv_target_os_type="Interix" ;;
2282 llvm_cv_target_os_type="Linux" ;;
2284 llvm_cv_target_os_type="SunOS" ;;
2286 llvm_cv_target_os_type="AuroraUX" ;;
2288 llvm_cv_target_os_type="Win32" ;;
2290 llvm_cv_target_os_type="MingW" ;;
2292 llvm_cv_target_os_type="Haiku" ;;
2294 llvm_cv_target_os_type="Freestanding" ;;
2296 llvm_cv_target_os_type="Unknown" ;;
2299 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2300 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2302 if test "$llvm_cv_os_type" = "Unknown" ; then
2303 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2304 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2305 { (exit 1); exit 1; }; }
2310 HOST_OS=$llvm_cv_os_type
2312 TARGET_OS=$llvm_cv_target_os_type
2315 LINKALL=$llvm_cv_link_all_option
2317 NOLINKALL=$llvm_cv_no_link_all_option
2320 case $llvm_cv_platform_type in
2323 cat >>confdefs.h <<\_ACEOF
2324 #define LLVM_ON_UNIX 1
2334 cat >>confdefs.h <<\_ACEOF
2335 #define LLVM_ON_WIN32 1
2345 { echo "$as_me:$LINENO: checking target architecture" >&5
2346 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2347 if test "${llvm_cv_target_arch+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 i?86-*) llvm_cv_target_arch="x86" ;;
2352 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2353 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2354 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2355 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2356 arm*-*) llvm_cv_target_arch="ARM" ;;
2357 mips-*) llvm_cv_target_arch="Mips" ;;
2358 pic16-*) llvm_cv_target_arch="PIC16" ;;
2359 xcore-*) llvm_cv_target_arch="XCore" ;;
2360 msp430-*) llvm_cv_target_arch="MSP430" ;;
2361 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2362 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2363 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2364 ptx-*) llvm_cv_target_arch="PTX" ;;
2365 *) llvm_cv_target_arch="Unknown" ;;
2368 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2369 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2371 if test "$llvm_cv_target_arch" = "Unknown" ; then
2372 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2373 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2376 # Determine the LLVM native architecture for the target
2377 case "$llvm_cv_target_arch" in
2378 x86) LLVM_NATIVE_ARCH="X86" ;;
2379 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2380 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2383 ARCH=$llvm_cv_target_arch
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 if test -n "$CC"; then
2421 { echo "$as_me:$LINENO: result: $CC" >&5
2422 echo "${ECHO_T}$CC" >&6; }
2424 { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2430 if test -z "$ac_cv_prog_CC"; then
2432 # Extract the first word of "gcc", so it can be a program name with args.
2433 set dummy gcc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_ac_ct_CC="gcc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460 if test -n "$ac_ct_CC"; then
2461 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462 echo "${ECHO_T}$ac_ct_CC" >&6; }
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2468 if test "x$ac_ct_CC" = x; then
2471 case $cross_compiling:$ac_tool_warned in
2473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474 whose name does not start with the host triplet. If you think this
2475 configuration is useful to you, please write to autoconf@gnu.org." >&5
2476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477 whose name does not start with the host triplet. If you think this
2478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2479 ac_tool_warned=yes ;;
2487 if test -z "$CC"; then
2488 if test -n "$ac_tool_prefix"; then
2489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}cc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_CC="${ac_tool_prefix}cc"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 if test -n "$CC"; then
2518 { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2528 if test -z "$CC"; then
2529 # Extract the first word of "cc", so it can be a program name with args.
2530 set dummy cc; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548 ac_prog_rejected=yes
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 if test $ac_prog_rejected = yes; then
2560 # We found a bogon in the path, so make sure we never use it.
2561 set dummy $ac_cv_prog_CC
2563 if test $# != 0; then
2564 # We chose a different compiler from the bogus one.
2565 # However, it has the same basename, so the bogon will be chosen
2566 # first if we set CC to just the basename; use the full file name.
2568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574 if test -n "$CC"; then
2575 { echo "$as_me:$LINENO: result: $CC" >&5
2576 echo "${ECHO_T}$CC" >&6; }
2578 { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2584 if test -z "$CC"; then
2585 if test -n "$ac_tool_prefix"; then
2586 for ac_prog in cl.exe
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 if test -n "$CC"; then
2617 { echo "$as_me:$LINENO: result: $CC" >&5
2618 echo "${ECHO_T}$CC" >&6; }
2620 { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2625 test -n "$CC" && break
2628 if test -z "$CC"; then
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_ac_ct_CC="$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662 echo "${ECHO_T}$ac_ct_CC" >&6; }
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$ac_ct_CC" && break
2672 if test "x$ac_ct_CC" = x; then
2675 case $cross_compiling:$ac_tool_warned in
2677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678 whose name does not start with the host triplet. If you think this
2679 configuration is useful to you, please write to autoconf@gnu.org." >&5
2680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet. If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2683 ac_tool_warned=yes ;;
2692 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: no acceptable C compiler found in \$PATH
2695 See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }
2698 # Provide some information about the compiler.
2699 echo "$as_me:$LINENO: checking for C compiler version" >&5
2700 ac_compiler=`set X $ac_compile; echo $2`
2701 { (ac_try="$ac_compiler --version >&5"
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compiler --version >&5") 2>&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }
2711 { (ac_try="$ac_compiler -v >&5"
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler -v >&5") 2>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721 { (ac_try="$ac_compiler -V >&5"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -V >&5") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2747 ac_clean_files_save=$ac_clean_files
2748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2749 # Try to create an executable without -o first, disregard a.out.
2750 # It will help us diagnose broken compilers, and finding out an intuition
2752 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756 # List of possible output files, starting from the most likely.
2757 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758 # only as a last resort. b.out is created by i960 compilers.
2759 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761 # The IRIX 6 linker writes into existing files which may not be
2762 # executable, retaining their permissions. Remove them first so a
2763 # subsequent execution test works.
2765 for ac_file in $ac_files
2768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2774 if { (ac_try="$ac_link_default"
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_link_default") 2>&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; then
2784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2787 # so that the user can short-circuit this test for compilers unknown to
2789 for ac_file in $ac_files
2791 test -f "$ac_file" || continue
2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2796 # We found the default executable, but exeext='' is most
2800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 # We set ac_cv_exeext here because the later test for it is not
2805 # safe: cross compilers may not add the suffix if given an `-o'
2806 # argument, so we may need to know it at that point already.
2807 # Even if this section looks crufty: it has the advantage of
2814 test "$ac_cv_exeext" = no && ac_cv_exeext=
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: C compiler cannot create executables
2823 See \`config.log' for more details." >&2;}
2824 { (exit 77); exit 77; }; }
2827 ac_exeext=$ac_cv_exeext
2828 { echo "$as_me:$LINENO: result: $ac_file" >&5
2829 echo "${ECHO_T}$ac_file" >&6; }
2831 # Check that the compiler produces executables we can run. If not, either
2832 # the compiler is broken, or we cross compile.
2833 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836 # If not cross compiling, check that we can run a simple program.
2837 if test "$cross_compiling" != yes; then
2838 if { ac_try='./$ac_file'
2839 { (case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_try") 2>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2850 if test "$cross_compiling" = maybe; then
2853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }
2863 { echo "$as_me:$LINENO: result: yes" >&5
2864 echo "${ECHO_T}yes" >&6; }
2866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2867 ac_clean_files=$ac_clean_files_save
2868 # Check that the compiler produces executables we can run. If not, either
2869 # the compiler is broken, or we cross compile.
2870 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873 echo "${ECHO_T}$cross_compiling" >&6; }
2875 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877 if { (ac_try="$ac_link"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_link") 2>&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
2887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2891 for ac_file in conftest.exe conftest conftest.*; do
2892 test -f "$ac_file" || continue
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2908 rm -f conftest$ac_cv_exeext
2909 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2912 rm -f conftest.$ac_ext
2913 EXEEXT=$ac_cv_exeext
2915 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917 if test "${ac_cv_objext+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2935 rm -f conftest.o conftest.obj
2936 if { (ac_try="$ac_compile"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
2946 for ac_file in conftest.o conftest.obj conftest.*; do
2947 test -f "$ac_file" || continue;
2949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968 echo "${ECHO_T}$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 cat >conftest.$ac_ext <<_ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>conftest.er1
3003 grep -v '^ *+' conftest.er1 >conftest.err
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_try") 2>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_try") 2>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3040 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3041 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3042 GCC=`test $ac_compiler_gnu = yes && echo yes`
3043 ac_test_CFLAGS=${CFLAGS+set}
3044 ac_save_CFLAGS=$CFLAGS
3045 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3046 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_cc_g+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 ac_save_c_werror_flag=$ac_c_werror_flag
3051 ac_c_werror_flag=yes
3054 cat >conftest.$ac_ext <<_ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3078 grep -v '^ *+' conftest.er1 >conftest.err
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084 { (case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_try") 2>&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3109 cat >conftest.$ac_ext <<_ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3165 cat >conftest.$ac_ext <<_ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3189 grep -v '^ *+' conftest.er1 >conftest.err
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3232 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3233 if test "$ac_test_CFLAGS" = set; then
3234 CFLAGS=$ac_save_CFLAGS
3235 elif test $ac_cv_prog_cc_g = yes; then
3236 if test "$GCC" = yes; then
3242 if test "$GCC" = yes; then
3248 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3249 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3250 if test "${ac_cv_prog_cc_c89+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 ac_cv_prog_cc_c89=no
3255 cat >conftest.$ac_ext <<_ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3263 #include <sys/types.h>
3264 #include <sys/stat.h>
3265 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3266 struct buf { int x; };
3267 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268 static char *e (p, i)
3274 static char *f (char * (*g) (char **, int), char **p, ...)
3279 s = g (p, va_arg (v,int));
3284 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3285 function prototypes and stuff, but not '\xHH' hex character constants.
3286 These don't provoke an error unfortunately, instead are silently treated
3287 as 'x'. The following induces an error, until -std is added to get
3288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3289 array size at least. It's necessary to write '\x00'==0 to get something
3290 that's true only with -std. */
3291 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294 inside strings and character constants. */
3296 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298 int test (int i, double x);
3299 struct s1 {int (*f) (int a);};
3300 struct s2 {int (*f) (double a);};
3301 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3312 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3315 CC="$ac_save_CC $ac_arg"
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3325 grep -v '^ *+' conftest.er1 >conftest.err
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 ac_cv_prog_cc_c89=$ac_arg
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext
3359 test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 rm -f conftest.$ac_ext
3366 case "x$ac_cv_prog_cc_c89" in
3368 { echo "$as_me:$LINENO: result: none needed" >&5
3369 echo "${ECHO_T}none needed" >&6; } ;;
3371 { echo "$as_me:$LINENO: result: unsupported" >&5
3372 echo "${ECHO_T}unsupported" >&6; } ;;
3374 CC="$CC $ac_cv_prog_cc_c89"
3375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3394 # On Suns, sometimes $CPP names a directory.
3395 if test -n "$CPP" && test -d "$CPP"; then
3398 if test -z "$CPP"; then
3399 if test "${ac_cv_prog_CPP+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 # Double quotes because CPP needs to be expanded
3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3406 for ac_c_preproc_warn_flag in '' yes
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3421 # include <limits.h>
3423 # include <assert.h>
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 if test -z "$ac_cpp_err"; then
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 # Broken: fails on valid input.
3459 rm -f conftest.err conftest.$ac_ext
3461 # OK, works on sane cases. Now check whether nonexistent headers
3462 # can be detected and how.
3463 cat >conftest.$ac_ext <<_ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 #include <ac_nonexistent.h>
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 grep -v '^ *+' conftest.er1 >conftest.err
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 if test -z "$ac_cpp_err"; then
3494 # Broken: success on invalid input.
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Passes both tests.
3505 rm -f conftest.err conftest.$ac_ext
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3522 { echo "$as_me:$LINENO: result: $CPP" >&5
3523 echo "${ECHO_T}$CPP" >&6; }
3525 for ac_c_preproc_warn_flag in '' yes
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
3533 cat >conftest.$ac_ext <<_ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3540 # include <limits.h>
3542 # include <assert.h>
3546 if { (ac_try="$ac_cpp conftest.$ac_ext"
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554 grep -v '^ *+' conftest.er1 >conftest.err
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568 if test -z "$ac_cpp_err"; then
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 # Broken: fails on valid input.
3578 rm -f conftest.err conftest.$ac_ext
3580 # OK, works on sane cases. Now check whether nonexistent headers
3581 # can be detected and how.
3582 cat >conftest.$ac_ext <<_ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3588 #include <ac_nonexistent.h>
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 if test -z "$ac_cpp_err"; then
3613 # Broken: success on invalid input.
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 # Passes both tests.
3624 rm -f conftest.err conftest.$ac_ext
3627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628 rm -f conftest.err conftest.$ac_ext
3629 if $ac_preproc_ok; then
3632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3633 See \`config.log' for more details." >&5
3634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3635 See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3647 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3648 if test "${ac_cv_path_GREP+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 # Extract the first word of "grep ggrep" to use in msg output
3652 if test -z "$GREP"; then
3653 set dummy grep ggrep; ac_prog_name=$2
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 ac_path_GREP_found=false
3658 # Loop through the user's path and test for each of PROGNAME-LIST
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3663 test -z "$as_dir" && as_dir=.
3664 for ac_prog in grep ggrep; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3667 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3668 # Check for GNU ac_path_GREP and select it if it is found.
3669 # Check for GNU $ac_path_GREP
3670 case `"$ac_path_GREP" --version 2>&1` in
3672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3675 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3678 cat "conftest.in" "conftest.in" >"conftest.tmp"
3679 mv "conftest.tmp" "conftest.in"
3680 cp "conftest.in" "conftest.nl"
3681 echo 'GREP' >> "conftest.nl"
3682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3684 ac_count=`expr $ac_count + 1`
3685 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3686 # Best one so far, save it but keep looking for a better one
3687 ac_cv_path_GREP="$ac_path_GREP"
3688 ac_path_GREP_max=$ac_count
3690 # 10*(2^10) chars as input seems more than enough
3691 test $ac_count -gt 10 && break
3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3697 $ac_path_GREP_found && break 3
3707 GREP="$ac_cv_path_GREP"
3708 if test -z "$GREP"; then
3709 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3710 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3711 { (exit 1); exit 1; }; }
3715 ac_cv_path_GREP=$GREP
3720 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3721 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3722 GREP="$ac_cv_path_GREP"
3725 { echo "$as_me:$LINENO: checking for egrep" >&5
3726 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3727 if test "${ac_cv_path_EGREP+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3731 then ac_cv_path_EGREP="$GREP -E"
3733 # Extract the first word of "egrep" to use in msg output
3734 if test -z "$EGREP"; then
3735 set dummy egrep; ac_prog_name=$2
3736 if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 ac_path_EGREP_found=false
3740 # Loop through the user's path and test for each of PROGNAME-LIST
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3745 test -z "$as_dir" && as_dir=.
3746 for ac_prog in egrep; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3749 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3750 # Check for GNU ac_path_EGREP and select it if it is found.
3751 # Check for GNU $ac_path_EGREP
3752 case `"$ac_path_EGREP" --version 2>&1` in
3754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3757 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3760 cat "conftest.in" "conftest.in" >"conftest.tmp"
3761 mv "conftest.tmp" "conftest.in"
3762 cp "conftest.in" "conftest.nl"
3763 echo 'EGREP' >> "conftest.nl"
3764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3766 ac_count=`expr $ac_count + 1`
3767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3768 # Best one so far, save it but keep looking for a better one
3769 ac_cv_path_EGREP="$ac_path_EGREP"
3770 ac_path_EGREP_max=$ac_count
3772 # 10*(2^10) chars as input seems more than enough
3773 test $ac_count -gt 10 && break
3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3779 $ac_path_EGREP_found && break 3
3789 EGREP="$ac_cv_path_EGREP"
3790 if test -z "$EGREP"; then
3791 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3792 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3793 { (exit 1); exit 1; }; }
3797 ac_cv_path_EGREP=$EGREP
3803 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3804 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3805 EGREP="$ac_cv_path_EGREP"
3808 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3810 if test "${ac_cv_header_stdc+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 cat >conftest.$ac_ext <<_ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3841 grep -v '^ *+' conftest.er1 >conftest.err
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3847 { (case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_try") 2>&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_try") 2>&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_header_stdc=yes
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 ac_cv_header_stdc=no
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 if test $ac_cv_header_stdc = yes; then
3877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3878 cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888 $EGREP "memchr" >/dev/null 2>&1; then
3891 ac_cv_header_stdc=no
3897 if test $ac_cv_header_stdc = yes; then
3898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909 $EGREP "free" >/dev/null 2>&1; then
3912 ac_cv_header_stdc=no
3918 if test $ac_cv_header_stdc = yes; then
3919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3920 if test "$cross_compiling" = yes; then
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3931 #if ((' ' & 0x0FF) == 0x020)
3932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935 # define ISLOWER(c) \
3936 (('a' <= (c) && (c) <= 'i') \
3937 || ('j' <= (c) && (c) <= 'r') \
3938 || ('s' <= (c) && (c) <= 'z'))
3939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3947 for (i = 0; i < 256; i++)
3948 if (XOR (islower (i), ISLOWER (i))
3949 || toupper (i) != TOUPPER (i))
3954 rm -f conftest$ac_exeext
3955 if { (ac_try="$ac_link"
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_link") 2>&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3965 { (case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_try") 2>&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3976 echo "$as_me: program exited with status $ac_status" >&5
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3981 ac_cv_header_stdc=no
3983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3991 if test $ac_cv_header_stdc = yes; then
3993 cat >>confdefs.h <<\_ACEOF
3994 #define STDC_HEADERS 1
3999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010 inttypes.h stdint.h unistd.h
4012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 cat >conftest.$ac_ext <<_ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 $ac_includes_default
4026 #include <$ac_header>
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4037 grep -v '^ *+' conftest.er1 >conftest.err
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4043 { (case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_try") 2>&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 eval "$as_ac_Header=yes"
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 eval "$as_ac_Header=no"
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_res=`eval echo '${'$as_ac_Header'}'`
4073 { echo "$as_me:$LINENO: result: $ac_res" >&5
4074 echo "${ECHO_T}$ac_res" >&6; }
4075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4076 cat >>confdefs.h <<_ACEOF
4077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4085 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4086 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4087 if test "${ac_cv_c_bigendian+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 # See if sys/param.h defines the BYTE_ORDER macro.
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 #include <sys/types.h>
4098 #include <sys/param.h>
4103 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_try") 2>&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 # It does; now see whether it defined to BIG_ENDIAN or not.
4146 cat >conftest.$ac_ext <<_ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4152 #include <sys/types.h>
4153 #include <sys/param.h>
4158 #if BYTE_ORDER != BIG_ENDIAN
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4175 grep -v '^ *+' conftest.er1 >conftest.err
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_c_bigendian=yes
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_c_bigendian=no
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 # It does not; compile a test program.
4214 if test "$cross_compiling" = yes; then
4215 # try to guess the endianness by grepping values into an object file
4216 ac_cv_c_bigendian=unknown
4217 cat >conftest.$ac_ext <<_ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4224 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4226 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4227 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4232 _ascii (); _ebcdic ();
4237 rm -f conftest.$ac_objext
4238 if { (ac_try="$ac_compile"
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_compile") 2>conftest.er1
4246 grep -v '^ *+' conftest.er1 >conftest.err
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4272 ac_cv_c_bigendian=yes
4274 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4275 if test "$ac_cv_c_bigendian" = unknown; then
4276 ac_cv_c_bigendian=no
4278 # finding both strings is unlikely to happen, but who knows?
4279 ac_cv_c_bigendian=unknown
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 cat >conftest.$ac_ext <<_ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4297 $ac_includes_default
4302 /* Are we little or big endian? From Harbison&Steele. */
4306 char c[sizeof (long int)];
4309 return u.c[sizeof (long int) - 1] == 1;
4315 rm -f conftest$ac_exeext
4316 if { (ac_try="$ac_link"
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_link") 2>&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4326 { (case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_try") 2>&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4335 ac_cv_c_bigendian=no
4337 echo "$as_me: program exited with status $ac_status" >&5
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4342 ac_cv_c_bigendian=yes
4344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4354 case $ac_cv_c_bigendian in
4362 { { echo "$as_me:$LINENO: error: unknown endianness
4363 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4364 echo "$as_me: error: unknown endianness
4365 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4366 { (exit 1); exit 1; }; } ;;
4370 if test "$cross_compiling" = yes; then
4371 LLVM_CROSS_COMPILING=1
4374 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4375 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4376 if test "${ac_cv_build_exeext+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4380 ac_cv_build_exeext=.exe
4382 ac_build_prefix=${build_alias}-
4384 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4385 set dummy ${ac_build_prefix}gcc; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test -n "$BUILD_CC"; then
4392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 BUILD_CC=$ac_cv_prog_BUILD_CC
4412 if test -n "$BUILD_CC"; then
4413 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414 echo "${ECHO_T}$BUILD_CC" >&6; }
4416 { echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6; }
4421 if test -z "$BUILD_CC"; then
4422 # Extract the first word of "gcc", so it can be a program name with args.
4423 set dummy gcc; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 if test -n "$BUILD_CC"; then
4430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_BUILD_CC="gcc"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 BUILD_CC=$ac_cv_prog_BUILD_CC
4450 if test -n "$BUILD_CC"; then
4451 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4452 echo "${ECHO_T}$BUILD_CC" >&6; }
4454 { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4459 if test -z "$BUILD_CC"; then
4460 # Extract the first word of "cc", so it can be a program name with args.
4461 set dummy cc; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 if test -n "$BUILD_CC"; then
4468 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479 ac_prog_rejected=yes
4482 ac_cv_prog_BUILD_CC="cc"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy $ac_cv_prog_BUILD_CC
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set BUILD_CC to just the basename; use the full file name.
4499 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4504 BUILD_CC=$ac_cv_prog_BUILD_CC
4505 if test -n "$BUILD_CC"; then
4506 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4507 echo "${ECHO_T}$BUILD_CC" >&6; }
4509 { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4516 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4517 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4518 { (exit 1); exit 1; }; }
4519 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521 echo 'int main () { return 0; }' > conftest.$ac_ext
4523 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4524 (eval $ac_build_link) 2>&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; then
4528 for file in conftest.*; do
4530 *.c | *.o | *.obj | *.dSYM) ;;
4531 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4535 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4536 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4537 { (exit 1); exit 1; }; }
4540 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4545 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4546 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4547 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4548 ac_build_exeext=$BUILD_EXEEXT
4550 ac_build_prefix=${build_alias}-
4551 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552 set dummy ${ac_build_prefix}g++; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 if test -n "$BUILD_CXX"; then
4559 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4579 if test -n "$BUILD_CXX"; then
4580 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4581 echo "${ECHO_T}$BUILD_CXX" >&6; }
4583 { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4588 if test -z "$BUILD_CXX"; then
4589 # Extract the first word of "g++", so it can be a program name with args.
4590 set dummy g++; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 if test -n "$BUILD_CXX"; then
4597 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_BUILD_CXX="g++"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4617 if test -n "$BUILD_CXX"; then
4618 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4619 echo "${ECHO_T}$BUILD_CXX" >&6; }
4621 { echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6; }
4626 if test -z "$BUILD_CXX"; then
4627 # Extract the first word of "c++", so it can be a program name with args.
4628 set dummy c++; ac_word=$2
4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 if test -n "$BUILD_CXX"; then
4635 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646 ac_prog_rejected=yes
4649 ac_cv_prog_BUILD_CXX="c++"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 if test $ac_prog_rejected = yes; then
4658 # We found a bogon in the path, so make sure we never use it.
4659 set dummy $ac_cv_prog_BUILD_CXX
4661 if test $# != 0; then
4662 # We chose a different compiler from the bogus one.
4663 # However, it has the same basename, so the bogon will be chosen
4664 # first if we set BUILD_CXX to just the basename; use the full file name.
4666 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4671 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4672 if test -n "$BUILD_CXX"; then
4673 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4674 echo "${ECHO_T}$BUILD_CXX" >&6; }
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4684 LLVM_CROSS_COMPILING=0
4688 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4699 # Check whether --enable-optimized was given.
4700 if test "${enable_optimized+set}" = set; then
4701 enableval=$enable_optimized;
4706 if test ${enableval} = "no" ; then
4710 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4714 # Check whether --enable-profiling was given.
4715 if test "${enable_profiling+set}" = set; then
4716 enableval=$enable_profiling;
4721 if test ${enableval} = "no" ; then
4725 ENABLE_PROFILING=ENABLE_PROFILING=1
4729 # Check whether --enable-assertions was given.
4730 if test "${enable_assertions+set}" = set; then
4731 enableval=$enable_assertions;
4736 if test ${enableval} = "yes" ; then
4740 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4744 # Check whether --enable-expensive-checks was given.
4745 if test "${enable_expensive_checks+set}" = set; then
4746 enableval=$enable_expensive_checks;
4751 if test ${enableval} = "yes" ; then
4752 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4754 EXPENSIVE_CHECKS=yes
4757 ENABLE_EXPENSIVE_CHECKS=
4763 # Check whether --enable-debug-runtime was given.
4764 if test "${enable_debug_runtime+set}" = set; then
4765 enableval=$enable_debug_runtime;
4770 if test ${enableval} = "no" ; then
4774 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4778 # Check whether --enable-debug-symbols was given.
4779 if test "${enable_debug_symbols+set}" = set; then
4780 enableval=$enable_debug_symbols;
4785 if test ${enableval} = "no" ; then
4789 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4793 # Check whether --enable-jit was given.
4794 if test "${enable_jit+set}" = set; then
4795 enableval=$enable_jit;
4800 if test ${enableval} = "no"
4805 case "$llvm_cv_target_arch" in
4806 x86) TARGET_HAS_JIT=1
4808 Sparc) TARGET_HAS_JIT=0
4810 PowerPC) TARGET_HAS_JIT=1
4812 x86_64) TARGET_HAS_JIT=1
4814 Alpha) TARGET_HAS_JIT=1
4816 ARM) TARGET_HAS_JIT=1
4818 Mips) TARGET_HAS_JIT=0
4820 PIC16) TARGET_HAS_JIT=0
4822 XCore) TARGET_HAS_JIT=0
4824 MSP430) TARGET_HAS_JIT=0
4826 SystemZ) TARGET_HAS_JIT=0
4828 Blackfin) TARGET_HAS_JIT=0
4830 MBlaze) TARGET_HAS_JIT=0
4832 PTX) TARGET_HAS_JIT=0
4839 # Check whether --enable-doxygen was given.
4840 if test "${enable_doxygen+set}" = set; then
4841 enableval=$enable_doxygen;
4846 case "$enableval" in
4847 yes) ENABLE_DOXYGEN=1
4849 no) ENABLE_DOXYGEN=0
4851 default) ENABLE_DOXYGEN=0
4853 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4854 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4855 { (exit 1); exit 1; }; } ;;
4858 # Check whether --enable-threads was given.
4859 if test "${enable_threads+set}" = set; then
4860 enableval=$enable_threads;
4865 case "$enableval" in
4866 yes) ENABLE_THREADS=1
4868 no) ENABLE_THREADS=0
4870 default) ENABLE_THREADS=1
4872 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4874 { (exit 1); exit 1; }; } ;;
4877 cat >>confdefs.h <<_ACEOF
4878 #define ENABLE_THREADS $ENABLE_THREADS
4882 # Check whether --enable-pic was given.
4883 if test "${enable_pic+set}" = set; then
4884 enableval=$enable_pic;
4889 case "$enableval" in
4894 default) ENABLE_PIC=1
4896 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4897 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4898 { (exit 1); exit 1; }; } ;;
4901 cat >>confdefs.h <<_ACEOF
4902 #define ENABLE_PIC $ENABLE_PIC
4906 # Check whether --enable-shared was given.
4907 if test "${enable_shared+set}" = set; then
4908 enableval=$enable_shared;
4913 case "$enableval" in
4914 yes) ENABLE_SHARED=1
4918 default) ENABLE_SHARED=0
4920 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4921 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4925 # Check whether --enable-timestamps was given.
4926 if test "${enable_timestamps+set}" = set; then
4927 enableval=$enable_timestamps;
4932 case "$enableval" in
4933 yes) ENABLE_TIMESTAMPS=1
4935 no) ENABLE_TIMESTAMPS=0
4937 default) ENABLE_TIMESTAMPS=1
4939 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4940 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4941 { (exit 1); exit 1; }; } ;;
4944 cat >>confdefs.h <<_ACEOF
4945 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4950 # Check whether --enable-targets was given.
4951 if test "${enable_targets+set}" = set; then
4952 enableval=$enable_targets;
4957 if test "$enableval" = host-only ; then
4960 case "$enableval" in
4961 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4962 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4964 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4965 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4967 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4968 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4969 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4970 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4971 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4972 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4973 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4974 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4975 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4976 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4977 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4978 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4979 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4980 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4981 host) case "$llvm_cv_target_arch" in
4982 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4983 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4984 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4985 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4986 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4987 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4988 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4989 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4990 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4991 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4992 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4993 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4994 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4995 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4996 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4997 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4998 echo "$as_me: error: Can not set target to build" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5001 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5002 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5003 { (exit 1); exit 1; }; } ;;
5008 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5011 # Determine whether we are building LLVM support for the native architecture.
5012 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5013 for a_target in $TARGETS_TO_BUILD; do
5014 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5016 cat >>confdefs.h <<_ACEOF
5017 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5020 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5021 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5022 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5024 cat >>confdefs.h <<_ACEOF
5025 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5029 cat >>confdefs.h <<_ACEOF
5030 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5034 cat >>confdefs.h <<_ACEOF
5035 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5041 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5042 # target feature def files.
5043 LLVM_ENUM_TARGETS=""
5044 LLVM_ENUM_ASM_PRINTERS=""
5045 LLVM_ENUM_ASM_PARSERS=""
5046 LLVM_ENUM_DISASSEMBLERS=""
5047 for target_to_build in $TARGETS_TO_BUILD; do
5048 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5049 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5050 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5052 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5053 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5055 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5056 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5064 # Check whether --enable-cbe-printf-a was given.
5065 if test "${enable_cbe_printf_a+set}" = set; then
5066 enableval=$enable_cbe_printf_a;
5071 case "$enableval" in
5072 yes) ENABLE_CBE_PRINTF_A=1
5074 no) ENABLE_CBE_PRINTF_A=0
5076 default) ENABLE_CBE_PRINTF_A=1
5078 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5079 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5080 { (exit 1); exit 1; }; } ;;
5083 cat >>confdefs.h <<_ACEOF
5084 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5089 # Check whether --with-llvmgccdir was given.
5090 if test "${with_llvmgccdir+set}" = set; then
5091 withval=$with_llvmgccdir;
5097 default) WITH_LLVMGCCDIR=default ;;
5098 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5099 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5100 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5101 { (exit 1); exit 1; }; } ;;
5105 # Check whether --with-llvmgcc was given.
5106 if test "${with_llvmgcc+set}" = set; then
5107 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5113 # Check whether --with-llvmgxx was given.
5114 if test "${with_llvmgxx+set}" = set; then
5115 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5120 if test -n "$LLVMGCC"; then
5121 LLVMGCCCOMMAND="$LLVMGCC"
5124 if test -n "$LLVMGXX"; then
5125 LLVMGXXCOMMAND="$LLVMGXX"
5128 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5129 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5130 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5131 { (exit 1); exit 1; }; };
5134 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5135 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5136 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5137 { (exit 1); exit 1; }; };
5141 # Check whether --with-clang was given.
5142 if test "${with_clang+set}" = set; then
5143 withval=$with_clang;
5150 # Check whether --with-built-clang was given.
5151 if test "${with_built_clang+set}" = set; then
5152 withval=$with_built_clang;
5154 with_built_clang=check
5158 { echo "$as_me:$LINENO: checking clang compiler" >&5
5159 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5162 if test "$with_clang" != "default"; then
5163 WITH_CLANGPATH="$with_clang"
5164 if ! test -x "$WITH_CLANGPATH"; then
5165 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5166 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5167 { (exit 1); exit 1; }; }
5169 elif test "$with_built_clang" = "yes"; then
5171 elif test "$with_built_clang" = "no"; then
5174 if test "$with_built_clang" != "check"; then
5175 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5176 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5177 { (exit 1); exit 1; }; }
5180 if test -f ${srcdir}/tools/clang/README.txt; then
5185 if ! test -z "$WITH_CLANGPATH"; then
5186 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5187 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5188 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5189 elif test "$WITH_BUILT_CLANG" = "1"; then
5190 { echo "$as_me:$LINENO: result: built" >&5
5191 echo "${ECHO_T}built" >&6; }
5193 { echo "$as_me:$LINENO: result: none" >&5
5194 echo "${ECHO_T}none" >&6; }
5196 CLANGPATH=$WITH_CLANGPATH
5198 CLANGXXPATH=$WITH_CLANGXXPATH
5200 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5204 # Check whether --with-optimize-option was given.
5205 if test "${with_optimize_option+set}" = set; then
5206 withval=$with_optimize_option;
5211 { echo "$as_me:$LINENO: checking optimization flags" >&5
5212 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5215 case "$llvm_cv_os_type" in
5216 FreeBSD) optimize_option=-O2 ;;
5217 MingW) optimize_option=-O2 ;;
5218 *) optimize_option=-O3 ;;
5220 *) optimize_option="$withval" ;;
5222 OPTIMIZE_OPTION=$optimize_option
5224 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5225 echo "${ECHO_T}$optimize_option" >&6; }
5228 # Check whether --with-extra-options was given.
5229 if test "${with_extra_options+set}" = set; then
5230 withval=$with_extra_options;
5236 default) EXTRA_OPTIONS= ;;
5237 *) EXTRA_OPTIONS=$withval ;;
5239 EXTRA_OPTIONS=$EXTRA_OPTIONS
5242 # Check whether --enable-bindings was given.
5243 if test "${enable_bindings+set}" = set; then
5244 enableval=$enable_bindings;
5249 BINDINGS_TO_BUILD=""
5250 case "$enableval" in
5251 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5252 all ) BINDINGS_TO_BUILD="ocaml" ;;
5253 none | no) BINDINGS_TO_BUILD="" ;;
5254 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5255 case "$a_binding" in
5256 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5257 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5258 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5259 { (exit 1); exit 1; }; } ;;
5266 # Check whether --with-ocaml-libdir was given.
5267 if test "${with_ocaml_libdir+set}" = set; then
5268 withval=$with_ocaml_libdir;
5274 auto) with_ocaml_libdir="$withval" ;;
5275 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5276 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5277 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5278 { (exit 1); exit 1; }; } ;;
5282 # Check whether --with-c-include-dirs was given.
5283 if test "${with_c_include_dirs+set}" = set; then
5284 withval=$with_c_include_dirs;
5290 cat >>confdefs.h <<_ACEOF
5291 #define C_INCLUDE_DIRS "$withval"
5296 # Check whether --with-cxx-include-root was given.
5297 if test "${with_cxx_include_root+set}" = set; then
5298 withval=$with_cxx_include_root;
5304 cat >>confdefs.h <<_ACEOF
5305 #define CXX_INCLUDE_ROOT "$withval"
5310 # Check whether --with-cxx-include-arch was given.
5311 if test "${with_cxx_include_arch+set}" = set; then
5312 withval=$with_cxx_include_arch;
5318 cat >>confdefs.h <<_ACEOF
5319 #define CXX_INCLUDE_ARCH "$withval"
5324 # Check whether --with-cxx-include-32bit-dir was given.
5325 if test "${with_cxx_include_32bit_dir+set}" = set; then
5326 withval=$with_cxx_include_32bit_dir;
5332 cat >>confdefs.h <<_ACEOF
5333 #define CXX_INCLUDE_32BIT_DIR "$withval"
5338 # Check whether --with-cxx-include-64bit-dir was given.
5339 if test "${with_cxx_include_64bit_dir+set}" = set; then
5340 withval=$with_cxx_include_64bit_dir;
5346 cat >>confdefs.h <<_ACEOF
5347 #define CXX_INCLUDE_64BIT_DIR "$withval"
5352 # Check whether --with-binutils-include was given.
5353 if test "${with_binutils_include+set}" = set; then
5354 withval=$with_binutils_include;
5360 default) WITH_BINUTILS_INCDIR=default ;;
5361 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5362 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5363 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5364 { (exit 1); exit 1; }; } ;;
5366 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5367 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5369 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5370 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5371 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5372 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5373 { (exit 1); exit 1; }; };
5377 # Check whether --enable-libffi was given.
5378 if test "${enable_libffi+set}" = set; then
5379 enableval=$enable_libffi; case "$enableval" in
5380 yes) llvm_cv_enable_libffi="yes" ;;
5381 no) llvm_cv_enable_libffi="no" ;;
5382 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5383 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5384 { (exit 1); exit 1; }; } ;;
5387 llvm_cv_enable_libffi=no
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5399 # On Suns, sometimes $CPP names a directory.
5400 if test -n "$CPP" && test -d "$CPP"; then
5403 if test -z "$CPP"; then
5404 if test "${ac_cv_prog_CPP+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 # Double quotes because CPP needs to be expanded
5408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5411 for ac_c_preproc_warn_flag in '' yes
5413 # Use a header file that comes with gcc, so configuring glibc
5414 # with a fresh cross-compiler works.
5415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416 # <limits.h> exists even on freestanding compilers.
5417 # On the NeXT, cc -E runs the code through the compiler's parser,
5418 # not just through cpp. "Syntax error" is here to catch this case.
5419 cat >conftest.$ac_ext <<_ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5426 # include <limits.h>
5428 # include <assert.h>
5432 if { (ac_try="$ac_cpp conftest.$ac_ext"
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5440 grep -v '^ *+' conftest.er1 >conftest.err
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } >/dev/null; then
5445 if test -s conftest.err; then
5446 ac_cpp_err=$ac_c_preproc_warn_flag
5447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5454 if test -z "$ac_cpp_err"; then
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 # Broken: fails on valid input.
5464 rm -f conftest.err conftest.$ac_ext
5466 # OK, works on sane cases. Now check whether nonexistent headers
5467 # can be detected and how.
5468 cat >conftest.$ac_ext <<_ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 #include <ac_nonexistent.h>
5476 if { (ac_try="$ac_cpp conftest.$ac_ext"
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5484 grep -v '^ *+' conftest.er1 >conftest.err
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5498 if test -z "$ac_cpp_err"; then
5499 # Broken: success on invalid input.
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 # Passes both tests.
5510 rm -f conftest.err conftest.$ac_ext
5513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5514 rm -f conftest.err conftest.$ac_ext
5515 if $ac_preproc_ok; then
5527 { echo "$as_me:$LINENO: result: $CPP" >&5
5528 echo "${ECHO_T}$CPP" >&6; }
5530 for ac_c_preproc_warn_flag in '' yes
5532 # Use a header file that comes with gcc, so configuring glibc
5533 # with a fresh cross-compiler works.
5534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5535 # <limits.h> exists even on freestanding compilers.
5536 # On the NeXT, cc -E runs the code through the compiler's parser,
5537 # not just through cpp. "Syntax error" is here to catch this case.
5538 cat >conftest.$ac_ext <<_ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5545 # include <limits.h>
5547 # include <assert.h>
5551 if { (ac_try="$ac_cpp conftest.$ac_ext"
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5559 grep -v '^ *+' conftest.er1 >conftest.err
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } >/dev/null; then
5564 if test -s conftest.err; then
5565 ac_cpp_err=$ac_c_preproc_warn_flag
5566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5573 if test -z "$ac_cpp_err"; then
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5579 # Broken: fails on valid input.
5583 rm -f conftest.err conftest.$ac_ext
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
5587 cat >conftest.$ac_ext <<_ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593 #include <ac_nonexistent.h>
5595 if { (ac_try="$ac_cpp conftest.$ac_ext"
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5603 grep -v '^ *+' conftest.er1 >conftest.err
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } >/dev/null; then
5608 if test -s conftest.err; then
5609 ac_cpp_err=$ac_c_preproc_warn_flag
5610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5617 if test -z "$ac_cpp_err"; then
5618 # Broken: success on invalid input.
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 # Passes both tests.
5629 rm -f conftest.err conftest.$ac_ext
5632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5633 rm -f conftest.err conftest.$ac_ext
5634 if $ac_preproc_ok; then
5637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5638 See \`config.log' for more details." >&5
5639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5640 See \`config.log' for more details." >&2;}
5641 { (exit 1); exit 1; }; }
5645 ac_cpp='$CPP $CPPFLAGS'
5646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651 ac_cpp='$CPP $CPPFLAGS'
5652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655 if test -n "$ac_tool_prefix"; then
5658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5662 if test "${ac_cv_prog_CC+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 if test -n "$CC"; then
5666 ac_cv_prog_CC="$CC" # Let the user override the test.
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 if test -n "$CC"; then
5687 { echo "$as_me:$LINENO: result: $CC" >&5
5688 echo "${ECHO_T}$CC" >&6; }
5690 { echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6; }
5695 test -n "$CC" && break
5698 if test -z "$CC"; then
5702 # Extract the first word of "$ac_prog", so it can be a program name with args.
5703 set dummy $ac_prog; ac_word=$2
5704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 if test -n "$ac_ct_CC"; then
5710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_prog_ac_ct_CC="$ac_prog"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5730 if test -n "$ac_ct_CC"; then
5731 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5732 echo "${ECHO_T}$ac_ct_CC" >&6; }
5734 { echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6; }
5739 test -n "$ac_ct_CC" && break
5742 if test "x$ac_ct_CC" = x; then
5745 case $cross_compiling:$ac_tool_warned in
5747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5748 whose name does not start with the host triplet. If you think this
5749 configuration is useful to you, please write to autoconf@gnu.org." >&5
5750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5751 whose name does not start with the host triplet. If you think this
5752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5753 ac_tool_warned=yes ;;
5760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5761 See \`config.log' for more details." >&5
5762 echo "$as_me: error: no acceptable C compiler found in \$PATH
5763 See \`config.log' for more details." >&2;}
5764 { (exit 1); exit 1; }; }
5766 # Provide some information about the compiler.
5767 echo "$as_me:$LINENO: checking for C compiler version" >&5
5768 ac_compiler=`set X $ac_compile; echo $2`
5769 { (ac_try="$ac_compiler --version >&5"
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compiler --version >&5") 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }
5779 { (ac_try="$ac_compiler -v >&5"
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compiler -v >&5") 2>&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }
5789 { (ac_try="$ac_compiler -V >&5"
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compiler -V >&5") 2>&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }
5800 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5801 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5802 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_try") 2>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5869 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5870 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5871 GCC=`test $ac_compiler_gnu = yes && echo yes`
5872 ac_test_CFLAGS=${CFLAGS+set}
5873 ac_save_CFLAGS=$CFLAGS
5874 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5875 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5876 if test "${ac_cv_prog_cc_g+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 ac_save_c_werror_flag=$ac_c_werror_flag
5880 ac_c_werror_flag=yes
5883 cat >conftest.$ac_ext <<_ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5898 rm -f conftest.$ac_objext
5899 if { (ac_try="$ac_compile"
5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 (eval "$ac_compile") 2>conftest.er1
5907 grep -v '^ *+' conftest.er1 >conftest.err
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5913 { (case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_try") 2>&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try='test -s conftest.$ac_objext'
5923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_try") 2>&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5938 cat >conftest.$ac_ext <<_ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5953 rm -f conftest.$ac_objext
5954 if { (ac_try="$ac_compile"
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5962 grep -v '^ *+' conftest.er1 >conftest.err
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5968 { (case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_try") 2>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_try") 2>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_c_werror_flag=$ac_save_c_werror_flag
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6009 rm -f conftest.$ac_objext
6010 if { (ac_try="$ac_compile"
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compile") 2>conftest.er1
6018 grep -v '^ *+' conftest.er1 >conftest.err
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_try") 2>&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_try") 2>&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 ac_c_werror_flag=$ac_save_c_werror_flag
6060 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6061 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6062 if test "$ac_test_CFLAGS" = set; then
6063 CFLAGS=$ac_save_CFLAGS
6064 elif test $ac_cv_prog_cc_g = yes; then
6065 if test "$GCC" = yes; then
6071 if test "$GCC" = yes; then
6077 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6078 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6079 if test "${ac_cv_prog_cc_c89+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 ac_cv_prog_cc_c89=no
6084 cat >conftest.$ac_ext <<_ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6092 #include <sys/types.h>
6093 #include <sys/stat.h>
6094 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6095 struct buf { int x; };
6096 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6097 static char *e (p, i)
6103 static char *f (char * (*g) (char **, int), char **p, ...)
6108 s = g (p, va_arg (v,int));
6113 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6114 function prototypes and stuff, but not '\xHH' hex character constants.
6115 These don't provoke an error unfortunately, instead are silently treated
6116 as 'x'. The following induces an error, until -std is added to get
6117 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6118 array size at least. It's necessary to write '\x00'==0 to get something
6119 that's true only with -std. */
6120 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6122 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6123 inside strings and character constants. */
6125 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6127 int test (int i, double x);
6128 struct s1 {int (*f) (int a);};
6129 struct s2 {int (*f) (double a);};
6130 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6136 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6141 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6142 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6144 CC="$ac_save_CC $ac_arg"
6145 rm -f conftest.$ac_objext
6146 if { (ac_try="$ac_compile"
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_compile") 2>conftest.er1
6154 grep -v '^ *+' conftest.er1 >conftest.err
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } &&
6159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6160 { (case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_try") 2>&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_try") 2>&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_cv_prog_cc_c89=$ac_arg
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6187 rm -f core conftest.err conftest.$ac_objext
6188 test "x$ac_cv_prog_cc_c89" != "xno" && break
6190 rm -f conftest.$ac_ext
6195 case "x$ac_cv_prog_cc_c89" in
6197 { echo "$as_me:$LINENO: result: none needed" >&5
6198 echo "${ECHO_T}none needed" >&6; } ;;
6200 { echo "$as_me:$LINENO: result: unsupported" >&5
6201 echo "${ECHO_T}unsupported" >&6; } ;;
6203 CC="$CC $ac_cv_prog_cc_c89"
6204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6205 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6210 ac_cpp='$CPP $CPPFLAGS'
6211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6216 ac_cpp='$CXXCPP $CPPFLAGS'
6217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6220 if test -z "$CXX"; then
6221 if test -n "$CCC"; then
6224 if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231 if test "${ac_cv_prog_CXX+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 if test -n "$CXX"; then
6235 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 if test -n "$CXX"; then
6256 { echo "$as_me:$LINENO: result: $CXX" >&5
6257 echo "${ECHO_T}$CXX" >&6; }
6259 { echo "$as_me:$LINENO: result: no" >&5
6260 echo "${ECHO_T}no" >&6; }
6264 test -n "$CXX" && break
6267 if test -z "$CXX"; then
6271 # Extract the first word of "$ac_prog", so it can be a program name with args.
6272 set dummy $ac_prog; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 if test -n "$ac_ct_CXX"; then
6279 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
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_prog_ac_ct_CXX="$ac_prog"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6299 if test -n "$ac_ct_CXX"; then
6300 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6301 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6308 test -n "$ac_ct_CXX" && break
6311 if test "x$ac_ct_CXX" = x; then
6314 case $cross_compiling:$ac_tool_warned in
6316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6317 whose name does not start with the host triplet. If you think this
6318 configuration is useful to you, please write to autoconf@gnu.org." >&5
6319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6320 whose name does not start with the host triplet. If you think this
6321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6322 ac_tool_warned=yes ;;
6330 # Provide some information about the compiler.
6331 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6332 ac_compiler=`set X $ac_compile; echo $2`
6333 { (ac_try="$ac_compiler --version >&5"
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_compiler --version >&5") 2>&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }
6343 { (ac_try="$ac_compiler -v >&5"
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compiler -v >&5") 2>&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }
6353 { (ac_try="$ac_compiler -V >&5"
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_compiler -V >&5") 2>&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }
6364 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6365 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6366 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 cat >conftest.$ac_ext <<_ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6396 grep -v '^ *+' conftest.er1 >conftest.err
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6402 { (case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_try") 2>&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest.$ac_objext'
6412 { (case "(($ac_try" in
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_try") 2>&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6433 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6434 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6435 GXX=`test $ac_compiler_gnu = yes && echo yes`
6436 ac_test_CXXFLAGS=${CXXFLAGS+set}
6437 ac_save_CXXFLAGS=$CXXFLAGS
6438 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6439 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6440 if test "${ac_cv_prog_cxx_g+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6444 ac_cxx_werror_flag=yes
6447 cat >conftest.$ac_ext <<_ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6462 rm -f conftest.$ac_objext
6463 if { (ac_try="$ac_compile"
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_compile") 2>conftest.er1
6471 grep -v '^ *+' conftest.er1 >conftest.err
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6477 { (case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_try") 2>&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; } &&
6486 { ac_try='test -s conftest.$ac_objext'
6487 { (case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_try") 2>&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_prog_cxx_g=yes
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6502 cat >conftest.$ac_ext <<_ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6517 rm -f conftest.$ac_objext
6518 if { (ac_try="$ac_compile"
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_compile") 2>conftest.er1
6526 grep -v '^ *+' conftest.er1 >conftest.err
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
6531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6532 { (case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_try") 2>&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest.$ac_objext'
6542 { (case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_try") 2>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6558 cat >conftest.$ac_ext <<_ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6573 rm -f conftest.$ac_objext
6574 if { (ac_try="$ac_compile"
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6582 grep -v '^ *+' conftest.er1 >conftest.err
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6588 { (case "(($ac_try" in
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_try") 2>&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; } &&
6597 { ac_try='test -s conftest.$ac_objext'
6598 { (case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_try") 2>&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 ac_cv_prog_cxx_g=yes
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6625 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6626 if test "$ac_test_CXXFLAGS" = set; then
6627 CXXFLAGS=$ac_save_CXXFLAGS
6628 elif test $ac_cv_prog_cxx_g = yes; then
6629 if test "$GXX" = yes; then
6635 if test "$GXX" = yes; then
6642 ac_cpp='$CPP $CPPFLAGS'
6643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6648 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6649 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6650 if test "${lt_cv_path_NM+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 if test -n "$NM"; then
6654 # Let the user override the test.
6657 lt_nm_to_check="${ac_tool_prefix}nm"
6658 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6659 lt_nm_to_check="$lt_nm_to_check nm"
6661 for lt_tmp_nm in $lt_nm_to_check; do
6662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6663 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6665 test -z "$ac_dir" && ac_dir=.
6666 tmp_nm="$ac_dir/$lt_tmp_nm"
6667 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6668 # Check to see if the nm accepts a BSD-compat flag.
6669 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6670 # nm: unknown option "B" ignored
6671 # Tru64's nm complains that /dev/null is an invalid object file
6672 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6673 */dev/null* | *'Invalid file or object type'*)
6674 lt_cv_path_NM="$tmp_nm -B"
6678 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6680 lt_cv_path_NM="$tmp_nm -p"
6684 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6685 continue # so that we can try to find one that supports BSD flags
6694 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6697 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6698 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6703 { echo "$as_me:$LINENO: checking for GNU make" >&5
6704 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6705 if test "${llvm_cv_gnu_make_command+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 llvm_cv_gnu_make_command=''
6709 for a in "$MAKE" make gmake gnumake ; do
6710 if test -z "$a" ; then continue ; fi ;
6711 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6713 llvm_cv_gnu_make_command=$a ;
6718 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6719 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6720 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6724 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6725 echo "${ECHO_T}\"Not found\"" >&6; };
6729 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6730 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6732 if test "$LN_S" = "ln -s"; then
6733 { echo "$as_me:$LINENO: result: yes" >&5
6734 echo "${ECHO_T}yes" >&6; }
6736 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6737 echo "${ECHO_T}no, using $LN_S" >&6; }
6740 # Extract the first word of "cmp", so it can be a program name with args.
6741 set dummy cmp; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_CMP+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6772 if test -n "$CMP"; then
6773 { echo "$as_me:$LINENO: result: $CMP" >&5
6774 echo "${ECHO_T}$CMP" >&6; }
6776 { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6781 # Extract the first word of "cp", so it can be a program name with args.
6782 set dummy cp; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_CP+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6813 if test -n "$CP"; then
6814 { echo "$as_me:$LINENO: result: $CP" >&5
6815 echo "${ECHO_T}$CP" >&6; }
6817 { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6822 # Extract the first word of "date", so it can be a program name with args.
6823 set dummy date; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_path_DATE+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6853 DATE=$ac_cv_path_DATE
6854 if test -n "$DATE"; then
6855 { echo "$as_me:$LINENO: result: $DATE" >&5
6856 echo "${ECHO_T}$DATE" >&6; }
6858 { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6863 # Extract the first word of "find", so it can be a program name with args.
6864 set dummy find; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_path_FIND+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6894 FIND=$ac_cv_path_FIND
6895 if test -n "$FIND"; then
6896 { echo "$as_me:$LINENO: result: $FIND" >&5
6897 echo "${ECHO_T}$FIND" >&6; }
6899 { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6904 # Extract the first word of "grep", so it can be a program name with args.
6905 set dummy grep; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_GREP+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6935 GREP=$ac_cv_path_GREP
6936 if test -n "$GREP"; then
6937 { echo "$as_me:$LINENO: result: $GREP" >&5
6938 echo "${ECHO_T}$GREP" >&6; }
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6945 # Extract the first word of "mkdir", so it can be a program name with args.
6946 set dummy mkdir; 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_MKDIR+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 ac_cv_path_MKDIR="$MKDIR" # 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_MKDIR="$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_MKDIR" && ac_cv_path_MKDIR="mkdir"
6976 MKDIR=$ac_cv_path_MKDIR
6977 if test -n "$MKDIR"; then
6978 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6979 echo "${ECHO_T}$MKDIR" >&6; }
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6986 # Extract the first word of "mv", so it can be a program name with args.
6987 set dummy mv; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_path_MV+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7018 if test -n "$MV"; then
7019 { echo "$as_me:$LINENO: result: $MV" >&5
7020 echo "${ECHO_T}$MV" >&6; }
7022 { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_prog_RANLIB+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 if test -n "$RANLIB"; then
7036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 RANLIB=$ac_cv_prog_RANLIB
7056 if test -n "$RANLIB"; then
7057 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7058 echo "${ECHO_T}$RANLIB" >&6; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7066 if test -z "$ac_cv_prog_RANLIB"; then
7067 ac_ct_RANLIB=$RANLIB
7068 # Extract the first word of "ranlib", so it can be a program name with args.
7069 set dummy ranlib; ac_word=$2
7070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7072 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 if test -n "$ac_ct_RANLIB"; then
7076 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_prog_ac_ct_RANLIB="ranlib"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7096 if test -n "$ac_ct_RANLIB"; then
7097 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7098 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7100 { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7104 if test "x$ac_ct_RANLIB" = x; then
7107 case $cross_compiling:$ac_tool_warned in
7109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7110 whose name does not start with the host triplet. If you think this
7111 configuration is useful to you, please write to autoconf@gnu.org." >&5
7112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7113 whose name does not start with the host triplet. If you think this
7114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7115 ac_tool_warned=yes ;;
7117 RANLIB=$ac_ct_RANLIB
7120 RANLIB="$ac_cv_prog_RANLIB"
7123 if test -n "$ac_tool_prefix"; then
7124 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7125 set dummy ${ac_tool_prefix}ar; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_prog_AR+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 if test -n "$AR"; then
7132 ac_cv_prog_AR="$AR" # Let the user override the test.
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_prog_AR="${ac_tool_prefix}ar"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 if test -n "$AR"; then
7153 { echo "$as_me:$LINENO: result: $AR" >&5
7154 echo "${ECHO_T}$AR" >&6; }
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7162 if test -z "$ac_cv_prog_AR"; then
7164 # Extract the first word of "ar", so it can be a program name with args.
7165 set dummy ar; ac_word=$2
7166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 if test -n "$ac_ct_AR"; then
7172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_prog_ac_ct_AR="ar"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7192 if test -n "$ac_ct_AR"; then
7193 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7194 echo "${ECHO_T}$ac_ct_AR" >&6; }
7196 { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7200 if test "x$ac_ct_AR" = x; then
7203 case $cross_compiling:$ac_tool_warned in
7205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7206 whose name does not start with the host triplet. If you think this
7207 configuration is useful to you, please write to autoconf@gnu.org." >&5
7208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7209 whose name does not start with the host triplet. If you think this
7210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7211 ac_tool_warned=yes ;;
7219 # Extract the first word of "rm", so it can be a program name with args.
7220 set dummy rm; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_path_RM+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7251 if test -n "$RM"; then
7252 { echo "$as_me:$LINENO: result: $RM" >&5
7253 echo "${ECHO_T}$RM" >&6; }
7255 { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7260 # Extract the first word of "sed", so it can be a program name with args.
7261 set dummy sed; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_SED+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7292 if test -n "$SED"; then
7293 { echo "$as_me:$LINENO: result: $SED" >&5
7294 echo "${ECHO_T}$SED" >&6; }
7296 { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7301 # Extract the first word of "tar", so it can be a program name with args.
7302 set dummy tar; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_TAR+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7333 if test -n "$TAR"; then
7334 { echo "$as_me:$LINENO: result: $TAR" >&5
7335 echo "${ECHO_T}$TAR" >&6; }
7337 { echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6; }
7342 # Extract the first word of "pwd", so it can be a program name with args.
7343 set dummy pwd; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_BINPWD+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7373 BINPWD=$ac_cv_path_BINPWD
7374 if test -n "$BINPWD"; then
7375 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7376 echo "${ECHO_T}$BINPWD" >&6; }
7378 { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7384 # Extract the first word of "Graphviz", so it can be a program name with args.
7385 set dummy Graphviz; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7415 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7416 if test -n "$GRAPHVIZ"; then
7417 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7418 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7420 { echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6; }
7425 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7427 cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_GRAPHVIZ 1
7431 if test "$llvm_cv_os_type" = "MingW" ; then
7432 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7435 cat >>confdefs.h <<_ACEOF
7436 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7440 # Extract the first word of "dot", so it can be a program name with args.
7441 set dummy dot; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_path_DOT+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7472 if test -n "$DOT"; then
7473 { echo "$as_me:$LINENO: result: $DOT" >&5
7474 echo "${ECHO_T}$DOT" >&6; }
7476 { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7481 if test "$DOT" != "echo dot" ; then
7483 cat >>confdefs.h <<\_ACEOF
7487 if test "$llvm_cv_os_type" = "MingW" ; then
7488 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7491 cat >>confdefs.h <<_ACEOF
7492 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7496 # Extract the first word of "fdp", so it can be a program name with args.
7497 set dummy fdp; ac_word=$2
7498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7500 if test "${ac_cv_path_FDP+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7528 if test -n "$FDP"; then
7529 { echo "$as_me:$LINENO: result: $FDP" >&5
7530 echo "${ECHO_T}$FDP" >&6; }
7532 { echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6; }
7537 if test "$FDP" != "echo fdp" ; then
7539 cat >>confdefs.h <<\_ACEOF
7543 if test "$llvm_cv_os_type" = "MingW" ; then
7544 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7547 cat >>confdefs.h <<_ACEOF
7548 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7552 # Extract the first word of "neato", so it can be a program name with args.
7553 set dummy neato; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_NEATO+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7583 NEATO=$ac_cv_path_NEATO
7584 if test -n "$NEATO"; then
7585 { echo "$as_me:$LINENO: result: $NEATO" >&5
7586 echo "${ECHO_T}$NEATO" >&6; }
7588 { echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6; }
7593 if test "$NEATO" != "echo neato" ; then
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_NEATO 1
7599 if test "$llvm_cv_os_type" = "MingW" ; then
7600 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7603 cat >>confdefs.h <<_ACEOF
7604 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7608 # Extract the first word of "twopi", so it can be a program name with args.
7609 set dummy twopi; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_path_TWOPI+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7639 TWOPI=$ac_cv_path_TWOPI
7640 if test -n "$TWOPI"; then
7641 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7642 echo "${ECHO_T}$TWOPI" >&6; }
7644 { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7649 if test "$TWOPI" != "echo twopi" ; then
7651 cat >>confdefs.h <<\_ACEOF
7652 #define HAVE_TWOPI 1
7655 if test "$llvm_cv_os_type" = "MingW" ; then
7656 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7659 cat >>confdefs.h <<_ACEOF
7660 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7664 # Extract the first word of "circo", so it can be a program name with args.
7665 set dummy circo; ac_word=$2
7666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668 if test "${ac_cv_path_CIRCO+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7683 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7695 CIRCO=$ac_cv_path_CIRCO
7696 if test -n "$CIRCO"; then
7697 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7698 echo "${ECHO_T}$CIRCO" >&6; }
7700 { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7705 if test "$CIRCO" != "echo circo" ; then
7707 cat >>confdefs.h <<\_ACEOF
7708 #define HAVE_CIRCO 1
7711 if test "$llvm_cv_os_type" = "MingW" ; then
7712 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7715 cat >>confdefs.h <<_ACEOF
7716 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7720 for ac_prog in gv gsview32
7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
7723 set dummy $ac_prog; ac_word=$2
7724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7726 if test "${ac_cv_path_GV+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 if test -n "$GV"; then
7754 { echo "$as_me:$LINENO: result: $GV" >&5
7755 echo "${ECHO_T}$GV" >&6; }
7757 { echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6; }
7762 test -n "$GV" && break
7764 test -n "$GV" || GV="echo gv"
7766 if test "$GV" != "echo gv" ; then
7768 cat >>confdefs.h <<\_ACEOF
7772 if test "$llvm_cv_os_type" = "MingW" ; then
7773 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7776 cat >>confdefs.h <<_ACEOF
7777 #define LLVM_PATH_GV "$GV${EXEEXT}"
7781 # Extract the first word of "dotty", so it can be a program name with args.
7782 set dummy dotty; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_path_DOTTY+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7812 DOTTY=$ac_cv_path_DOTTY
7813 if test -n "$DOTTY"; then
7814 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7815 echo "${ECHO_T}$DOTTY" >&6; }
7817 { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7822 if test "$DOTTY" != "echo dotty" ; then
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_DOTTY 1
7828 if test "$llvm_cv_os_type" = "MingW" ; then
7829 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7832 cat >>confdefs.h <<_ACEOF
7833 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7839 # Extract the first word of "perl", so it can be a program name with args.
7840 set dummy perl; ac_word=$2
7841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7843 if test "${ac_cv_path_PERL+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7870 PERL=$ac_cv_path_PERL
7871 if test -n "$PERL"; then
7872 { echo "$as_me:$LINENO: result: $PERL" >&5
7873 echo "${ECHO_T}$PERL" >&6; }
7875 { echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6; }
7880 if test "$PERL" != "none"; then
7881 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7882 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7883 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7884 { echo "$as_me:$LINENO: result: yes" >&5
7885 echo "${ECHO_T}yes" >&6; }
7888 { echo "$as_me:$LINENO: result: not found" >&5
7889 echo "${ECHO_T}not found" >&6; }
7894 if test x"$PERL" = xnone; then
7897 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7898 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7899 { (exit 1); exit 1; }; }
7905 # Find a good install program. We prefer a C program (faster),
7906 # so one script is as good as another. But avoid the broken or
7907 # incompatible versions:
7908 # SysV /etc/install, /usr/sbin/install
7909 # SunOS /usr/etc/install
7910 # IRIX /sbin/install
7912 # AmigaOS /C/install, which installs bootblocks on floppy discs
7913 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7914 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7915 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7916 # OS/2's system install, which has a completely different semantic
7917 # ./install, which can be erroneously created by make from ./install.sh.
7918 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7919 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7920 if test -z "$INSTALL"; then
7921 if test "${ac_cv_path_install+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 test -z "$as_dir" && as_dir=.
7929 # Account for people who put trailing slashes in PATH elements.
7931 ./ | .// | /cC/* | \
7932 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7933 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7936 # OSF1 and SCO ODT 3.0 have their own names for install.
7937 # Don't use installbsd from OSF since it installs stuff as root
7939 for ac_prog in ginstall scoinst install; do
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7942 if test $ac_prog = install &&
7943 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7944 # AIX install. It has an incompatible calling convention.
7946 elif test $ac_prog = install &&
7947 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7948 # program-specific install script used by HP pwplus--don't use.
7951 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7964 if test "${ac_cv_path_install+set}" = set; then
7965 INSTALL=$ac_cv_path_install
7967 # As a last resort, use the slow shell script. Don't cache a
7968 # value for INSTALL within a source directory, because that will
7969 # break other packages using the cache if that directory is
7970 # removed, or if the value is a relative name.
7971 INSTALL=$ac_install_sh
7974 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7975 echo "${ECHO_T}$INSTALL" >&6; }
7977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7978 # It thinks the first close brace ends the variable substitution.
7979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7986 [\\/$]* | ?:[\\/]* ) ;;
7987 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7990 # Extract the first word of "bzip2", so it can be a program name with args.
7991 set dummy bzip2; ac_word=$2
7992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994 if test "${ac_cv_path_BZIP2+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 BZIP2=$ac_cv_path_BZIP2
8021 if test -n "$BZIP2"; then
8022 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8023 echo "${ECHO_T}$BZIP2" >&6; }
8025 { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8030 # Extract the first word of "cat", so it can be a program name with args.
8031 set dummy cat; ac_word=$2
8032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8034 if test "${ac_cv_path_CAT+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 if test -n "$CAT"; then
8062 { echo "$as_me:$LINENO: result: $CAT" >&5
8063 echo "${ECHO_T}$CAT" >&6; }
8065 { echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6; }
8070 # Extract the first word of "doxygen", so it can be a program name with args.
8071 set dummy doxygen; ac_word=$2
8072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8074 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8089 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 DOXYGEN=$ac_cv_path_DOXYGEN
8101 if test -n "$DOXYGEN"; then
8102 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8103 echo "${ECHO_T}$DOXYGEN" >&6; }
8105 { echo "$as_me:$LINENO: result: no" >&5
8106 echo "${ECHO_T}no" >&6; }
8110 # Extract the first word of "groff", so it can be a program name with args.
8111 set dummy groff; ac_word=$2
8112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8114 if test "${ac_cv_path_GROFF+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 GROFF=$ac_cv_path_GROFF
8141 if test -n "$GROFF"; then
8142 { echo "$as_me:$LINENO: result: $GROFF" >&5
8143 echo "${ECHO_T}$GROFF" >&6; }
8145 { echo "$as_me:$LINENO: result: no" >&5
8146 echo "${ECHO_T}no" >&6; }
8150 # Extract the first word of "gzip", so it can be a program name with args.
8151 set dummy gzip; ac_word=$2
8152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8154 if test "${ac_cv_path_GZIP+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 GZIP=$ac_cv_path_GZIP
8181 if test -n "$GZIP"; then
8182 { echo "$as_me:$LINENO: result: $GZIP" >&5
8183 echo "${ECHO_T}$GZIP" >&6; }
8185 { echo "$as_me:$LINENO: result: no" >&5
8186 echo "${ECHO_T}no" >&6; }
8190 # Extract the first word of "pod2html", so it can be a program name with args.
8191 set dummy pod2html; ac_word=$2
8192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194 if test "${ac_cv_path_POD2HTML+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8209 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 POD2HTML=$ac_cv_path_POD2HTML
8221 if test -n "$POD2HTML"; then
8222 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8223 echo "${ECHO_T}$POD2HTML" >&6; }
8225 { echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6; }
8230 # Extract the first word of "pod2man", so it can be a program name with args.
8231 set dummy pod2man; ac_word=$2
8232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8234 if test "${ac_cv_path_POD2MAN+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8249 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 POD2MAN=$ac_cv_path_POD2MAN
8261 if test -n "$POD2MAN"; then
8262 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8263 echo "${ECHO_T}$POD2MAN" >&6; }
8265 { echo "$as_me:$LINENO: result: no" >&5
8266 echo "${ECHO_T}no" >&6; }
8270 # Extract the first word of "pdfroff", so it can be a program name with args.
8271 set dummy pdfroff; ac_word=$2
8272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8274 if test "${ac_cv_path_PDFROFF+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8289 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 PDFROFF=$ac_cv_path_PDFROFF
8301 if test -n "$PDFROFF"; then
8302 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8303 echo "${ECHO_T}$PDFROFF" >&6; }
8305 { echo "$as_me:$LINENO: result: no" >&5
8306 echo "${ECHO_T}no" >&6; }
8310 # Extract the first word of "runtest", so it can be a program name with args.
8311 set dummy runtest; ac_word=$2
8312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8314 if test "${ac_cv_path_RUNTEST+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 RUNTEST=$ac_cv_path_RUNTEST
8341 if test -n "$RUNTEST"; then
8342 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8343 echo "${ECHO_T}$RUNTEST" >&6; }
8345 { echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6; }
8352 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8353 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8355 # Check whether --with-tclinclude was given.
8356 if test "${with_tclinclude+set}" = set; then
8357 withval=$with_tclinclude; with_tclinclude=${withval}
8362 if test "${ac_cv_path_tclsh+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 if test x"${with_tclinclude}" != x ; then
8367 if test -f ${with_tclinclude}/tclsh ; then
8368 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8369 elif test -f ${with_tclinclude}/src/tclsh ; then
8370 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8372 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8373 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8374 { (exit 1); exit 1; }; }
8380 if test x"${ac_cv_path_tclsh}" = x ; then
8381 { echo "$as_me:$LINENO: result: none" >&5
8382 echo "${ECHO_T}none" >&6; }
8383 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
8385 # Extract the first word of "$ac_prog", so it can be a program name with args.
8386 set dummy $ac_prog; ac_word=$2
8387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8389 if test "${ac_cv_path_TCLSH+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8404 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 TCLSH=$ac_cv_path_TCLSH
8416 if test -n "$TCLSH"; then
8417 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8418 echo "${ECHO_T}$TCLSH" >&6; }
8420 { echo "$as_me:$LINENO: result: no" >&5
8421 echo "${ECHO_T}no" >&6; }
8425 test -n "$TCLSH" && break
8428 if test x"${TCLSH}" = x ; then
8429 ac_cv_path_tclsh='';
8431 ac_cv_path_tclsh="${TCLSH}";
8434 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8435 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8436 TCLSH="${ac_cv_path_tclsh}"
8440 # Extract the first word of "zip", so it can be a program name with args.
8441 set dummy zip; ac_word=$2
8442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8444 if test "${ac_cv_path_ZIP+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8459 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 if test -n "$ZIP"; then
8472 { echo "$as_me:$LINENO: result: $ZIP" >&5
8473 echo "${ECHO_T}$ZIP" >&6; }
8475 { echo "$as_me:$LINENO: result: no" >&5
8476 echo "${ECHO_T}no" >&6; }
8480 for ac_prog in ocamlc
8482 # Extract the first word of "$ac_prog", so it can be a program name with args.
8483 set dummy $ac_prog; ac_word=$2
8484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8486 if test "${ac_cv_path_OCAMLC+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 test -z "$as_dir" && as_dir=.
8499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8501 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 OCAMLC=$ac_cv_path_OCAMLC
8513 if test -n "$OCAMLC"; then
8514 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8515 echo "${ECHO_T}$OCAMLC" >&6; }
8517 { echo "$as_me:$LINENO: result: no" >&5
8518 echo "${ECHO_T}no" >&6; }
8522 test -n "$OCAMLC" && break
8525 for ac_prog in ocamlopt
8527 # Extract the first word of "$ac_prog", so it can be a program name with args.
8528 set dummy $ac_prog; ac_word=$2
8529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8531 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8546 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 OCAMLOPT=$ac_cv_path_OCAMLOPT
8558 if test -n "$OCAMLOPT"; then
8559 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8560 echo "${ECHO_T}$OCAMLOPT" >&6; }
8562 { echo "$as_me:$LINENO: result: no" >&5
8563 echo "${ECHO_T}no" >&6; }
8567 test -n "$OCAMLOPT" && break
8570 for ac_prog in ocamldep
8572 # Extract the first word of "$ac_prog", so it can be a program name with args.
8573 set dummy $ac_prog; ac_word=$2
8574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8576 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8591 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 OCAMLDEP=$ac_cv_path_OCAMLDEP
8603 if test -n "$OCAMLDEP"; then
8604 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8605 echo "${ECHO_T}$OCAMLDEP" >&6; }
8607 { echo "$as_me:$LINENO: result: no" >&5
8608 echo "${ECHO_T}no" >&6; }
8612 test -n "$OCAMLDEP" && break
8615 for ac_prog in ocamldoc
8617 # Extract the first word of "$ac_prog", so it can be a program name with args.
8618 set dummy $ac_prog; ac_word=$2
8619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8621 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633 test -z "$as_dir" && as_dir=.
8634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8636 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 OCAMLDOC=$ac_cv_path_OCAMLDOC
8648 if test -n "$OCAMLDOC"; then
8649 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8650 echo "${ECHO_T}$OCAMLDOC" >&6; }
8652 { echo "$as_me:$LINENO: result: no" >&5
8653 echo "${ECHO_T}no" >&6; }
8657 test -n "$OCAMLDOC" && break
8660 for ac_prog in gas as
8662 # Extract the first word of "$ac_prog", so it can be a program name with args.
8663 set dummy $ac_prog; ac_word=$2
8664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8666 if test "${ac_cv_path_GAS+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8681 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8693 if test -n "$GAS"; then
8694 { echo "$as_me:$LINENO: result: $GAS" >&5
8695 echo "${ECHO_T}$GAS" >&6; }
8697 { echo "$as_me:$LINENO: result: no" >&5
8698 echo "${ECHO_T}no" >&6; }
8702 test -n "$GAS" && break
8706 { echo "$as_me:$LINENO: checking for linker version" >&5
8707 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8708 if test "${llvm_cv_link_version+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 version_string="$(ld -v 2>&1 | head -1)"
8715 if (echo "$version_string" | grep -q "ld64"); then
8716 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8718 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8722 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8723 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8725 cat >>confdefs.h <<_ACEOF
8726 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8731 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8732 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8733 if test "${llvm_cv_link_use_r+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 ac_cpp='$CPP $CPPFLAGS'
8738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8743 CFLAGS="$CFLAGS -Wl,-R."
8744 cat >conftest.$ac_ext <<_ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (ac_try="$ac_link"
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_link") 2>conftest.er1
8768 grep -v '^ *+' conftest.er1 >conftest.err
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } &&
8773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8774 { (case "(($ac_try" in
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_try") 2>&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest$ac_exeext'
8784 { (case "(($ac_try" in
8785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786 *) ac_try_echo=$ac_try;;
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 (eval "$ac_try") 2>&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
8793 llvm_cv_link_use_r=yes
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 llvm_cv_link_use_r=no
8801 rm -f core conftest.err conftest.$ac_objext \
8802 conftest$ac_exeext conftest.$ac_ext
8805 ac_cpp='$CPP $CPPFLAGS'
8806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8812 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8813 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8814 if test "$llvm_cv_link_use_r" = yes ; then
8816 cat >>confdefs.h <<\_ACEOF
8817 #define HAVE_LINK_R 1
8823 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8824 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8825 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 ac_cpp='$CPP $CPPFLAGS'
8830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8835 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8836 cat >conftest.$ac_ext <<_ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (ac_try="$ac_link"
8854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855 *) ac_try_echo=$ac_try;;
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858 (eval "$ac_link") 2>conftest.er1
8860 grep -v '^ *+' conftest.er1 >conftest.err
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8866 { (case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871 (eval "$ac_try") 2>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (case "(($ac_try" in
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881 (eval "$ac_try") 2>&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; }; then
8885 llvm_cv_link_use_export_dynamic=yes
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8890 llvm_cv_link_use_export_dynamic=no
8893 rm -f core conftest.err conftest.$ac_objext \
8894 conftest$ac_exeext conftest.$ac_ext
8897 ac_cpp='$CPP $CPPFLAGS'
8898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8904 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8905 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8906 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_LINK_EXPORT_DYNAMIC 1
8915 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8916 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8917 if test "${llvm_cv_link_use_version_script+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 ac_cpp='$CPP $CPPFLAGS'
8922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8928 # The following code is from the autoconf manual,
8929 # "11.13: Limitations of Usual Tools".
8930 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8931 # Use mktemp if possible; otherwise fall back on mkdir,
8932 # with $RANDOM to make collisions less likely.
8936 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8938 test -n "$tmp" && test -d "$tmp"
8940 tmp=$TMPDIR/foo$$-$RANDOM
8941 (umask 077 && mkdir "$tmp")
8944 echo "{" > "$tmp/export.map"
8945 echo " global: main;" >> "$tmp/export.map"
8946 echo " local: *;" >> "$tmp/export.map"
8947 echo "};" >> "$tmp/export.map"
8949 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8950 cat >conftest.$ac_ext <<_ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (ac_try="$ac_link"
8968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969 *) ac_try_echo=$ac_try;;
8971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8972 (eval "$ac_link") 2>conftest.er1
8974 grep -v '^ *+' conftest.er1 >conftest.err
8976 cat conftest.err >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8980 { (case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; } &&
8989 { ac_try='test -s conftest$ac_exeext'
8990 { (case "(($ac_try" in
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_try") 2>&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 llvm_cv_link_use_version_script=yes
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 llvm_cv_link_use_version_script=no
9007 rm -f core conftest.err conftest.$ac_objext \
9008 conftest$ac_exeext conftest.$ac_ext
9009 rm "$tmp/export.map"
9013 ac_cpp='$CPP $CPPFLAGS'
9014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9020 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9021 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9022 if test "$llvm_cv_link_use_version_script" = yes ; then
9023 HAVE_LINK_VERSION_SCRIPT=1
9030 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9031 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9032 if test "${ac_cv_c_const+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 cat >conftest.$ac_ext <<_ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9045 /* FIXME: Include the comments suggested by Paul. */
9047 /* Ultrix mips cc rejects this. */
9048 typedef int charset[2];
9050 /* SunOS 4.1.1 cc rejects this. */
9051 char const *const *ccp;
9053 /* NEC SVR4.0.2 mips cc rejects this. */
9054 struct point {int x, y;};
9055 static struct point const zero = {0,0};
9056 /* AIX XL C 1.02.0.0 rejects this.
9057 It does not let you subtract one const X* pointer from another in
9058 an arm of an if-expression whose if-part is not a constant
9060 const char *g = "string";
9061 ccp = &g + (g ? g-g : 0);
9062 /* HPUX 7.0 cc rejects these. */
9065 ccp = (char const *const *) p;
9066 { /* SCO 3.2v4 cc rejects this. */
9068 char const *s = 0 ? (char *) 0 : (char const *) 0;
9073 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9075 const int *foo = &x[0];
9078 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9079 typedef const int *iptr;
9083 { /* AIX XL C 1.02.0.0 rejects this saying
9084 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9085 struct s { int j; const int *ap[3]; };
9086 struct s *b; b->j = 5;
9088 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9092 return !x[0] && !zero.x;
9099 rm -f conftest.$ac_objext
9100 if { (ac_try="$ac_compile"
9102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103 *) ac_try_echo=$ac_try;;
9105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9106 (eval "$ac_compile") 2>conftest.er1
9108 grep -v '^ *+' conftest.er1 >conftest.err
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9114 { (case "(($ac_try" in
9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116 *) ac_try_echo=$ac_try;;
9118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119 (eval "$ac_try") 2>&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; } &&
9123 { ac_try='test -s conftest.$ac_objext'
9124 { (case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_try") 2>&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9143 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9144 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9145 if test $ac_cv_c_const = no; then
9147 cat >>confdefs.h <<\_ACEOF
9159 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9160 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9161 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9162 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 cat >conftest.$ac_ext <<_ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172 #include <sys/types.h>
9184 rm -f conftest.$ac_objext
9185 if { (ac_try="$ac_compile"
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_compile") 2>conftest.er1
9193 grep -v '^ *+' conftest.er1 >conftest.err
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9199 { (case "(($ac_try" in
9200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201 *) ac_try_echo=$ac_try;;
9203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9204 (eval "$ac_try") 2>&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest.$ac_objext'
9209 { (case "(($ac_try" in
9210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9214 (eval "$ac_try") 2>&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); }; }; then
9218 eval "$as_ac_Header=yes"
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 eval "$as_ac_Header=no"
9226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228 ac_res=`eval echo '${'$as_ac_Header'}'`
9229 { echo "$as_me:$LINENO: result: $ac_res" >&5
9230 echo "${ECHO_T}$ac_res" >&6; }
9231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9232 cat >>confdefs.h <<_ACEOF
9233 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9236 ac_header_dirent=$ac_hdr; break
9240 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9241 if test $ac_header_dirent = dirent.h; then
9242 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9243 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9244 if test "${ac_cv_search_opendir+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 ac_func_search_save_LIBS=$LIBS
9248 cat >conftest.$ac_ext <<_ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9255 /* Override any GCC internal prototype to avoid an error.
9256 Use char because int might match the return type of a GCC
9257 builtin and then its argument prototype would still apply. */
9270 for ac_lib in '' dir; do
9271 if test -z "$ac_lib"; then
9272 ac_res="none required"
9275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (ac_try="$ac_link"
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284 (eval "$ac_link") 2>conftest.er1
9286 grep -v '^ *+' conftest.er1 >conftest.err
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
9291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9292 { (case "(($ac_try" in
9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_try") 2>&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; } &&
9301 { ac_try='test -s conftest$ac_exeext'
9302 { (case "(($ac_try" in
9303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304 *) ac_try_echo=$ac_try;;
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307 (eval "$ac_try") 2>&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 ac_cv_search_opendir=$ac_res
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9319 rm -f core conftest.err conftest.$ac_objext \
9321 if test "${ac_cv_search_opendir+set}" = set; then
9325 if test "${ac_cv_search_opendir+set}" = set; then
9328 ac_cv_search_opendir=no
9331 LIBS=$ac_func_search_save_LIBS
9333 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9334 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9335 ac_res=$ac_cv_search_opendir
9336 if test "$ac_res" != no; then
9337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9342 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9343 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9344 if test "${ac_cv_search_opendir+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 ac_func_search_save_LIBS=$LIBS
9348 cat >conftest.$ac_ext <<_ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9370 for ac_lib in '' x; do
9371 if test -z "$ac_lib"; then
9372 ac_res="none required"
9375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (ac_try="$ac_link"
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384 (eval "$ac_link") 2>conftest.er1
9386 grep -v '^ *+' conftest.er1 >conftest.err
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } &&
9391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9392 { (case "(($ac_try" in
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_try") 2>&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; } &&
9401 { ac_try='test -s conftest$ac_exeext'
9402 { (case "(($ac_try" in
9403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9404 *) ac_try_echo=$ac_try;;
9406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9407 (eval "$ac_try") 2>&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_search_opendir=$ac_res
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9419 rm -f core conftest.err conftest.$ac_objext \
9421 if test "${ac_cv_search_opendir+set}" = set; then
9425 if test "${ac_cv_search_opendir+set}" = set; then
9428 ac_cv_search_opendir=no
9431 LIBS=$ac_func_search_save_LIBS
9433 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9434 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9435 ac_res=$ac_cv_search_opendir
9436 if test "$ac_res" != no; then
9437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9444 for ac_header in dlfcn.h
9446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 ac_res=`eval echo '${'$as_ac_Header'}'`
9454 { echo "$as_me:$LINENO: result: $ac_res" >&5
9455 echo "${ECHO_T}$ac_res" >&6; }
9457 # Is the header compilable?
9458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9460 cat >conftest.$ac_ext <<_ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466 $ac_includes_default
9467 #include <$ac_header>
9469 rm -f conftest.$ac_objext
9470 if { (ac_try="$ac_compile"
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_compile") 2>conftest.er1
9478 grep -v '^ *+' conftest.er1 >conftest.err
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9484 { (case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_try") 2>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest.$ac_objext'
9494 { (case "(($ac_try" in
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_try") 2>&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 ac_header_compiler=yes
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9508 ac_header_compiler=no
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9513 echo "${ECHO_T}$ac_header_compiler" >&6; }
9515 # Is the header present?
9516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9518 cat >conftest.$ac_ext <<_ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 #include <$ac_header>
9526 if { (ac_try="$ac_cpp conftest.$ac_ext"
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9534 grep -v '^ *+' conftest.er1 >conftest.err
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } >/dev/null; then
9539 if test -s conftest.err; then
9540 ac_cpp_err=$ac_c_preproc_warn_flag
9541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9548 if test -z "$ac_cpp_err"; then
9549 ac_header_preproc=yes
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_header_preproc=no
9557 rm -f conftest.err conftest.$ac_ext
9558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9559 echo "${ECHO_T}$ac_header_preproc" >&6; }
9561 # So? What about this header?
9562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9568 ac_header_preproc=yes
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9584 ## ----------------------------------- ##
9585 ## Report this to llvmbugs@cs.uiuc.edu ##
9586 ## ----------------------------------- ##
9588 ) | sed "s/^/$as_me: WARNING: /" >&2
9591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 eval "$as_ac_Header=\$ac_header_preproc"
9598 ac_res=`eval echo '${'$as_ac_Header'}'`
9599 { echo "$as_me:$LINENO: result: $ac_res" >&5
9600 echo "${ECHO_T}$ac_res" >&6; }
9603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9604 cat >>confdefs.h <<_ACEOF
9605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9612 # Check whether --enable-ltdl-install was given.
9613 if test "${enable_ltdl_install+set}" = set; then
9614 enableval=$enable_ltdl_install;
9620 if test x"${enable_ltdl_install-no}" != xno; then
9622 INSTALL_LTDL_FALSE='#'
9624 INSTALL_LTDL_TRUE='#'
9630 if test x"${enable_ltdl_convenience-no}" != xno; then
9631 CONVENIENCE_LTDL_TRUE=
9632 CONVENIENCE_LTDL_FALSE='#'
9634 CONVENIENCE_LTDL_TRUE='#'
9635 CONVENIENCE_LTDL_FALSE=
9639 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9640 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9642 libname_spec='lib$name'
9650 shlibpath_overrides_runpath=unknown
9652 dynamic_linker="$host_os ld.so"
9653 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9654 if test "$GCC" = yes; then
9655 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9656 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9657 # if the path contains ";" then we assume it to be the separator
9658 # otherwise default to the standard path separator (i.e. ":") - it is
9659 # assumed that no part of a normal pathname contains ";" but that should
9660 # okay in the real world where ";" in dirpaths is itself problematic.
9661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9666 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9668 need_lib_prefix=unknown
9669 hardcode_into_libs=no
9671 # when you set need_version to no, make sure it does not cause -set_version
9672 # flags to be left without arguments
9673 need_version=unknown
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9679 shlibpath_var=LIBPATH
9681 # AIX 3 has no versioning support, so we append a major version to the name.
9682 soname_spec='${libname}${release}${shared_ext}$major'
9689 hardcode_into_libs=yes
9690 if test "$host_cpu" = ia64; then
9691 # AIX 5 supports IA64
9692 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9693 shlibpath_var=LD_LIBRARY_PATH
9695 # With GCC up to 2.95.x, collect2 would create an import file
9696 # for dependence libraries. The import file would start with
9697 # the line `#! .'. This would cause the generated library to
9698 # depend on `.', always an invalid library. This was fixed in
9699 # development snapshots of GCC prior to 3.0.
9701 aix4 | aix4.[01] | aix4.[01].*)
9702 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9704 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9711 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9712 # soname into executable. Probably we can add versioning support to
9713 # collect2, so additional links can be useful in future.
9714 if test "$aix_use_runtimelinking" = yes; then
9715 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9716 # instead of lib<name>.a to let people know that these are not
9717 # typical AIX shared libraries.
9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720 # We preserve .a as extension for shared libraries through AIX4.2
9721 # and later when we are not doing run time linking.
9722 library_names_spec='${libname}${release}.a $libname.a'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9725 shlibpath_var=LIBPATH
9730 library_names_spec='$libname.ixlibrary $libname.a'
9731 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9732 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'
9736 library_names_spec='${libname}${shared_ext}'
9737 dynamic_linker="$host_os ld.so"
9738 shlibpath_var=LIBRARY_PATH
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745 soname_spec='${libname}${release}${shared_ext}$major'
9746 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9747 shlibpath_var=LD_LIBRARY_PATH
9748 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9749 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9750 # the default ld.so.conf also contains /usr/contrib/lib and
9751 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9752 # libtool to hard-code these into programs
9755 cygwin* | mingw* | pw32*)
9756 version_type=windows
9761 case $GCC,$host_os in
9762 yes,cygwin* | yes,mingw* | yes,pw32*)
9763 library_names_spec='$libname.dll.a'
9764 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9765 postinstall_cmds='base_file=`basename \${file}`~
9766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9767 dldir=$destdir/`dirname \$dlpath`~
9768 test -d \$dldir || mkdir -p \$dldir~
9769 $install_prog $dir/$dlname \$dldir/$dlname~
9770 chmod a+x \$dldir/$dlname'
9771 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9772 dlpath=$dir/\$dldll~
9774 shlibpath_overrides_runpath=yes
9778 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9779 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9780 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9783 # MinGW DLLs use traditional 'lib' prefix
9784 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9785 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9786 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9787 # It is most probably a Windows format PATH printed by
9788 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9789 # path with ; separators, and with drive letters. We can handle the
9790 # drive letters (cygwin fileutils understands them), so leave them,
9791 # especially as we might pass files found there to a mingw objdump,
9792 # which wouldn't understand a cygwinified path. Ahh.
9793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9799 # pw32 DLLs use 'pw' prefix rather than 'lib'
9800 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9806 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9809 dynamic_linker='Win32 ld.exe'
9810 # FIXME: first we should search . and the directory the executable is in
9814 darwin* | rhapsody*)
9815 dynamic_linker="$host_os dyld"
9819 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9820 soname_spec='${libname}${release}${major}$shared_ext'
9821 shlibpath_overrides_runpath=yes
9822 shlibpath_var=DYLD_LIBRARY_PATH
9823 shrext_cmds='.dylib'
9824 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9825 if test "$GCC" = yes; then
9826 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"`
9828 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 shlibpath_var=LD_LIBRARY_PATH
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 shlibpath_overrides_runpath=no
9854 hardcode_into_libs=yes
9855 dynamic_linker='GNU ld.so'
9858 freebsd* | dragonfly*)
9859 # DragonFly does not have aout. When/if they implement a new
9860 # versioning mechanism, adjust this.
9861 if test -x /usr/bin/objformat; then
9862 objformat=`/usr/bin/objformat`
9865 freebsd[123]*) objformat=aout ;;
9869 version_type=freebsd-$objformat
9870 case $version_type in
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9881 shlibpath_var=LD_LIBRARY_PATH
9884 shlibpath_overrides_runpath=yes
9886 freebsd3.[01]* | freebsdelf3.[01]*)
9887 shlibpath_overrides_runpath=yes
9888 hardcode_into_libs=yes
9890 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9891 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9892 shlibpath_overrides_runpath=no
9893 hardcode_into_libs=yes
9895 freebsd*) # from 4.6 on
9896 shlibpath_overrides_runpath=yes
9897 hardcode_into_libs=yes
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 hardcode_into_libs=yes
9912 hpux9* | hpux10* | hpux11*)
9913 # Give a soname corresponding to the major version so that dld.sl refuses to
9914 # link against other versions.
9921 hardcode_into_libs=yes
9922 dynamic_linker="$host_os dld.so"
9923 shlibpath_var=LD_LIBRARY_PATH
9924 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 if test "X$HPUX_IA64_MODE" = X32; then
9928 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9930 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9936 hardcode_into_libs=yes
9937 dynamic_linker="$host_os dld.sl"
9938 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9947 dynamic_linker="$host_os dld.sl"
9948 shlibpath_var=SHLIB_PATH
9949 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9951 soname_spec='${libname}${release}${shared_ext}$major'
9954 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9955 postinstall_cmds='chmod 555 $lib'
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 shlibpath_overrides_runpath=no
9967 hardcode_into_libs=yes
9970 irix5* | irix6* | nonstopux*)
9972 nonstopux*) version_type=nonstopux ;;
9974 if test "$lt_cv_prog_gnu_ld" = yes; then
9982 soname_spec='${libname}${release}${shared_ext}$major'
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9985 irix5* | nonstopux*)
9989 case $LD in # libtool.m4 will add one of these switches to LD
9990 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9991 libsuff= shlibsuff= libmagic=32-bit;;
9992 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9993 libsuff=32 shlibsuff=N32 libmagic=N32;;
9994 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9995 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9996 *) libsuff= shlibsuff= libmagic=never-match;;
10000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10001 shlibpath_overrides_runpath=no
10002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10004 hardcode_into_libs=yes
10007 # No shared lib support for Linux oldld, aout, or coff.
10008 linux*oldld* | linux*aout* | linux*coff*)
10012 # This must be Linux ELF.
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10020 shlibpath_var=LD_LIBRARY_PATH
10021 shlibpath_overrides_runpath=no
10022 # This implies no fast_install, which is unacceptable.
10023 # Some rework will be needed to allow for fast_install
10024 # before this can be enabled.
10025 hardcode_into_libs=yes
10027 # Append ld.so.conf contents to the search path
10028 if test -f /etc/ld.so.conf; then
10029 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' ' '`
10030 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10033 # We used to test for /lib/ld.so.1 and disable shared libraries on
10034 # powerpc, because MkLinux only supported shared libraries with the
10035 # GNU dynamic linker. Since this was broken with cross compilers,
10036 # most powerpc-linux boxes support dynamic linking these days and
10037 # people can always --disable-shared, the test was removed, and we
10038 # assume the GNU/Linux dynamic linker is in use.
10039 dynamic_linker='GNU/Linux ld.so'
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10047 soname_spec='${libname}${release}${shared_ext}$major'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath=no
10050 hardcode_into_libs=yes
10051 dynamic_linker='GNU ld.so'
10058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10061 dynamic_linker='NetBSD (a.out) ld.so'
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 dynamic_linker='NetBSD ld.elf_so'
10067 shlibpath_var=LD_LIBRARY_PATH
10068 shlibpath_overrides_runpath=yes
10069 hardcode_into_libs=yes
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 shlibpath_overrides_runpath=yes
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10084 soname_spec='${libname}${release}${shared_ext}$major'
10085 shlibpath_var=LD_LIBRARY_PATH
10086 shlibpath_overrides_runpath=yes
10091 sys_lib_dlsearch_path_spec="/usr/lib"
10093 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10095 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10096 *) need_version=no ;;
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10100 shlibpath_var=LD_LIBRARY_PATH
10101 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10103 openbsd2.[89] | openbsd2.[89].*)
10104 shlibpath_overrides_runpath=no
10107 shlibpath_overrides_runpath=yes
10111 shlibpath_overrides_runpath=yes
10116 libname_spec='$name'
10119 library_names_spec='$libname${shared_ext} $libname.a'
10120 dynamic_linker='OS/2 ld.exe'
10121 shlibpath_var=LIBPATH
10124 osf3* | osf4* | osf5*)
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 shlibpath_var=LD_LIBRARY_PATH
10131 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10132 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 shlibpath_var=LD_LIBRARY_PATH
10142 shlibpath_overrides_runpath=yes
10143 hardcode_into_libs=yes
10144 # ldd complains unless libraries are executable
10145 postinstall_cmds='chmod +x $lib'
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10151 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10152 shlibpath_var=LD_LIBRARY_PATH
10153 shlibpath_overrides_runpath=yes
10154 if test "$with_gnu_ld" = yes; then
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 case $host_vendor in
10167 shlibpath_overrides_runpath=no
10169 export_dynamic_flag_spec='${wl}-Blargedynsym'
10170 runpath_var=LD_RUN_PATH
10178 shlibpath_overrides_runpath=no
10179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10185 if test -d /usr/nec ;then
10187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10188 soname_spec='$libname${shared_ext}.$major'
10189 shlibpath_var=LD_LIBRARY_PATH
10193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10194 version_type=freebsd-elf
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 hardcode_into_libs=yes
10201 if test "$with_gnu_ld" = yes; then
10202 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10203 shlibpath_overrides_runpath=no
10205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10206 shlibpath_overrides_runpath=yes
10209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10213 sys_lib_dlsearch_path_spec='/usr/lib'
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 shlibpath_var=LD_LIBRARY_PATH
10227 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10228 echo "${ECHO_T}$dynamic_linker" >&6; }
10229 test "$dynamic_linker" = no && can_build_shared=no
10231 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10232 if test "$GCC" = yes; then
10233 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10237 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10238 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10239 if test "${libltdl_cv_shlibext+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 eval libltdl_cv_shlibext=$shrext_cmds
10247 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10248 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10249 if test -n "$libltdl_cv_shlibext"; then
10251 cat >>confdefs.h <<_ACEOF
10252 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10258 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10259 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10260 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 libltdl_cv_shlibpath_var="$shlibpath_var"
10265 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10266 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10267 if test -n "$libltdl_cv_shlibpath_var"; then
10269 cat >>confdefs.h <<_ACEOF
10270 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10276 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10277 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10278 if test "${libltdl_cv_sys_search_path+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10283 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10284 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10285 if test -n "$libltdl_cv_sys_search_path"; then
10287 for dir in $libltdl_cv_sys_search_path; do
10288 if test -z "$sys_search_path"; then
10289 sys_search_path="$dir"
10291 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10295 cat >>confdefs.h <<_ACEOF
10296 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10301 { echo "$as_me:$LINENO: checking for objdir" >&5
10302 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10303 if test "${libltdl_cv_objdir+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 libltdl_cv_objdir="$objdir"
10307 if test -n "$objdir"; then
10310 rm -f .libs 2>/dev/null
10311 mkdir .libs 2>/dev/null
10312 if test -d .libs; then
10313 libltdl_cv_objdir=.libs
10315 # MS-DOS does not allow filenames that begin with a dot.
10316 libltdl_cv_objdir=_libs
10318 rmdir .libs 2>/dev/null
10322 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10323 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10325 cat >>confdefs.h <<_ACEOF
10326 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10334 # Check for command to grab the raw symbol name followed by C symbol from nm.
10335 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10336 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10337 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 # These are sane defaults that work on at least a few old systems.
10342 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10344 # Character class describing NM global symbol codes.
10345 symcode='[BCDEGRST]'
10347 # Regexp to match symbols that can be accessed directly from C.
10348 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10350 # Transform an extracted symbol line into a proper C declaration
10351 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10353 # Transform an extracted symbol line into symbol name and symbol address
10354 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'"
10356 # Define system-specific variables.
10361 cygwin* | mingw* | pw32*)
10362 symcode='[ABCDGISTW]'
10364 hpux*) # Its linker distinguishes data from code symbols
10365 if test "$host_cpu" = ia64; then
10366 symcode='[ABCDEGRST]'
10368 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10369 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'"
10372 if test "$host_cpu" = ia64; then
10373 symcode='[ABCDGIRSTW]'
10374 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10375 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'"
10378 irix* | nonstopux*)
10379 symcode='[BCDEGRST]'
10382 symcode='[BCDEGQRST]'
10393 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10401 # Handle CRLF in mingw tool chain
10405 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10409 # If we're using GNU nm, then use its standard symbol codes.
10410 case `$NM -V 2>&1` in
10411 *GNU* | *'with BFD'*)
10412 symcode='[ABCDGIRSTW]' ;;
10415 # Try without a prefix undercore, then with it.
10416 for ac_symprfx in "" "_"; do
10418 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10419 symxfrm="\\1 $ac_symprfx\\2 \\2"
10421 # Write the raw and C identifiers.
10422 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10424 # Check to see that the pipe works correctly.
10428 cat > conftest.$ac_ext <<EOF
10433 void nm_test_func(){}
10437 int main(){nm_test_var='a';nm_test_func();return(0);}
10440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441 (eval $ac_compile) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; then
10445 # Now try to grab the symbols.
10447 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10448 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && test -s "$nlist"; then
10452 # Try sorting and uniquifying the output.
10453 if sort "$nlist" | uniq > "$nlist"T; then
10454 mv -f "$nlist"T "$nlist"
10459 # Make sure that we snagged all the symbols we need.
10460 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10461 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10462 cat <<EOF > conftest.$ac_ext
10468 # Now generate the symbol file.
10469 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10471 cat <<EOF >> conftest.$ac_ext
10472 #if defined (__STDC__) && __STDC__
10473 # define lt_ptr_t void *
10475 # define lt_ptr_t char *
10479 /* The mapping between symbol names and symbols. */
10484 lt_preloaded_symbols[] =
10487 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10488 cat <<\EOF >> conftest.$ac_ext
10496 # Now try linking the two files.
10497 mv conftest.$ac_objext conftstm.$ac_objext
10498 lt_save_LIBS="$LIBS"
10499 lt_save_CFLAGS="$CFLAGS"
10500 LIBS="conftstm.$ac_objext"
10501 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10503 (eval $ac_link) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10509 LIBS="$lt_save_LIBS"
10510 CFLAGS="$lt_save_CFLAGS"
10512 echo "cannot find nm_test_func in $nlist" >&5
10515 echo "cannot find nm_test_var in $nlist" >&5
10518 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10521 echo "$progname: failed program was:" >&5
10522 cat conftest.$ac_ext >&5
10524 rm -f conftest* conftst*
10526 # Do not use the global_symbol_pipe unless it works.
10527 if test "$pipe_works" = yes; then
10530 lt_cv_sys_global_symbol_pipe=
10536 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10537 lt_cv_sys_global_symbol_to_cdecl=
10539 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10540 { echo "$as_me:$LINENO: result: failed" >&5
10541 echo "${ECHO_T}failed" >&6; }
10543 { echo "$as_me:$LINENO: result: ok" >&5
10544 echo "${ECHO_T}ok" >&6; }
10548 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10549 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10550 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10554 libltdl_cv_preloaded_symbols=yes
10556 libltdl_cv_preloaded_symbols=no
10560 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10561 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10562 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10564 cat >>confdefs.h <<\_ACEOF
10565 #define HAVE_PRELOADED_SYMBOLS 1
10573 ac_cpp='$CPP $CPPFLAGS'
10574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10579 { echo "$as_me:$LINENO: checking for shl_load" >&5
10580 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10581 if test "${ac_cv_func_shl_load+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10592 #define shl_load innocuous_shl_load
10594 /* System header to define __stub macros and hopefully few prototypes,
10595 which can conflict with char shl_load (); below.
10596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10597 <limits.h> exists even on freestanding compilers. */
10600 # include <limits.h>
10602 # include <assert.h>
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10614 /* The GNU C library defines this for functions which it implements
10615 to always fail with ENOSYS. Some functions are actually named
10616 something starting with __ and the normal name is an alias. */
10617 #if defined __stub_shl_load || defined __stub___shl_load
10624 return shl_load ();
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (ac_try="$ac_link"
10631 case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_link") 2>conftest.er1
10638 grep -v '^ *+' conftest.er1 >conftest.err
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10644 { (case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_try") 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; } &&
10653 { ac_try='test -s conftest$ac_exeext'
10654 { (case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_try") 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10663 ac_cv_func_shl_load=yes
10665 echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.$ac_ext >&5
10668 ac_cv_func_shl_load=no
10671 rm -f core conftest.err conftest.$ac_objext \
10672 conftest$ac_exeext conftest.$ac_ext
10674 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10675 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10676 if test $ac_cv_func_shl_load = yes; then
10678 cat >>confdefs.h <<\_ACEOF
10679 #define HAVE_SHL_LOAD 1
10683 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10684 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10685 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 ac_check_lib_save_LIBS=$LIBS
10690 cat >conftest.$ac_ext <<_ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10707 return shl_load ();
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_try") 2>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_lib_dld_shl_load=yes
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_lib_dld_shl_load=no
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LIBS=$ac_check_lib_save_LIBS
10758 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10759 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10760 if test $ac_cv_lib_dld_shl_load = yes; then
10762 cat >>confdefs.h <<\_ACEOF
10763 #define HAVE_SHL_LOAD 1
10766 LIBADD_DL="$LIBADD_DL -ldld"
10768 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 ac_check_lib_save_LIBS=$LIBS
10775 cat >conftest.$ac_ext <<_ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10782 /* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
10797 rm -f conftest.$ac_objext conftest$ac_exeext
10798 if { (ac_try="$ac_link"
10799 case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_link") 2>conftest.er1
10806 grep -v '^ *+' conftest.er1 >conftest.err
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
10811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_try") 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 ac_cv_lib_dl_dlopen=yes
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 ac_cv_lib_dl_dlopen=no
10839 rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_lib_save_LIBS
10843 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10844 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10845 if test $ac_cv_lib_dl_dlopen = yes; then
10847 cat >>confdefs.h <<\_ACEOF
10848 #define HAVE_LIBDL 1
10851 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10853 cat >conftest.$ac_ext <<_ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10860 # include <dlfcn.h>
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (ac_try="$ac_link"
10873 case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_link") 2>conftest.er1
10880 grep -v '^ *+' conftest.er1 >conftest.err
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886 { (case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_try") 2>&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; } &&
10895 { ac_try='test -s conftest$ac_exeext'
10896 { (case "(($ac_try" in
10897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_try") 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10906 cat >>confdefs.h <<\_ACEOF
10907 #define HAVE_LIBDL 1
10909 libltdl_cv_func_dlopen="yes"
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10915 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10916 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 ac_check_lib_save_LIBS=$LIBS
10920 LIBS="-lsvld $LIBS"
10921 cat >conftest.$ac_ext <<_ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10928 /* Override any GCC internal prototype to avoid an error.
10929 Use char because int might match the return type of a GCC
10930 builtin and then its argument prototype would still apply. */
10943 rm -f conftest.$ac_objext conftest$ac_exeext
10944 if { (ac_try="$ac_link"
10945 case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_link") 2>conftest.er1
10952 grep -v '^ *+' conftest.er1 >conftest.err
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } &&
10957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try='test -s conftest$ac_exeext'
10968 { (case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_try") 2>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }; then
10977 ac_cv_lib_svld_dlopen=yes
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10982 ac_cv_lib_svld_dlopen=no
10985 rm -f core conftest.err conftest.$ac_objext \
10986 conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_lib_save_LIBS
10989 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10990 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10991 if test $ac_cv_lib_svld_dlopen = yes; then
10993 cat >>confdefs.h <<\_ACEOF
10994 #define HAVE_LIBDL 1
10997 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10999 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11000 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11001 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 ac_check_lib_save_LIBS=$LIBS
11006 cat >conftest.$ac_ext <<_ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11013 /* Override any GCC internal prototype to avoid an error.
11014 Use char because int might match the return type of a GCC
11015 builtin and then its argument prototype would still apply. */
11023 return dld_link ();
11028 rm -f conftest.$ac_objext conftest$ac_exeext
11029 if { (ac_try="$ac_link"
11030 case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_link") 2>conftest.er1
11037 grep -v '^ *+' conftest.er1 >conftest.err
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11043 { (case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_try") 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; } &&
11052 { ac_try='test -s conftest$ac_exeext'
11053 { (case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_lib_dld_dld_link=yes
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_cv_lib_dld_dld_link=no
11070 rm -f core conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11072 LIBS=$ac_check_lib_save_LIBS
11074 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11075 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11076 if test $ac_cv_lib_dld_dld_link = yes; then
11078 cat >>confdefs.h <<\_ACEOF
11082 LIBADD_DL="$LIBADD_DL -ldld"
11084 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11085 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11086 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 cat >conftest.$ac_ext <<_ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11095 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11097 #define _dyld_func_lookup innocuous__dyld_func_lookup
11099 /* System header to define __stub macros and hopefully few prototypes,
11100 which can conflict with char _dyld_func_lookup (); below.
11101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11102 <limits.h> exists even on freestanding compilers. */
11105 # include <limits.h>
11107 # include <assert.h>
11110 #undef _dyld_func_lookup
11112 /* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11118 char _dyld_func_lookup ();
11119 /* The GNU C library defines this for functions which it implements
11120 to always fail with ENOSYS. Some functions are actually named
11121 something starting with __ and the normal name is an alias. */
11122 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11129 return _dyld_func_lookup ();
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (ac_try="$ac_link"
11136 case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_link") 2>conftest.er1
11143 grep -v '^ *+' conftest.er1 >conftest.err
11145 cat conftest.err >&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } &&
11148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11149 { (case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_try") 2>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; } &&
11158 { ac_try='test -s conftest$ac_exeext'
11159 { (case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_try") 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_cv_func__dyld_func_lookup=yes
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11173 ac_cv_func__dyld_func_lookup=no
11176 rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11179 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11180 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11181 if test $ac_cv_func__dyld_func_lookup = yes; then
11183 cat >>confdefs.h <<\_ACEOF
11184 #define HAVE_DYLD 1
11198 rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11210 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11212 lt_save_LIBS="$LIBS"
11213 LIBS="$LIBS $LIBADD_DL"
11215 for ac_func in dlerror
11217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 cat >conftest.$ac_ext <<_ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11231 #define $ac_func innocuous_$ac_func
11233 /* System header to define __stub macros and hopefully few prototypes,
11234 which can conflict with char $ac_func (); below.
11235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11236 <limits.h> exists even on freestanding compilers. */
11239 # include <limits.h>
11241 # include <assert.h>
11246 /* Override any GCC internal prototype to avoid an error.
11247 Use char because int might match the return type of a GCC
11248 builtin and then its argument prototype would still apply. */
11253 /* The GNU C library defines this for functions which it implements
11254 to always fail with ENOSYS. Some functions are actually named
11255 something starting with __ and the normal name is an alias. */
11256 #if defined __stub_$ac_func || defined __stub___$ac_func
11263 return $ac_func ();
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (ac_try="$ac_link"
11270 case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_link") 2>conftest.er1
11277 grep -v '^ *+' conftest.er1 >conftest.err
11279 cat conftest.err >&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11283 { (case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_try") 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 eval "$as_ac_var=yes"
11304 echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11307 eval "$as_ac_var=no"
11310 rm -f core conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
11313 ac_res=`eval echo '${'$as_ac_var'}'`
11314 { echo "$as_me:$LINENO: result: $ac_res" >&5
11315 echo "${ECHO_T}$ac_res" >&6; }
11316 if test `eval echo '${'$as_ac_var'}'` = yes; then
11317 cat >>confdefs.h <<_ACEOF
11318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11324 LIBS="$lt_save_LIBS"
11327 ac_cpp='$CPP $CPPFLAGS'
11328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11334 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11335 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11336 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 ac_cv_sys_symbol_underscore=no
11340 cat > conftest.$ac_ext <<EOF
11341 void nm_test_func(){}
11342 int main(){nm_test_func;return 0;}
11344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11345 (eval $ac_compile) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; then
11349 # Now try to grab the symbols.
11350 ac_nlist=conftest.nm
11351 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11352 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } && test -s "$ac_nlist"; then
11356 # See whether the symbols have a leading underscore.
11357 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11358 ac_cv_sys_symbol_underscore=yes
11360 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11363 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11367 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11370 echo "configure: failed program was:" >&5
11376 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11377 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11380 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11381 if test x"$libltdl_cv_func_dlopen" = xyes ||
11382 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11383 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11384 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11385 if test "${libltdl_cv_need_uscore+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 libltdl_cv_need_uscore=unknown
11390 LIBS="$LIBS $LIBADD_DL"
11391 if test "$cross_compiling" = yes; then :
11392 libltdl_cv_need_uscore=cross
11394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11395 lt_status=$lt_dlunknown
11396 cat > conftest.$ac_ext <<EOF
11397 #line 11397 "configure"
11398 #include "confdefs.h"
11407 # define LT_DLGLOBAL RTLD_GLOBAL
11410 # define LT_DLGLOBAL DL_GLOBAL
11412 # define LT_DLGLOBAL 0
11416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11417 find out it does not work in some platform. */
11418 #ifndef LT_DLLAZY_OR_NOW
11420 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11423 # define LT_DLLAZY_OR_NOW DL_LAZY
11426 # define LT_DLLAZY_OR_NOW RTLD_NOW
11429 # define LT_DLLAZY_OR_NOW DL_NOW
11431 # define LT_DLLAZY_OR_NOW 0
11439 extern "C" void exit (int);
11442 void fnord() { int i=42;}
11445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11446 int status = $lt_dlunknown;
11450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11451 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11452 /* dlclose (self); */
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461 (eval $ac_link) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11465 (./conftest; exit; ) >&5 2>/dev/null
11467 case x$lt_status in
11468 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11469 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11470 x$lt_dlunknown|x*) ;;
11473 # compilation failed
11482 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11483 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11487 if test x"$libltdl_cv_need_uscore" = xyes; then
11489 cat >>confdefs.h <<\_ACEOF
11490 #define NEED_USCORE 1
11496 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11497 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11498 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 # PORTME does your system automatically load deplibs for dlopen?
11502 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11503 # For now, we just catch OSes we know something about -- in the
11504 # future, we'll try test this programmatically.
11505 libltdl_cv_sys_dlopen_deplibs=unknown
11507 aix3*|aix4.1.*|aix4.2.*)
11508 # Unknown whether this is true for these versions of AIX, but
11509 # we want this `case' here to explicitly catch those versions.
11510 libltdl_cv_sys_dlopen_deplibs=unknown
11513 libltdl_cv_sys_dlopen_deplibs=yes
11516 # Assuming the user has installed a libdl from somewhere, this is true
11517 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11518 libltdl_cv_sys_dlopen_deplibs=yes
11520 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11521 # GNU and its variants, using gnu ld.so (Glibc)
11522 libltdl_cv_sys_dlopen_deplibs=yes
11525 libltdl_cv_sys_dlopen_deplibs=yes
11528 libltdl_cv_sys_dlopen_deplibs=yes
11530 irix[12345]*|irix6.[01]*)
11531 # Catch all versions of IRIX before 6.2, and indicate that we don't
11532 # know how it worked for any of those versions.
11533 libltdl_cv_sys_dlopen_deplibs=unknown
11536 # The case above catches anything before 6.2, and it's known that
11537 # at 6.2 and later dlopen does load deplibs.
11538 libltdl_cv_sys_dlopen_deplibs=yes
11541 libltdl_cv_sys_dlopen_deplibs=yes
11544 libltdl_cv_sys_dlopen_deplibs=yes
11547 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11548 # it did *not* use an RPATH in a shared library to find objects the
11549 # library depends on, so we explictly say `no'.
11550 libltdl_cv_sys_dlopen_deplibs=no
11552 osf5.0|osf5.0a|osf5.1)
11553 # dlopen *does* load deplibs and with the right loader patch applied
11554 # it even uses RPATH in a shared library to search for shared objects
11555 # that the library depends on, but there's no easy way to know if that
11556 # patch is installed. Since this is the case, all we can really
11557 # say is unknown -- it depends on the patch being installed. If
11558 # it is, this changes to `yes'. Without it, it would be `no'.
11559 libltdl_cv_sys_dlopen_deplibs=unknown
11562 # the two cases above should catch all versions of osf <= 5.1. Read
11563 # the comments above for what we know about them.
11564 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11565 # is used to find them so we can finally say `yes'.
11566 libltdl_cv_sys_dlopen_deplibs=yes
11569 libltdl_cv_sys_dlopen_deplibs=yes
11571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11572 libltdl_cv_sys_dlopen_deplibs=yes
11577 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11578 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11579 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11581 cat >>confdefs.h <<\_ACEOF
11582 #define LTDL_DLOPEN_DEPLIBS 1
11588 for ac_header in argz.h
11590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 ac_res=`eval echo '${'$as_ac_Header'}'`
11598 { echo "$as_me:$LINENO: result: $ac_res" >&5
11599 echo "${ECHO_T}$ac_res" >&6; }
11601 # Is the header compilable?
11602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11604 cat >conftest.$ac_ext <<_ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 $ac_includes_default
11611 #include <$ac_header>
11613 rm -f conftest.$ac_objext
11614 if { (ac_try="$ac_compile"
11615 case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_compile") 2>conftest.er1
11622 grep -v '^ *+' conftest.er1 >conftest.err
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_header_compiler=yes
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11652 ac_header_compiler=no
11655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11657 echo "${ECHO_T}$ac_header_compiler" >&6; }
11659 # Is the header present?
11660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11662 cat >conftest.$ac_ext <<_ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 #include <$ac_header>
11670 if { (ac_try="$ac_cpp conftest.$ac_ext"
11671 case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11678 grep -v '^ *+' conftest.er1 >conftest.err
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } >/dev/null; then
11683 if test -s conftest.err; then
11684 ac_cpp_err=$ac_c_preproc_warn_flag
11685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11692 if test -z "$ac_cpp_err"; then
11693 ac_header_preproc=yes
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11698 ac_header_preproc=no
11701 rm -f conftest.err conftest.$ac_ext
11702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11703 echo "${ECHO_T}$ac_header_preproc" >&6; }
11705 # So? What about this header?
11706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11712 ac_header_preproc=yes
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11728 ## ----------------------------------- ##
11729 ## Report this to llvmbugs@cs.uiuc.edu ##
11730 ## ----------------------------------- ##
11732 ) | sed "s/^/$as_me: WARNING: /" >&2
11735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 eval "$as_ac_Header=\$ac_header_preproc"
11742 ac_res=`eval echo '${'$as_ac_Header'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744 echo "${ECHO_T}$ac_res" >&6; }
11747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11748 cat >>confdefs.h <<_ACEOF
11749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11757 { echo "$as_me:$LINENO: checking for error_t" >&5
11758 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11759 if test "${ac_cv_type_error_t+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 cat >conftest.$ac_ext <<_ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11772 typedef error_t ac__type_new_;
11776 if ((ac__type_new_ *) 0)
11778 if (sizeof (ac__type_new_))
11784 rm -f conftest.$ac_objext
11785 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11793 grep -v '^ *+' conftest.er1 >conftest.err
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11799 { (case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_try") 2>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; } &&
11808 { ac_try='test -s conftest.$ac_objext'
11809 { (case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_try") 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 ac_cv_type_error_t=yes
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11823 ac_cv_type_error_t=no
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11829 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11830 if test $ac_cv_type_error_t = yes; then
11832 cat >>confdefs.h <<_ACEOF
11833 #define HAVE_ERROR_T 1
11839 cat >>confdefs.h <<\_ACEOF
11840 #define error_t int
11851 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 cat >conftest.$ac_ext <<_ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11867 #define $ac_func innocuous_$ac_func
11869 /* System header to define __stub macros and hopefully few prototypes,
11870 which can conflict with char $ac_func (); below.
11871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11872 <limits.h> exists even on freestanding compilers. */
11875 # include <limits.h>
11877 # include <assert.h>
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11889 /* The GNU C library defines this for functions which it implements
11890 to always fail with ENOSYS. Some functions are actually named
11891 something starting with __ and the normal name is an alias. */
11892 #if defined __stub_$ac_func || defined __stub___$ac_func
11899 return $ac_func ();
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (ac_try="$ac_link"
11906 case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_link") 2>conftest.er1
11913 grep -v '^ *+' conftest.er1 >conftest.err
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_try") 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 eval "$as_ac_var=yes"
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 eval "$as_ac_var=no"
11946 rm -f core conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11949 ac_res=`eval echo '${'$as_ac_var'}'`
11950 { echo "$as_me:$LINENO: result: $ac_res" >&5
11951 echo "${ECHO_T}$ac_res" >&6; }
11952 if test `eval echo '${'$as_ac_var'}'` = yes; then
11953 cat >>confdefs.h <<_ACEOF
11954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11987 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 ac_res=`eval echo '${'$as_ac_Header'}'`
11998 { echo "$as_me:$LINENO: result: $ac_res" >&5
11999 echo "${ECHO_T}$ac_res" >&6; }
12001 # Is the header compilable?
12002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12004 cat >conftest.$ac_ext <<_ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010 $ac_includes_default
12011 #include <$ac_header>
12013 rm -f conftest.$ac_objext
12014 if { (ac_try="$ac_compile"
12015 case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_compile") 2>conftest.er1
12022 grep -v '^ *+' conftest.er1 >conftest.err
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028 { (case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_try") 2>&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest.$ac_objext'
12038 { (case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_try") 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_header_compiler=yes
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 ac_header_compiler=no
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12057 echo "${ECHO_T}$ac_header_compiler" >&6; }
12059 # Is the header present?
12060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12062 cat >conftest.$ac_ext <<_ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 #include <$ac_header>
12070 if { (ac_try="$ac_cpp conftest.$ac_ext"
12071 case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12078 grep -v '^ *+' conftest.er1 >conftest.err
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } >/dev/null; then
12083 if test -s conftest.err; then
12084 ac_cpp_err=$ac_c_preproc_warn_flag
12085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12092 if test -z "$ac_cpp_err"; then
12093 ac_header_preproc=yes
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12098 ac_header_preproc=no
12101 rm -f conftest.err conftest.$ac_ext
12102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12103 echo "${ECHO_T}$ac_header_preproc" >&6; }
12105 # So? What about this header?
12106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12112 ac_header_preproc=yes
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12128 ## ----------------------------------- ##
12129 ## Report this to llvmbugs@cs.uiuc.edu ##
12130 ## ----------------------------------- ##
12132 ) | sed "s/^/$as_me: WARNING: /" >&2
12135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 eval "$as_ac_Header=\$ac_header_preproc"
12142 ac_res=`eval echo '${'$as_ac_Header'}'`
12143 { echo "$as_me:$LINENO: result: $ac_res" >&5
12144 echo "${ECHO_T}$ac_res" >&6; }
12147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12148 cat >>confdefs.h <<_ACEOF
12149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12160 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 ac_res=`eval echo '${'$as_ac_Header'}'`
12170 { echo "$as_me:$LINENO: result: $ac_res" >&5
12171 echo "${ECHO_T}$ac_res" >&6; }
12173 # Is the header compilable?
12174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12176 cat >conftest.$ac_ext <<_ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 $ac_includes_default
12183 #include <$ac_header>
12185 rm -f conftest.$ac_objext
12186 if { (ac_try="$ac_compile"
12187 case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_compile") 2>conftest.er1
12194 grep -v '^ *+' conftest.er1 >conftest.err
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12200 { (case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_try") 2>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest.$ac_objext'
12210 { (case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 ac_header_compiler=yes
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12224 ac_header_compiler=no
12227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12229 echo "${ECHO_T}$ac_header_compiler" >&6; }
12231 # Is the header present?
12232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240 #include <$ac_header>
12242 if { (ac_try="$ac_cpp conftest.$ac_ext"
12243 case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12250 grep -v '^ *+' conftest.er1 >conftest.err
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } >/dev/null; then
12255 if test -s conftest.err; then
12256 ac_cpp_err=$ac_c_preproc_warn_flag
12257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12264 if test -z "$ac_cpp_err"; then
12265 ac_header_preproc=yes
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_header_preproc=no
12273 rm -f conftest.err conftest.$ac_ext
12274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12275 echo "${ECHO_T}$ac_header_preproc" >&6; }
12277 # So? What about this header?
12278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12284 ac_header_preproc=yes
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12300 ## ----------------------------------- ##
12301 ## Report this to llvmbugs@cs.uiuc.edu ##
12302 ## ----------------------------------- ##
12304 ) | sed "s/^/$as_me: WARNING: /" >&2
12307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 eval "$as_ac_Header=\$ac_header_preproc"
12314 ac_res=`eval echo '${'$as_ac_Header'}'`
12315 { echo "$as_me:$LINENO: result: $ac_res" >&5
12316 echo "${ECHO_T}$ac_res" >&6; }
12319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12320 cat >>confdefs.h <<_ACEOF
12321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12330 for ac_header in string.h strings.h
12332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 ac_res=`eval echo '${'$as_ac_Header'}'`
12340 { echo "$as_me:$LINENO: result: $ac_res" >&5
12341 echo "${ECHO_T}$ac_res" >&6; }
12343 # Is the header compilable?
12344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 $ac_includes_default
12353 #include <$ac_header>
12355 rm -f conftest.$ac_objext
12356 if { (ac_try="$ac_compile"
12357 case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_compile") 2>conftest.er1
12364 grep -v '^ *+' conftest.er1 >conftest.err
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } &&
12369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12370 { (case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_try") 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
12389 ac_header_compiler=yes
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12394 ac_header_compiler=no
12397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12399 echo "${ECHO_T}$ac_header_compiler" >&6; }
12401 # Is the header present?
12402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12404 cat >conftest.$ac_ext <<_ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 #include <$ac_header>
12412 if { (ac_try="$ac_cpp conftest.$ac_ext"
12413 case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } >/dev/null; then
12425 if test -s conftest.err; then
12426 ac_cpp_err=$ac_c_preproc_warn_flag
12427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12434 if test -z "$ac_cpp_err"; then
12435 ac_header_preproc=yes
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 ac_header_preproc=no
12443 rm -f conftest.err conftest.$ac_ext
12444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12445 echo "${ECHO_T}$ac_header_preproc" >&6; }
12447 # So? What about this header?
12448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12454 ac_header_preproc=yes
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12470 ## ----------------------------------- ##
12471 ## Report this to llvmbugs@cs.uiuc.edu ##
12472 ## ----------------------------------- ##
12474 ) | sed "s/^/$as_me: WARNING: /" >&2
12477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 eval "$as_ac_Header=\$ac_header_preproc"
12484 ac_res=`eval echo '${'$as_ac_Header'}'`
12485 { echo "$as_me:$LINENO: result: $ac_res" >&5
12486 echo "${ECHO_T}$ac_res" >&6; }
12489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12490 cat >>confdefs.h <<_ACEOF
12491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12501 for ac_func in strchr index
12503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 cat >conftest.$ac_ext <<_ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h. */
12515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12517 #define $ac_func innocuous_$ac_func
12519 /* System header to define __stub macros and hopefully few prototypes,
12520 which can conflict with char $ac_func (); below.
12521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12522 <limits.h> exists even on freestanding compilers. */
12525 # include <limits.h>
12527 # include <assert.h>
12532 /* Override any GCC internal prototype to avoid an error.
12533 Use char because int might match the return type of a GCC
12534 builtin and then its argument prototype would still apply. */
12539 /* The GNU C library defines this for functions which it implements
12540 to always fail with ENOSYS. Some functions are actually named
12541 something starting with __ and the normal name is an alias. */
12542 #if defined __stub_$ac_func || defined __stub___$ac_func
12549 return $ac_func ();
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (ac_try="$ac_link"
12556 case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_link") 2>conftest.er1
12563 grep -v '^ *+' conftest.er1 >conftest.err
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12569 { (case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 (eval "$ac_try") 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try='test -s conftest$ac_exeext'
12579 { (case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_try") 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 eval "$as_ac_var=yes"
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12593 eval "$as_ac_var=no"
12596 rm -f core conftest.err conftest.$ac_objext \
12597 conftest$ac_exeext conftest.$ac_ext
12599 ac_res=`eval echo '${'$as_ac_var'}'`
12600 { echo "$as_me:$LINENO: result: $ac_res" >&5
12601 echo "${ECHO_T}$ac_res" >&6; }
12602 if test `eval echo '${'$as_ac_var'}'` = yes; then
12603 cat >>confdefs.h <<_ACEOF
12604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12612 for ac_func in strrchr rindex
12614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 cat >conftest.$ac_ext <<_ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12628 #define $ac_func innocuous_$ac_func
12630 /* System header to define __stub macros and hopefully few prototypes,
12631 which can conflict with char $ac_func (); below.
12632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12633 <limits.h> exists even on freestanding compilers. */
12636 # include <limits.h>
12638 # include <assert.h>
12643 /* Override any GCC internal prototype to avoid an error.
12644 Use char because int might match the return type of a GCC
12645 builtin and then its argument prototype would still apply. */
12650 /* The GNU C library defines this for functions which it implements
12651 to always fail with ENOSYS. Some functions are actually named
12652 something starting with __ and the normal name is an alias. */
12653 #if defined __stub_$ac_func || defined __stub___$ac_func
12660 return $ac_func ();
12665 rm -f conftest.$ac_objext conftest$ac_exeext
12666 if { (ac_try="$ac_link"
12667 case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_link") 2>conftest.er1
12674 grep -v '^ *+' conftest.er1 >conftest.err
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12680 { (case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_try") 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; } &&
12689 { ac_try='test -s conftest$ac_exeext'
12690 { (case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_try") 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 eval "$as_ac_var=yes"
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12704 eval "$as_ac_var=no"
12707 rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12710 ac_res=`eval echo '${'$as_ac_var'}'`
12711 { echo "$as_me:$LINENO: result: $ac_res" >&5
12712 echo "${ECHO_T}$ac_res" >&6; }
12713 if test `eval echo '${'$as_ac_var'}'` = yes; then
12714 cat >>confdefs.h <<_ACEOF
12715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12723 for ac_func in memcpy bcopy
12725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 cat >conftest.$ac_ext <<_ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12739 #define $ac_func innocuous_$ac_func
12741 /* System header to define __stub macros and hopefully few prototypes,
12742 which can conflict with char $ac_func (); below.
12743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12744 <limits.h> exists even on freestanding compilers. */
12747 # include <limits.h>
12749 # include <assert.h>
12754 /* Override any GCC internal prototype to avoid an error.
12755 Use char because int might match the return type of a GCC
12756 builtin and then its argument prototype would still apply. */
12761 /* The GNU C library defines this for functions which it implements
12762 to always fail with ENOSYS. Some functions are actually named
12763 something starting with __ and the normal name is an alias. */
12764 #if defined __stub_$ac_func || defined __stub___$ac_func
12771 return $ac_func ();
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (ac_try="$ac_link"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_link") 2>conftest.er1
12785 grep -v '^ *+' conftest.er1 >conftest.err
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
12790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12791 { (case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_try") 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest$ac_exeext'
12801 { (case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_try") 2>&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12810 eval "$as_ac_var=yes"
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 eval "$as_ac_var=no"
12818 rm -f core conftest.err conftest.$ac_objext \
12819 conftest$ac_exeext conftest.$ac_ext
12821 ac_res=`eval echo '${'$as_ac_var'}'`
12822 { echo "$as_me:$LINENO: result: $ac_res" >&5
12823 echo "${ECHO_T}$ac_res" >&6; }
12824 if test `eval echo '${'$as_ac_var'}'` = yes; then
12825 cat >>confdefs.h <<_ACEOF
12826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12834 for ac_func in memmove strcmp
12836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 cat >conftest.$ac_ext <<_ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12850 #define $ac_func innocuous_$ac_func
12852 /* System header to define __stub macros and hopefully few prototypes,
12853 which can conflict with char $ac_func (); below.
12854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12855 <limits.h> exists even on freestanding compilers. */
12858 # include <limits.h>
12860 # include <assert.h>
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12872 /* The GNU C library defines this for functions which it implements
12873 to always fail with ENOSYS. Some functions are actually named
12874 something starting with __ and the normal name is an alias. */
12875 #if defined __stub_$ac_func || defined __stub___$ac_func
12882 return $ac_func ();
12887 rm -f conftest.$ac_objext conftest$ac_exeext
12888 if { (ac_try="$ac_link"
12889 case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894 (eval "$ac_link") 2>conftest.er1
12896 grep -v '^ *+' conftest.er1 >conftest.err
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12902 { (case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_try") 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest$ac_exeext'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 eval "$as_ac_var=yes"
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12926 eval "$as_ac_var=no"
12929 rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12932 ac_res=`eval echo '${'$as_ac_var'}'`
12933 { echo "$as_me:$LINENO: result: $ac_res" >&5
12934 echo "${ECHO_T}$ac_res" >&6; }
12935 if test `eval echo '${'$as_ac_var'}'` = yes; then
12936 cat >>confdefs.h <<_ACEOF
12937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12946 for ac_func in closedir opendir readdir
12948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12954 cat >conftest.$ac_ext <<_ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12962 #define $ac_func innocuous_$ac_func
12964 /* System header to define __stub macros and hopefully few prototypes,
12965 which can conflict with char $ac_func (); below.
12966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12967 <limits.h> exists even on freestanding compilers. */
12970 # include <limits.h>
12972 # include <assert.h>
12977 /* Override any GCC internal prototype to avoid an error.
12978 Use char because int might match the return type of a GCC
12979 builtin and then its argument prototype would still apply. */
12984 /* The GNU C library defines this for functions which it implements
12985 to always fail with ENOSYS. Some functions are actually named
12986 something starting with __ and the normal name is an alias. */
12987 #if defined __stub_$ac_func || defined __stub___$ac_func
12994 return $ac_func ();
12999 rm -f conftest.$ac_objext conftest$ac_exeext
13000 if { (ac_try="$ac_link"
13001 case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_link") 2>conftest.er1
13008 grep -v '^ *+' conftest.er1 >conftest.err
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
13013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13014 { (case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019 (eval "$ac_try") 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try='test -s conftest$ac_exeext'
13024 { (case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_try") 2>&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; }; then
13033 eval "$as_ac_var=yes"
13035 echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13038 eval "$as_ac_var=no"
13041 rm -f core conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext conftest.$ac_ext
13044 ac_res=`eval echo '${'$as_ac_var'}'`
13045 { echo "$as_me:$LINENO: result: $ac_res" >&5
13046 echo "${ECHO_T}$ac_res" >&6; }
13047 if test `eval echo '${'$as_ac_var'}'` = yes; then
13048 cat >>confdefs.h <<_ACEOF
13049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13057 if test "$WITH_LLVMGCCDIR" = "default" ; then
13058 LLVMGCC="llvm-gcc${EXEEXT}"
13059 LLVMGXX="llvm-g++${EXEEXT}"
13060 LLVMGCCCOMMAND="$LLVMGCC"
13061 LLVMGXXCOMMAND="$LLVMGXX"
13062 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13064 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13066 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13067 set dummy $LLVMGCC; ac_word=$2
13068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13070 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079 for as_dir in $PATH
13082 test -z "$as_dir" && as_dir=.
13083 for ac_exec_ext in '' $ac_executable_extensions; do
13084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13085 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 LLVMGCC=$ac_cv_path_LLVMGCC
13097 if test -n "$LLVMGCC"; then
13098 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13099 echo "${ECHO_T}$LLVMGCC" >&6; }
13101 { echo "$as_me:$LINENO: result: no" >&5
13102 echo "${ECHO_T}no" >&6; }
13106 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13107 set dummy $LLVMGXX; ac_word=$2
13108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13110 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13115 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13122 test -z "$as_dir" && as_dir=.
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13125 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13136 LLVMGXX=$ac_cv_path_LLVMGXX
13137 if test -n "$LLVMGXX"; then
13138 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13139 echo "${ECHO_T}$LLVMGXX" >&6; }
13141 { echo "$as_me:$LINENO: result: no" >&5
13142 echo "${ECHO_T}no" >&6; }
13147 if test -z "$LLVMGCC"; then
13148 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13149 LLVMGCCCOMMAND="$LLVMGCC"
13151 if test -z "$LLVMGXX"; then
13152 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13153 LLVMGXXCOMMAND="$LLVMGXX"
13160 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13162 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13167 # Check whether --with-llvmcc was given.
13168 if test "${with_llvmcc+set}" = set; then
13169 withval=$with_llvmcc;
13174 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13175 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13176 if test "$with_llvmcc" != "check"; then
13177 if (test "$with_llvmcc" != "llvm-gcc" &&
13178 test "$with_llvmcc" != "clang" &&
13179 test "$with_llvmcc" != "none"); then
13180 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13181 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13182 { (exit 1); exit 1; }; }
13184 WITH_LLVMCC="$with_llvmcc"
13185 elif test -n "$LLVMGCC"; then
13186 WITH_LLVMCC=llvm-gcc
13187 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13192 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13193 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13194 LLVMCC_OPTION=$WITH_LLVMCC
13197 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13198 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13211 if test "$GCC" != "yes" && test "$ICC" != "yes"
13213 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13214 echo "$as_me: error: gcc|icc required but not found" >&2;}
13215 { (exit 1); exit 1; }; }
13218 if test "$GXX" != "yes" && test "$IXX" != "yes"
13220 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13221 echo "$as_me: error: g++|icc required but not found" >&2;}
13222 { (exit 1); exit 1; }; }
13225 if test "$GCC" = "yes"
13227 cat >conftest.$ac_ext <<_ACEOF
13228 #if !defined(__GNUC__) || __GNUC__ < 3
13229 #error Unsupported GCC version
13233 rm -f conftest.$ac_objext
13234 if { (ac_try="$ac_compile"
13235 case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_compile") 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest.$ac_objext'
13258 { (case "(($ac_try" in
13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260 *) ac_try_echo=$ac_try;;
13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263 (eval "$ac_try") 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13273 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13274 { (exit 1); exit 1; }; }
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 if test -z "$llvm_cv_gnu_make_command"
13282 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13283 echo "$as_me: error: GNU Make required but not found" >&2;}
13284 { (exit 1); exit 1; }; }
13287 { echo "$as_me:$LINENO: result: ok" >&5
13288 echo "${ECHO_T}ok" >&6; }
13290 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13291 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13292 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13294 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13296 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13297 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13301 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13302 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13303 if test "${ac_cv_lib_m_sin+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 ac_check_lib_save_LIBS=$LIBS
13308 cat >conftest.$ac_ext <<_ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13315 /* Override any GCC internal prototype to avoid an error.
13316 Use char because int might match the return type of a GCC
13317 builtin and then its argument prototype would still apply. */
13330 rm -f conftest.$ac_objext conftest$ac_exeext
13331 if { (ac_try="$ac_link"
13332 case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_link") 2>conftest.er1
13339 grep -v '^ *+' conftest.er1 >conftest.err
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
13344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13345 { (case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_try") 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; } &&
13354 { ac_try='test -s conftest$ac_exeext'
13355 { (case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360 (eval "$ac_try") 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; }; then
13364 ac_cv_lib_m_sin=yes
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13372 rm -f core conftest.err conftest.$ac_objext \
13373 conftest$ac_exeext conftest.$ac_ext
13374 LIBS=$ac_check_lib_save_LIBS
13376 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13377 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13378 if test $ac_cv_lib_m_sin = yes; then
13379 cat >>confdefs.h <<_ACEOF
13380 #define HAVE_LIBM 1
13387 if test "$llvm_cv_os_type" = "MingW" ; then
13389 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13390 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13391 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13394 ac_check_lib_save_LIBS=$LIBS
13395 LIBS="-limagehlp $LIBS"
13396 cat >conftest.$ac_ext <<_ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13412 rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>conftest.er1
13421 grep -v '^ *+' conftest.er1 >conftest.err
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 ac_cv_lib_imagehlp_main=yes
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13451 ac_cv_lib_imagehlp_main=no
13454 rm -f core conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13456 LIBS=$ac_check_lib_save_LIBS
13458 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13459 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13460 if test $ac_cv_lib_imagehlp_main = yes; then
13461 cat >>confdefs.h <<_ACEOF
13462 #define HAVE_LIBIMAGEHLP 1
13465 LIBS="-limagehlp $LIBS"
13470 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13471 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13472 if test "${ac_cv_lib_psapi_main+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 ac_check_lib_save_LIBS=$LIBS
13476 LIBS="-lpsapi $LIBS"
13477 cat >conftest.$ac_ext <<_ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13493 rm -f conftest.$ac_objext conftest$ac_exeext
13494 if { (ac_try="$ac_link"
13495 case "(($ac_try" in
13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497 *) ac_try_echo=$ac_try;;
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500 (eval "$ac_link") 2>conftest.er1
13502 grep -v '^ *+' conftest.er1 >conftest.err
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13508 { (case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_try") 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest$ac_exeext'
13518 { (case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_try") 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_cv_lib_psapi_main=yes
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13532 ac_cv_lib_psapi_main=no
13535 rm -f core conftest.err conftest.$ac_objext \
13536 conftest$ac_exeext conftest.$ac_ext
13537 LIBS=$ac_check_lib_save_LIBS
13539 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13540 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13541 if test $ac_cv_lib_psapi_main = yes; then
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_LIBPSAPI 1
13546 LIBS="-lpsapi $LIBS"
13552 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13553 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13554 if test "${ac_cv_search_dlopen+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 ac_func_search_save_LIBS=$LIBS
13558 cat >conftest.$ac_ext <<_ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13565 /* Override any GCC internal prototype to avoid an error.
13566 Use char because int might match the return type of a GCC
13567 builtin and then its argument prototype would still apply. */
13580 for ac_lib in '' dl; do
13581 if test -z "$ac_lib"; then
13582 ac_res="none required"
13585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13587 rm -f conftest.$ac_objext conftest$ac_exeext
13588 if { (ac_try="$ac_link"
13589 case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_link") 2>conftest.er1
13596 grep -v '^ *+' conftest.er1 >conftest.err
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13602 { (case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_try") 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest$ac_exeext'
13612 { (case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }; then
13621 ac_cv_search_dlopen=$ac_res
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13629 rm -f core conftest.err conftest.$ac_objext \
13631 if test "${ac_cv_search_dlopen+set}" = set; then
13635 if test "${ac_cv_search_dlopen+set}" = set; then
13638 ac_cv_search_dlopen=no
13640 rm conftest.$ac_ext
13641 LIBS=$ac_func_search_save_LIBS
13643 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13644 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13645 ac_res=$ac_cv_search_dlopen
13646 if test "$ac_res" != no; then
13647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13649 cat >>confdefs.h <<\_ACEOF
13650 #define HAVE_DLOPEN 1
13654 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13655 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13659 if test "$llvm_cv_enable_libffi" = "yes" ; then
13660 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13661 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13662 if test "${ac_cv_search_ffi_call+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 ac_func_search_save_LIBS=$LIBS
13666 cat >conftest.$ac_ext <<_ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13673 /* Override any GCC internal prototype to avoid an error.
13674 Use char because int might match the return type of a GCC
13675 builtin and then its argument prototype would still apply. */
13683 return ffi_call ();
13688 for ac_lib in '' ffi; do
13689 if test -z "$ac_lib"; then
13690 ac_res="none required"
13693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (ac_try="$ac_link"
13697 case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_link") 2>conftest.er1
13704 grep -v '^ *+' conftest.er1 >conftest.err
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest$ac_exeext'
13720 { (case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_try") 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 ac_cv_search_ffi_call=$ac_res
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13737 rm -f core conftest.err conftest.$ac_objext \
13739 if test "${ac_cv_search_ffi_call+set}" = set; then
13743 if test "${ac_cv_search_ffi_call+set}" = set; then
13746 ac_cv_search_ffi_call=no
13748 rm conftest.$ac_ext
13749 LIBS=$ac_func_search_save_LIBS
13751 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13752 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13753 ac_res=$ac_cv_search_ffi_call
13754 if test "$ac_res" != no; then
13755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13757 cat >>confdefs.h <<\_ACEOF
13758 #define HAVE_FFI_CALL 1
13762 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13763 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13764 { (exit 1); exit 1; }; }
13769 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13770 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13771 if test "${ac_cv_search_mallinfo+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 ac_func_search_save_LIBS=$LIBS
13775 cat >conftest.$ac_ext <<_ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13782 /* Override any GCC internal prototype to avoid an error.
13783 Use char because int might match the return type of a GCC
13784 builtin and then its argument prototype would still apply. */
13792 return mallinfo ();
13797 for ac_lib in '' malloc; do
13798 if test -z "$ac_lib"; then
13799 ac_res="none required"
13802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13804 rm -f conftest.$ac_objext conftest$ac_exeext
13805 if { (ac_try="$ac_link"
13806 case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_link") 2>conftest.er1
13813 grep -v '^ *+' conftest.er1 >conftest.err
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13819 { (case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_try") 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; } &&
13828 { ac_try='test -s conftest$ac_exeext'
13829 { (case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_try") 2>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 ac_cv_search_mallinfo=$ac_res
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13846 rm -f core conftest.err conftest.$ac_objext \
13848 if test "${ac_cv_search_mallinfo+set}" = set; then
13852 if test "${ac_cv_search_mallinfo+set}" = set; then
13855 ac_cv_search_mallinfo=no
13857 rm conftest.$ac_ext
13858 LIBS=$ac_func_search_save_LIBS
13860 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13861 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13862 ac_res=$ac_cv_search_mallinfo
13863 if test "$ac_res" != no; then
13864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13866 cat >>confdefs.h <<\_ACEOF
13867 #define HAVE_MALLINFO 1
13873 if test "$ENABLE_THREADS" -eq 1 ; then
13875 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13876 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13877 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 ac_check_lib_save_LIBS=$LIBS
13881 LIBS="-lpthread $LIBS"
13882 cat >conftest.$ac_ext <<_ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13889 /* Override any GCC internal prototype to avoid an error.
13890 Use char because int might match the return type of a GCC
13891 builtin and then its argument prototype would still apply. */
13895 char pthread_mutex_init ();
13899 return pthread_mutex_init ();
13904 rm -f conftest.$ac_objext conftest$ac_exeext
13905 if { (ac_try="$ac_link"
13906 case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_link") 2>conftest.er1
13913 grep -v '^ *+' conftest.er1 >conftest.err
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
13918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13919 { (case "(($ac_try" in
13920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921 *) ac_try_echo=$ac_try;;
13923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924 (eval "$ac_try") 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; } &&
13928 { ac_try='test -s conftest$ac_exeext'
13929 { (case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_try") 2>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 ac_cv_lib_pthread_pthread_mutex_init=yes
13940 echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13943 ac_cv_lib_pthread_pthread_mutex_init=no
13946 rm -f core conftest.err conftest.$ac_objext \
13947 conftest$ac_exeext conftest.$ac_ext
13948 LIBS=$ac_check_lib_save_LIBS
13950 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13951 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13952 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13953 cat >>confdefs.h <<_ACEOF
13954 #define HAVE_LIBPTHREAD 1
13957 LIBS="-lpthread $LIBS"
13961 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13962 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13963 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
13966 ac_func_search_save_LIBS=$LIBS
13967 cat >conftest.$ac_ext <<_ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13974 /* Override any GCC internal prototype to avoid an error.
13975 Use char because int might match the return type of a GCC
13976 builtin and then its argument prototype would still apply. */
13980 char pthread_mutex_lock ();
13984 return pthread_mutex_lock ();
13989 for ac_lib in '' pthread; do
13990 if test -z "$ac_lib"; then
13991 ac_res="none required"
13994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13996 rm -f conftest.$ac_objext conftest$ac_exeext
13997 if { (ac_try="$ac_link"
13998 case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_link") 2>conftest.er1
14005 grep -v '^ *+' conftest.er1 >conftest.err
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14011 { (case "(($ac_try" in
14012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013 *) ac_try_echo=$ac_try;;
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016 (eval "$ac_try") 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest$ac_exeext'
14021 { (case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_try") 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 ac_cv_search_pthread_mutex_lock=$ac_res
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14038 rm -f core conftest.err conftest.$ac_objext \
14040 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14044 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14047 ac_cv_search_pthread_mutex_lock=no
14049 rm conftest.$ac_ext
14050 LIBS=$ac_func_search_save_LIBS
14052 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14053 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14054 ac_res=$ac_cv_search_pthread_mutex_lock
14055 if test "$ac_res" != no; then
14056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14058 cat >>confdefs.h <<\_ACEOF
14059 #define HAVE_PTHREAD_MUTEX_LOCK 1
14064 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14065 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14066 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 ac_func_search_save_LIBS=$LIBS
14070 cat >conftest.$ac_ext <<_ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14077 /* Override any GCC internal prototype to avoid an error.
14078 Use char because int might match the return type of a GCC
14079 builtin and then its argument prototype would still apply. */
14083 char pthread_rwlock_init ();
14087 return pthread_rwlock_init ();
14092 for ac_lib in '' pthread; do
14093 if test -z "$ac_lib"; then
14094 ac_res="none required"
14097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14099 rm -f conftest.$ac_objext conftest$ac_exeext
14100 if { (ac_try="$ac_link"
14101 case "(($ac_try" in
14102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103 *) ac_try_echo=$ac_try;;
14105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106 (eval "$ac_link") 2>conftest.er1
14108 grep -v '^ *+' conftest.er1 >conftest.err
14110 cat conftest.err >&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } &&
14113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14114 { (case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_try") 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; } &&
14123 { ac_try='test -s conftest$ac_exeext'
14124 { (case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129 (eval "$ac_try") 2>&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; }; then
14133 ac_cv_search_pthread_rwlock_init=$ac_res
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14141 rm -f core conftest.err conftest.$ac_objext \
14143 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14147 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14150 ac_cv_search_pthread_rwlock_init=no
14152 rm conftest.$ac_ext
14153 LIBS=$ac_func_search_save_LIBS
14155 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14156 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14157 ac_res=$ac_cv_search_pthread_rwlock_init
14158 if test "$ac_res" != no; then
14159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14161 cat >>confdefs.h <<\_ACEOF
14162 #define HAVE_PTHREAD_RWLOCK_INIT 1
14167 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14168 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14169 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 ac_func_search_save_LIBS=$LIBS
14173 cat >conftest.$ac_ext <<_ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14180 /* Override any GCC internal prototype to avoid an error.
14181 Use char because int might match the return type of a GCC
14182 builtin and then its argument prototype would still apply. */
14186 char pthread_getspecific ();
14190 return pthread_getspecific ();
14195 for ac_lib in '' pthread; do
14196 if test -z "$ac_lib"; then
14197 ac_res="none required"
14200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14202 rm -f conftest.$ac_objext conftest$ac_exeext
14203 if { (ac_try="$ac_link"
14204 case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_link") 2>conftest.er1
14211 grep -v '^ *+' conftest.er1 >conftest.err
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14217 { (case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_try") 2>&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; } &&
14226 { ac_try='test -s conftest$ac_exeext'
14227 { (case "(($ac_try" in
14228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229 *) ac_try_echo=$ac_try;;
14231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232 (eval "$ac_try") 2>&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; }; then
14236 ac_cv_search_pthread_getspecific=$ac_res
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14244 rm -f core conftest.err conftest.$ac_objext \
14246 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14250 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14253 ac_cv_search_pthread_getspecific=no
14255 rm conftest.$ac_ext
14256 LIBS=$ac_func_search_save_LIBS
14258 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14259 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14260 ac_res=$ac_cv_search_pthread_getspecific
14261 if test "$ac_res" != no; then
14262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14264 cat >>confdefs.h <<\_ACEOF
14265 #define HAVE_PTHREAD_GETSPECIFIC 1
14273 # Check whether --with-udis86 was given.
14274 if test "${with_udis86+set}" = set; then
14275 withval=$with_udis86;
14280 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14283 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14284 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14285 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 ac_check_lib_save_LIBS=$LIBS
14289 LIBS="-ludis86 $LIBS"
14290 cat >conftest.$ac_ext <<_ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14297 /* Override any GCC internal prototype to avoid an error.
14298 Use char because int might match the return type of a GCC
14299 builtin and then its argument prototype would still apply. */
14312 rm -f conftest.$ac_objext conftest$ac_exeext
14313 if { (ac_try="$ac_link"
14314 case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319 (eval "$ac_link") 2>conftest.er1
14321 grep -v '^ *+' conftest.er1 >conftest.err
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14327 { (case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_try") 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try='test -s conftest$ac_exeext'
14337 { (case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_try") 2>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
14346 ac_cv_lib_udis86_ud_init=yes
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14351 ac_cv_lib_udis86_ud_init=no
14354 rm -f core conftest.err conftest.$ac_objext \
14355 conftest$ac_exeext conftest.$ac_ext
14356 LIBS=$ac_check_lib_save_LIBS
14358 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14359 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14360 if test $ac_cv_lib_udis86_ud_init = yes; then
14361 cat >>confdefs.h <<_ACEOF
14362 #define HAVE_LIBUDIS86 1
14365 LIBS="-ludis86 $LIBS"
14369 echo "Error! You need to have libudis86 around."
14381 cat >>confdefs.h <<_ACEOF
14382 #define USE_UDIS86 $USE_UDIS86
14387 # Check whether --with-oprofile was given.
14388 if test "${with_oprofile+set}" = set; then
14389 withval=$with_oprofile;
14393 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14394 no) llvm_cv_oppath=
14397 *) llvm_cv_oppath="${withval}/lib/oprofile"
14398 CPPFLAGS="-I${withval}/include";;
14400 if test -n "$llvm_cv_oppath" ; then
14401 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14402 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14403 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14404 if test "${ac_cv_search_bfd_init+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 ac_func_search_save_LIBS=$LIBS
14408 cat >conftest.$ac_ext <<_ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14415 /* Override any GCC internal prototype to avoid an error.
14416 Use char because int might match the return type of a GCC
14417 builtin and then its argument prototype would still apply. */
14425 return bfd_init ();
14430 for ac_lib in '' bfd; do
14431 if test -z "$ac_lib"; then
14432 ac_res="none required"
14435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14437 rm -f conftest.$ac_objext conftest$ac_exeext
14438 if { (ac_try="$ac_link"
14439 case "(($ac_try" in
14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441 *) ac_try_echo=$ac_try;;
14443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444 (eval "$ac_link") 2>conftest.er1
14446 grep -v '^ *+' conftest.er1 >conftest.err
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14452 { (case "(($ac_try" in
14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454 *) ac_try_echo=$ac_try;;
14456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457 (eval "$ac_try") 2>&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; } &&
14461 { ac_try='test -s conftest$ac_exeext'
14462 { (case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_try") 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 ac_cv_search_bfd_init=$ac_res
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14479 rm -f core conftest.err conftest.$ac_objext \
14481 if test "${ac_cv_search_bfd_init+set}" = set; then
14485 if test "${ac_cv_search_bfd_init+set}" = set; then
14488 ac_cv_search_bfd_init=no
14490 rm conftest.$ac_ext
14491 LIBS=$ac_func_search_save_LIBS
14493 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14494 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14495 ac_res=$ac_cv_search_bfd_init
14496 if test "$ac_res" != no; then
14497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14501 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14502 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14503 if test "${ac_cv_search_op_open_agent+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 ac_func_search_save_LIBS=$LIBS
14507 cat >conftest.$ac_ext <<_ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h. */
14514 /* Override any GCC internal prototype to avoid an error.
14515 Use char because int might match the return type of a GCC
14516 builtin and then its argument prototype would still apply. */
14520 char op_open_agent ();
14524 return op_open_agent ();
14529 for ac_lib in '' opagent; do
14530 if test -z "$ac_lib"; then
14531 ac_res="none required"
14534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (ac_try="$ac_link"
14538 case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_link") 2>conftest.er1
14545 grep -v '^ *+' conftest.er1 >conftest.err
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14551 { (case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_try") 2>&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest$ac_exeext'
14561 { (case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14570 ac_cv_search_op_open_agent=$ac_res
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14578 rm -f core conftest.err conftest.$ac_objext \
14580 if test "${ac_cv_search_op_open_agent+set}" = set; then
14584 if test "${ac_cv_search_op_open_agent+set}" = set; then
14587 ac_cv_search_op_open_agent=no
14589 rm conftest.$ac_ext
14590 LIBS=$ac_func_search_save_LIBS
14592 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14593 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14594 ac_res=$ac_cv_search_op_open_agent
14595 if test "$ac_res" != no; then
14596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14600 echo "Error! You need to have libopagent around."
14605 if test "${ac_cv_header_opagent_h+set}" = set; then
14606 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14607 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14608 if test "${ac_cv_header_opagent_h+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14612 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14614 # Is the header compilable?
14615 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14616 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14617 cat >conftest.$ac_ext <<_ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 $ac_includes_default
14624 #include <opagent.h>
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14635 grep -v '^ *+' conftest.er1 >conftest.err
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } &&
14640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; } &&
14650 { ac_try='test -s conftest.$ac_objext'
14651 { (case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_try") 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_header_compiler=yes
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14665 ac_header_compiler=no
14668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14670 echo "${ECHO_T}$ac_header_compiler" >&6; }
14672 # Is the header present?
14673 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14674 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14675 cat >conftest.$ac_ext <<_ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 #include <opagent.h>
14683 if { (ac_try="$ac_cpp conftest.$ac_ext"
14684 case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14691 grep -v '^ *+' conftest.er1 >conftest.err
14693 cat conftest.err >&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } >/dev/null; then
14696 if test -s conftest.err; then
14697 ac_cpp_err=$ac_c_preproc_warn_flag
14698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14705 if test -z "$ac_cpp_err"; then
14706 ac_header_preproc=yes
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14711 ac_header_preproc=no
14714 rm -f conftest.err conftest.$ac_ext
14715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14716 echo "${ECHO_T}$ac_header_preproc" >&6; }
14718 # So? What about this header?
14719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14721 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14722 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14723 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14724 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14725 ac_header_preproc=yes
14728 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14729 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14730 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14731 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14733 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14734 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14735 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14736 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14737 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14739 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14741 ## ----------------------------------- ##
14742 ## Report this to llvmbugs@cs.uiuc.edu ##
14743 ## ----------------------------------- ##
14745 ) | sed "s/^/$as_me: WARNING: /" >&2
14748 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14749 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14750 if test "${ac_cv_header_opagent_h+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 ac_cv_header_opagent_h=$ac_header_preproc
14755 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14756 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14759 if test $ac_cv_header_opagent_h = yes; then
14763 echo "Error! You need to have opagent.h around."
14779 cat >>confdefs.h <<_ACEOF
14780 #define USE_OPROFILE $USE_OPROFILE
14790 ac_header_dirent=no
14791 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14792 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14793 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14794 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 cat >conftest.$ac_ext <<_ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804 #include <sys/types.h>
14816 rm -f conftest.$ac_objext
14817 if { (ac_try="$ac_compile"
14818 case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_compile") 2>conftest.er1
14825 grep -v '^ *+' conftest.er1 >conftest.err
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } &&
14830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14831 { (case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836 (eval "$ac_try") 2>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_try") 2>&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 eval "$as_ac_Header=yes"
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 eval "$as_ac_Header=no"
14858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14860 ac_res=`eval echo '${'$as_ac_Header'}'`
14861 { echo "$as_me:$LINENO: result: $ac_res" >&5
14862 echo "${ECHO_T}$ac_res" >&6; }
14863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14864 cat >>confdefs.h <<_ACEOF
14865 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14868 ac_header_dirent=$ac_hdr; break
14872 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14873 if test $ac_header_dirent = dirent.h; then
14874 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14875 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14876 if test "${ac_cv_search_opendir+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 ac_func_search_save_LIBS=$LIBS
14880 cat >conftest.$ac_ext <<_ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14887 /* Override any GCC internal prototype to avoid an error.
14888 Use char because int might match the return type of a GCC
14889 builtin and then its argument prototype would still apply. */
14902 for ac_lib in '' dir; do
14903 if test -z "$ac_lib"; then
14904 ac_res="none required"
14907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14909 rm -f conftest.$ac_objext conftest$ac_exeext
14910 if { (ac_try="$ac_link"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_link") 2>conftest.er1
14918 grep -v '^ *+' conftest.er1 >conftest.err
14920 cat conftest.err >&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } &&
14923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14933 { ac_try='test -s conftest$ac_exeext'
14934 { (case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_try") 2>&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 ac_cv_search_opendir=$ac_res
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14951 rm -f core conftest.err conftest.$ac_objext \
14953 if test "${ac_cv_search_opendir+set}" = set; then
14957 if test "${ac_cv_search_opendir+set}" = set; then
14960 ac_cv_search_opendir=no
14962 rm conftest.$ac_ext
14963 LIBS=$ac_func_search_save_LIBS
14965 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14966 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14967 ac_res=$ac_cv_search_opendir
14968 if test "$ac_res" != no; then
14969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14974 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14975 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14976 if test "${ac_cv_search_opendir+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 ac_func_search_save_LIBS=$LIBS
14980 cat >conftest.$ac_ext <<_ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14987 /* Override any GCC internal prototype to avoid an error.
14988 Use char because int might match the return type of a GCC
14989 builtin and then its argument prototype would still apply. */
15002 for ac_lib in '' x; do
15003 if test -z "$ac_lib"; then
15004 ac_res="none required"
15007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15009 rm -f conftest.$ac_objext conftest$ac_exeext
15010 if { (ac_try="$ac_link"
15011 case "(($ac_try" in
15012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15013 *) ac_try_echo=$ac_try;;
15015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016 (eval "$ac_link") 2>conftest.er1
15018 grep -v '^ *+' conftest.er1 >conftest.err
15020 cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
15023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15024 { (case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_try") 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest$ac_exeext'
15034 { (case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_try") 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_cv_search_opendir=$ac_res
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15051 rm -f core conftest.err conftest.$ac_objext \
15053 if test "${ac_cv_search_opendir+set}" = set; then
15057 if test "${ac_cv_search_opendir+set}" = set; then
15060 ac_cv_search_opendir=no
15062 rm conftest.$ac_ext
15063 LIBS=$ac_func_search_save_LIBS
15065 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15066 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15067 ac_res=$ac_cv_search_opendir
15068 if test "$ac_res" != no; then
15069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15075 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15076 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15077 if test "${ac_cv_header_mmap_anon+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 ac_cpp='$CPP $CPPFLAGS'
15082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15086 cat >conftest.$ac_ext <<_ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 #include <sys/mman.h>
15093 #include <unistd.h>
15098 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15103 rm -f conftest.$ac_objext
15104 if { (ac_try="$ac_compile"
15105 case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_compile") 2>conftest.er1
15112 grep -v '^ *+' conftest.er1 >conftest.err
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15118 { (case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_try") 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; } &&
15127 { ac_try='test -s conftest.$ac_objext'
15128 { (case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_try") 2>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 ac_cv_header_mmap_anon=yes
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 ac_cv_header_mmap_anon=no
15145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15147 ac_cpp='$CPP $CPPFLAGS'
15148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15154 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15155 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15156 if test "$ac_cv_header_mmap_anon" = yes; then
15158 cat >>confdefs.h <<\_ACEOF
15159 #define HAVE_MMAP_ANONYMOUS 1
15164 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15165 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15166 if test "${ac_cv_header_stat_broken+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 cat >conftest.$ac_ext <<_ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15175 #include <sys/types.h>
15176 #include <sys/stat.h>
15178 #if defined S_ISBLK && defined S_IFDIR
15179 # if S_ISBLK (S_IFDIR)
15184 #if defined S_ISBLK && defined S_IFCHR
15185 # if S_ISBLK (S_IFCHR)
15190 #if defined S_ISLNK && defined S_IFREG
15191 # if S_ISLNK (S_IFREG)
15196 #if defined S_ISSOCK && defined S_IFREG
15197 # if S_ISSOCK (S_IFREG)
15203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15204 $EGREP "You lose" >/dev/null 2>&1; then
15205 ac_cv_header_stat_broken=yes
15207 ac_cv_header_stat_broken=no
15212 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15213 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15214 if test $ac_cv_header_stat_broken = yes; then
15216 cat >>confdefs.h <<\_ACEOF
15217 #define STAT_MACROS_BROKEN 1
15222 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15223 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15224 if test "${ac_cv_header_stdc+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 cat >conftest.$ac_ext <<_ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15233 #include <stdlib.h>
15234 #include <stdarg.h>
15235 #include <string.h>
15246 rm -f conftest.$ac_objext
15247 if { (ac_try="$ac_compile"
15248 case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_compile") 2>conftest.er1
15255 grep -v '^ *+' conftest.er1 >conftest.err
15257 cat conftest.err >&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15261 { (case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_try") 2>&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; } &&
15270 { ac_try='test -s conftest.$ac_objext'
15271 { (case "(($ac_try" in
15272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276 (eval "$ac_try") 2>&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
15280 ac_cv_header_stdc=yes
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15285 ac_cv_header_stdc=no
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290 if test $ac_cv_header_stdc = yes; then
15291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15292 cat >conftest.$ac_ext <<_ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 #include <string.h>
15301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15302 $EGREP "memchr" >/dev/null 2>&1; then
15305 ac_cv_header_stdc=no
15311 if test $ac_cv_header_stdc = yes; then
15312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15313 cat >conftest.$ac_ext <<_ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 #include <stdlib.h>
15322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15323 $EGREP "free" >/dev/null 2>&1; then
15326 ac_cv_header_stdc=no
15332 if test $ac_cv_header_stdc = yes; then
15333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15334 if test "$cross_compiling" = yes; then
15337 cat >conftest.$ac_ext <<_ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15344 #include <stdlib.h>
15345 #if ((' ' & 0x0FF) == 0x020)
15346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15349 # define ISLOWER(c) \
15350 (('a' <= (c) && (c) <= 'i') \
15351 || ('j' <= (c) && (c) <= 'r') \
15352 || ('s' <= (c) && (c) <= 'z'))
15353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15361 for (i = 0; i < 256; i++)
15362 if (XOR (islower (i), ISLOWER (i))
15363 || toupper (i) != TOUPPER (i))
15368 rm -f conftest$ac_exeext
15369 if { (ac_try="$ac_link"
15370 case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_link") 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15379 { (case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_try") 2>&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
15390 echo "$as_me: program exited with status $ac_status" >&5
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15394 ( exit $ac_status )
15395 ac_cv_header_stdc=no
15397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15403 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15404 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15405 if test $ac_cv_header_stdc = yes; then
15407 cat >>confdefs.h <<\_ACEOF
15408 #define STDC_HEADERS 1
15413 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15414 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15415 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 cat >conftest.$ac_ext <<_ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424 #include <sys/types.h>
15425 #include <sys/wait.h>
15426 #ifndef WEXITSTATUS
15427 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15430 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15438 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15443 rm -f conftest.$ac_objext
15444 if { (ac_try="$ac_compile"
15445 case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_compile") 2>conftest.er1
15452 grep -v '^ *+' conftest.er1 >conftest.err
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
15457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15458 { (case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15463 (eval "$ac_try") 2>&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try='test -s conftest.$ac_objext'
15468 { (case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473 (eval "$ac_try") 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_cv_header_sys_wait_h=yes
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_cv_header_sys_wait_h=no
15485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15488 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15489 if test $ac_cv_header_sys_wait_h = yes; then
15491 cat >>confdefs.h <<\_ACEOF
15492 #define HAVE_SYS_WAIT_H 1
15497 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15498 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15499 if test "${ac_cv_header_time+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 cat >conftest.$ac_ext <<_ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h. */
15508 #include <sys/types.h>
15509 #include <sys/time.h>
15515 if ((struct tm *) 0)
15521 rm -f conftest.$ac_objext
15522 if { (ac_try="$ac_compile"
15523 case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_compile") 2>conftest.er1
15530 grep -v '^ *+' conftest.er1 >conftest.err
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15536 { (case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541 (eval "$ac_try") 2>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; } &&
15545 { ac_try='test -s conftest.$ac_objext'
15546 { (case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_try") 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 ac_cv_header_time=yes
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15560 ac_cv_header_time=no
15563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15566 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15567 if test $ac_cv_header_time = yes; then
15569 cat >>confdefs.h <<\_ACEOF
15570 #define TIME_WITH_SYS_TIME 1
15582 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
15591 ac_res=`eval echo '${'$as_ac_Header'}'`
15592 { echo "$as_me:$LINENO: result: $ac_res" >&5
15593 echo "${ECHO_T}$ac_res" >&6; }
15595 # Is the header compilable?
15596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 $ac_includes_default
15605 #include <$ac_header>
15607 rm -f conftest.$ac_objext
15608 if { (ac_try="$ac_compile"
15609 case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_compile") 2>conftest.er1
15616 grep -v '^ *+' conftest.er1 >conftest.err
15618 cat conftest.err >&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
15621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15622 { (case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627 (eval "$ac_try") 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; } &&
15631 { ac_try='test -s conftest.$ac_objext'
15632 { (case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_try") 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 ac_header_compiler=yes
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 ac_header_compiler=no
15649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15651 echo "${ECHO_T}$ac_header_compiler" >&6; }
15653 # Is the header present?
15654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15656 cat >conftest.$ac_ext <<_ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 #include <$ac_header>
15664 if { (ac_try="$ac_cpp conftest.$ac_ext"
15665 case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15672 grep -v '^ *+' conftest.er1 >conftest.err
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } >/dev/null; then
15677 if test -s conftest.err; then
15678 ac_cpp_err=$ac_c_preproc_warn_flag
15679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15686 if test -z "$ac_cpp_err"; then
15687 ac_header_preproc=yes
15689 echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15692 ac_header_preproc=no
15695 rm -f conftest.err conftest.$ac_ext
15696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15697 echo "${ECHO_T}$ac_header_preproc" >&6; }
15699 # So? What about this header?
15700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15706 ac_header_preproc=yes
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15722 ## ----------------------------------- ##
15723 ## Report this to llvmbugs@cs.uiuc.edu ##
15724 ## ----------------------------------- ##
15726 ) | sed "s/^/$as_me: WARNING: /" >&2
15729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15734 eval "$as_ac_Header=\$ac_header_preproc"
15736 ac_res=`eval echo '${'$as_ac_Header'}'`
15737 { echo "$as_me:$LINENO: result: $ac_res" >&5
15738 echo "${ECHO_T}$ac_res" >&6; }
15741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15742 cat >>confdefs.h <<_ACEOF
15743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15756 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 ac_res=`eval echo '${'$as_ac_Header'}'`
15766 { echo "$as_me:$LINENO: result: $ac_res" >&5
15767 echo "${ECHO_T}$ac_res" >&6; }
15769 # Is the header compilable?
15770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15772 cat >conftest.$ac_ext <<_ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 $ac_includes_default
15779 #include <$ac_header>
15781 rm -f conftest.$ac_objext
15782 if { (ac_try="$ac_compile"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_compile") 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15796 { (case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_try") 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest.$ac_objext'
15806 { (case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811 (eval "$ac_try") 2>&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15815 ac_header_compiler=yes
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_header_compiler=no
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15825 echo "${ECHO_T}$ac_header_compiler" >&6; }
15827 # Is the header present?
15828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15830 cat >conftest.$ac_ext <<_ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 #include <$ac_header>
15838 if { (ac_try="$ac_cpp conftest.$ac_ext"
15839 case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15846 grep -v '^ *+' conftest.er1 >conftest.err
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } >/dev/null; then
15851 if test -s conftest.err; then
15852 ac_cpp_err=$ac_c_preproc_warn_flag
15853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15860 if test -z "$ac_cpp_err"; then
15861 ac_header_preproc=yes
15863 echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15866 ac_header_preproc=no
15869 rm -f conftest.err conftest.$ac_ext
15870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15871 echo "${ECHO_T}$ac_header_preproc" >&6; }
15873 # So? What about this header?
15874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15880 ac_header_preproc=yes
15883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15896 ## ----------------------------------- ##
15897 ## Report this to llvmbugs@cs.uiuc.edu ##
15898 ## ----------------------------------- ##
15900 ) | sed "s/^/$as_me: WARNING: /" >&2
15903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 eval "$as_ac_Header=\$ac_header_preproc"
15910 ac_res=`eval echo '${'$as_ac_Header'}'`
15911 { echo "$as_me:$LINENO: result: $ac_res" >&5
15912 echo "${ECHO_T}$ac_res" >&6; }
15915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15916 cat >>confdefs.h <<_ACEOF
15917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15926 for ac_header in utime.h windows.h
15928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 ac_res=`eval echo '${'$as_ac_Header'}'`
15936 { echo "$as_me:$LINENO: result: $ac_res" >&5
15937 echo "${ECHO_T}$ac_res" >&6; }
15939 # Is the header compilable?
15940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15942 cat >conftest.$ac_ext <<_ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h. */
15948 $ac_includes_default
15949 #include <$ac_header>
15951 rm -f conftest.$ac_objext
15952 if { (ac_try="$ac_compile"
15953 case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_compile") 2>conftest.er1
15960 grep -v '^ *+' conftest.er1 >conftest.err
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
15965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15966 { (case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_try") 2>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest.$ac_objext'
15976 { (case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_try") 2>&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985 ac_header_compiler=yes
15987 echo "$as_me: failed program was:" >&5
15988 sed 's/^/| /' conftest.$ac_ext >&5
15990 ac_header_compiler=no
15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15995 echo "${ECHO_T}$ac_header_compiler" >&6; }
15997 # Is the header present?
15998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16000 cat >conftest.$ac_ext <<_ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 #include <$ac_header>
16008 if { (ac_try="$ac_cpp conftest.$ac_ext"
16009 case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16016 grep -v '^ *+' conftest.er1 >conftest.err
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } >/dev/null; then
16021 if test -s conftest.err; then
16022 ac_cpp_err=$ac_c_preproc_warn_flag
16023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16030 if test -z "$ac_cpp_err"; then
16031 ac_header_preproc=yes
16033 echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.$ac_ext >&5
16036 ac_header_preproc=no
16039 rm -f conftest.err conftest.$ac_ext
16040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16041 echo "${ECHO_T}$ac_header_preproc" >&6; }
16043 # So? What about this header?
16044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16050 ac_header_preproc=yes
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16066 ## ----------------------------------- ##
16067 ## Report this to llvmbugs@cs.uiuc.edu ##
16068 ## ----------------------------------- ##
16070 ) | sed "s/^/$as_me: WARNING: /" >&2
16073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 eval "$as_ac_Header=\$ac_header_preproc"
16080 ac_res=`eval echo '${'$as_ac_Header'}'`
16081 { echo "$as_me:$LINENO: result: $ac_res" >&5
16082 echo "${ECHO_T}$ac_res" >&6; }
16085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16086 cat >>confdefs.h <<_ACEOF
16087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16098 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16105 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 ac_res=`eval echo '${'$as_ac_Header'}'`
16108 { echo "$as_me:$LINENO: result: $ac_res" >&5
16109 echo "${ECHO_T}$ac_res" >&6; }
16111 # Is the header compilable?
16112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16114 cat >conftest.$ac_ext <<_ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16120 $ac_includes_default
16121 #include <$ac_header>
16123 rm -f conftest.$ac_objext
16124 if { (ac_try="$ac_compile"
16125 case "(($ac_try" in
16126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16127 *) ac_try_echo=$ac_try;;
16129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16130 (eval "$ac_compile") 2>conftest.er1
16132 grep -v '^ *+' conftest.er1 >conftest.err
16134 cat conftest.err >&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
16137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16138 { (case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143 (eval "$ac_try") 2>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } &&
16147 { ac_try='test -s conftest.$ac_objext'
16148 { (case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153 (eval "$ac_try") 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 ac_header_compiler=yes
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 ac_header_compiler=no
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16167 echo "${ECHO_T}$ac_header_compiler" >&6; }
16169 # Is the header present?
16170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16172 cat >conftest.$ac_ext <<_ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 #include <$ac_header>
16180 if { (ac_try="$ac_cpp conftest.$ac_ext"
16181 case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16188 grep -v '^ *+' conftest.er1 >conftest.err
16190 cat conftest.err >&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } >/dev/null; then
16193 if test -s conftest.err; then
16194 ac_cpp_err=$ac_c_preproc_warn_flag
16195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16202 if test -z "$ac_cpp_err"; then
16203 ac_header_preproc=yes
16205 echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16208 ac_header_preproc=no
16211 rm -f conftest.err conftest.$ac_ext
16212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16213 echo "${ECHO_T}$ac_header_preproc" >&6; }
16215 # So? What about this header?
16216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16222 ac_header_preproc=yes
16225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16238 ## ----------------------------------- ##
16239 ## Report this to llvmbugs@cs.uiuc.edu ##
16240 ## ----------------------------------- ##
16242 ) | sed "s/^/$as_me: WARNING: /" >&2
16245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16250 eval "$as_ac_Header=\$ac_header_preproc"
16252 ac_res=`eval echo '${'$as_ac_Header'}'`
16253 { echo "$as_me:$LINENO: result: $ac_res" >&5
16254 echo "${ECHO_T}$ac_res" >&6; }
16257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16258 cat >>confdefs.h <<_ACEOF
16259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16270 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 ac_res=`eval echo '${'$as_ac_Header'}'`
16280 { echo "$as_me:$LINENO: result: $ac_res" >&5
16281 echo "${ECHO_T}$ac_res" >&6; }
16283 # Is the header compilable?
16284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16286 cat >conftest.$ac_ext <<_ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 $ac_includes_default
16293 #include <$ac_header>
16295 rm -f conftest.$ac_objext
16296 if { (ac_try="$ac_compile"
16297 case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_compile") 2>conftest.er1
16304 grep -v '^ *+' conftest.er1 >conftest.err
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16310 { (case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_try") 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; } &&
16319 { ac_try='test -s conftest.$ac_objext'
16320 { (case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_try") 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_header_compiler=yes
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 ac_header_compiler=no
16337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16339 echo "${ECHO_T}$ac_header_compiler" >&6; }
16341 # Is the header present?
16342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16344 cat >conftest.$ac_ext <<_ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 #include <$ac_header>
16352 if { (ac_try="$ac_cpp conftest.$ac_ext"
16353 case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16360 grep -v '^ *+' conftest.er1 >conftest.err
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } >/dev/null; then
16365 if test -s conftest.err; then
16366 ac_cpp_err=$ac_c_preproc_warn_flag
16367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16374 if test -z "$ac_cpp_err"; then
16375 ac_header_preproc=yes
16377 echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16380 ac_header_preproc=no
16383 rm -f conftest.err conftest.$ac_ext
16384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16385 echo "${ECHO_T}$ac_header_preproc" >&6; }
16387 # So? What about this header?
16388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16394 ac_header_preproc=yes
16397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16410 ## ----------------------------------- ##
16411 ## Report this to llvmbugs@cs.uiuc.edu ##
16412 ## ----------------------------------- ##
16414 ) | sed "s/^/$as_me: WARNING: /" >&2
16417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16420 echo $ECHO_N "(cached) $ECHO_C" >&6
16422 eval "$as_ac_Header=\$ac_header_preproc"
16424 ac_res=`eval echo '${'$as_ac_Header'}'`
16425 { echo "$as_me:$LINENO: result: $ac_res" >&5
16426 echo "${ECHO_T}$ac_res" >&6; }
16429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16430 cat >>confdefs.h <<_ACEOF
16431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16439 for ac_header in valgrind/valgrind.h
16441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16448 ac_res=`eval echo '${'$as_ac_Header'}'`
16449 { echo "$as_me:$LINENO: result: $ac_res" >&5
16450 echo "${ECHO_T}$ac_res" >&6; }
16452 # Is the header compilable?
16453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16455 cat >conftest.$ac_ext <<_ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16461 $ac_includes_default
16462 #include <$ac_header>
16464 rm -f conftest.$ac_objext
16465 if { (ac_try="$ac_compile"
16466 case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_compile") 2>conftest.er1
16473 grep -v '^ *+' conftest.er1 >conftest.err
16475 cat conftest.err >&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } &&
16478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; } &&
16488 { ac_try='test -s conftest.$ac_objext'
16489 { (case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_try") 2>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; }; then
16498 ac_header_compiler=yes
16500 echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16503 ac_header_compiler=no
16506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16508 echo "${ECHO_T}$ac_header_compiler" >&6; }
16510 # Is the header present?
16511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16513 cat >conftest.$ac_ext <<_ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h. */
16519 #include <$ac_header>
16521 if { (ac_try="$ac_cpp conftest.$ac_ext"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16529 grep -v '^ *+' conftest.er1 >conftest.err
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } >/dev/null; then
16534 if test -s conftest.err; then
16535 ac_cpp_err=$ac_c_preproc_warn_flag
16536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16543 if test -z "$ac_cpp_err"; then
16544 ac_header_preproc=yes
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16549 ac_header_preproc=no
16552 rm -f conftest.err conftest.$ac_ext
16553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16554 echo "${ECHO_T}$ac_header_preproc" >&6; }
16556 # So? What about this header?
16557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16563 ac_header_preproc=yes
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16579 ## ----------------------------------- ##
16580 ## Report this to llvmbugs@cs.uiuc.edu ##
16581 ## ----------------------------------- ##
16583 ) | sed "s/^/$as_me: WARNING: /" >&2
16586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16591 eval "$as_ac_Header=\$ac_header_preproc"
16593 ac_res=`eval echo '${'$as_ac_Header'}'`
16594 { echo "$as_me:$LINENO: result: $ac_res" >&5
16595 echo "${ECHO_T}$ac_res" >&6; }
16598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16599 cat >>confdefs.h <<_ACEOF
16600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16607 if test "$ENABLE_THREADS" -eq 1 ; then
16609 for ac_header in pthread.h
16611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 ac_res=`eval echo '${'$as_ac_Header'}'`
16619 { echo "$as_me:$LINENO: result: $ac_res" >&5
16620 echo "${ECHO_T}$ac_res" >&6; }
16622 # Is the header compilable?
16623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16625 cat >conftest.$ac_ext <<_ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 $ac_includes_default
16632 #include <$ac_header>
16634 rm -f conftest.$ac_objext
16635 if { (ac_try="$ac_compile"
16636 case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_compile") 2>conftest.er1
16643 grep -v '^ *+' conftest.er1 >conftest.err
16645 cat conftest.err >&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } &&
16648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16649 { (case "(($ac_try" in
16650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651 *) ac_try_echo=$ac_try;;
16653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16654 (eval "$ac_try") 2>&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest.$ac_objext'
16659 { (case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_try") 2>&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_header_compiler=yes
16670 echo "$as_me: failed program was:" >&5
16671 sed 's/^/| /' conftest.$ac_ext >&5
16673 ac_header_compiler=no
16676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16678 echo "${ECHO_T}$ac_header_compiler" >&6; }
16680 # Is the header present?
16681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16683 cat >conftest.$ac_ext <<_ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16689 #include <$ac_header>
16691 if { (ac_try="$ac_cpp conftest.$ac_ext"
16692 case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16699 grep -v '^ *+' conftest.er1 >conftest.err
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } >/dev/null; then
16704 if test -s conftest.err; then
16705 ac_cpp_err=$ac_c_preproc_warn_flag
16706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16713 if test -z "$ac_cpp_err"; then
16714 ac_header_preproc=yes
16716 echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16719 ac_header_preproc=no
16722 rm -f conftest.err conftest.$ac_ext
16723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16724 echo "${ECHO_T}$ac_header_preproc" >&6; }
16726 # So? What about this header?
16727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16733 ac_header_preproc=yes
16736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16749 ## ----------------------------------- ##
16750 ## Report this to llvmbugs@cs.uiuc.edu ##
16751 ## ----------------------------------- ##
16753 ) | sed "s/^/$as_me: WARNING: /" >&2
16756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 eval "$as_ac_Header=\$ac_header_preproc"
16763 ac_res=`eval echo '${'$as_ac_Header'}'`
16764 { echo "$as_me:$LINENO: result: $ac_res" >&5
16765 echo "${ECHO_T}$ac_res" >&6; }
16768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16769 cat >>confdefs.h <<_ACEOF
16770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16786 if test "$llvm_cv_enable_libffi" = "yes" ; then
16789 for ac_header in ffi.h ffi/ffi.h
16791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16798 ac_res=`eval echo '${'$as_ac_Header'}'`
16799 { echo "$as_me:$LINENO: result: $ac_res" >&5
16800 echo "${ECHO_T}$ac_res" >&6; }
16802 # Is the header compilable?
16803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16805 cat >conftest.$ac_ext <<_ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h. */
16811 $ac_includes_default
16812 #include <$ac_header>
16814 rm -f conftest.$ac_objext
16815 if { (ac_try="$ac_compile"
16816 case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_compile") 2>conftest.er1
16823 grep -v '^ *+' conftest.er1 >conftest.err
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16829 { (case "(($ac_try" in
16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831 *) ac_try_echo=$ac_try;;
16833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16834 (eval "$ac_try") 2>&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; } &&
16838 { ac_try='test -s conftest.$ac_objext'
16839 { (case "(($ac_try" in
16840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841 *) ac_try_echo=$ac_try;;
16843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16844 (eval "$ac_try") 2>&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 ac_header_compiler=yes
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 ac_header_compiler=no
16856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16858 echo "${ECHO_T}$ac_header_compiler" >&6; }
16860 # Is the header present?
16861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16863 cat >conftest.$ac_ext <<_ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16869 #include <$ac_header>
16871 if { (ac_try="$ac_cpp conftest.$ac_ext"
16872 case "(($ac_try" in
16873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874 *) ac_try_echo=$ac_try;;
16876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16879 grep -v '^ *+' conftest.er1 >conftest.err
16881 cat conftest.err >&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } >/dev/null; then
16884 if test -s conftest.err; then
16885 ac_cpp_err=$ac_c_preproc_warn_flag
16886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16893 if test -z "$ac_cpp_err"; then
16894 ac_header_preproc=yes
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16899 ac_header_preproc=no
16902 rm -f conftest.err conftest.$ac_ext
16903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16904 echo "${ECHO_T}$ac_header_preproc" >&6; }
16906 # So? What about this header?
16907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16913 ac_header_preproc=yes
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16929 ## ----------------------------------- ##
16930 ## Report this to llvmbugs@cs.uiuc.edu ##
16931 ## ----------------------------------- ##
16933 ) | sed "s/^/$as_me: WARNING: /" >&2
16936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16941 eval "$as_ac_Header=\$ac_header_preproc"
16943 ac_res=`eval echo '${'$as_ac_Header'}'`
16944 { echo "$as_me:$LINENO: result: $ac_res" >&5
16945 echo "${ECHO_T}$ac_res" >&6; }
16948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16949 cat >>confdefs.h <<_ACEOF
16950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16960 for ac_header in CrashReporterClient.h
16962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16967 echo $ECHO_N "(cached) $ECHO_C" >&6
16969 ac_res=`eval echo '${'$as_ac_Header'}'`
16970 { echo "$as_me:$LINENO: result: $ac_res" >&5
16971 echo "${ECHO_T}$ac_res" >&6; }
16973 # Is the header compilable?
16974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16976 cat >conftest.$ac_ext <<_ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16982 $ac_includes_default
16983 #include <$ac_header>
16985 rm -f conftest.$ac_objext
16986 if { (ac_try="$ac_compile"
16987 case "(($ac_try" in
16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989 *) ac_try_echo=$ac_try;;
16991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 (eval "$ac_compile") 2>conftest.er1
16994 grep -v '^ *+' conftest.er1 >conftest.err
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
16999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17000 { (case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_try") 2>&5
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; } &&
17009 { ac_try='test -s conftest.$ac_objext'
17010 { (case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_try") 2>&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; }; then
17019 ac_header_compiler=yes
17021 echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.$ac_ext >&5
17024 ac_header_compiler=no
17027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17029 echo "${ECHO_T}$ac_header_compiler" >&6; }
17031 # Is the header present?
17032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17034 cat >conftest.$ac_ext <<_ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17040 #include <$ac_header>
17042 if { (ac_try="$ac_cpp conftest.$ac_ext"
17043 case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17050 grep -v '^ *+' conftest.er1 >conftest.err
17052 cat conftest.err >&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } >/dev/null; then
17055 if test -s conftest.err; then
17056 ac_cpp_err=$ac_c_preproc_warn_flag
17057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17064 if test -z "$ac_cpp_err"; then
17065 ac_header_preproc=yes
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17070 ac_header_preproc=no
17073 rm -f conftest.err conftest.$ac_ext
17074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17075 echo "${ECHO_T}$ac_header_preproc" >&6; }
17077 # So? What about this header?
17078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17084 ac_header_preproc=yes
17087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17100 ## ----------------------------------- ##
17101 ## Report this to llvmbugs@cs.uiuc.edu ##
17102 ## ----------------------------------- ##
17104 ) | sed "s/^/$as_me: WARNING: /" >&2
17107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 eval "$as_ac_Header=\$ac_header_preproc"
17114 ac_res=`eval echo '${'$as_ac_Header'}'`
17115 { echo "$as_me:$LINENO: result: $ac_res" >&5
17116 echo "${ECHO_T}$ac_res" >&6; }
17119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17120 cat >>confdefs.h <<_ACEOF
17121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17132 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17133 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17134 if test "${ac_cv_huge_val_sanity+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 ac_cpp='$CXXCPP $CPPFLAGS'
17140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17144 ac_save_CXXFLAGS=$CXXFLAGS
17146 if test "$cross_compiling" = yes; then
17147 ac_cv_huge_val_sanity=yes
17149 cat >conftest.$ac_ext <<_ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17159 double x = HUGE_VAL; return x != x;
17164 rm -f conftest$ac_exeext
17165 if { (ac_try="$ac_link"
17166 case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_link") 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17175 { (case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
17184 ac_cv_huge_val_sanity=yes
17186 echo "$as_me: program exited with status $ac_status" >&5
17187 echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17190 ( exit $ac_status )
17191 ac_cv_huge_val_sanity=no
17193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17197 CXXFLAGS=$ac_save_CXXFLAGS
17199 ac_cpp='$CPP $CPPFLAGS'
17200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17206 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17207 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17208 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17211 { echo "$as_me:$LINENO: checking for pid_t" >&5
17212 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17213 if test "${ac_cv_type_pid_t+set}" = set; then
17214 echo $ECHO_N "(cached) $ECHO_C" >&6
17216 cat >conftest.$ac_ext <<_ACEOF
17219 cat confdefs.h >>conftest.$ac_ext
17220 cat >>conftest.$ac_ext <<_ACEOF
17221 /* end confdefs.h. */
17222 $ac_includes_default
17223 typedef pid_t ac__type_new_;
17227 if ((ac__type_new_ *) 0)
17229 if (sizeof (ac__type_new_))
17235 rm -f conftest.$ac_objext
17236 if { (ac_try="$ac_compile"
17237 case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_compile") 2>conftest.er1
17244 grep -v '^ *+' conftest.er1 >conftest.err
17246 cat conftest.err >&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } &&
17249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17250 { (case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_try") 2>&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; } &&
17259 { ac_try='test -s conftest.$ac_objext'
17260 { (case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_try") 2>&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 ac_cv_type_pid_t=yes
17271 echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17274 ac_cv_type_pid_t=no
17277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17279 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17280 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17281 if test $ac_cv_type_pid_t = yes; then
17285 cat >>confdefs.h <<_ACEOF
17291 { echo "$as_me:$LINENO: checking for size_t" >&5
17292 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17293 if test "${ac_cv_type_size_t+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 cat >conftest.$ac_ext <<_ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h. */
17302 $ac_includes_default
17303 typedef size_t ac__type_new_;
17307 if ((ac__type_new_ *) 0)
17309 if (sizeof (ac__type_new_))
17315 rm -f conftest.$ac_objext
17316 if { (ac_try="$ac_compile"
17317 case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_compile") 2>conftest.er1
17324 grep -v '^ *+' conftest.er1 >conftest.err
17326 cat conftest.err >&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } &&
17329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17330 { (case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_try") 2>&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; } &&
17339 { ac_try='test -s conftest.$ac_objext'
17340 { (case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_try") 2>&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; }; then
17349 ac_cv_type_size_t=yes
17351 echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17354 ac_cv_type_size_t=no
17357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17359 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17360 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17361 if test $ac_cv_type_size_t = yes; then
17365 cat >>confdefs.h <<_ACEOF
17366 #define size_t unsigned int
17372 cat >>confdefs.h <<_ACEOF
17373 #define RETSIGTYPE void
17376 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17377 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17378 if test "${ac_cv_struct_tm+set}" = set; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 cat >conftest.$ac_ext <<_ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 #include <sys/types.h>
17393 struct tm *tp; tp->tm_sec;
17398 rm -f conftest.$ac_objext
17399 if { (ac_try="$ac_compile"
17400 case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_compile") 2>conftest.er1
17407 grep -v '^ *+' conftest.er1 >conftest.err
17409 cat conftest.err >&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); } &&
17412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17413 { (case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_try") 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; } &&
17422 { ac_try='test -s conftest.$ac_objext'
17423 { (case "(($ac_try" in
17424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425 *) ac_try_echo=$ac_try;;
17427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428 (eval "$ac_try") 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432 ac_cv_struct_tm=time.h
17434 echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17437 ac_cv_struct_tm=sys/time.h
17440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17442 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17443 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17444 if test $ac_cv_struct_tm = sys/time.h; then
17446 cat >>confdefs.h <<\_ACEOF
17447 #define TM_IN_SYS_TIME 1
17452 { echo "$as_me:$LINENO: checking for int64_t" >&5
17453 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17454 if test "${ac_cv_type_int64_t+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17457 cat >conftest.$ac_ext <<_ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 $ac_includes_default
17464 typedef int64_t ac__type_new_;
17468 if ((ac__type_new_ *) 0)
17470 if (sizeof (ac__type_new_))
17476 rm -f conftest.$ac_objext
17477 if { (ac_try="$ac_compile"
17478 case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_compile") 2>conftest.er1
17485 grep -v '^ *+' conftest.er1 >conftest.err
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17491 { (case "(($ac_try" in
17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496 (eval "$ac_try") 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest.$ac_objext'
17501 { (case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_try") 2>&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; }; then
17510 ac_cv_type_int64_t=yes
17512 echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 ac_cv_type_int64_t=no
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17521 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17522 if test $ac_cv_type_int64_t = yes; then
17524 cat >>confdefs.h <<_ACEOF
17525 #define HAVE_INT64_T 1
17530 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17531 echo "$as_me: error: Type int64_t required but not found" >&2;}
17532 { (exit 1); exit 1; }; }
17535 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17536 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17537 if test "${ac_cv_type_uint64_t+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 cat >conftest.$ac_ext <<_ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 $ac_includes_default
17547 typedef uint64_t ac__type_new_;
17551 if ((ac__type_new_ *) 0)
17553 if (sizeof (ac__type_new_))
17559 rm -f conftest.$ac_objext
17560 if { (ac_try="$ac_compile"
17561 case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_compile") 2>conftest.er1
17568 grep -v '^ *+' conftest.er1 >conftest.err
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17574 { (case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_try") 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest.$ac_objext'
17584 { (case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_try") 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593 ac_cv_type_uint64_t=yes
17595 echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17598 ac_cv_type_uint64_t=no
17601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17603 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17604 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17605 if test $ac_cv_type_uint64_t = yes; then
17607 cat >>confdefs.h <<_ACEOF
17608 #define HAVE_UINT64_T 1
17613 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17614 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17615 if test "${ac_cv_type_u_int64_t+set}" = set; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17618 cat >conftest.$ac_ext <<_ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h. */
17624 $ac_includes_default
17625 typedef u_int64_t ac__type_new_;
17629 if ((ac__type_new_ *) 0)
17631 if (sizeof (ac__type_new_))
17637 rm -f conftest.$ac_objext
17638 if { (ac_try="$ac_compile"
17639 case "(($ac_try" in
17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641 *) ac_try_echo=$ac_try;;
17643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644 (eval "$ac_compile") 2>conftest.er1
17646 grep -v '^ *+' conftest.er1 >conftest.err
17648 cat conftest.err >&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } &&
17651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17652 { (case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_try") 2>&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; } &&
17661 { ac_try='test -s conftest.$ac_objext'
17662 { (case "(($ac_try" in
17663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664 *) ac_try_echo=$ac_try;;
17666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667 (eval "$ac_try") 2>&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671 ac_cv_type_u_int64_t=yes
17673 echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17676 ac_cv_type_u_int64_t=no
17679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17681 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17682 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17683 if test $ac_cv_type_u_int64_t = yes; then
17685 cat >>confdefs.h <<_ACEOF
17686 #define HAVE_U_INT64_T 1
17691 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17692 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17693 { (exit 1); exit 1; }; }
17707 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 cat >conftest.$ac_ext <<_ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17723 #define $ac_func innocuous_$ac_func
17725 /* System header to define __stub macros and hopefully few prototypes,
17726 which can conflict with char $ac_func (); below.
17727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17728 <limits.h> exists even on freestanding compilers. */
17731 # include <limits.h>
17733 # include <assert.h>
17738 /* Override any GCC internal prototype to avoid an error.
17739 Use char because int might match the return type of a GCC
17740 builtin and then its argument prototype would still apply. */
17745 /* The GNU C library defines this for functions which it implements
17746 to always fail with ENOSYS. Some functions are actually named
17747 something starting with __ and the normal name is an alias. */
17748 #if defined __stub_$ac_func || defined __stub___$ac_func
17755 return $ac_func ();
17760 rm -f conftest.$ac_objext conftest$ac_exeext
17761 if { (ac_try="$ac_link"
17762 case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767 (eval "$ac_link") 2>conftest.er1
17769 grep -v '^ *+' conftest.er1 >conftest.err
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
17774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17775 { (case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_try") 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; } &&
17784 { ac_try='test -s conftest$ac_exeext'
17785 { (case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790 (eval "$ac_try") 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 eval "$as_ac_var=yes"
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17799 eval "$as_ac_var=no"
17802 rm -f core conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
17805 ac_res=`eval echo '${'$as_ac_var'}'`
17806 { echo "$as_me:$LINENO: result: $ac_res" >&5
17807 echo "${ECHO_T}$ac_res" >&6; }
17808 if test `eval echo '${'$as_ac_var'}'` = yes; then
17809 cat >>confdefs.h <<_ACEOF
17810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17820 for ac_func in powf fmodf strtof round
17822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17828 cat >conftest.$ac_ext <<_ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17836 #define $ac_func innocuous_$ac_func
17838 /* System header to define __stub macros and hopefully few prototypes,
17839 which can conflict with char $ac_func (); below.
17840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17841 <limits.h> exists even on freestanding compilers. */
17844 # include <limits.h>
17846 # include <assert.h>
17851 /* Override any GCC internal prototype to avoid an error.
17852 Use char because int might match the return type of a GCC
17853 builtin and then its argument prototype would still apply. */
17858 /* The GNU C library defines this for functions which it implements
17859 to always fail with ENOSYS. Some functions are actually named
17860 something starting with __ and the normal name is an alias. */
17861 #if defined __stub_$ac_func || defined __stub___$ac_func
17868 return $ac_func ();
17873 rm -f conftest.$ac_objext conftest$ac_exeext
17874 if { (ac_try="$ac_link"
17875 case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_link") 2>conftest.er1
17882 grep -v '^ *+' conftest.er1 >conftest.err
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
17887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17888 { (case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_try") 2>&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; } &&
17897 { ac_try='test -s conftest$ac_exeext'
17898 { (case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_try") 2>&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; }; then
17907 eval "$as_ac_var=yes"
17909 echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17912 eval "$as_ac_var=no"
17915 rm -f core conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17918 ac_res=`eval echo '${'$as_ac_var'}'`
17919 { echo "$as_me:$LINENO: result: $ac_res" >&5
17920 echo "${ECHO_T}$ac_res" >&6; }
17921 if test `eval echo '${'$as_ac_var'}'` = yes; then
17922 cat >>confdefs.h <<_ACEOF
17923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17934 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17940 echo $ECHO_N "(cached) $ECHO_C" >&6
17942 cat >conftest.$ac_ext <<_ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17950 #define $ac_func innocuous_$ac_func
17952 /* System header to define __stub macros and hopefully few prototypes,
17953 which can conflict with char $ac_func (); below.
17954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17955 <limits.h> exists even on freestanding compilers. */
17958 # include <limits.h>
17960 # include <assert.h>
17965 /* Override any GCC internal prototype to avoid an error.
17966 Use char because int might match the return type of a GCC
17967 builtin and then its argument prototype would still apply. */
17972 /* The GNU C library defines this for functions which it implements
17973 to always fail with ENOSYS. Some functions are actually named
17974 something starting with __ and the normal name is an alias. */
17975 #if defined __stub_$ac_func || defined __stub___$ac_func
17982 return $ac_func ();
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (ac_try="$ac_link"
17989 case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_link") 2>conftest.er1
17996 grep -v '^ *+' conftest.er1 >conftest.err
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest$ac_exeext'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 eval "$as_ac_var=yes"
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 eval "$as_ac_var=no"
18029 rm -f core conftest.err conftest.$ac_objext \
18030 conftest$ac_exeext conftest.$ac_ext
18032 ac_res=`eval echo '${'$as_ac_var'}'`
18033 { echo "$as_me:$LINENO: result: $ac_res" >&5
18034 echo "${ECHO_T}$ac_res" >&6; }
18035 if test `eval echo '${'$as_ac_var'}'` = yes; then
18036 cat >>confdefs.h <<_ACEOF
18037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18046 for ac_func in isatty mkdtemp mkstemp
18048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 cat >conftest.$ac_ext <<_ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h. */
18060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18062 #define $ac_func innocuous_$ac_func
18064 /* System header to define __stub macros and hopefully few prototypes,
18065 which can conflict with char $ac_func (); below.
18066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18067 <limits.h> exists even on freestanding compilers. */
18070 # include <limits.h>
18072 # include <assert.h>
18077 /* Override any GCC internal prototype to avoid an error.
18078 Use char because int might match the return type of a GCC
18079 builtin and then its argument prototype would still apply. */
18084 /* The GNU C library defines this for functions which it implements
18085 to always fail with ENOSYS. Some functions are actually named
18086 something starting with __ and the normal name is an alias. */
18087 #if defined __stub_$ac_func || defined __stub___$ac_func
18094 return $ac_func ();
18099 rm -f conftest.$ac_objext conftest$ac_exeext
18100 if { (ac_try="$ac_link"
18101 case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_link") 2>conftest.er1
18108 grep -v '^ *+' conftest.er1 >conftest.err
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114 { (case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_try") 2>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest$ac_exeext'
18124 { (case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_try") 2>&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 eval "$as_ac_var=yes"
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18138 eval "$as_ac_var=no"
18141 rm -f core conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
18144 ac_res=`eval echo '${'$as_ac_var'}'`
18145 { echo "$as_me:$LINENO: result: $ac_res" >&5
18146 echo "${ECHO_T}$ac_res" >&6; }
18147 if test `eval echo '${'$as_ac_var'}'` = yes; then
18148 cat >>confdefs.h <<_ACEOF
18149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18161 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18169 cat >conftest.$ac_ext <<_ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18177 #define $ac_func innocuous_$ac_func
18179 /* System header to define __stub macros and hopefully few prototypes,
18180 which can conflict with char $ac_func (); below.
18181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18182 <limits.h> exists even on freestanding compilers. */
18185 # include <limits.h>
18187 # include <assert.h>
18192 /* Override any GCC internal prototype to avoid an error.
18193 Use char because int might match the return type of a GCC
18194 builtin and then its argument prototype would still apply. */
18199 /* The GNU C library defines this for functions which it implements
18200 to always fail with ENOSYS. Some functions are actually named
18201 something starting with __ and the normal name is an alias. */
18202 #if defined __stub_$ac_func || defined __stub___$ac_func
18209 return $ac_func ();
18214 rm -f conftest.$ac_objext conftest$ac_exeext
18215 if { (ac_try="$ac_link"
18216 case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221 (eval "$ac_link") 2>conftest.er1
18223 grep -v '^ *+' conftest.er1 >conftest.err
18225 cat conftest.err >&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
18228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18229 { (case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_try") 2>&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } &&
18238 { ac_try='test -s conftest$ac_exeext'
18239 { (case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_try") 2>&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 eval "$as_ac_var=yes"
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 eval "$as_ac_var=no"
18256 rm -f core conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18259 ac_res=`eval echo '${'$as_ac_var'}'`
18260 { echo "$as_me:$LINENO: result: $ac_res" >&5
18261 echo "${ECHO_T}$ac_res" >&6; }
18262 if test `eval echo '${'$as_ac_var'}'` = yes; then
18263 cat >>confdefs.h <<_ACEOF
18264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18274 for ac_func in strerror strerror_r strerror_s setenv
18276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18282 cat >conftest.$ac_ext <<_ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18290 #define $ac_func innocuous_$ac_func
18292 /* System header to define __stub macros and hopefully few prototypes,
18293 which can conflict with char $ac_func (); below.
18294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18295 <limits.h> exists even on freestanding compilers. */
18298 # include <limits.h>
18300 # include <assert.h>
18305 /* Override any GCC internal prototype to avoid an error.
18306 Use char because int might match the return type of a GCC
18307 builtin and then its argument prototype would still apply. */
18312 /* The GNU C library defines this for functions which it implements
18313 to always fail with ENOSYS. Some functions are actually named
18314 something starting with __ and the normal name is an alias. */
18315 #if defined __stub_$ac_func || defined __stub___$ac_func
18322 return $ac_func ();
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (ac_try="$ac_link"
18329 case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_link") 2>conftest.er1
18336 grep -v '^ *+' conftest.er1 >conftest.err
18338 cat conftest.err >&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } &&
18341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18342 { (case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_try") 2>&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; } &&
18351 { ac_try='test -s conftest$ac_exeext'
18352 { (case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_try") 2>&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
18361 eval "$as_ac_var=yes"
18363 echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18366 eval "$as_ac_var=no"
18369 rm -f core conftest.err conftest.$ac_objext \
18370 conftest$ac_exeext conftest.$ac_ext
18372 ac_res=`eval echo '${'$as_ac_var'}'`
18373 { echo "$as_me:$LINENO: result: $ac_res" >&5
18374 echo "${ECHO_T}$ac_res" >&6; }
18375 if test `eval echo '${'$as_ac_var'}'` = yes; then
18376 cat >>confdefs.h <<_ACEOF
18377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18387 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18395 cat >conftest.$ac_ext <<_ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18403 #define $ac_func innocuous_$ac_func
18405 /* System header to define __stub macros and hopefully few prototypes,
18406 which can conflict with char $ac_func (); below.
18407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18408 <limits.h> exists even on freestanding compilers. */
18411 # include <limits.h>
18413 # include <assert.h>
18418 /* Override any GCC internal prototype to avoid an error.
18419 Use char because int might match the return type of a GCC
18420 builtin and then its argument prototype would still apply. */
18425 /* The GNU C library defines this for functions which it implements
18426 to always fail with ENOSYS. Some functions are actually named
18427 something starting with __ and the normal name is an alias. */
18428 #if defined __stub_$ac_func || defined __stub___$ac_func
18435 return $ac_func ();
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (ac_try="$ac_link"
18442 case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>conftest.er1
18449 grep -v '^ *+' conftest.er1 >conftest.err
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest$ac_exeext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 eval "$as_ac_var=yes"
18476 echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 eval "$as_ac_var=no"
18482 rm -f core conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
18485 ac_res=`eval echo '${'$as_ac_var'}'`
18486 { echo "$as_me:$LINENO: result: $ac_res" >&5
18487 echo "${ECHO_T}$ac_res" >&6; }
18488 if test `eval echo '${'$as_ac_var'}'` = yes; then
18489 cat >>confdefs.h <<_ACEOF
18490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18500 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 cat >conftest.$ac_ext <<_ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18516 #define $ac_func innocuous_$ac_func
18518 /* System header to define __stub macros and hopefully few prototypes,
18519 which can conflict with char $ac_func (); below.
18520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18521 <limits.h> exists even on freestanding compilers. */
18524 # include <limits.h>
18526 # include <assert.h>
18531 /* Override any GCC internal prototype to avoid an error.
18532 Use char because int might match the return type of a GCC
18533 builtin and then its argument prototype would still apply. */
18538 /* The GNU C library defines this for functions which it implements
18539 to always fail with ENOSYS. Some functions are actually named
18540 something starting with __ and the normal name is an alias. */
18541 #if defined __stub_$ac_func || defined __stub___$ac_func
18548 return $ac_func ();
18553 rm -f conftest.$ac_objext conftest$ac_exeext
18554 if { (ac_try="$ac_link"
18555 case "(($ac_try" in
18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557 *) ac_try_echo=$ac_try;;
18559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560 (eval "$ac_link") 2>conftest.er1
18562 grep -v '^ *+' conftest.er1 >conftest.err
18564 cat conftest.err >&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } &&
18567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18568 { (case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_try") 2>&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest$ac_exeext'
18578 { (case "(($ac_try" in
18579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580 *) ac_try_echo=$ac_try;;
18582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583 (eval "$ac_try") 2>&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; }; then
18587 eval "$as_ac_var=yes"
18589 echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18592 eval "$as_ac_var=no"
18595 rm -f core conftest.err conftest.$ac_objext \
18596 conftest$ac_exeext conftest.$ac_ext
18598 ac_res=`eval echo '${'$as_ac_var'}'`
18599 { echo "$as_me:$LINENO: result: $ac_res" >&5
18600 echo "${ECHO_T}$ac_res" >&6; }
18601 if test `eval echo '${'$as_ac_var'}'` = yes; then
18602 cat >>confdefs.h <<_ACEOF
18603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18609 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18610 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18611 if test "${llvm_cv_c_printf_a+set}" = set; then
18612 echo $ECHO_N "(cached) $ECHO_C" >&6
18615 ac_cpp='$CPP $CPPFLAGS'
18616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18620 if test "$cross_compiling" = yes; then
18621 llvmac_cv_c_printf_a=no
18623 cat >conftest.$ac_ext <<_ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18632 #include <stdlib.h>
18638 volatile double A, B;
18642 sprintf(Buffer, "%a", A);
18646 if (A != 0x1.999999999999ap-4)
18653 rm -f conftest$ac_exeext
18654 if { (ac_try="$ac_link"
18655 case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_link") 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18664 { (case "(($ac_try" in
18665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666 *) ac_try_echo=$ac_try;;
18668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18669 (eval "$ac_try") 2>&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; }; then
18673 llvm_cv_c_printf_a=yes
18675 echo "$as_me: program exited with status $ac_status" >&5
18676 echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18679 ( exit $ac_status )
18680 llvmac_cv_c_printf_a=no
18682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18687 ac_cpp='$CPP $CPPFLAGS'
18688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18693 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18694 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18695 if test "$llvm_cv_c_printf_a" = "yes"; then
18697 cat >>confdefs.h <<\_ACEOF
18698 #define HAVE_PRINTF_A 1
18704 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18705 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18706 if test "${ac_cv_func_rand48+set}" = set; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18710 ac_cpp='$CXXCPP $CPPFLAGS'
18711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18715 cat >conftest.$ac_ext <<_ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h. */
18721 #include <stdlib.h>
18725 srand48(0);lrand48();drand48();
18730 rm -f conftest.$ac_objext
18731 if { (ac_try="$ac_compile"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_compile") 2>conftest.er1
18739 grep -v '^ *+' conftest.er1 >conftest.err
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } &&
18744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18745 { (case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_try") 2>&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; } &&
18754 { ac_try='test -s conftest.$ac_objext'
18755 { (case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760 (eval "$ac_try") 2>&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; }; then
18764 ac_cv_func_rand48=yes
18766 echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18769 ac_cv_func_rand48=no
18772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18774 ac_cpp='$CPP $CPPFLAGS'
18775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18780 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18781 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18783 if test "$ac_cv_func_rand48" = "yes" ; then
18785 cat >>confdefs.h <<\_ACEOF
18786 #define HAVE_RAND48 1
18793 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18794 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18795 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18799 ac_cpp='$CXXCPP $CPPFLAGS'
18800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18819 rm -f conftest.$ac_objext
18820 if { (ac_try="$ac_compile"
18821 case "(($ac_try" in
18822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823 *) ac_try_echo=$ac_try;;
18825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18826 (eval "$ac_compile") 2>conftest.er1
18828 grep -v '^ *+' conftest.er1 >conftest.err
18830 cat conftest.err >&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); } &&
18833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18834 { (case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18839 (eval "$ac_try") 2>&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }; } &&
18843 { ac_try='test -s conftest.$ac_objext'
18844 { (case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_try") 2>&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
18853 ac_cv_func_isnan_in_math_h=yes
18855 echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18858 ac_cv_func_isnan_in_math_h=no
18861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18863 ac_cpp='$CPP $CPPFLAGS'
18864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18869 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18870 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18873 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18875 cat >>confdefs.h <<\_ACEOF
18876 #define HAVE_ISNAN_IN_MATH_H 1
18881 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18882 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18883 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 ac_cpp='$CXXCPP $CPPFLAGS'
18888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18892 cat >conftest.$ac_ext <<_ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18907 rm -f conftest.$ac_objext
18908 if { (ac_try="$ac_compile"
18909 case "(($ac_try" in
18910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911 *) ac_try_echo=$ac_try;;
18913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914 (eval "$ac_compile") 2>conftest.er1
18916 grep -v '^ *+' conftest.er1 >conftest.err
18918 cat conftest.err >&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } &&
18921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18922 { (case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_try") 2>&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; } &&
18931 { ac_try='test -s conftest.$ac_objext'
18932 { (case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_try") 2>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; }; then
18941 ac_cv_func_isnan_in_cmath=yes
18943 echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18946 ac_cv_func_isnan_in_cmath=no
18949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18951 ac_cpp='$CPP $CPPFLAGS'
18952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18957 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18958 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18960 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18962 cat >>confdefs.h <<\_ACEOF
18963 #define HAVE_ISNAN_IN_CMATH 1
18968 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18969 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18970 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18971 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 ac_cpp='$CXXCPP $CPPFLAGS'
18975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18979 cat >conftest.$ac_ext <<_ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h. */
18989 float f; std::isnan(f);
18994 rm -f conftest.$ac_objext
18995 if { (ac_try="$ac_compile"
18996 case "(($ac_try" in
18997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998 *) ac_try_echo=$ac_try;;
19000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19001 (eval "$ac_compile") 2>conftest.er1
19003 grep -v '^ *+' conftest.er1 >conftest.err
19005 cat conftest.err >&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } &&
19008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19009 { (case "(($ac_try" in
19010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19011 *) ac_try_echo=$ac_try;;
19013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19014 (eval "$ac_try") 2>&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; } &&
19018 { ac_try='test -s conftest.$ac_objext'
19019 { (case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_try") 2>&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; }; then
19028 ac_cv_func_std_isnan_in_cmath=yes
19030 echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.$ac_ext >&5
19033 ac_cv_func_std_isnan_in_cmath=no
19036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19038 ac_cpp='$CPP $CPPFLAGS'
19039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19044 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19045 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19047 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19049 cat >>confdefs.h <<\_ACEOF
19050 #define HAVE_STD_ISNAN_IN_CMATH 1
19056 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19057 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19058 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19062 ac_cpp='$CXXCPP $CPPFLAGS'
19063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19067 cat >conftest.$ac_ext <<_ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19082 rm -f conftest.$ac_objext
19083 if { (ac_try="$ac_compile"
19084 case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_compile") 2>conftest.er1
19091 grep -v '^ *+' conftest.er1 >conftest.err
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19097 { (case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_try") 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest.$ac_objext'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_cv_func_isinf_in_math_h=yes
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_cv_func_isinf_in_math_h=no
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 ac_cpp='$CPP $CPPFLAGS'
19127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19132 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19133 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19135 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19137 cat >>confdefs.h <<\_ACEOF
19138 #define HAVE_ISINF_IN_MATH_H 1
19143 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19144 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19145 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19149 ac_cpp='$CXXCPP $CPPFLAGS'
19150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19154 cat >conftest.$ac_ext <<_ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19169 rm -f conftest.$ac_objext
19170 if { (ac_try="$ac_compile"
19171 case "(($ac_try" in
19172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173 *) ac_try_echo=$ac_try;;
19175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176 (eval "$ac_compile") 2>conftest.er1
19178 grep -v '^ *+' conftest.er1 >conftest.err
19180 cat conftest.err >&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
19183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19184 { (case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_try") 2>&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; } &&
19193 { ac_try='test -s conftest.$ac_objext'
19194 { (case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_try") 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 ac_cv_func_isinf_in_cmath=yes
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 ac_cv_func_isinf_in_cmath=no
19211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19213 ac_cpp='$CPP $CPPFLAGS'
19214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19219 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19220 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19222 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19224 cat >>confdefs.h <<\_ACEOF
19225 #define HAVE_ISINF_IN_CMATH 1
19230 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19231 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19232 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 ac_cpp='$CXXCPP $CPPFLAGS'
19237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19241 cat >conftest.$ac_ext <<_ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19251 float f; std::isinf(f)}
19256 rm -f conftest.$ac_objext
19257 if { (ac_try="$ac_compile"
19258 case "(($ac_try" in
19259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260 *) ac_try_echo=$ac_try;;
19262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19263 (eval "$ac_compile") 2>conftest.er1
19265 grep -v '^ *+' conftest.er1 >conftest.err
19267 cat conftest.err >&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } &&
19270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19271 { (case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_try") 2>&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; } &&
19280 { ac_try='test -s conftest.$ac_objext'
19281 { (case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_try") 2>&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; }; then
19290 ac_cv_func_std_isinf_in_cmath=yes
19292 echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19295 ac_cv_func_std_isinf_in_cmath=no
19298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19300 ac_cpp='$CPP $CPPFLAGS'
19301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19306 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19307 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19309 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19311 cat >>confdefs.h <<\_ACEOF
19312 #define HAVE_STD_ISINF_IN_CMATH 1
19317 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19318 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19319 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19320 echo $ECHO_N "(cached) $ECHO_C" >&6
19323 ac_cpp='$CXXCPP $CPPFLAGS'
19324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19328 cat >conftest.$ac_ext <<_ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h. */
19334 #include <ieeefp.h>
19338 float f; finite(f);
19343 rm -f conftest.$ac_objext
19344 if { (ac_try="$ac_compile"
19345 case "(($ac_try" in
19346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19347 *) ac_try_echo=$ac_try;;
19349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19350 (eval "$ac_compile") 2>conftest.er1
19352 grep -v '^ *+' conftest.er1 >conftest.err
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
19357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; } &&
19367 { ac_try='test -s conftest.$ac_objext'
19368 { (case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_try") 2>&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
19377 ac_cv_func_finite_in_ieeefp_h=yes
19379 echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19382 ac_cv_func_finite_in_ieeefp_h=no
19385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19387 ac_cpp='$CPP $CPPFLAGS'
19388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19393 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19394 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19396 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19398 cat >>confdefs.h <<\_ACEOF
19399 #define HAVE_FINITE_IN_IEEEFP_H 1
19406 if test "$llvm_cv_platform_type" = "Unix" ; then
19409 for ac_header in stdlib.h unistd.h
19411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19418 ac_res=`eval echo '${'$as_ac_Header'}'`
19419 { echo "$as_me:$LINENO: result: $ac_res" >&5
19420 echo "${ECHO_T}$ac_res" >&6; }
19422 # Is the header compilable?
19423 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19425 cat >conftest.$ac_ext <<_ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19431 $ac_includes_default
19432 #include <$ac_header>
19434 rm -f conftest.$ac_objext
19435 if { (ac_try="$ac_compile"
19436 case "(($ac_try" in
19437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441 (eval "$ac_compile") 2>conftest.er1
19443 grep -v '^ *+' conftest.er1 >conftest.err
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
19448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19449 { (case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_try") 2>&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; } &&
19458 { ac_try='test -s conftest.$ac_objext'
19459 { (case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_try") 2>&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; }; then
19468 ac_header_compiler=yes
19470 echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19473 ac_header_compiler=no
19476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19478 echo "${ECHO_T}$ac_header_compiler" >&6; }
19480 # Is the header present?
19481 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19483 cat >conftest.$ac_ext <<_ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19489 #include <$ac_header>
19491 if { (ac_try="$ac_cpp conftest.$ac_ext"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19499 grep -v '^ *+' conftest.er1 >conftest.err
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } >/dev/null; then
19504 if test -s conftest.err; then
19505 ac_cpp_err=$ac_c_preproc_warn_flag
19506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19513 if test -z "$ac_cpp_err"; then
19514 ac_header_preproc=yes
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19519 ac_header_preproc=no
19522 rm -f conftest.err conftest.$ac_ext
19523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19524 echo "${ECHO_T}$ac_header_preproc" >&6; }
19526 # So? What about this header?
19527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19533 ac_header_preproc=yes
19536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19543 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19549 ## ----------------------------------- ##
19550 ## Report this to llvmbugs@cs.uiuc.edu ##
19551 ## ----------------------------------- ##
19553 ) | sed "s/^/$as_me: WARNING: /" >&2
19556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19561 eval "$as_ac_Header=\$ac_header_preproc"
19563 ac_res=`eval echo '${'$as_ac_Header'}'`
19564 { echo "$as_me:$LINENO: result: $ac_res" >&5
19565 echo "${ECHO_T}$ac_res" >&6; }
19568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19569 cat >>confdefs.h <<_ACEOF
19570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19578 for ac_func in getpagesize
19580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19586 cat >conftest.$ac_ext <<_ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19594 #define $ac_func innocuous_$ac_func
19596 /* System header to define __stub macros and hopefully few prototypes,
19597 which can conflict with char $ac_func (); below.
19598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19599 <limits.h> exists even on freestanding compilers. */
19602 # include <limits.h>
19604 # include <assert.h>
19609 /* Override any GCC internal prototype to avoid an error.
19610 Use char because int might match the return type of a GCC
19611 builtin and then its argument prototype would still apply. */
19616 /* The GNU C library defines this for functions which it implements
19617 to always fail with ENOSYS. Some functions are actually named
19618 something starting with __ and the normal name is an alias. */
19619 #if defined __stub_$ac_func || defined __stub___$ac_func
19626 return $ac_func ();
19631 rm -f conftest.$ac_objext conftest$ac_exeext
19632 if { (ac_try="$ac_link"
19633 case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_link") 2>conftest.er1
19640 grep -v '^ *+' conftest.er1 >conftest.err
19642 cat conftest.err >&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19646 { (case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651 (eval "$ac_try") 2>&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; } &&
19655 { ac_try='test -s conftest$ac_exeext'
19656 { (case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661 (eval "$ac_try") 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 eval "$as_ac_var=yes"
19667 echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19670 eval "$as_ac_var=no"
19673 rm -f core conftest.err conftest.$ac_objext \
19674 conftest$ac_exeext conftest.$ac_ext
19676 ac_res=`eval echo '${'$as_ac_var'}'`
19677 { echo "$as_me:$LINENO: result: $ac_res" >&5
19678 echo "${ECHO_T}$ac_res" >&6; }
19679 if test `eval echo '${'$as_ac_var'}'` = yes; then
19680 cat >>confdefs.h <<_ACEOF
19681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19687 { echo "$as_me:$LINENO: checking for working mmap" >&5
19688 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19689 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 if test "$cross_compiling" = yes; then
19693 ac_cv_func_mmap_fixed_mapped=no
19695 cat >conftest.$ac_ext <<_ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19701 $ac_includes_default
19702 /* malloc might have been renamed as rpl_malloc. */
19705 /* Thanks to Mike Haertel and Jim Avera for this test.
19706 Here is a matrix of mmap possibilities:
19707 mmap private not fixed
19708 mmap private fixed at somewhere currently unmapped
19709 mmap private fixed at somewhere already mapped
19710 mmap shared not fixed
19711 mmap shared fixed at somewhere currently unmapped
19712 mmap shared fixed at somewhere already mapped
19713 For private mappings, we should verify that changes cannot be read()
19714 back from the file, nor mmap's back from the file at a different
19715 address. (There have been systems where private was not correctly
19716 implemented like the infamous i386 svr4.0, and systems where the
19717 VM page cache was not coherent with the file system buffer cache
19718 like early versions of FreeBSD and possibly contemporary NetBSD.)
19719 For shared mappings, we should conversely verify that changes get
19720 propagated back to all the places they're supposed to be.
19722 Grep wants private fixed already mapped.
19723 The main things grep needs to know about mmap are:
19724 * does it exist and is it safe to write into the mmap'd area
19725 * how to use it (BSD variants) */
19728 #include <sys/mman.h>
19730 #if !STDC_HEADERS && !HAVE_STDLIB_H
19734 /* This mess was copied from the GNU getpagesize.h. */
19735 #if !HAVE_GETPAGESIZE
19736 /* Assume that all systems that can run configure have sys/param.h. */
19737 # if !HAVE_SYS_PARAM_H
19738 # define HAVE_SYS_PARAM_H 1
19741 # ifdef _SC_PAGESIZE
19742 # define getpagesize() sysconf(_SC_PAGESIZE)
19743 # else /* no _SC_PAGESIZE */
19744 # if HAVE_SYS_PARAM_H
19745 # include <sys/param.h>
19746 # ifdef EXEC_PAGESIZE
19747 # define getpagesize() EXEC_PAGESIZE
19748 # else /* no EXEC_PAGESIZE */
19750 # define getpagesize() NBPG * CLSIZE
19753 # endif /* no CLSIZE */
19754 # else /* no NBPG */
19756 # define getpagesize() NBPC
19757 # else /* no NBPC */
19759 # define getpagesize() PAGESIZE
19760 # endif /* PAGESIZE */
19761 # endif /* no NBPC */
19762 # endif /* no NBPG */
19763 # endif /* no EXEC_PAGESIZE */
19764 # else /* no HAVE_SYS_PARAM_H */
19765 # define getpagesize() 8192 /* punt totally */
19766 # endif /* no HAVE_SYS_PARAM_H */
19767 # endif /* no _SC_PAGESIZE */
19769 #endif /* no HAVE_GETPAGESIZE */
19774 char *data, *data2, *data3;
19778 pagesize = getpagesize ();
19780 /* First, make a file with some known garbage in it. */
19781 data = (char *) malloc (pagesize);
19784 for (i = 0; i < pagesize; ++i)
19785 *(data + i) = rand ();
19787 fd = creat ("conftest.mmap", 0600);
19790 if (write (fd, data, pagesize) != pagesize)
19794 /* Next, try to mmap the file at a fixed address which already has
19795 something else allocated at it. If we can, also make sure that
19796 we see the same garbage. */
19797 fd = open ("conftest.mmap", O_RDWR);
19800 data2 = (char *) malloc (2 * pagesize);
19803 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19804 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19805 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19807 for (i = 0; i < pagesize; ++i)
19808 if (*(data + i) != *(data2 + i))
19811 /* Finally, make sure that changes to the mapped area do not
19812 percolate back to the file as seen by read(). (This is a bug on
19813 some variants of i386 svr4.0.) */
19814 for (i = 0; i < pagesize; ++i)
19815 *(data2 + i) = *(data2 + i) + 1;
19816 data3 = (char *) malloc (pagesize);
19819 if (read (fd, data3, pagesize) != pagesize)
19821 for (i = 0; i < pagesize; ++i)
19822 if (*(data + i) != *(data3 + i))
19828 rm -f conftest$ac_exeext
19829 if { (ac_try="$ac_link"
19830 case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_link") 2>&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19839 { (case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_try") 2>&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
19848 ac_cv_func_mmap_fixed_mapped=yes
19850 echo "$as_me: program exited with status $ac_status" >&5
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19854 ( exit $ac_status )
19855 ac_cv_func_mmap_fixed_mapped=no
19857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19862 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19863 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19864 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19866 cat >>confdefs.h <<\_ACEOF
19867 #define HAVE_MMAP 1
19871 rm -f conftest.mmap
19873 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19874 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19875 if test "${ac_cv_func_mmap_file+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19879 ac_cpp='$CPP $CPPFLAGS'
19880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19884 if test "$cross_compiling" = yes; then
19885 ac_cv_func_mmap_file=no
19887 cat >conftest.$ac_ext <<_ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19895 #include <sys/types.h>
19896 #include <sys/mman.h>
19904 fd = creat ("foo",0777);
19905 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19907 return (fd != (int) MAP_FAILED);
19912 rm -f conftest$ac_exeext
19913 if { (ac_try="$ac_link"
19914 case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_link") 2>&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19923 { (case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_try") 2>&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }; }; then
19932 ac_cv_func_mmap_file=yes
19934 echo "$as_me: program exited with status $ac_status" >&5
19935 echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19938 ( exit $ac_status )
19939 ac_cv_func_mmap_file=no
19941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19946 ac_cpp='$CPP $CPPFLAGS'
19947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19953 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19954 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19955 if test "$ac_cv_func_mmap_file" = yes; then
19957 cat >>confdefs.h <<\_ACEOF
19958 #define HAVE_MMAP_FILE
19965 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19966 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19967 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 if test "$llvm_cv_os_type" = "Interix" ; then
19971 ac_cv_need_dev_zero_for_mmap=yes
19973 ac_cv_need_dev_zero_for_mmap=no
19977 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19978 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19979 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19981 cat >>confdefs.h <<\_ACEOF
19982 #define NEED_DEV_ZERO_FOR_MMAP 1
19987 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19989 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19990 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19992 if test "$ac_cv_func_mmap_file" = "no"
19994 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19995 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19999 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20000 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20002 ac_cpp='$CXXCPP $CPPFLAGS'
20003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20007 cat >conftest.$ac_ext <<_ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20014 volatile unsigned long val = 1;
20015 __sync_synchronize();
20016 __sync_val_compare_and_swap(&val, 1, 0);
20017 __sync_add_and_fetch(&val, 1);
20018 __sync_sub_and_fetch(&val, 1);
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (ac_try="$ac_link"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_link") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
20037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20038 { (case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_try") 2>&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; } &&
20047 { ac_try='test -s conftest$ac_exeext'
20048 { (case "(($ac_try" in
20049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050 *) ac_try_echo=$ac_try;;
20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053 (eval "$ac_try") 2>&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20058 ac_cpp='$CPP $CPPFLAGS'
20059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20063 { echo "$as_me:$LINENO: result: yes" >&5
20064 echo "${ECHO_T}yes" >&6; }
20066 cat >>confdefs.h <<\_ACEOF
20067 #define LLVM_MULTITHREADED 1
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 { echo "$as_me:$LINENO: result: no" >&5
20075 echo "${ECHO_T}no" >&6; }
20077 cat >>confdefs.h <<\_ACEOF
20078 #define LLVM_MULTITHREADED 0
20081 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20082 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20085 rm -f core conftest.err conftest.$ac_objext \
20086 conftest$ac_exeext conftest.$ac_ext
20089 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20090 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20091 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20092 if test "${llvm_cv_linux_mixed+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20096 ac_cpp='$CPP $CPPFLAGS'
20097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20101 cat >conftest.$ac_ext <<_ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h. */
20108 error: Not x86-64 even if uname says so!
20119 rm -f conftest.$ac_objext
20120 if { (ac_try="$ac_compile"
20121 case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_compile") 2>conftest.er1
20128 grep -v '^ *+' conftest.er1 >conftest.err
20130 cat conftest.err >&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } &&
20133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20134 { (case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139 (eval "$ac_try") 2>&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; } &&
20143 { ac_try='test -s conftest.$ac_objext'
20144 { (case "(($ac_try" in
20145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146 *) ac_try_echo=$ac_try;;
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149 (eval "$ac_try") 2>&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; }; then
20153 llvm_cv_linux_mixed=no
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20158 llvm_cv_linux_mixed=yes
20161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20163 ac_cpp='$CPP $CPPFLAGS'
20164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20170 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20171 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20173 if test "$llvm_cv_linux_mixed" = "yes"; then
20174 llvm_cv_target_arch="x86"
20180 for ac_func in __dso_handle
20182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 cat >conftest.$ac_ext <<_ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h. */
20194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20196 #define $ac_func innocuous_$ac_func
20198 /* System header to define __stub macros and hopefully few prototypes,
20199 which can conflict with char $ac_func (); below.
20200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20201 <limits.h> exists even on freestanding compilers. */
20204 # include <limits.h>
20206 # include <assert.h>
20211 /* Override any GCC internal prototype to avoid an error.
20212 Use char because int might match the return type of a GCC
20213 builtin and then its argument prototype would still apply. */
20218 /* The GNU C library defines this for functions which it implements
20219 to always fail with ENOSYS. Some functions are actually named
20220 something starting with __ and the normal name is an alias. */
20221 #if defined __stub_$ac_func || defined __stub___$ac_func
20228 return $ac_func ();
20233 rm -f conftest.$ac_objext conftest$ac_exeext
20234 if { (ac_try="$ac_link"
20235 case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_link") 2>conftest.er1
20242 grep -v '^ *+' conftest.er1 >conftest.err
20244 cat conftest.err >&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } &&
20247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20248 { (case "(($ac_try" in
20249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250 *) ac_try_echo=$ac_try;;
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253 (eval "$ac_try") 2>&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; } &&
20257 { ac_try='test -s conftest$ac_exeext'
20258 { (case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_try") 2>&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; }; then
20267 eval "$as_ac_var=yes"
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20272 eval "$as_ac_var=no"
20275 rm -f core conftest.err conftest.$ac_objext \
20276 conftest$ac_exeext conftest.$ac_ext
20278 ac_res=`eval echo '${'$as_ac_var'}'`
20279 { echo "$as_me:$LINENO: result: $ac_res" >&5
20280 echo "${ECHO_T}$ac_res" >&6; }
20281 if test `eval echo '${'$as_ac_var'}'` = yes; then
20282 cat >>confdefs.h <<_ACEOF
20283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20290 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20291 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20292 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20293 echo $ECHO_N "(cached) $ECHO_C" >&6
20295 llvm_cv_llvmgcc_sanity="no"
20296 if test -x "$LLVMGCC" ; then
20297 cp /dev/null conftest.c
20298 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20299 grep 'target datalayout =' > /dev/null 2>&1
20300 if test $? -eq 0 ; then
20301 llvm_cv_llvmgcc_sanity="yes"
20306 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20307 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20309 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20310 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20311 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20312 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20313 LLVMCC1=$llvmcc1path
20315 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20316 LLVMCC1PLUS=$llvmcc1pluspath
20318 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20319 LLVMGCCDIR=$llvmgccdir
20321 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20322 LLVMGCC_LANGS=$llvmgcclangs
20324 { echo "$as_me:$LINENO: result: ok" >&5
20325 echo "${ECHO_T}ok" >&6; }
20328 SHLIBEXT=$libltdl_cv_shlibext
20331 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20334 # Translate the various configuration directories and other basic
20335 # information into substitutions that will end up in Makefile.config.in
20336 # that these configured values can be used by the makefiles
20337 if test "${prefix}" = "NONE" ; then
20338 prefix="/usr/local"
20340 eval LLVM_PREFIX="${prefix}";
20341 eval LLVM_BINDIR="${prefix}/bin";
20342 eval LLVM_LIBDIR="${prefix}/lib";
20343 eval LLVM_DATADIR="${prefix}/share/llvm";
20344 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20345 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20346 eval LLVM_INCLUDEDIR="${prefix}/include";
20347 eval LLVM_INFODIR="${prefix}/info";
20348 eval LLVM_MANDIR="${prefix}/man";
20349 LLVM_CONFIGTIME=`date`
20361 # Place the various directores into the config.h file as #defines so that we
20362 # can know about the installation paths within LLVM.
20364 cat >>confdefs.h <<_ACEOF
20365 #define LLVM_PREFIX "$LLVM_PREFIX"
20369 cat >>confdefs.h <<_ACEOF
20370 #define LLVM_BINDIR "$LLVM_BINDIR"
20374 cat >>confdefs.h <<_ACEOF
20375 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20379 cat >>confdefs.h <<_ACEOF
20380 #define LLVM_DATADIR "$LLVM_DATADIR"
20384 cat >>confdefs.h <<_ACEOF
20385 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20389 cat >>confdefs.h <<_ACEOF
20390 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20394 cat >>confdefs.h <<_ACEOF
20395 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20399 cat >>confdefs.h <<_ACEOF
20400 #define LLVM_INFODIR "$LLVM_INFODIR"
20404 cat >>confdefs.h <<_ACEOF
20405 #define LLVM_MANDIR "$LLVM_MANDIR"
20409 cat >>confdefs.h <<_ACEOF
20410 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20414 cat >>confdefs.h <<_ACEOF
20415 #define LLVM_HOSTTRIPLE "$host"
20419 # Determine which bindings to build.
20420 if test "$BINDINGS_TO_BUILD" = auto ; then
20421 BINDINGS_TO_BUILD=""
20422 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20423 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20426 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20429 # This isn't really configurey, but it avoids having to repeat the list in
20434 # Do any work necessary to ensure that bindings have what they need.
20435 binding_prereqs_failed=0
20436 for a_binding in $BINDINGS_TO_BUILD ; do
20437 case "$a_binding" in
20439 if test "x$OCAMLC" = x ; then
20440 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20441 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20442 binding_prereqs_failed=1
20444 if test "x$OCAMLDEP" = x ; then
20445 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20446 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20447 binding_prereqs_failed=1
20449 if test "x$OCAMLOPT" = x ; then
20450 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20451 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20453 if test "x$with_ocaml_libdir" != xauto ; then
20454 OCAML_LIBDIR=$with_ocaml_libdir
20457 ocaml_stdlib="`"$OCAMLC" -where`"
20458 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20460 # ocaml stdlib is beneath our prefix; use stdlib
20461 OCAML_LIBDIR=$ocaml_stdlib
20464 # ocaml stdlib is outside our prefix; use libdir/ocaml
20465 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20472 if test "$binding_prereqs_failed" = 1 ; then
20473 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20474 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20475 { (exit 1); exit 1; }; }
20478 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20479 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20480 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20484 ac_cpp='$CXXCPP $CPPFLAGS'
20485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20489 oldcxxflags="$CXXFLAGS"
20490 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20491 cat >conftest.$ac_ext <<_ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20506 rm -f conftest.$ac_objext
20507 if { (ac_try="$ac_compile"
20508 case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_compile") 2>conftest.er1
20515 grep -v '^ *+' conftest.er1 >conftest.err
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } &&
20520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20521 { (case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_try") 2>&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; } &&
20530 { ac_try='test -s conftest.$ac_objext'
20531 { (case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_try") 2>&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; }; then
20540 llvm_cv_cxx_visibility_inlines_hidden=yes
20542 echo "$as_me: failed program was:" >&5
20543 sed 's/^/| /' conftest.$ac_ext >&5
20545 llvm_cv_cxx_visibility_inlines_hidden=no
20548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20549 CXXFLAGS="$oldcxxflags"
20551 ac_cpp='$CPP $CPPFLAGS'
20552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20558 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20559 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20560 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20561 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20564 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20569 if test "$llvm_cv_link_use_r" = "yes" ; then
20576 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20577 RDYNAMIC="-Wl,-export-dynamic"
20584 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20591 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20593 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20595 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20597 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20599 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20602 ac_config_files="$ac_config_files Makefile.config"
20605 ac_config_files="$ac_config_files llvm.spec"
20608 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20611 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20614 ac_config_commands="$ac_config_commands setup"
20616 ac_config_commands="$ac_config_commands Makefile"
20619 ac_config_commands="$ac_config_commands Makefile.common"
20622 ac_config_commands="$ac_config_commands examples/Makefile"
20625 ac_config_commands="$ac_config_commands lib/Makefile"
20628 ac_config_commands="$ac_config_commands runtime/Makefile"
20631 ac_config_commands="$ac_config_commands test/Makefile"
20634 ac_config_commands="$ac_config_commands test/Makefile.tests"
20637 ac_config_commands="$ac_config_commands unittests/Makefile"
20640 ac_config_commands="$ac_config_commands tools/Makefile"
20643 ac_config_commands="$ac_config_commands utils/Makefile"
20646 ac_config_commands="$ac_config_commands projects/Makefile"
20649 ac_config_commands="$ac_config_commands bindings/Makefile"
20652 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20656 cat >confcache <<\_ACEOF
20657 # This file is a shell script that caches the results of configure
20658 # tests run on this system so they can be shared between configure
20659 # scripts and configure runs, see configure's option --config-cache.
20660 # It is not useful on other systems. If it contains results you don't
20661 # want to keep, you may remove or edit it.
20663 # config.status only pays attention to the cache file if you give it
20664 # the --recheck option to rerun configure.
20666 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20667 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20668 # following values.
20672 # The following way of writing the cache mishandles newlines in values,
20673 # but we know of no workaround that is simple, portable, and efficient.
20674 # So, we kill variables containing newlines.
20675 # Ultrix sh set writes to stderr and can't be redirected directly,
20676 # and sets the high bit in the cache file unless we assign to the vars.
20678 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20679 eval ac_val=\$$ac_var
20683 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20684 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20687 _ | IFS | as_nl) ;; #(
20688 *) $as_unset $ac_var ;;
20694 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20695 *${as_nl}ac_space=\ *)
20696 # `set' does not quote correctly, so add quotes (double-quote
20697 # substitution turns \\\\ into \\, and sed turns \\ into \).
20700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20703 # `set' quotes correctly as required by POSIX, so do not add quotes.
20704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20713 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20715 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20717 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20718 if test -w "$cache_file"; then
20719 test "x$cache_file" != "x/dev/null" &&
20720 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20721 echo "$as_me: updating cache $cache_file" >&6;}
20722 cat confcache >$cache_file
20724 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20725 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20730 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20731 # Let make expand exec_prefix.
20732 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20734 DEFS=-DHAVE_CONFIG_H
20738 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20739 # 1. Remove the extension, and $U if already installed.
20740 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20741 ac_i=`echo "$ac_i" | sed "$ac_script"`
20742 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20743 # will be set to the directory where LIBOBJS objects are built.
20744 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20745 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20747 LIBOBJS=$ac_libobjs
20749 LTLIBOBJS=$ac_ltlibobjs
20752 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20753 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20754 Usually this means the macro was only invoked conditionally." >&5
20755 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20756 Usually this means the macro was only invoked conditionally." >&2;}
20757 { (exit 1); exit 1; }; }
20759 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20760 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20761 Usually this means the macro was only invoked conditionally." >&5
20762 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20763 Usually this means the macro was only invoked conditionally." >&2;}
20764 { (exit 1); exit 1; }; }
20767 : ${CONFIG_STATUS=./config.status}
20768 ac_clean_files_save=$ac_clean_files
20769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20770 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20771 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20772 cat >$CONFIG_STATUS <<_ACEOF
20774 # Generated by $as_me.
20775 # Run this file to recreate the current configuration.
20776 # Compiler output produced by configure, useful for debugging
20777 # configure, is in config.log if it exists.
20780 ac_cs_recheck=false
20782 SHELL=\${CONFIG_SHELL-$SHELL}
20785 cat >>$CONFIG_STATUS <<\_ACEOF
20786 ## --------------------- ##
20787 ## M4sh Initialization. ##
20788 ## --------------------- ##
20790 # Be Bourne compatible
20791 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20794 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20795 # is contrary to our usage. Disable this feature.
20796 alias -g '${1+"$@"}'='"$@"'
20797 setopt NO_GLOB_SUBST
20799 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20801 BIN_SH=xpg4; export BIN_SH # for Tru64
20802 DUALCASE=1; export DUALCASE # for MKS sh
20806 # Avoid depending upon Character Ranges.
20807 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20808 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20809 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20810 as_cr_digits='0123456789'
20811 as_cr_alnum=$as_cr_Letters$as_cr_digits
20813 # The user is always right.
20814 if test "${PATH_SEPARATOR+set}" != set; then
20815 echo "#! /bin/sh" >conf$$.sh
20816 echo "exit 0" >>conf$$.sh
20818 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20826 # Support unset when possible.
20827 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20835 # We need space, tab and new line, in precisely that order. Quoting is
20836 # there to prevent editors from complaining about space-tab.
20837 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20838 # splitting by setting IFS to empty value.)
20843 # Find who we are. Look in the path if we contain no directory separator.
20845 *[\\/]* ) as_myself=$0 ;;
20846 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20847 for as_dir in $PATH
20850 test -z "$as_dir" && as_dir=.
20851 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20857 # We did not find ourselves, most probably we were run as `sh COMMAND'
20858 # in which case we are not to be found in the path.
20859 if test "x$as_myself" = x; then
20862 if test ! -f "$as_myself"; then
20863 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20864 { (exit 1); exit 1; }
20867 # Work around bugs in pre-3.0 UWIN ksh.
20868 for as_var in ENV MAIL MAILPATH
20869 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20877 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20878 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20879 LC_TELEPHONE LC_TIME
20881 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20882 eval $as_var=C; export $as_var
20884 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20888 # Required to use basename.
20889 if expr a : '\(a\)' >/dev/null 2>&1 &&
20890 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20896 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20897 as_basename=basename
20903 # Name of the executable.
20904 as_me=`$as_basename -- "$0" ||
20905 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20906 X"$0" : 'X\(//\)$' \| \
20907 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20909 sed '/^.*\/\([^/][^/]*\)\/*$/{
20928 as_lineno_1=$LINENO
20929 as_lineno_2=$LINENO
20930 test "x$as_lineno_1" != "x$as_lineno_2" &&
20931 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20933 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20934 # uniformly replaced by the line number. The first 'sed' inserts a
20935 # line-number line after each line using $LINENO; the second 'sed'
20936 # does the real work. The second script uses 'N' to pair each
20937 # line-number line with the line containing $LINENO, and appends
20938 # trailing '-' during substitution so that $LINENO is not a special
20939 # case at line end.
20940 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20941 # scripts with optimization help from Paolo Bonzini. Blame Lee
20942 # E. McMahon (1931-1989) for sed's syntax. :-)
20954 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20957 ' >$as_me.lineno &&
20958 chmod +x "$as_me.lineno" ||
20959 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20960 { (exit 1); exit 1; }; }
20962 # Don't try to exec as it changes $[0], causing all sort of problems
20963 # (the dirname of $[0] is not the place where we might find the
20964 # original and so on. Autoconf is especially sensitive to this).
20965 . "./$as_me.lineno"
20966 # Exit status is that of the last command.
20971 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20977 ECHO_C= ECHO_N= ECHO_T=
20978 case `echo -n x` in
20980 case `echo 'x\c'` in
20981 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20988 if expr a : '\(a\)' >/dev/null 2>&1 &&
20989 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20995 rm -f conf$$ conf$$.exe conf$$.file
20996 if test -d conf$$.dir; then
20997 rm -f conf$$.dir/conf$$.file
21003 if ln -s conf$$.file conf$$ 2>/dev/null; then
21005 # ... but there are two gotchas:
21006 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21007 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21008 # In both cases, we have to default to `cp -p'.
21009 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21011 elif ln conf$$.file conf$$ 2>/dev/null; then
21016 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21017 rmdir conf$$.dir 2>/dev/null
21019 if mkdir -p . 2>/dev/null; then
21022 test -d ./-p && rmdir ./-p
21026 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21027 # systems may use methods other than mode bits to determine executability.
21028 cat >conf$$.file <<_ASEOF
21032 chmod +x conf$$.file
21033 if test -x conf$$.file >/dev/null 2>&1; then
21034 as_executable_p="test -x"
21040 # Sed expression to map a string onto a valid CPP name.
21041 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21043 # Sed expression to map a string onto a valid variable name.
21044 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21049 # Save the log message, to keep $[0] and so on meaningful, and to
21050 # report actual input values of CONFIG_FILES etc. instead of their
21051 # values after options handling.
21053 This file was extended by llvm $as_me 2.9svn, which was
21054 generated by GNU Autoconf 2.60. Invocation command line was
21056 CONFIG_FILES = $CONFIG_FILES
21057 CONFIG_HEADERS = $CONFIG_HEADERS
21058 CONFIG_LINKS = $CONFIG_LINKS
21059 CONFIG_COMMANDS = $CONFIG_COMMANDS
21062 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21067 cat >>$CONFIG_STATUS <<_ACEOF
21068 # Files that config.status was made for.
21069 config_files="$ac_config_files"
21070 config_headers="$ac_config_headers"
21071 config_commands="$ac_config_commands"
21075 cat >>$CONFIG_STATUS <<\_ACEOF
21077 \`$as_me' instantiates files from templates according to the
21078 current configuration.
21080 Usage: $0 [OPTIONS] [FILE]...
21082 -h, --help print this help, then exit
21083 -V, --version print version number, then exit
21084 -q, --quiet do not print progress messages
21085 -d, --debug don't remove temporary files
21086 --recheck update $as_me by reconfiguring in the same conditions
21087 --file=FILE[:TEMPLATE]
21088 instantiate the configuration file FILE
21089 --header=FILE[:TEMPLATE]
21090 instantiate the configuration header FILE
21092 Configuration files:
21095 Configuration headers:
21098 Configuration commands:
21101 Report bugs to <bug-autoconf@gnu.org>."
21104 cat >>$CONFIG_STATUS <<_ACEOF
21106 llvm config.status 2.9svn
21107 configured by $0, generated by GNU Autoconf 2.60,
21108 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21110 Copyright (C) 2006 Free Software Foundation, Inc.
21111 This config.status script is free software; the Free Software Foundation
21112 gives unlimited permission to copy, distribute and modify it."
21119 cat >>$CONFIG_STATUS <<\_ACEOF
21120 # If no file are specified by the user, then we need to provide default
21121 # value. By we need to know if files were specified by the user.
21127 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21128 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21139 # Handling of the options.
21140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21142 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21143 echo "$ac_cs_version"; exit ;;
21144 --debug | --debu | --deb | --de | --d | -d )
21146 --file | --fil | --fi | --f )
21148 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21149 ac_need_defaults=false;;
21150 --header | --heade | --head | --hea )
21152 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21153 ac_need_defaults=false;;
21155 # Conflict between --help and --header
21156 { echo "$as_me: error: ambiguous option: $1
21157 Try \`$0 --help' for more information." >&2
21158 { (exit 1); exit 1; }; };;
21159 --help | --hel | -h )
21160 echo "$ac_cs_usage"; exit ;;
21161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21162 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21165 # This is an error.
21166 -*) { echo "$as_me: error: unrecognized option: $1
21167 Try \`$0 --help' for more information." >&2
21168 { (exit 1); exit 1; }; } ;;
21170 *) ac_config_targets="$ac_config_targets $1"
21171 ac_need_defaults=false ;;
21177 ac_configure_extra_args=
21179 if $ac_cs_silent; then
21181 ac_configure_extra_args="$ac_configure_extra_args --silent"
21185 cat >>$CONFIG_STATUS <<_ACEOF
21186 if \$ac_cs_recheck; then
21187 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21188 CONFIG_SHELL=$SHELL
21189 export CONFIG_SHELL
21190 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21194 cat >>$CONFIG_STATUS <<\_ACEOF
21198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21199 ## Running $as_me. ##
21205 cat >>$CONFIG_STATUS <<_ACEOF
21209 llvm_src="${srcdir}"
21213 cat >>$CONFIG_STATUS <<\_ACEOF
21215 # Handling of arguments.
21216 for ac_config_target in $ac_config_targets
21218 case $ac_config_target in
21219 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21220 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21221 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21222 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21223 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21224 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21225 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21226 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21227 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21228 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21229 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21230 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21231 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21232 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21233 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21234 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21235 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21236 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21237 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21238 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21239 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21240 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21241 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21242 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21243 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21245 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21246 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21247 { (exit 1); exit 1; }; };;
21252 # If the user did not use the arguments to specify the items to instantiate,
21253 # then the envvar interface is used. Set only those that are not.
21254 # We use the long form for the default assignment because of an extremely
21255 # bizarre bug on SunOS 4.1.3.
21256 if $ac_need_defaults; then
21257 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21258 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21259 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21262 # Have a temporary directory for convenience. Make it in the build tree
21263 # simply because there is no reason against having it here, and in addition,
21264 # creating and moving files from /tmp can sometimes cause problems.
21265 # Hook for its removal unless debugging.
21266 # Note that there is a small window in which the directory will not be cleaned:
21267 # after its creation but before its name has been assigned to `$tmp'.
21271 trap 'exit_status=$?
21272 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21274 trap '{ (exit 1); exit 1; }' 1 2 13 15
21276 # Create a (secure) tmp directory for tmp files.
21279 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21280 test -n "$tmp" && test -d "$tmp"
21283 tmp=./conf$$-$RANDOM
21284 (umask 077 && mkdir "$tmp")
21287 echo "$me: cannot create a temporary directory in ." >&2
21288 { (exit 1); exit 1; }
21292 # Set up the sed scripts for CONFIG_FILES section.
21295 # No need to generate the scripts if there are no CONFIG_FILES.
21296 # This happens for instance when ./config.status config.h
21297 if test -n "$CONFIG_FILES"; then
21304 for ac_last_try in false false false false false :; do
21305 cat >conf$$subs.sed <<_ACEOF
21306 SHELL!$SHELL$ac_delim
21307 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21308 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21309 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21310 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21311 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21312 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21313 exec_prefix!$exec_prefix$ac_delim
21314 prefix!$prefix$ac_delim
21315 program_transform_name!$program_transform_name$ac_delim
21316 bindir!$bindir$ac_delim
21317 sbindir!$sbindir$ac_delim
21318 libexecdir!$libexecdir$ac_delim
21319 datarootdir!$datarootdir$ac_delim
21320 datadir!$datadir$ac_delim
21321 sysconfdir!$sysconfdir$ac_delim
21322 sharedstatedir!$sharedstatedir$ac_delim
21323 localstatedir!$localstatedir$ac_delim
21324 includedir!$includedir$ac_delim
21325 oldincludedir!$oldincludedir$ac_delim
21326 docdir!$docdir$ac_delim
21327 infodir!$infodir$ac_delim
21328 htmldir!$htmldir$ac_delim
21329 dvidir!$dvidir$ac_delim
21330 pdfdir!$pdfdir$ac_delim
21331 psdir!$psdir$ac_delim
21332 libdir!$libdir$ac_delim
21333 localedir!$localedir$ac_delim
21334 mandir!$mandir$ac_delim
21335 DEFS!$DEFS$ac_delim
21336 ECHO_C!$ECHO_C$ac_delim
21337 ECHO_N!$ECHO_N$ac_delim
21338 ECHO_T!$ECHO_T$ac_delim
21339 LIBS!$LIBS$ac_delim
21340 build_alias!$build_alias$ac_delim
21341 host_alias!$host_alias$ac_delim
21342 target_alias!$target_alias$ac_delim
21343 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21344 subdirs!$subdirs$ac_delim
21345 build!$build$ac_delim
21346 build_cpu!$build_cpu$ac_delim
21347 build_vendor!$build_vendor$ac_delim
21348 build_os!$build_os$ac_delim
21349 host!$host$ac_delim
21350 host_cpu!$host_cpu$ac_delim
21351 host_vendor!$host_vendor$ac_delim
21352 host_os!$host_os$ac_delim
21353 target!$target$ac_delim
21354 target_cpu!$target_cpu$ac_delim
21355 target_vendor!$target_vendor$ac_delim
21356 target_os!$target_os$ac_delim
21358 HOST_OS!$HOST_OS$ac_delim
21359 TARGET_OS!$TARGET_OS$ac_delim
21360 LINKALL!$LINKALL$ac_delim
21361 NOLINKALL!$NOLINKALL$ac_delim
21362 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21363 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21364 ARCH!$ARCH$ac_delim
21365 ENDIAN!$ENDIAN$ac_delim
21367 CFLAGS!$CFLAGS$ac_delim
21368 LDFLAGS!$LDFLAGS$ac_delim
21369 CPPFLAGS!$CPPFLAGS$ac_delim
21370 ac_ct_CC!$ac_ct_CC$ac_delim
21371 EXEEXT!$EXEEXT$ac_delim
21372 OBJEXT!$OBJEXT$ac_delim
21374 GREP!$GREP$ac_delim
21375 EGREP!$EGREP$ac_delim
21376 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21377 BUILD_CC!$BUILD_CC$ac_delim
21378 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21379 BUILD_CXX!$BUILD_CXX$ac_delim
21380 CVSBUILD!$CVSBUILD$ac_delim
21381 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21382 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21383 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21384 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21385 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21386 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21387 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21389 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21390 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21391 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21392 ENABLE_PIC!$ENABLE_PIC$ac_delim
21393 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21394 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21395 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21396 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21397 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21398 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21399 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21400 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21401 CLANGPATH!$CLANGPATH$ac_delim
21402 CLANGXXPATH!$CLANGXXPATH$ac_delim
21405 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21407 elif $ac_last_try; then
21408 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21409 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21410 { (exit 1); exit 1; }; }
21412 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21416 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21417 if test -n "$ac_eof"; then
21418 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21419 ac_eof=`expr $ac_eof + 1`
21422 cat >>$CONFIG_STATUS <<_ACEOF
21423 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21427 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21428 s/^/s,@/; s/!/@,|#_!!_#|/
21431 s/'"$ac_delim"'$/,g/; t
21433 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21434 ' >>$CONFIG_STATUS <conf$$subs.sed
21435 rm -f conf$$subs.sed
21436 cat >>$CONFIG_STATUS <<_ACEOF
21442 for ac_last_try in false false false false false :; do
21443 cat >conf$$subs.sed <<_ACEOF
21444 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21445 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21446 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21447 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21449 CXXFLAGS!$CXXFLAGS$ac_delim
21450 ac_ct_CXX!$ac_ct_CXX$ac_delim
21452 ifGNUmake!$ifGNUmake$ac_delim
21453 LN_S!$LN_S$ac_delim
21456 DATE!$DATE$ac_delim
21457 FIND!$FIND$ac_delim
21458 MKDIR!$MKDIR$ac_delim
21460 RANLIB!$RANLIB$ac_delim
21465 BINPWD!$BINPWD$ac_delim
21466 GRAPHVIZ!$GRAPHVIZ$ac_delim
21469 NEATO!$NEATO$ac_delim
21470 TWOPI!$TWOPI$ac_delim
21471 CIRCO!$CIRCO$ac_delim
21473 DOTTY!$DOTTY$ac_delim
21474 PERL!$PERL$ac_delim
21475 HAVE_PERL!$HAVE_PERL$ac_delim
21476 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21477 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21478 INSTALL_DATA!$INSTALL_DATA$ac_delim
21479 BZIP2!$BZIP2$ac_delim
21481 DOXYGEN!$DOXYGEN$ac_delim
21482 GROFF!$GROFF$ac_delim
21483 GZIP!$GZIP$ac_delim
21484 POD2HTML!$POD2HTML$ac_delim
21485 POD2MAN!$POD2MAN$ac_delim
21486 PDFROFF!$PDFROFF$ac_delim
21487 RUNTEST!$RUNTEST$ac_delim
21488 TCLSH!$TCLSH$ac_delim
21490 OCAMLC!$OCAMLC$ac_delim
21491 OCAMLOPT!$OCAMLOPT$ac_delim
21492 OCAMLDEP!$OCAMLDEP$ac_delim
21493 OCAMLDOC!$OCAMLDOC$ac_delim
21495 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21496 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21497 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21498 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21499 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21500 LIBADD_DL!$LIBADD_DL$ac_delim
21501 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21502 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21503 LLVMGCC!$LLVMGCC$ac_delim
21504 LLVMGXX!$LLVMGXX$ac_delim
21505 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21506 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21507 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21508 USE_UDIS86!$USE_UDIS86$ac_delim
21509 USE_OPROFILE!$USE_OPROFILE$ac_delim
21510 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21511 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21512 MMAP_FILE!$MMAP_FILE$ac_delim
21513 LLVMCC1!$LLVMCC1$ac_delim
21514 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21515 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21516 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21517 SHLIBEXT!$SHLIBEXT$ac_delim
21518 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21519 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21520 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21521 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21522 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21523 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21524 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21525 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21526 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21527 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21528 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21529 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21530 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21531 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21532 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21533 RPATH!$RPATH$ac_delim
21534 RDYNAMIC!$RDYNAMIC$ac_delim
21535 LIBOBJS!$LIBOBJS$ac_delim
21536 LTLIBOBJS!$LTLIBOBJS$ac_delim
21539 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
21541 elif $ac_last_try; then
21542 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21543 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21544 { (exit 1); exit 1; }; }
21546 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21550 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21551 if test -n "$ac_eof"; then
21552 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21553 ac_eof=`expr $ac_eof + 1`
21556 cat >>$CONFIG_STATUS <<_ACEOF
21557 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21561 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21562 s/^/s,@/; s/!/@,|#_!!_#|/
21565 s/'"$ac_delim"'$/,g/; t
21567 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21568 ' >>$CONFIG_STATUS <conf$$subs.sed
21569 rm -f conf$$subs.sed
21570 cat >>$CONFIG_STATUS <<_ACEOF
21577 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21578 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21579 # trailing colons and then remove the whole line if VPATH becomes empty
21580 # (actually we leave an empty line to preserve line numbers).
21581 if test "x$srcdir" = x.; then
21582 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21583 s/:*\$(srcdir):*/:/
21584 s/:*\${srcdir}:*/:/
21586 s/^\([^=]*=[ ]*\):*/\1/
21592 cat >>$CONFIG_STATUS <<\_ACEOF
21593 fi # test -n "$CONFIG_FILES"
21596 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21599 :[FHLC]) ac_mode=$ac_tag; continue;;
21601 case $ac_mode$ac_tag in
21603 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21604 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21605 { (exit 1); exit 1; }; };;
21606 :[FH]-) ac_tag=-:-;;
21607 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21624 -) ac_f="$tmp/stdin";;
21625 *) # Look for the file first in the build tree, then in the source tree
21626 # (if the path is not absolute). The absolute path cannot be DOS-style,
21627 # because $ac_f cannot contain `:'.
21631 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21633 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21634 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21635 { (exit 1); exit 1; }; };;
21637 ac_file_inputs="$ac_file_inputs $ac_f"
21640 # Let's still pretend it is `configure' which instantiates (i.e., don't
21641 # use $as_me), people would be surprised to read:
21642 # /* config.h. Generated by config.status. */
21643 configure_input="Generated from "`IFS=:
21644 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21645 if test x"$ac_file" != x-; then
21646 configure_input="$ac_file. $configure_input"
21647 { echo "$as_me:$LINENO: creating $ac_file" >&5
21648 echo "$as_me: creating $ac_file" >&6;}
21652 *:-:* | *:-) cat >"$tmp/stdin";;
21657 ac_dir=`$as_dirname -- "$ac_file" ||
21658 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21659 X"$ac_file" : 'X\(//\)[^/]' \| \
21660 X"$ac_file" : 'X\(//\)$' \| \
21661 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21667 /^X\(\/\/\)[^/].*/{
21682 -*) as_dir=./$as_dir;;
21684 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21688 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21689 *) as_qdir=$as_dir;;
21691 as_dirs="'$as_qdir' $as_dirs"
21692 as_dir=`$as_dirname -- "$as_dir" ||
21693 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21694 X"$as_dir" : 'X\(//\)[^/]' \| \
21695 X"$as_dir" : 'X\(//\)$' \| \
21696 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21702 /^X\(\/\/\)[^/].*/{
21715 test -d "$as_dir" && break
21717 test -z "$as_dirs" || eval "mkdir $as_dirs"
21718 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21719 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21720 { (exit 1); exit 1; }; }; }
21724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21726 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21727 # A ".." for each directory in $ac_dir_suffix.
21728 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21729 case $ac_top_builddir_sub in
21730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21734 ac_abs_top_builddir=$ac_pwd
21735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21736 # for backward compatibility:
21737 ac_top_builddir=$ac_top_build_prefix
21740 .) # We are building in place.
21742 ac_top_srcdir=$ac_top_builddir_sub
21743 ac_abs_top_srcdir=$ac_pwd ;;
21744 [\\/]* | ?:[\\/]* ) # Absolute name.
21745 ac_srcdir=$srcdir$ac_dir_suffix;
21746 ac_top_srcdir=$srcdir
21747 ac_abs_top_srcdir=$srcdir ;;
21748 *) # Relative name.
21749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21750 ac_top_srcdir=$ac_top_build_prefix$srcdir
21751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21763 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21764 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21768 cat >>$CONFIG_STATUS <<\_ACEOF
21769 # If the template does not know about datarootdir, expand it.
21770 # FIXME: This hack should be removed a few years after 2.60.
21771 ac_datarootdir_hack=; ac_datarootdir_seen=
21773 case `sed -n '/datarootdir/ {
21782 ' $ac_file_inputs` in
21783 *datarootdir*) ac_datarootdir_seen=yes;;
21784 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21785 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21786 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21788 cat >>$CONFIG_STATUS <<_ACEOF
21789 ac_datarootdir_hack='
21790 s&@datadir@&$datadir&g
21791 s&@docdir@&$docdir&g
21792 s&@infodir@&$infodir&g
21793 s&@localedir@&$localedir&g
21794 s&@mandir@&$mandir&g
21795 s&\\\${datarootdir}&$datarootdir&g' ;;
21799 # Neutralize VPATH when `$srcdir' = `.'.
21800 # Shell code in configure.ac might set extrasub.
21801 # FIXME: do we really want to maintain this feature?
21802 cat >>$CONFIG_STATUS <<_ACEOF
21806 cat >>$CONFIG_STATUS <<\_ACEOF
21808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21809 s&@configure_input@&$configure_input&;t t
21810 s&@top_builddir@&$ac_top_builddir_sub&;t t
21811 s&@srcdir@&$ac_srcdir&;t t
21812 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21813 s&@top_srcdir@&$ac_top_srcdir&;t t
21814 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21815 s&@builddir@&$ac_builddir&;t t
21816 s&@abs_builddir@&$ac_abs_builddir&;t t
21817 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21818 s&@INSTALL@&$ac_INSTALL&;t t
21819 $ac_datarootdir_hack
21820 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21822 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21823 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21824 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21825 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21826 which seems to be undefined. Please make sure it is defined." >&5
21827 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21828 which seems to be undefined. Please make sure it is defined." >&2;}
21832 -) cat "$tmp/out"; rm -f "$tmp/out";;
21833 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21842 # Transform confdefs.h into a sed script `conftest.defines', that
21843 # substitutes the proper values into config.h.in to produce config.h.
21844 rm -f conftest.defines conftest.tail
21845 # First, append a space to every undef/define line, to ease matching.
21846 echo 's/$/ /' >conftest.defines
21847 # Then, protect against being on the right side of a sed subst, or in
21848 # an unquoted here document, in config.status. If some macros were
21849 # called several times there might be several #defines for the same
21850 # symbol, which is useless. But do not sort them, since the last
21851 # AC_DEFINE must be honored.
21852 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21853 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21854 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21855 # PARAMS is the parameter list in the macro definition--in most cases, it's
21856 # just an empty string.
21857 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21858 ac_dB='\\)[ (].*,\\1define\\2'
21866 s/^[ ]*#[ ]*define[ ][ ]*//
21871 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21872 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21873 ' >>conftest.defines
21875 # Remove the space that was appended to ease matching.
21876 # Then replace #undef with comments. This is necessary, for
21877 # example, in the case of _POSIX_SOURCE, which is predefined and required
21878 # on some systems where configure will not decide to define it.
21879 # (The regexp can be short, since the line contains either #define or #undef.)
21881 s,^[ #]*u.*,/* & */,' >>conftest.defines
21883 # Break up conftest.defines:
21884 ac_max_sed_lines=50
21886 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21887 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21888 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21890 ac_in='$ac_file_inputs'
21891 ac_out='"$tmp/out1"'
21892 ac_nxt='"$tmp/out2"'
21896 # Write a here document:
21897 cat >>$CONFIG_STATUS <<_ACEOF
21898 # First, check the format of the line:
21899 cat >"\$tmp/defines.sed" <<\\CEOF
21900 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21901 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21905 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21907 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21908 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21909 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21910 grep . conftest.tail >/dev/null || break
21911 rm -f conftest.defines
21912 mv conftest.tail conftest.defines
21914 rm -f conftest.defines conftest.tail
21916 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21917 cat >>$CONFIG_STATUS <<\_ACEOF
21918 if test x"$ac_file" != x-; then
21919 echo "/* $configure_input */" >"$tmp/config.h"
21920 cat "$ac_result" >>"$tmp/config.h"
21921 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21922 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21923 echo "$as_me: $ac_file is unchanged" >&6;}
21926 mv "$tmp/config.h" $ac_file
21929 echo "/* $configure_input */"
21935 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21936 echo "$as_me: executing $ac_file commands" >&6;}
21941 case $ac_file$ac_mode in
21942 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21943 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21944 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21945 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21946 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21947 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21948 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21949 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21950 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21951 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21952 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21953 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21954 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21955 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21956 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21957 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21958 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21959 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21960 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21961 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21962 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21963 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21964 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21965 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21966 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21967 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21973 { (exit 0); exit 0; }
21975 chmod +x $CONFIG_STATUS
21976 ac_clean_files=$ac_clean_files_save
21979 # configure is writing to config.log, and then calls config.status.
21980 # config.status does its own redirection, appending to config.log.
21981 # Unfortunately, on DOS this fails, as config.log is still kept open
21982 # by configure, so config.status won't be able to write to it; its
21983 # output is simply discarded. So we exec the FD to /dev/null,
21984 # effectively closing config.log, so it can be properly (re)opened and
21985 # appended to by config.status. When coming back to configure, we
21986 # need to make the FD available again.
21987 if test "$no_create" != yes; then
21989 ac_config_status_args=
21990 test "$silent" = yes &&
21991 ac_config_status_args="$ac_config_status_args --quiet"
21993 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21995 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21996 # would make configure fail if this is the last instruction.
21997 $ac_cs_success || { (exit 1); exit 1; }
22001 # CONFIG_SUBDIRS section.
22003 if test "$no_recursion" != yes; then
22005 # Remove --cache-file and --srcdir arguments so they do not pile up.
22006 ac_sub_configure_args=
22008 eval "set x $ac_configure_args"
22012 if test -n "$ac_prev"; then
22017 -cache-file | --cache-file | --cache-fil | --cache-fi \
22018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22019 ac_prev=cache_file ;;
22020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22024 --config-cache | -C)
22026 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22028 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22036 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22038 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22042 # Always prepend --prefix to ensure using the same prefix
22043 # in subdir configurations.
22044 ac_arg="--prefix=$prefix"
22046 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22048 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22051 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22053 # Do not complain, so a configure script can configure whichever
22054 # parts of a large source tree are present.
22055 test -d "$srcdir/$ac_dir" || continue
22057 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22058 echo "$as_me:$LINENO: $ac_msg" >&5
22062 -*) as_dir=./$as_dir;;
22064 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22068 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22069 *) as_qdir=$as_dir;;
22071 as_dirs="'$as_qdir' $as_dirs"
22072 as_dir=`$as_dirname -- "$as_dir" ||
22073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22074 X"$as_dir" : 'X\(//\)[^/]' \| \
22075 X"$as_dir" : 'X\(//\)$' \| \
22076 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22082 /^X\(\/\/\)[^/].*/{
22095 test -d "$as_dir" && break
22097 test -z "$as_dirs" || eval "mkdir $as_dirs"
22098 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22099 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22100 { (exit 1); exit 1; }; }; }
22104 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22106 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22107 # A ".." for each directory in $ac_dir_suffix.
22108 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22109 case $ac_top_builddir_sub in
22110 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22111 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22114 ac_abs_top_builddir=$ac_pwd
22115 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22116 # for backward compatibility:
22117 ac_top_builddir=$ac_top_build_prefix
22120 .) # We are building in place.
22122 ac_top_srcdir=$ac_top_builddir_sub
22123 ac_abs_top_srcdir=$ac_pwd ;;
22124 [\\/]* | ?:[\\/]* ) # Absolute name.
22125 ac_srcdir=$srcdir$ac_dir_suffix;
22126 ac_top_srcdir=$srcdir
22127 ac_abs_top_srcdir=$srcdir ;;
22128 *) # Relative name.
22129 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22130 ac_top_srcdir=$ac_top_build_prefix$srcdir
22131 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22133 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22138 # Check for guested configure; otherwise get Cygnus style configure.
22139 if test -f "$ac_srcdir/configure.gnu"; then
22140 ac_sub_configure=$ac_srcdir/configure.gnu
22141 elif test -f "$ac_srcdir/configure"; then
22142 ac_sub_configure=$ac_srcdir/configure
22143 elif test -f "$ac_srcdir/configure.in"; then
22144 # This should be Cygnus configure.
22145 ac_sub_configure=$ac_aux_dir/configure
22147 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22152 # The recursion is here.
22153 if test -n "$ac_sub_configure"; then
22154 # Make the cache file name correct relative to the subdirectory.
22155 case $cache_file in
22156 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22157 *) # Relative name.
22158 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22161 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22162 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22163 # The eval makes quoting arguments work.
22164 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22165 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22166 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22167 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22168 { (exit 1); exit 1; }; }