2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.8svn.
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.8svn'
565 PACKAGE_STRING='llvm 2.8svn'
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
707 ENABLE_LLVMC_DYNAMIC_PLUGINS
755 HAVE_LINK_VERSION_SCRIPT
758 CONVENIENCE_LTDL_TRUE
759 CONVENIENCE_LTDL_FALSE
767 NO_MISSING_FIELD_INITIALIZERS
792 ENABLE_VISIBILITY_INLINES_HIDDEN
798 ac_precious_vars='build_alias
809 ac_subdirs_all='projects/llvm-gcc
813 projects/llvm-poolalloc
816 projects/llvm-stacker
821 projects/llvm-kernel'
823 # Initialize some variables set by options.
825 ac_init_version=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
835 program_transform_name=s,x,x,
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 -enable-* | --enable-*)
943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
964 -help | --help | --hel | --he | -h)
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1113 -site=* | --site=* | --sit=*)
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package| sed 's/-/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/-/_/g'`
1155 eval with_$ac_package=no ;;
1158 # Obsolete; use --with-x.
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
1206 # Be sure to have absolute directory names.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1323 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1387 if test -n "$ac_init_help"; then
1388 case $ac_init_help in
1389 short | recursive ) echo "Configuration of llvm 2.8svn:";;
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1400 --enable-expensive-checks
1401 Compile with expensive debug checks enabled (default
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
1407 --enable-jit Enable Just In Time Compiling (default is YES)
1408 --enable-doxygen Build doxygen documentation (default is NO)
1409 --enable-threads Use threads if available (default is YES)
1410 --enable-pic Build LLVM with Position Independent Code (default
1412 --enable-shared Build a shared library and link tools against it
1414 --enable-timestamps Enable embedding timestamp information in build
1416 --enable-targets Build specific host targets: all or
1417 target1,target2,... Valid targets are: host, x86,
1418 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1419 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1420 and cpp (default=all)
1421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
1425 --enable-libffi Check for the presence of libffi (default is NO)
1426 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1428 --enable-llvmc-dynamic-plugins
1429 Enable dynamic LLVMC plugins (default is YES)
1430 --enable-ltdl-install install libltdl
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1437 --with-llvmgcc Specify location of llvm-gcc driver (default
1439 --with-llvmgxx Specify location of llvm-g++ driver (default
1441 --with-clang Specify location of clang compiler (default is
1443 --with-built-clang Use the compiled Clang as the LLVM compiler
1445 --with-optimize-option Select the compiler options to use for optimized
1447 --with-extra-options Specify additional options to compile LLVM with
1448 --with-ocaml-libdir Specify install location for ocaml bindings (default
1450 --with-c-include-dirs Colon separated list of directories clang will
1452 --with-cxx-include-root Directory with the libstdc++ headers.
1453 --with-cxx-include-arch Architecture of the libstdc++ headers.
1454 --with-cxx-include-32bit-dir
1455 32 bit multilib dir.
1456 --with-cxx-include-64bit-dir
1457 64 bit multilib directory.
1458 --with-binutils-include Specify path to binutils/include/ containing
1459 plugin-api.h file for gold plugin.
1460 --with-tclinclude directory where tcl headers are
1461 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1462 clang, or none; default=check)
1463 --with-udis86=<path> Use udis86 external x86 disassembler library
1464 --with-oprofile=<prefix>
1465 Tell OProfile >= 0.9.4 how to symbolize JIT output
1467 Some influential environment variables:
1468 CC C compiler command
1469 CFLAGS C compiler flags
1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
1472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to <llvmbugs@cs.uiuc.edu>.
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" || continue
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1509 .) # We are building in place.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1542 llvm configure 2.8svn
1543 generated by GNU Autoconf 2.60
1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1546 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1550 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1554 cat >config.log <<_ACEOF
1555 This file contains any messages produced by compilers while
1556 running configure, to aid debugging if configure makes a mistake.
1558 It was created by llvm $as_me 2.8svn, which was
1559 generated by GNU Autoconf 2.60. Invocation command line was
1571 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1577 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1580 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1581 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1582 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1583 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1584 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1585 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1586 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 test -z "$as_dir" && as_dir=.
1595 echo "PATH: $as_dir"
1611 # Keep a trace of the command line.
1612 # Strip out --no-create and --no-recursion so they do not pile up.
1613 # Strip out --silent because we don't want to record it for future runs.
1614 # Also quote any args containing shell meta-characters.
1615 # Make two passes to allow for proper duplicate-argument suppression.
1619 ac_must_keep_next=false
1625 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627 | -silent | --silent | --silen | --sile | --sil)
1630 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1633 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1635 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1636 if test $ac_must_keep_next = true; then
1637 ac_must_keep_next=false # Got value, back to normal.
1640 *=* | --config-cache | -C | -disable-* | --disable-* \
1641 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643 | -with-* | --with-* | -without-* | --without-* | --x)
1644 case "$ac_configure_args0 " in
1645 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1648 -* ) ac_must_keep_next=true ;;
1651 ac_configure_args="$ac_configure_args '$ac_arg'"
1656 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1659 # When interrupted or exit'd, cleanup temporary files, and complete
1660 # config.log. We remove comments because anyway the quotes in there
1661 # would cause problems or look ugly.
1662 # WARNING: Use '\'' to represent an apostrophe within the trap.
1663 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1664 trap 'exit_status=$?
1665 # Save into config.log some information that might help in debugging.
1670 ## ---------------- ##
1671 ## Cache variables. ##
1672 ## ---------------- ##
1675 # The following way of writing the cache mishandles newlines in values,
1677 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678 eval ac_val=\$$ac_var
1682 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1686 _ | IFS | as_nl) ;; #(
1687 *) $as_unset $ac_var ;;
1692 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693 *${as_nl}ac_space=\ *)
1695 "s/'\''/'\''\\\\'\'''\''/g;
1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1707 ## ----------------- ##
1708 ## Output variables. ##
1709 ## ----------------- ##
1712 for ac_var in $ac_subst_vars
1714 eval ac_val=\$$ac_var
1716 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1718 echo "$ac_var='\''$ac_val'\''"
1722 if test -n "$ac_subst_files"; then
1724 ## ------------------- ##
1725 ## File substitutions. ##
1726 ## ------------------- ##
1729 for ac_var in $ac_subst_files
1731 eval ac_val=\$$ac_var
1733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1735 echo "$ac_var='\''$ac_val'\''"
1740 if test -s confdefs.h; then
1750 test "$ac_signal" != 0 &&
1751 echo "$as_me: caught signal $ac_signal"
1752 echo "$as_me: exit $exit_status"
1754 rm -f core *.core core.conftest.* &&
1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1758 for ac_signal in 1 2 13 15; do
1759 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1764 rm -f -r conftest* confdefs.h
1766 # Predefined preprocessor variables.
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_NAME "$PACKAGE_NAME"
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_STRING "$PACKAGE_STRING"
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1793 # Let the site file select an alternate cache file if it wants to.
1794 # Prefer explicitly selected file to automatically selected ones.
1795 if test -n "$CONFIG_SITE"; then
1796 set x "$CONFIG_SITE"
1797 elif test "x$prefix" != xNONE; then
1798 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1800 set x "$ac_default_prefix/share/config.site" \
1801 "$ac_default_prefix/etc/config.site"
1806 if test -r "$ac_site_file"; then
1807 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808 echo "$as_me: loading site script $ac_site_file" >&6;}
1809 sed 's/^/| /' "$ac_site_file" >&5
1814 if test -r "$cache_file"; then
1815 # Some versions of bash will fail to source /dev/null (special
1816 # files actually), so we avoid doing that.
1817 if test -f "$cache_file"; then
1818 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819 echo "$as_me: loading cache $cache_file" >&6;}
1821 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822 *) . "./$cache_file";;
1826 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827 echo "$as_me: creating cache $cache_file" >&6;}
1831 # Check that the precious variables saved in the cache have kept the same
1833 ac_cache_corrupted=false
1834 for ac_var in $ac_precious_vars; do
1835 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836 eval ac_new_set=\$ac_env_${ac_var}_set
1837 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838 eval ac_new_val=\$ac_env_${ac_var}_value
1839 case $ac_old_set,$ac_new_set in
1841 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1845 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1850 if test "x$ac_old_val" != "x$ac_new_val"; then
1851 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1854 echo "$as_me: former value: $ac_old_val" >&2;}
1855 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1856 echo "$as_me: current value: $ac_new_val" >&2;}
1857 ac_cache_corrupted=:
1860 # Pass precious variables to config.status.
1861 if test "$ac_new_set" = set; then
1863 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1864 *) ac_arg=$ac_var=$ac_new_val ;;
1866 case " $ac_configure_args " in
1867 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1868 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1872 if $ac_cache_corrupted; then
1873 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877 { (exit 1); exit 1; }; }
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1921 for ac_dir in autoconf "$srcdir"/autoconf; do
1922 if test -f "$ac_dir/install-sh"; then
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1926 elif test -f "$ac_dir/install.sh"; then
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1930 elif test -f "$ac_dir/shtool"; then
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1936 if test -z "$ac_aux_dir"; then
1937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1938 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1939 { (exit 1); exit 1; }; }
1942 # These three variables are undocumented and unsupported,
1943 # and are intended to be withdrawn in a future Autoconf release.
1944 # They can cause serious problems if a builder's source tree is in a directory
1945 # whose full name contains unusual characters.
1946 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1947 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1948 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1952 if test ${srcdir} != "." ; then
1953 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1954 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1955 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1956 { (exit 1); exit 1; }; }
1962 if test -d ${srcdir}/projects/llvm-gcc ; then
1963 subdirs="$subdirs projects/llvm-gcc"
1967 if test -d ${srcdir}/projects/test-suite ; then
1968 subdirs="$subdirs projects/test-suite"
1972 if test -d ${srcdir}/projects/llvm-test ; then
1973 subdirs="$subdirs projects/llvm-test"
1977 if test -d ${srcdir}/projects/poolalloc ; then
1978 subdirs="$subdirs projects/poolalloc"
1982 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1983 subdirs="$subdirs projects/llvm-poolalloc"
1987 for i in `ls ${srcdir}/projects`
1989 if test -d ${srcdir}/projects/${i} ; then
1992 sample) subdirs="$subdirs projects/sample"
1994 privbracket) subdirs="$subdirs projects/privbracket"
1996 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1998 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2000 llvm-java) subdirs="$subdirs projects/llvm-java"
2002 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2004 safecode) subdirs="$subdirs projects/safecode"
2006 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2014 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2015 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2022 # Make sure we can run config.sub.
2023 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2024 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2025 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2026 { (exit 1); exit 1; }; }
2028 { echo "$as_me:$LINENO: checking build system type" >&5
2029 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2030 if test "${ac_cv_build+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 ac_build_alias=$build_alias
2034 test "x$ac_build_alias" = x &&
2035 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2036 test "x$ac_build_alias" = x &&
2037 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2038 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2039 { (exit 1); exit 1; }; }
2040 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2041 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2042 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2043 { (exit 1); exit 1; }; }
2046 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2047 echo "${ECHO_T}$ac_cv_build" >&6; }
2048 case $ac_cv_build in
2050 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2051 echo "$as_me: error: invalid value of canonical build" >&2;}
2052 { (exit 1); exit 1; }; };;
2055 ac_save_IFS=$IFS; IFS='-'
2061 # Remember, the first character of IFS is used to create $*,
2062 # except with old shells:
2065 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2068 { echo "$as_me:$LINENO: checking host system type" >&5
2069 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2070 if test "${ac_cv_host+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 if test "x$host_alias" = x; then
2074 ac_cv_host=$ac_cv_build
2076 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2077 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2078 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2079 { (exit 1); exit 1; }; }
2083 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2084 echo "${ECHO_T}$ac_cv_host" >&6; }
2087 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2088 echo "$as_me: error: invalid value of canonical host" >&2;}
2089 { (exit 1); exit 1; }; };;
2092 ac_save_IFS=$IFS; IFS='-'
2098 # Remember, the first character of IFS is used to create $*,
2099 # except with old shells:
2102 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2105 { echo "$as_me:$LINENO: checking target system type" >&5
2106 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2107 if test "${ac_cv_target+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 if test "x$target_alias" = x; then
2111 ac_cv_target=$ac_cv_host
2113 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2114 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2115 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2116 { (exit 1); exit 1; }; }
2120 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2121 echo "${ECHO_T}$ac_cv_target" >&6; }
2122 case $ac_cv_target in
2124 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2125 echo "$as_me: error: invalid value of canonical target" >&2;}
2126 { (exit 1); exit 1; }; };;
2128 target=$ac_cv_target
2129 ac_save_IFS=$IFS; IFS='-'
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2139 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2142 # The aliases save the names the user supplied, while $host etc.
2143 # will get canonicalized.
2144 test -n "$target_alias" &&
2145 test "$program_prefix$program_suffix$program_transform_name" = \
2147 program_prefix=${target_alias}-
2149 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2150 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2151 if test "${llvm_cv_os_type+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 llvm_cv_link_all_option="-Wl,--whole-archive"
2157 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2158 llvm_cv_os_type="AIX"
2159 llvm_cv_platform_type="Unix" ;;
2161 llvm_cv_link_all_option="-Wl,--whole-archive"
2162 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2163 llvm_cv_os_type="IRIX"
2164 llvm_cv_platform_type="Unix" ;;
2166 llvm_cv_link_all_option="-Wl,--whole-archive"
2167 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2168 llvm_cv_os_type="Cygwin"
2169 llvm_cv_platform_type="Unix" ;;
2171 llvm_cv_link_all_option="-Wl,-all_load"
2172 llvm_cv_no_link_all_option="-Wl,-noall_load"
2173 llvm_cv_os_type="Darwin"
2174 llvm_cv_platform_type="Unix" ;;
2176 llvm_cv_link_all_option="-Wl,-all_load"
2177 llvm_cv_no_link_all_option="-Wl,-noall_load"
2178 llvm_cv_os_type="Minix"
2179 llvm_cv_platform_type="Unix" ;;
2181 llvm_cv_link_all_option="-Wl,--whole-archive"
2182 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2183 llvm_cv_os_type="FreeBSD"
2184 llvm_cv_platform_type="Unix" ;;
2186 llvm_cv_link_all_option="-Wl,--whole-archive"
2187 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2188 llvm_cv_os_type="OpenBSD"
2189 llvm_cv_platform_type="Unix" ;;
2191 llvm_cv_link_all_option="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193 llvm_cv_os_type="NetBSD"
2194 llvm_cv_platform_type="Unix" ;;
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="DragonFly"
2199 llvm_cv_platform_type="Unix" ;;
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="HP-UX"
2204 llvm_cv_platform_type="Unix" ;;
2206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208 llvm_cv_os_type="Interix"
2209 llvm_cv_platform_type="Unix" ;;
2211 llvm_cv_link_all_option="-Wl,--whole-archive"
2212 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2213 llvm_cv_os_type="Linux"
2214 llvm_cv_platform_type="Unix" ;;
2216 llvm_cv_link_all_option="-Wl,-z,allextract"
2217 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2218 llvm_cv_os_type="SunOS"
2219 llvm_cv_platform_type="Unix" ;;
2221 llvm_cv_link_all_option="-Wl,-z,allextract"
2222 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2223 llvm_cv_os_type="AuroraUX"
2224 llvm_cv_platform_type="Unix" ;;
2226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228 llvm_cv_os_type="Win32"
2229 llvm_cv_platform_type="Win32" ;;
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="MingW"
2234 llvm_cv_platform_type="Win32" ;;
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="Haiku"
2239 llvm_cv_platform_type="Unix" ;;
2241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243 llvm_cv_os_type="Freestanding"
2244 llvm_cv_platform_type="Unix" ;;
2246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248 llvm_cv_os_type="Freestanding"
2249 llvm_cv_platform_type="Unix" ;;
2251 llvm_cv_link_all_option=""
2252 llvm_cv_no_link_all_option=""
2253 llvm_cv_os_type="Unknown"
2254 llvm_cv_platform_type="Unknown" ;;
2257 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2258 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2260 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2261 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2262 if test "${llvm_cv_target_os_type+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 llvm_cv_target_os_type="AIX" ;;
2269 llvm_cv_target_os_type="IRIX" ;;
2271 llvm_cv_target_os_type="Cygwin" ;;
2273 llvm_cv_target_os_type="Darwin" ;;
2275 llvm_cv_target_os_type="Minix" ;;
2277 llvm_cv_target_os_type="FreeBSD" ;;
2279 llvm_cv_target_os_type="OpenBSD" ;;
2281 llvm_cv_target_os_type="NetBSD" ;;
2283 llvm_cv_target_os_type="DragonFly" ;;
2285 llvm_cv_target_os_type="HP-UX" ;;
2287 llvm_cv_target_os_type="Interix" ;;
2289 llvm_cv_target_os_type="Linux" ;;
2291 llvm_cv_target_os_type="SunOS" ;;
2293 llvm_cv_target_os_type="AuroraUX" ;;
2295 llvm_cv_target_os_type="Win32" ;;
2297 llvm_cv_target_os_type="MingW" ;;
2299 llvm_cv_target_os_type="Haiku" ;;
2301 llvm_cv_target_os_type="Freestanding" ;;
2303 llvm_cv_target_os_type="Unknown" ;;
2306 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2307 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2309 if test "$llvm_cv_os_type" = "Unknown" ; then
2310 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2311 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2312 { (exit 1); exit 1; }; }
2317 HOST_OS=$llvm_cv_os_type
2319 TARGET_OS=$llvm_cv_target_os_type
2322 LINKALL=$llvm_cv_link_all_option
2324 NOLINKALL=$llvm_cv_no_link_all_option
2327 case $llvm_cv_platform_type in
2330 cat >>confdefs.h <<\_ACEOF
2331 #define LLVM_ON_UNIX 1
2341 cat >>confdefs.h <<\_ACEOF
2342 #define LLVM_ON_WIN32 1
2352 { echo "$as_me:$LINENO: checking target architecture" >&5
2353 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2354 if test "${llvm_cv_target_arch+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 i?86-*) llvm_cv_target_arch="x86" ;;
2359 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2360 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2361 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2362 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2363 arm*-*) llvm_cv_target_arch="ARM" ;;
2364 mips-*) llvm_cv_target_arch="Mips" ;;
2365 pic16-*) llvm_cv_target_arch="PIC16" ;;
2366 xcore-*) llvm_cv_target_arch="XCore" ;;
2367 msp430-*) llvm_cv_target_arch="MSP430" ;;
2368 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2369 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2370 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2371 *) llvm_cv_target_arch="Unknown" ;;
2374 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2375 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2377 if test "$llvm_cv_target_arch" = "Unknown" ; then
2378 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2379 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2382 # Determine the LLVM native architecture for the target
2383 case "$llvm_cv_target_arch" in
2384 x86) LLVM_NATIVE_ARCH="X86" ;;
2385 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2386 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2389 ARCH=$llvm_cv_target_arch
2393 ac_cpp='$CPP $CPPFLAGS'
2394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 if test -n "$ac_tool_prefix"; then
2398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402 if test "${ac_cv_prog_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 if test -n "$CC"; then
2406 ac_cv_prog_CC="$CC" # Let the user override the test.
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 if test -n "$CC"; then
2427 { echo "$as_me:$LINENO: result: $CC" >&5
2428 echo "${ECHO_T}$CC" >&6; }
2430 { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2436 if test -z "$ac_cv_prog_CC"; then
2438 # Extract the first word of "gcc", so it can be a program name with args.
2439 set dummy gcc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$ac_ct_CC"; then
2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_ac_ct_CC="gcc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466 if test -n "$ac_ct_CC"; then
2467 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468 echo "${ECHO_T}$ac_ct_CC" >&6; }
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2474 if test "x$ac_ct_CC" = x; then
2477 case $cross_compiling:$ac_tool_warned in
2479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2480 whose name does not start with the host triplet. If you think this
2481 configuration is useful to you, please write to autoconf@gnu.org." >&5
2482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2483 whose name does not start with the host triplet. If you think this
2484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2485 ac_tool_warned=yes ;;
2493 if test -z "$CC"; then
2494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}cc; ac_word=$2
2497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2512 ac_cv_prog_CC="${ac_tool_prefix}cc"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 if test -n "$CC"; then
2524 { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2527 { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2534 if test -z "$CC"; then
2535 # Extract the first word of "cc", so it can be a program name with args.
2536 set dummy cc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554 ac_prog_rejected=yes
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 if test $ac_prog_rejected = yes; then
2566 # We found a bogon in the path, so make sure we never use it.
2567 set dummy $ac_cv_prog_CC
2569 if test $# != 0; then
2570 # We chose a different compiler from the bogus one.
2571 # However, it has the same basename, so the bogon will be chosen
2572 # first if we set CC to just the basename; use the full file name.
2574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2580 if test -n "$CC"; then
2581 { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2584 { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2590 if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
2592 for ac_prog in cl.exe
2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 if test -n "$CC"; then
2623 { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2631 test -n "$CC" && break
2634 if test -z "$CC"; then
2636 for ac_prog in cl.exe
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 if test -n "$ac_ct_CC"; then
2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_ac_ct_CC="$ac_prog"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666 if test -n "$ac_ct_CC"; then
2667 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2668 echo "${ECHO_T}$ac_ct_CC" >&6; }
2670 { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2675 test -n "$ac_ct_CC" && break
2678 if test "x$ac_ct_CC" = x; then
2681 case $cross_compiling:$ac_tool_warned in
2683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2684 whose name does not start with the host triplet. If you think this
2685 configuration is useful to you, please write to autoconf@gnu.org." >&5
2686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2687 whose name does not start with the host triplet. If you think this
2688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2689 ac_tool_warned=yes ;;
2698 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2699 See \`config.log' for more details." >&5
2700 echo "$as_me: error: no acceptable C compiler found in \$PATH
2701 See \`config.log' for more details." >&2;}
2702 { (exit 1); exit 1; }; }
2704 # Provide some information about the compiler.
2705 echo "$as_me:$LINENO: checking for C compiler version" >&5
2706 ac_compiler=`set X $ac_compile; echo $2`
2707 { (ac_try="$ac_compiler --version >&5"
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compiler --version >&5") 2>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }
2717 { (ac_try="$ac_compiler -v >&5"
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_compiler -v >&5") 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }
2727 { (ac_try="$ac_compiler -V >&5"
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_compiler -V >&5") 2>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2753 ac_clean_files_save=$ac_clean_files
2754 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2755 # Try to create an executable without -o first, disregard a.out.
2756 # It will help us diagnose broken compilers, and finding out an intuition
2758 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2759 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2760 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2762 # List of possible output files, starting from the most likely.
2763 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2764 # only as a last resort. b.out is created by i960 compilers.
2765 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2767 # The IRIX 6 linker writes into existing files which may not be
2768 # executable, retaining their permissions. Remove them first so a
2769 # subsequent execution test works.
2771 for ac_file in $ac_files
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2775 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2780 if { (ac_try="$ac_link_default"
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_link_default") 2>&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; then
2790 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2791 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2792 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2793 # so that the user can short-circuit this test for compilers unknown to
2795 for ac_file in $ac_files
2797 test -f "$ac_file" || continue
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2802 # We found the default executable, but exeext='' is most
2806 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2808 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810 # We set ac_cv_exeext here because the later test for it is not
2811 # safe: cross compilers may not add the suffix if given an `-o'
2812 # argument, so we may need to know it at that point already.
2813 # Even if this section looks crufty: it has the advantage of
2820 test "$ac_cv_exeext" = no && ac_cv_exeext=
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: C compiler cannot create executables
2829 See \`config.log' for more details." >&2;}
2830 { (exit 77); exit 77; }; }
2833 ac_exeext=$ac_cv_exeext
2834 { echo "$as_me:$LINENO: result: $ac_file" >&5
2835 echo "${ECHO_T}$ac_file" >&6; }
2837 # Check that the compiler produces executables we can run. If not, either
2838 # the compiler is broken, or we cross compile.
2839 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2840 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2841 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2842 # If not cross compiling, check that we can run a simple program.
2843 if test "$cross_compiling" != yes; then
2844 if { ac_try='./$ac_file'
2845 { (case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_try") 2>&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2856 if test "$cross_compiling" = maybe; then
2859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: cannot run C compiled programs.
2863 If you meant to cross compile, use \`--host'.
2864 See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2869 { echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6; }
2872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2873 ac_clean_files=$ac_clean_files_save
2874 # Check that the compiler produces executables we can run. If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2878 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2879 echo "${ECHO_T}$cross_compiling" >&6; }
2881 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2883 if { (ac_try="$ac_link"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_link") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2895 # work properly (i.e., refer to `conftest.exe'), while it won't with
2897 for ac_file in conftest.exe conftest conftest.*; do
2898 test -f "$ac_file" || continue
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2914 rm -f conftest$ac_cv_exeext
2915 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2916 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2918 rm -f conftest.$ac_ext
2919 EXEEXT=$ac_cv_exeext
2921 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2922 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2923 if test "${ac_cv_objext+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2941 rm -f conftest.o conftest.obj
2942 if { (ac_try="$ac_compile"
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; then
2952 for ac_file in conftest.o conftest.obj conftest.*; do
2953 test -f "$ac_file" || continue;
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2964 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2973 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2974 echo "${ECHO_T}$ac_cv_objext" >&6; }
2975 OBJEXT=$ac_cv_objext
2977 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2978 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2979 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 cat >conftest.$ac_ext <<_ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3015 { (case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_try") 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3046 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3047 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3048 GCC=`test $ac_compiler_gnu = yes && echo yes`
3049 ac_test_CFLAGS=${CFLAGS+set}
3050 ac_save_CFLAGS=$CFLAGS
3051 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3052 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_cc_g+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 ac_save_c_werror_flag=$ac_c_werror_flag
3057 ac_c_werror_flag=yes
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3084 grep -v '^ *+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_try") 2>&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 ac_c_werror_flag=$ac_save_c_werror_flag
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3195 grep -v '^ *+' conftest.er1 >conftest.err
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try='test -s conftest.$ac_objext'
3211 { (case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_try") 2>&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3239 if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241 elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3248 if test "$GCC" = yes; then
3254 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3255 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_cc_c89+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 ac_cv_prog_cc_c89=no
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3269 #include <sys/types.h>
3270 #include <sys/stat.h>
3271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3272 struct buf { int x; };
3273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274 static char *e (p, i)
3280 static char *f (char * (*g) (char **, int), char **p, ...)
3285 s = g (p, va_arg (v,int));
3290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3291 function prototypes and stuff, but not '\xHH' hex character constants.
3292 These don't provoke an error unfortunately, instead are silently treated
3293 as 'x'. The following induces an error, until -std is added to get
3294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3295 array size at least. It's necessary to write '\x00'==0 to get something
3296 that's true only with -std. */
3297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300 inside strings and character constants. */
3302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304 int test (int i, double x);
3305 struct s1 {int (*f) (int a);};
3306 struct s2 {int (*f) (double a);};
3307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3313 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3321 CC="$ac_save_CC $ac_arg"
3322 rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
3331 grep -v '^ *+' conftest.er1 >conftest.err
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } &&
3336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3337 { (case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_try") 2>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_try") 2>&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_cv_prog_cc_c89=$ac_arg
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3364 rm -f core conftest.err conftest.$ac_objext
3365 test "x$ac_cv_prog_cc_c89" != "xno" && break
3367 rm -f conftest.$ac_ext
3372 case "x$ac_cv_prog_cc_c89" in
3374 { echo "$as_me:$LINENO: result: none needed" >&5
3375 echo "${ECHO_T}none needed" >&6; } ;;
3377 { echo "$as_me:$LINENO: result: unsupported" >&5
3378 echo "${ECHO_T}unsupported" >&6; } ;;
3380 CC="$CC $ac_cv_prog_cc_c89"
3381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3382 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3399 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3400 # On Suns, sometimes $CPP names a directory.
3401 if test -n "$CPP" && test -d "$CPP"; then
3404 if test -z "$CPP"; then
3405 if test "${ac_cv_prog_CPP+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 # Double quotes because CPP needs to be expanded
3409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3412 for ac_c_preproc_warn_flag in '' yes
3414 # Use a header file that comes with gcc, so configuring glibc
3415 # with a fresh cross-compiler works.
3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417 # <limits.h> exists even on freestanding compilers.
3418 # On the NeXT, cc -E runs the code through the compiler's parser,
3419 # not just through cpp. "Syntax error" is here to catch this case.
3420 cat >conftest.$ac_ext <<_ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3427 # include <limits.h>
3429 # include <assert.h>
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441 grep -v '^ *+' conftest.er1 >conftest.err
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 if test -z "$ac_cpp_err"; then
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 # Broken: fails on valid input.
3465 rm -f conftest.err conftest.$ac_ext
3467 # OK, works on sane cases. Now check whether nonexistent headers
3468 # can be detected and how.
3469 cat >conftest.$ac_ext <<_ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475 #include <ac_nonexistent.h>
3477 if { (ac_try="$ac_cpp conftest.$ac_ext"
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3499 if test -z "$ac_cpp_err"; then
3500 # Broken: success on invalid input.
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 # Passes both tests.
3511 rm -f conftest.err conftest.$ac_ext
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.err conftest.$ac_ext
3516 if $ac_preproc_ok; then
3528 { echo "$as_me:$LINENO: result: $CPP" >&5
3529 echo "${ECHO_T}$CPP" >&6; }
3531 for ac_c_preproc_warn_flag in '' yes
3533 # Use a header file that comes with gcc, so configuring glibc
3534 # with a fresh cross-compiler works.
3535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536 # <limits.h> exists even on freestanding compilers.
3537 # On the NeXT, cc -E runs the code through the compiler's parser,
3538 # not just through cpp. "Syntax error" is here to catch this case.
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3546 # include <limits.h>
3548 # include <assert.h>
3552 if { (ac_try="$ac_cpp conftest.$ac_ext"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } >/dev/null; then
3565 if test -s conftest.err; then
3566 ac_cpp_err=$ac_c_preproc_warn_flag
3567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574 if test -z "$ac_cpp_err"; then
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 # Broken: fails on valid input.
3584 rm -f conftest.err conftest.$ac_ext
3586 # OK, works on sane cases. Now check whether nonexistent headers
3587 # can be detected and how.
3588 cat >conftest.$ac_ext <<_ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 #include <ac_nonexistent.h>
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3604 grep -v '^ *+' conftest.er1 >conftest.err
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618 if test -z "$ac_cpp_err"; then
3619 # Broken: success on invalid input.
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3625 # Passes both tests.
3630 rm -f conftest.err conftest.$ac_ext
3633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634 rm -f conftest.err conftest.$ac_ext
3635 if $ac_preproc_ok; then
3638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3639 See \`config.log' for more details." >&5
3640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3641 See \`config.log' for more details." >&2;}
3642 { (exit 1); exit 1; }; }
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3653 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 # Extract the first word of "grep ggrep" to use in msg output
3658 if test -z "$GREP"; then
3659 set dummy grep ggrep; ac_prog_name=$2
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_path_GREP_found=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3669 test -z "$as_dir" && as_dir=.
3670 for ac_prog in grep ggrep; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3674 # Check for GNU ac_path_GREP and select it if it is found.
3675 # Check for GNU $ac_path_GREP
3676 case `"$ac_path_GREP" --version 2>&1` in
3678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 echo 'GREP' >> "conftest.nl"
3688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690 ac_count=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_GREP="$ac_path_GREP"
3694 ac_path_GREP_max=$ac_count
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3703 $ac_path_GREP_found && break 3
3713 GREP="$ac_cv_path_GREP"
3714 if test -z "$GREP"; then
3715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717 { (exit 1); exit 1; }; }
3721 ac_cv_path_GREP=$GREP
3726 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3727 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3728 GREP="$ac_cv_path_GREP"
3731 { echo "$as_me:$LINENO: checking for egrep" >&5
3732 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3733 if test "${ac_cv_path_EGREP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3737 then ac_cv_path_EGREP="$GREP -E"
3739 # Extract the first word of "egrep" to use in msg output
3740 if test -z "$EGREP"; then
3741 set dummy egrep; ac_prog_name=$2
3742 if test "${ac_cv_path_EGREP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 ac_path_EGREP_found=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3751 test -z "$as_dir" && as_dir=.
3752 for ac_prog in egrep; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3755 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3756 # Check for GNU ac_path_EGREP and select it if it is found.
3757 # Check for GNU $ac_path_EGREP
3758 case `"$ac_path_EGREP" --version 2>&1` in
3760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3763 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
3769 echo 'EGREP' >> "conftest.nl"
3770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772 ac_count=`expr $ac_count + 1`
3773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_EGREP="$ac_path_EGREP"
3776 ac_path_EGREP_max=$ac_count
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3785 $ac_path_EGREP_found && break 3
3795 EGREP="$ac_cv_path_EGREP"
3796 if test -z "$EGREP"; then
3797 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3803 ac_cv_path_EGREP=$EGREP
3809 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3810 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3811 EGREP="$ac_cv_path_EGREP"
3814 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3816 if test "${ac_cv_header_stdc+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 cat >conftest.$ac_ext <<_ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3838 rm -f conftest.$ac_objext
3839 if { (ac_try="$ac_compile"
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3847 grep -v '^ *+' conftest.er1 >conftest.err
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3853 { (case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_try") 2>&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest.$ac_objext'
3863 { (case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_try") 2>&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 ac_cv_header_stdc=yes
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_cv_header_stdc=no
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 if test $ac_cv_header_stdc = yes; then
3883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3894 $EGREP "memchr" >/dev/null 2>&1; then
3897 ac_cv_header_stdc=no
3903 if test $ac_cv_header_stdc = yes; then
3904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "free" >/dev/null 2>&1; then
3918 ac_cv_header_stdc=no
3924 if test $ac_cv_header_stdc = yes; then
3925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3926 if test "$cross_compiling" = yes; then
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3937 #if ((' ' & 0x0FF) == 0x020)
3938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3941 # define ISLOWER(c) \
3942 (('a' <= (c) && (c) <= 'i') \
3943 || ('j' <= (c) && (c) <= 'r') \
3944 || ('s' <= (c) && (c) <= 'z'))
3945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3953 for (i = 0; i < 256; i++)
3954 if (XOR (islower (i), ISLOWER (i))
3955 || toupper (i) != TOUPPER (i))
3960 rm -f conftest$ac_exeext
3961 if { (ac_try="$ac_link"
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_link") 2>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3971 { (case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_try") 2>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3982 echo "$as_me: program exited with status $ac_status" >&5
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3987 ac_cv_header_stdc=no
3989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3995 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3996 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3997 if test $ac_cv_header_stdc = yes; then
3999 cat >>confdefs.h <<\_ACEOF
4000 #define STDC_HEADERS 1
4005 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4015 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4016 inttypes.h stdint.h unistd.h
4018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 cat >conftest.$ac_ext <<_ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 $ac_includes_default
4032 #include <$ac_header>
4034 rm -f conftest.$ac_objext
4035 if { (ac_try="$ac_compile"
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_compile") 2>conftest.er1
4043 grep -v '^ *+' conftest.er1 >conftest.err
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4049 { (case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_try") 2>&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest.$ac_objext'
4059 { (case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_try") 2>&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 eval "$as_ac_Header=yes"
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 eval "$as_ac_Header=no"
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_res=`eval echo '${'$as_ac_Header'}'`
4079 { echo "$as_me:$LINENO: result: $ac_res" >&5
4080 echo "${ECHO_T}$ac_res" >&6; }
4081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082 cat >>confdefs.h <<_ACEOF
4083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4091 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4092 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4093 if test "${ac_cv_c_bigendian+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 # See if sys/param.h defines the BYTE_ORDER macro.
4097 cat >conftest.$ac_ext <<_ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 #include <sys/types.h>
4104 #include <sys/param.h>
4109 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4117 rm -f conftest.$ac_objext
4118 if { (ac_try="$ac_compile"
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_compile") 2>conftest.er1
4126 grep -v '^ *+' conftest.er1 >conftest.err
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4132 { (case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_try") 2>&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest.$ac_objext'
4142 { (case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_try") 2>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 # It does; now see whether it defined to BIG_ENDIAN or not.
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 #include <sys/types.h>
4159 #include <sys/param.h>
4164 #if BYTE_ORDER != BIG_ENDIAN
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_compile") 2>conftest.er1
4181 grep -v '^ *+' conftest.er1 >conftest.err
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } &&
4186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4187 { (case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_try") 2>&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_try") 2>&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 ac_cv_c_bigendian=yes
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4211 ac_cv_c_bigendian=no
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 # It does not; compile a test program.
4220 if test "$cross_compiling" = yes; then
4221 # try to guess the endianness by grepping values into an object file
4222 ac_cv_c_bigendian=unknown
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4230 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4231 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4232 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4233 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4234 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4238 _ascii (); _ebcdic ();
4243 rm -f conftest.$ac_objext
4244 if { (ac_try="$ac_compile"
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_compile") 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4258 { (case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_try") 2>&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest.$ac_objext'
4268 { (case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_try") 2>&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4278 ac_cv_c_bigendian=yes
4280 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4281 if test "$ac_cv_c_bigendian" = unknown; then
4282 ac_cv_c_bigendian=no
4284 # finding both strings is unlikely to happen, but who knows?
4285 ac_cv_c_bigendian=unknown
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 cat >conftest.$ac_ext <<_ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4308 /* Are we little or big endian? From Harbison&Steele. */
4312 char c[sizeof (long int)];
4315 return u.c[sizeof (long int) - 1] == 1;
4321 rm -f conftest$ac_exeext
4322 if { (ac_try="$ac_link"
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_link") 2>&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4332 { (case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_try") 2>&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 ac_cv_c_bigendian=no
4343 echo "$as_me: program exited with status $ac_status" >&5
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4348 ac_cv_c_bigendian=yes
4350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4359 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4360 case $ac_cv_c_bigendian in
4368 { { echo "$as_me:$LINENO: error: unknown endianness
4369 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4370 echo "$as_me: error: unknown endianness
4371 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4372 { (exit 1); exit 1; }; } ;;
4376 if test "$cross_compiling" = yes; then
4377 LLVM_CROSS_COMPILING=1
4380 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4381 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4382 if test "${ac_cv_build_exeext+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4386 ac_cv_build_exeext=.exe
4388 ac_build_prefix=${build_alias}-
4390 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4391 set dummy ${ac_build_prefix}gcc; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 if test -n "$BUILD_CC"; then
4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 BUILD_CC=$ac_cv_prog_BUILD_CC
4418 if test -n "$BUILD_CC"; then
4419 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420 echo "${ECHO_T}$BUILD_CC" >&6; }
4422 { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4427 if test -z "$BUILD_CC"; then
4428 # Extract the first word of "gcc", so it can be a program name with args.
4429 set dummy gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CC="gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "cc", so it can be a program name with args.
4467 set dummy cc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4485 ac_prog_rejected=yes
4488 ac_cv_prog_BUILD_CC="cc"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 if test $ac_prog_rejected = yes; then
4497 # We found a bogon in the path, so make sure we never use it.
4498 set dummy $ac_cv_prog_BUILD_CC
4500 if test $# != 0; then
4501 # We chose a different compiler from the bogus one.
4502 # However, it has the same basename, so the bogon will be chosen
4503 # first if we set BUILD_CC to just the basename; use the full file name.
4505 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4510 BUILD_CC=$ac_cv_prog_BUILD_CC
4511 if test -n "$BUILD_CC"; then
4512 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4513 echo "${ECHO_T}$BUILD_CC" >&6; }
4515 { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4522 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4523 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4524 { (exit 1); exit 1; }; }
4525 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4527 echo 'int main () { return 0; }' > conftest.$ac_ext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4530 (eval $ac_build_link) 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; then
4534 for file in conftest.*; do
4536 *.c | *.o | *.obj | *.dSYM) ;;
4537 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4541 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4542 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4543 { (exit 1); exit 1; }; }
4546 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4551 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4552 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4553 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4554 ac_build_exeext=$BUILD_EXEEXT
4556 ac_build_prefix=${build_alias}-
4557 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4558 set dummy ${ac_build_prefix}g++; ac_word=$2
4559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4561 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 if test -n "$BUILD_CXX"; then
4565 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4574 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4585 if test -n "$BUILD_CXX"; then
4586 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4587 echo "${ECHO_T}$BUILD_CXX" >&6; }
4589 { echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6; }
4594 if test -z "$BUILD_CXX"; then
4595 # Extract the first word of "g++", so it can be a program name with args.
4596 set dummy g++; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_BUILD_CXX="g++"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623 if test -n "$BUILD_CXX"; then
4624 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625 echo "${ECHO_T}$BUILD_CXX" >&6; }
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4632 if test -z "$BUILD_CXX"; then
4633 # Extract the first word of "c++", so it can be a program name with args.
4634 set dummy c++; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 if test -n "$BUILD_CXX"; then
4641 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4652 ac_prog_rejected=yes
4655 ac_cv_prog_BUILD_CXX="c++"
4656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 if test $ac_prog_rejected = yes; then
4664 # We found a bogon in the path, so make sure we never use it.
4665 set dummy $ac_cv_prog_BUILD_CXX
4667 if test $# != 0; then
4668 # We chose a different compiler from the bogus one.
4669 # However, it has the same basename, so the bogon will be chosen
4670 # first if we set BUILD_CXX to just the basename; use the full file name.
4672 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4677 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4678 if test -n "$BUILD_CXX"; then
4679 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4680 echo "${ECHO_T}$BUILD_CXX" >&6; }
4682 { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4690 LLVM_CROSS_COMPILING=0
4694 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4705 # Check whether --enable-optimized was given.
4706 if test "${enable_optimized+set}" = set; then
4707 enableval=$enable_optimized;
4712 if test ${enableval} = "no" ; then
4716 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4720 # Check whether --enable-profiling was given.
4721 if test "${enable_profiling+set}" = set; then
4722 enableval=$enable_profiling;
4727 if test ${enableval} = "no" ; then
4731 ENABLE_PROFILING=ENABLE_PROFILING=1
4735 # Check whether --enable-assertions was given.
4736 if test "${enable_assertions+set}" = set; then
4737 enableval=$enable_assertions;
4742 if test ${enableval} = "yes" ; then
4746 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4750 # Check whether --enable-expensive-checks was given.
4751 if test "${enable_expensive_checks+set}" = set; then
4752 enableval=$enable_expensive_checks;
4757 if test ${enableval} = "yes" ; then
4758 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4760 EXPENSIVE_CHECKS=yes
4763 ENABLE_EXPENSIVE_CHECKS=
4769 # Check whether --enable-debug-runtime was given.
4770 if test "${enable_debug_runtime+set}" = set; then
4771 enableval=$enable_debug_runtime;
4776 if test ${enableval} = "no" ; then
4780 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4784 # Check whether --enable-debug-symbols was given.
4785 if test "${enable_debug_symbols+set}" = set; then
4786 enableval=$enable_debug_symbols;
4791 if test ${enableval} = "no" ; then
4795 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4799 # Check whether --enable-jit was given.
4800 if test "${enable_jit+set}" = set; then
4801 enableval=$enable_jit;
4806 if test ${enableval} = "no"
4811 case "$llvm_cv_target_arch" in
4812 x86) TARGET_HAS_JIT=1
4814 Sparc) TARGET_HAS_JIT=0
4816 PowerPC) TARGET_HAS_JIT=1
4818 x86_64) TARGET_HAS_JIT=1
4820 Alpha) TARGET_HAS_JIT=1
4822 ARM) TARGET_HAS_JIT=1
4824 Mips) TARGET_HAS_JIT=0
4826 PIC16) TARGET_HAS_JIT=0
4828 XCore) TARGET_HAS_JIT=0
4830 MSP430) TARGET_HAS_JIT=0
4832 SystemZ) TARGET_HAS_JIT=0
4834 Blackfin) TARGET_HAS_JIT=0
4836 MBlaze) TARGET_HAS_JIT=0
4843 # Check whether --enable-doxygen was given.
4844 if test "${enable_doxygen+set}" = set; then
4845 enableval=$enable_doxygen;
4850 case "$enableval" in
4851 yes) ENABLE_DOXYGEN=1
4853 no) ENABLE_DOXYGEN=0
4855 default) ENABLE_DOXYGEN=0
4857 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4858 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4859 { (exit 1); exit 1; }; } ;;
4862 # Check whether --enable-threads was given.
4863 if test "${enable_threads+set}" = set; then
4864 enableval=$enable_threads;
4869 case "$enableval" in
4870 yes) ENABLE_THREADS=1
4872 no) ENABLE_THREADS=0
4874 default) ENABLE_THREADS=1
4876 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4877 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4878 { (exit 1); exit 1; }; } ;;
4881 cat >>confdefs.h <<_ACEOF
4882 #define ENABLE_THREADS $ENABLE_THREADS
4886 # Check whether --enable-pic was given.
4887 if test "${enable_pic+set}" = set; then
4888 enableval=$enable_pic;
4893 case "$enableval" in
4898 default) ENABLE_PIC=1
4900 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4901 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4902 { (exit 1); exit 1; }; } ;;
4905 cat >>confdefs.h <<_ACEOF
4906 #define ENABLE_PIC $ENABLE_PIC
4910 # Check whether --enable-shared was given.
4911 if test "${enable_shared+set}" = set; then
4912 enableval=$enable_shared;
4917 case "$enableval" in
4918 yes) ENABLE_SHARED=1
4922 default) ENABLE_SHARED=0
4924 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4925 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4926 { (exit 1); exit 1; }; } ;;
4929 # Check whether --enable-timestamps was given.
4930 if test "${enable_timestamps+set}" = set; then
4931 enableval=$enable_timestamps;
4936 case "$enableval" in
4937 yes) ENABLE_TIMESTAMPS=1
4939 no) ENABLE_TIMESTAMPS=0
4941 default) ENABLE_TIMESTAMPS=1
4943 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4944 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4945 { (exit 1); exit 1; }; } ;;
4948 cat >>confdefs.h <<_ACEOF
4949 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4954 # Check whether --enable-targets was given.
4955 if test "${enable_targets+set}" = set; then
4956 enableval=$enable_targets;
4961 if test "$enableval" = host-only ; then
4964 case "$enableval" in
4965 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4966 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4968 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4969 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4970 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4971 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4972 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4973 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4974 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4975 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4976 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4977 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4978 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4979 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4980 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4981 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4982 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4983 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4984 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4985 host) case "$llvm_cv_target_arch" in
4986 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4987 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4988 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4989 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4990 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4991 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4992 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4993 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4994 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4995 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4996 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4997 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4998 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4999 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5000 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5001 echo "$as_me: error: Can not set target to build" >&2;}
5002 { (exit 1); exit 1; }; } ;;
5004 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5005 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5006 { (exit 1); exit 1; }; } ;;
5011 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5014 # Determine whether we are building LLVM support for the native architecture.
5015 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5016 for a_target in $TARGETS_TO_BUILD; do
5017 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5018 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5020 cat >>confdefs.h <<_ACEOF
5021 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5027 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5028 # target feature def files.
5029 LLVM_ENUM_TARGETS=""
5030 LLVM_ENUM_ASM_PRINTERS=""
5031 LLVM_ENUM_ASM_PARSERS=""
5032 LLVM_ENUM_DISASSEMBLERS=""
5033 for target_to_build in $TARGETS_TO_BUILD; do
5034 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5035 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5036 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5038 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5039 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5041 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5042 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5050 # Check whether --enable-cbe-printf-a was given.
5051 if test "${enable_cbe_printf_a+set}" = set; then
5052 enableval=$enable_cbe_printf_a;
5057 case "$enableval" in
5058 yes) ENABLE_CBE_PRINTF_A=1
5060 no) ENABLE_CBE_PRINTF_A=0
5062 default) ENABLE_CBE_PRINTF_A=1
5064 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5065 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5066 { (exit 1); exit 1; }; } ;;
5069 cat >>confdefs.h <<_ACEOF
5070 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5075 # Check whether --with-llvmgccdir was given.
5076 if test "${with_llvmgccdir+set}" = set; then
5077 withval=$with_llvmgccdir;
5083 default) WITH_LLVMGCCDIR=default ;;
5084 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5085 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5086 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5087 { (exit 1); exit 1; }; } ;;
5091 # Check whether --with-llvmgcc was given.
5092 if test "${with_llvmgcc+set}" = set; then
5093 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5099 # Check whether --with-llvmgxx was given.
5100 if test "${with_llvmgxx+set}" = set; then
5101 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5106 if test -n "$LLVMGCC"; then
5107 LLVMGCCCOMMAND="$LLVMGCC"
5110 if test -n "$LLVMGXX"; then
5111 LLVMGXXCOMMAND="$LLVMGXX"
5114 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5115 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5116 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5117 { (exit 1); exit 1; }; };
5120 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5121 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5122 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5123 { (exit 1); exit 1; }; };
5127 # Check whether --with-clang was given.
5128 if test "${with_clang+set}" = set; then
5129 withval=$with_clang;
5136 # Check whether --with-built-clang was given.
5137 if test "${with_built_clang+set}" = set; then
5138 withval=$with_built_clang;
5140 with_built_clang=check
5144 { echo "$as_me:$LINENO: checking clang compiler" >&5
5145 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5148 if test "$with_clang" != "default"; then
5149 WITH_CLANGPATH="$with_clang"
5150 if ! test -x "$WITH_CLANGPATH"; then
5151 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5152 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5153 { (exit 1); exit 1; }; }
5155 elif test "$with_built_clang" = "yes"; then
5157 elif test "$with_built_clang" = "no"; then
5160 if test "$with_built_clang" != "check"; then
5161 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5162 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5163 { (exit 1); exit 1; }; }
5166 if test -f ${srcdir}/tools/clang/README.txt; then
5171 if ! test -z "$WITH_CLANGPATH"; then
5172 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5173 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5174 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5175 elif test "$WITH_BUILT_CLANG" = "1"; then
5176 { echo "$as_me:$LINENO: result: built" >&5
5177 echo "${ECHO_T}built" >&6; }
5179 { echo "$as_me:$LINENO: result: none" >&5
5180 echo "${ECHO_T}none" >&6; }
5182 CLANGPATH=$WITH_CLANGPATH
5184 CLANGXXPATH=$WITH_CLANGXXPATH
5186 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5190 # Check whether --with-optimize-option was given.
5191 if test "${with_optimize_option+set}" = set; then
5192 withval=$with_optimize_option;
5197 { echo "$as_me:$LINENO: checking optimization flags" >&5
5198 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5201 case "$llvm_cv_os_type" in
5202 FreeBSD) optimize_option=-O2 ;;
5203 MingW) optimize_option=-O2 ;;
5204 *) optimize_option=-O3 ;;
5206 *) optimize_option="$withval" ;;
5208 OPTIMIZE_OPTION=$optimize_option
5210 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5211 echo "${ECHO_T}$optimize_option" >&6; }
5214 # Check whether --with-extra-options was given.
5215 if test "${with_extra_options+set}" = set; then
5216 withval=$with_extra_options;
5222 default) EXTRA_OPTIONS= ;;
5223 *) EXTRA_OPTIONS=$withval ;;
5225 EXTRA_OPTIONS=$EXTRA_OPTIONS
5228 # Check whether --enable-bindings was given.
5229 if test "${enable_bindings+set}" = set; then
5230 enableval=$enable_bindings;
5235 BINDINGS_TO_BUILD=""
5236 case "$enableval" in
5237 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5238 all ) BINDINGS_TO_BUILD="ocaml" ;;
5239 none | no) BINDINGS_TO_BUILD="" ;;
5240 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5241 case "$a_binding" in
5242 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5243 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5244 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5252 # Check whether --with-ocaml-libdir was given.
5253 if test "${with_ocaml_libdir+set}" = set; then
5254 withval=$with_ocaml_libdir;
5260 auto) with_ocaml_libdir="$withval" ;;
5261 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5262 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5263 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5268 # Check whether --with-c-include-dirs was given.
5269 if test "${with_c_include_dirs+set}" = set; then
5270 withval=$with_c_include_dirs;
5276 cat >>confdefs.h <<_ACEOF
5277 #define C_INCLUDE_DIRS "$withval"
5282 # Check whether --with-cxx-include-root was given.
5283 if test "${with_cxx_include_root+set}" = set; then
5284 withval=$with_cxx_include_root;
5290 cat >>confdefs.h <<_ACEOF
5291 #define CXX_INCLUDE_ROOT "$withval"
5296 # Check whether --with-cxx-include-arch was given.
5297 if test "${with_cxx_include_arch+set}" = set; then
5298 withval=$with_cxx_include_arch;
5304 cat >>confdefs.h <<_ACEOF
5305 #define CXX_INCLUDE_ARCH "$withval"
5310 # Check whether --with-cxx-include-32bit-dir was given.
5311 if test "${with_cxx_include_32bit_dir+set}" = set; then
5312 withval=$with_cxx_include_32bit_dir;
5318 cat >>confdefs.h <<_ACEOF
5319 #define CXX_INCLUDE_32BIT_DIR "$withval"
5324 # Check whether --with-cxx-include-64bit-dir was given.
5325 if test "${with_cxx_include_64bit_dir+set}" = set; then
5326 withval=$with_cxx_include_64bit_dir;
5332 cat >>confdefs.h <<_ACEOF
5333 #define CXX_INCLUDE_64BIT_DIR "$withval"
5338 # Check whether --with-binutils-include was given.
5339 if test "${with_binutils_include+set}" = set; then
5340 withval=$with_binutils_include;
5346 default) WITH_BINUTILS_INCDIR=default ;;
5347 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5348 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5349 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5350 { (exit 1); exit 1; }; } ;;
5352 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5353 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5355 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5356 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5357 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5358 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5359 { (exit 1); exit 1; }; };
5363 # Check whether --enable-libffi was given.
5364 if test "${enable_libffi+set}" = set; then
5365 enableval=$enable_libffi; case "$enableval" in
5366 yes) llvm_cv_enable_libffi="yes" ;;
5367 no) llvm_cv_enable_libffi="no" ;;
5368 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5369 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5370 { (exit 1); exit 1; }; } ;;
5373 llvm_cv_enable_libffi=no
5377 if test "$llvm_cv_os_type" = "Win32" ; then
5383 # Check whether --enable-llvmc-dynamic was given.
5384 if test "${enable_llvmc_dynamic+set}" = set; then
5385 enableval=$enable_llvmc_dynamic;
5387 enableval=$llvmc_dynamic
5390 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5391 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5394 ENABLE_LLVMC_DYNAMIC=
5398 # Check whether --enable-llvmc-dynamic-plugins was given.
5399 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5400 enableval=$enable_llvmc_dynamic_plugins;
5405 if test ${enableval} = "yes" ; then
5406 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5409 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5415 ac_cpp='$CPP $CPPFLAGS'
5416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5419 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5420 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5421 # On Suns, sometimes $CPP names a directory.
5422 if test -n "$CPP" && test -d "$CPP"; then
5425 if test -z "$CPP"; then
5426 if test "${ac_cv_prog_CPP+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 # Double quotes because CPP needs to be expanded
5430 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5433 for ac_c_preproc_warn_flag in '' yes
5435 # Use a header file that comes with gcc, so configuring glibc
5436 # with a fresh cross-compiler works.
5437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438 # <limits.h> exists even on freestanding compilers.
5439 # On the NeXT, cc -E runs the code through the compiler's parser,
5440 # not just through cpp. "Syntax error" is here to catch this case.
5441 cat >conftest.$ac_ext <<_ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5448 # include <limits.h>
5450 # include <assert.h>
5454 if { (ac_try="$ac_cpp conftest.$ac_ext"
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5462 grep -v '^ *+' conftest.er1 >conftest.err
5464 cat conftest.err >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } >/dev/null; then
5467 if test -s conftest.err; then
5468 ac_cpp_err=$ac_c_preproc_warn_flag
5469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5476 if test -z "$ac_cpp_err"; then
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 # Broken: fails on valid input.
5486 rm -f conftest.err conftest.$ac_ext
5488 # OK, works on sane cases. Now check whether nonexistent headers
5489 # can be detected and how.
5490 cat >conftest.$ac_ext <<_ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 #include <ac_nonexistent.h>
5498 if { (ac_try="$ac_cpp conftest.$ac_ext"
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5506 grep -v '^ *+' conftest.er1 >conftest.err
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } >/dev/null; then
5511 if test -s conftest.err; then
5512 ac_cpp_err=$ac_c_preproc_warn_flag
5513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5520 if test -z "$ac_cpp_err"; then
5521 # Broken: success on invalid input.
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5527 # Passes both tests.
5532 rm -f conftest.err conftest.$ac_ext
5535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5536 rm -f conftest.err conftest.$ac_ext
5537 if $ac_preproc_ok; then
5549 { echo "$as_me:$LINENO: result: $CPP" >&5
5550 echo "${ECHO_T}$CPP" >&6; }
5552 for ac_c_preproc_warn_flag in '' yes
5554 # Use a header file that comes with gcc, so configuring glibc
5555 # with a fresh cross-compiler works.
5556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5557 # <limits.h> exists even on freestanding compilers.
5558 # On the NeXT, cc -E runs the code through the compiler's parser,
5559 # not just through cpp. "Syntax error" is here to catch this case.
5560 cat >conftest.$ac_ext <<_ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5567 # include <limits.h>
5569 # include <assert.h>
5573 if { (ac_try="$ac_cpp conftest.$ac_ext"
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5581 grep -v '^ *+' conftest.er1 >conftest.err
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } >/dev/null; then
5586 if test -s conftest.err; then
5587 ac_cpp_err=$ac_c_preproc_warn_flag
5588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5595 if test -z "$ac_cpp_err"; then
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5601 # Broken: fails on valid input.
5605 rm -f conftest.err conftest.$ac_ext
5607 # OK, works on sane cases. Now check whether nonexistent headers
5608 # can be detected and how.
5609 cat >conftest.$ac_ext <<_ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 #include <ac_nonexistent.h>
5617 if { (ac_try="$ac_cpp conftest.$ac_ext"
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5625 grep -v '^ *+' conftest.er1 >conftest.err
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } >/dev/null; then
5630 if test -s conftest.err; then
5631 ac_cpp_err=$ac_c_preproc_warn_flag
5632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5639 if test -z "$ac_cpp_err"; then
5640 # Broken: success on invalid input.
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5646 # Passes both tests.
5651 rm -f conftest.err conftest.$ac_ext
5654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5655 rm -f conftest.err conftest.$ac_ext
5656 if $ac_preproc_ok; then
5659 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5660 See \`config.log' for more details." >&5
5661 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5662 See \`config.log' for more details." >&2;}
5663 { (exit 1); exit 1; }; }
5667 ac_cpp='$CPP $CPPFLAGS'
5668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5673 ac_cpp='$CPP $CPPFLAGS'
5674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677 if test -n "$ac_tool_prefix"; then
5680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5684 if test "${ac_cv_prog_CC+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 if test -n "$CC"; then
5688 ac_cv_prog_CC="$CC" # Let the user override the test.
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 if test -n "$CC"; then
5709 { echo "$as_me:$LINENO: result: $CC" >&5
5710 echo "${ECHO_T}$CC" >&6; }
5712 { echo "$as_me:$LINENO: result: no" >&5
5713 echo "${ECHO_T}no" >&6; }
5717 test -n "$CC" && break
5720 if test -z "$CC"; then
5724 # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 if test -n "$ac_ct_CC"; then
5732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5741 ac_cv_prog_ac_ct_CC="$ac_prog"
5742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5752 if test -n "$ac_ct_CC"; then
5753 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5754 echo "${ECHO_T}$ac_ct_CC" >&6; }
5756 { echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6; }
5761 test -n "$ac_ct_CC" && break
5764 if test "x$ac_ct_CC" = x; then
5767 case $cross_compiling:$ac_tool_warned in
5769 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5770 whose name does not start with the host triplet. If you think this
5771 configuration is useful to you, please write to autoconf@gnu.org." >&5
5772 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5773 whose name does not start with the host triplet. If you think this
5774 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5775 ac_tool_warned=yes ;;
5782 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5783 See \`config.log' for more details." >&5
5784 echo "$as_me: error: no acceptable C compiler found in \$PATH
5785 See \`config.log' for more details." >&2;}
5786 { (exit 1); exit 1; }; }
5788 # Provide some information about the compiler.
5789 echo "$as_me:$LINENO: checking for C compiler version" >&5
5790 ac_compiler=`set X $ac_compile; echo $2`
5791 { (ac_try="$ac_compiler --version >&5"
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compiler --version >&5") 2>&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }
5801 { (ac_try="$ac_compiler -v >&5"
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_compiler -v >&5") 2>&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }
5811 { (ac_try="$ac_compiler -V >&5"
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_compiler -V >&5") 2>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }
5822 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5823 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5824 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 cat >conftest.$ac_ext <<_ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5845 rm -f conftest.$ac_objext
5846 if { (ac_try="$ac_compile"
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_compile") 2>conftest.er1
5854 grep -v '^ *+' conftest.er1 >conftest.err
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } &&
5859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5860 { (case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_try") 2>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest.$ac_objext'
5870 { (case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_try") 2>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5891 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5892 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5893 GCC=`test $ac_compiler_gnu = yes && echo yes`
5894 ac_test_CFLAGS=${CFLAGS+set}
5895 ac_save_CFLAGS=$CFLAGS
5896 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5897 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5898 if test "${ac_cv_prog_cc_g+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 ac_save_c_werror_flag=$ac_c_werror_flag
5902 ac_c_werror_flag=yes
5905 cat >conftest.$ac_ext <<_ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5920 rm -f conftest.$ac_objext
5921 if { (ac_try="$ac_compile"
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compile") 2>conftest.er1
5929 grep -v '^ *+' conftest.er1 >conftest.err
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5935 { (case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_try") 2>&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_try") 2>&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5960 cat >conftest.$ac_ext <<_ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5975 rm -f conftest.$ac_objext
5976 if { (ac_try="$ac_compile"
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5990 { (case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_try") 2>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 ac_c_werror_flag=$ac_save_c_werror_flag
6016 cat >conftest.$ac_ext <<_ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6031 rm -f conftest.$ac_objext
6032 if { (ac_try="$ac_compile"
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_compile") 2>conftest.er1
6040 grep -v '^ *+' conftest.er1 >conftest.err
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } &&
6045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6046 { (case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_try") 2>&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; } &&
6055 { ac_try='test -s conftest.$ac_objext'
6056 { (case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_try") 2>&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 ac_c_werror_flag=$ac_save_c_werror_flag
6082 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6083 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6084 if test "$ac_test_CFLAGS" = set; then
6085 CFLAGS=$ac_save_CFLAGS
6086 elif test $ac_cv_prog_cc_g = yes; then
6087 if test "$GCC" = yes; then
6093 if test "$GCC" = yes; then
6099 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6100 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6101 if test "${ac_cv_prog_cc_c89+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 ac_cv_prog_cc_c89=no
6106 cat >conftest.$ac_ext <<_ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6114 #include <sys/types.h>
6115 #include <sys/stat.h>
6116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6117 struct buf { int x; };
6118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6119 static char *e (p, i)
6125 static char *f (char * (*g) (char **, int), char **p, ...)
6130 s = g (p, va_arg (v,int));
6135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6136 function prototypes and stuff, but not '\xHH' hex character constants.
6137 These don't provoke an error unfortunately, instead are silently treated
6138 as 'x'. The following induces an error, until -std is added to get
6139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6140 array size at least. It's necessary to write '\x00'==0 to get something
6141 that's true only with -std. */
6142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6144 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6145 inside strings and character constants. */
6147 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6149 int test (int i, double x);
6150 struct s1 {int (*f) (int a);};
6151 struct s2 {int (*f) (double a);};
6152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6163 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6164 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6166 CC="$ac_save_CC $ac_arg"
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6182 { (case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_try") 2>&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; } &&
6191 { ac_try='test -s conftest.$ac_objext'
6192 { (case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_try") 2>&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_prog_cc_c89=$ac_arg
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6209 rm -f core conftest.err conftest.$ac_objext
6210 test "x$ac_cv_prog_cc_c89" != "xno" && break
6212 rm -f conftest.$ac_ext
6217 case "x$ac_cv_prog_cc_c89" in
6219 { echo "$as_me:$LINENO: result: none needed" >&5
6220 echo "${ECHO_T}none needed" >&6; } ;;
6222 { echo "$as_me:$LINENO: result: unsupported" >&5
6223 echo "${ECHO_T}unsupported" >&6; } ;;
6225 CC="$CC $ac_cv_prog_cc_c89"
6226 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6227 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6232 ac_cpp='$CPP $CPPFLAGS'
6233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6238 ac_cpp='$CXXCPP $CPPFLAGS'
6239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6242 if test -z "$CXX"; then
6243 if test -n "$CCC"; then
6246 if test -n "$ac_tool_prefix"; then
6249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6253 if test "${ac_cv_prog_CXX+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 if test -n "$CXX"; then
6257 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 if test -n "$CXX"; then
6278 { echo "$as_me:$LINENO: result: $CXX" >&5
6279 echo "${ECHO_T}$CXX" >&6; }
6281 { echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6; }
6286 test -n "$CXX" && break
6289 if test -z "$CXX"; then
6293 # Extract the first word of "$ac_prog", so it can be a program name with args.
6294 set dummy $ac_prog; ac_word=$2
6295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6297 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 if test -n "$ac_ct_CXX"; then
6301 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_prog_ac_ct_CXX="$ac_prog"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6321 if test -n "$ac_ct_CXX"; then
6322 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6323 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6325 { echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6; }
6330 test -n "$ac_ct_CXX" && break
6333 if test "x$ac_ct_CXX" = x; then
6336 case $cross_compiling:$ac_tool_warned in
6338 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6339 whose name does not start with the host triplet. If you think this
6340 configuration is useful to you, please write to autoconf@gnu.org." >&5
6341 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6342 whose name does not start with the host triplet. If you think this
6343 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6344 ac_tool_warned=yes ;;
6352 # Provide some information about the compiler.
6353 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6354 ac_compiler=`set X $ac_compile; echo $2`
6355 { (ac_try="$ac_compiler --version >&5"
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$ac_compiler --version >&5") 2>&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }
6365 { (ac_try="$ac_compiler -v >&5"
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compiler -v >&5") 2>&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }
6375 { (ac_try="$ac_compiler -V >&5"
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compiler -V >&5") 2>&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }
6386 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6387 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6388 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 cat >conftest.$ac_ext <<_ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6409 rm -f conftest.$ac_objext
6410 if { (ac_try="$ac_compile"
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_compile") 2>conftest.er1
6418 grep -v '^ *+' conftest.er1 >conftest.err
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6424 { (case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_try") 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (case "(($ac_try" in
6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 (eval "$ac_try") 2>&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6455 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6456 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6457 GXX=`test $ac_compiler_gnu = yes && echo yes`
6458 ac_test_CXXFLAGS=${CXXFLAGS+set}
6459 ac_save_CXXFLAGS=$CXXFLAGS
6460 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6461 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6462 if test "${ac_cv_prog_cxx_g+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6466 ac_cxx_werror_flag=yes
6469 cat >conftest.$ac_ext <<_ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6484 rm -f conftest.$ac_objext
6485 if { (ac_try="$ac_compile"
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491 (eval "$ac_compile") 2>conftest.er1
6493 grep -v '^ *+' conftest.er1 >conftest.err
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6499 { (case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504 (eval "$ac_try") 2>&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; } &&
6508 { ac_try='test -s conftest.$ac_objext'
6509 { (case "(($ac_try" in
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514 (eval "$ac_try") 2>&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 ac_cv_prog_cxx_g=yes
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6524 cat >conftest.$ac_ext <<_ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6539 rm -f conftest.$ac_objext
6540 if { (ac_try="$ac_compile"
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6548 grep -v '^ *+' conftest.er1 >conftest.err
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6554 { (case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_try") 2>&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest.$ac_objext'
6564 { (case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_try") 2>&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6595 rm -f conftest.$ac_objext
6596 if { (ac_try="$ac_compile"
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_compile") 2>conftest.er1
6604 grep -v '^ *+' conftest.er1 >conftest.err
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6610 { (case "(($ac_try" in
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615 (eval "$ac_try") 2>&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; } &&
6619 { ac_try='test -s conftest.$ac_objext'
6620 { (case "(($ac_try" in
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625 (eval "$ac_try") 2>&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6629 ac_cv_prog_cxx_g=yes
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6647 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6648 if test "$ac_test_CXXFLAGS" = set; then
6649 CXXFLAGS=$ac_save_CXXFLAGS
6650 elif test $ac_cv_prog_cxx_g = yes; then
6651 if test "$GXX" = yes; then
6657 if test "$GXX" = yes; then
6664 ac_cpp='$CPP $CPPFLAGS'
6665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6670 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6671 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6672 if test "${lt_cv_path_NM+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 if test -n "$NM"; then
6676 # Let the user override the test.
6679 lt_nm_to_check="${ac_tool_prefix}nm"
6680 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6681 lt_nm_to_check="$lt_nm_to_check nm"
6683 for lt_tmp_nm in $lt_nm_to_check; do
6684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6685 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6687 test -z "$ac_dir" && ac_dir=.
6688 tmp_nm="$ac_dir/$lt_tmp_nm"
6689 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6690 # Check to see if the nm accepts a BSD-compat flag.
6691 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6692 # nm: unknown option "B" ignored
6693 # Tru64's nm complains that /dev/null is an invalid object file
6694 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6695 */dev/null* | *'Invalid file or object type'*)
6696 lt_cv_path_NM="$tmp_nm -B"
6700 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6702 lt_cv_path_NM="$tmp_nm -p"
6706 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6707 continue # so that we can try to find one that supports BSD flags
6716 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6719 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6720 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6725 { echo "$as_me:$LINENO: checking for GNU make" >&5
6726 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6727 if test "${llvm_cv_gnu_make_command+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 llvm_cv_gnu_make_command=''
6731 for a in "$MAKE" make gmake gnumake ; do
6732 if test -z "$a" ; then continue ; fi ;
6733 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6735 llvm_cv_gnu_make_command=$a ;
6740 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6741 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6742 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6746 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6747 echo "${ECHO_T}\"Not found\"" >&6; };
6751 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6752 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6754 if test "$LN_S" = "ln -s"; then
6755 { echo "$as_me:$LINENO: result: yes" >&5
6756 echo "${ECHO_T}yes" >&6; }
6758 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6759 echo "${ECHO_T}no, using $LN_S" >&6; }
6762 # Extract the first word of "cmp", so it can be a program name with args.
6763 set dummy cmp; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_CMP+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6794 if test -n "$CMP"; then
6795 { echo "$as_me:$LINENO: result: $CMP" >&5
6796 echo "${ECHO_T}$CMP" >&6; }
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6803 # Extract the first word of "cp", so it can be a program name with args.
6804 set dummy cp; ac_word=$2
6805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807 if test "${ac_cv_path_CP+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6835 if test -n "$CP"; then
6836 { echo "$as_me:$LINENO: result: $CP" >&5
6837 echo "${ECHO_T}$CP" >&6; }
6839 { echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6; }
6844 # Extract the first word of "date", so it can be a program name with args.
6845 set dummy date; ac_word=$2
6846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848 if test "${ac_cv_path_DATE+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6875 DATE=$ac_cv_path_DATE
6876 if test -n "$DATE"; then
6877 { echo "$as_me:$LINENO: result: $DATE" >&5
6878 echo "${ECHO_T}$DATE" >&6; }
6880 { echo "$as_me:$LINENO: result: no" >&5
6881 echo "${ECHO_T}no" >&6; }
6885 # Extract the first word of "find", so it can be a program name with args.
6886 set dummy find; ac_word=$2
6887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6889 if test "${ac_cv_path_FIND+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6904 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6916 FIND=$ac_cv_path_FIND
6917 if test -n "$FIND"; then
6918 { echo "$as_me:$LINENO: result: $FIND" >&5
6919 echo "${ECHO_T}$FIND" >&6; }
6921 { echo "$as_me:$LINENO: result: no" >&5
6922 echo "${ECHO_T}no" >&6; }
6926 # Extract the first word of "grep", so it can be a program name with args.
6927 set dummy grep; ac_word=$2
6928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6930 if test "${ac_cv_path_GREP+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6957 GREP=$ac_cv_path_GREP
6958 if test -n "$GREP"; then
6959 { echo "$as_me:$LINENO: result: $GREP" >&5
6960 echo "${ECHO_T}$GREP" >&6; }
6962 { echo "$as_me:$LINENO: result: no" >&5
6963 echo "${ECHO_T}no" >&6; }
6967 # Extract the first word of "mkdir", so it can be a program name with args.
6968 set dummy mkdir; ac_word=$2
6969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6971 if test "${ac_cv_path_MKDIR+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6986 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6998 MKDIR=$ac_cv_path_MKDIR
6999 if test -n "$MKDIR"; then
7000 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7001 echo "${ECHO_T}$MKDIR" >&6; }
7003 { echo "$as_me:$LINENO: result: no" >&5
7004 echo "${ECHO_T}no" >&6; }
7008 # Extract the first word of "mv", so it can be a program name with args.
7009 set dummy mv; ac_word=$2
7010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7012 if test "${ac_cv_path_MV+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7040 if test -n "$MV"; then
7041 { echo "$as_me:$LINENO: result: $MV" >&5
7042 echo "${ECHO_T}$MV" >&6; }
7044 { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7049 if test -n "$ac_tool_prefix"; then
7050 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7051 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7054 if test "${ac_cv_prog_RANLIB+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 if test -n "$RANLIB"; then
7058 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7067 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 RANLIB=$ac_cv_prog_RANLIB
7078 if test -n "$RANLIB"; then
7079 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7080 echo "${ECHO_T}$RANLIB" >&6; }
7082 { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7088 if test -z "$ac_cv_prog_RANLIB"; then
7089 ac_ct_RANLIB=$RANLIB
7090 # Extract the first word of "ranlib", so it can be a program name with args.
7091 set dummy ranlib; ac_word=$2
7092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 if test -n "$ac_ct_RANLIB"; then
7098 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_prog_ac_ct_RANLIB="ranlib"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7118 if test -n "$ac_ct_RANLIB"; then
7119 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7120 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7122 { echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6; }
7126 if test "x$ac_ct_RANLIB" = x; then
7129 case $cross_compiling:$ac_tool_warned in
7131 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7132 whose name does not start with the host triplet. If you think this
7133 configuration is useful to you, please write to autoconf@gnu.org." >&5
7134 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7135 whose name does not start with the host triplet. If you think this
7136 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7137 ac_tool_warned=yes ;;
7139 RANLIB=$ac_ct_RANLIB
7142 RANLIB="$ac_cv_prog_RANLIB"
7145 if test -n "$ac_tool_prefix"; then
7146 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}ar; ac_word=$2
7148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150 if test "${ac_cv_prog_AR+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 if test -n "$AR"; then
7154 ac_cv_prog_AR="$AR" # Let the user override the test.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_prog_AR="${ac_tool_prefix}ar"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 if test -n "$AR"; then
7175 { echo "$as_me:$LINENO: result: $AR" >&5
7176 echo "${ECHO_T}$AR" >&6; }
7178 { echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6; }
7184 if test -z "$ac_cv_prog_AR"; then
7186 # Extract the first word of "ar", so it can be a program name with args.
7187 set dummy ar; ac_word=$2
7188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7190 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 if test -n "$ac_ct_AR"; then
7194 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_prog_ac_ct_AR="ar"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7214 if test -n "$ac_ct_AR"; then
7215 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7216 echo "${ECHO_T}$ac_ct_AR" >&6; }
7218 { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7222 if test "x$ac_ct_AR" = x; then
7225 case $cross_compiling:$ac_tool_warned in
7227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7228 whose name does not start with the host triplet. If you think this
7229 configuration is useful to you, please write to autoconf@gnu.org." >&5
7230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7231 whose name does not start with the host triplet. If you think this
7232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7233 ac_tool_warned=yes ;;
7241 # Extract the first word of "rm", so it can be a program name with args.
7242 set dummy rm; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_path_RM+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7273 if test -n "$RM"; then
7274 { echo "$as_me:$LINENO: result: $RM" >&5
7275 echo "${ECHO_T}$RM" >&6; }
7277 { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7282 # Extract the first word of "sed", so it can be a program name with args.
7283 set dummy sed; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_SED+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7314 if test -n "$SED"; then
7315 { echo "$as_me:$LINENO: result: $SED" >&5
7316 echo "${ECHO_T}$SED" >&6; }
7318 { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7323 # Extract the first word of "tar", so it can be a program name with args.
7324 set dummy tar; ac_word=$2
7325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7327 if test "${ac_cv_path_TAR+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7342 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7355 if test -n "$TAR"; then
7356 { echo "$as_me:$LINENO: result: $TAR" >&5
7357 echo "${ECHO_T}$TAR" >&6; }
7359 { echo "$as_me:$LINENO: result: no" >&5
7360 echo "${ECHO_T}no" >&6; }
7364 # Extract the first word of "pwd", so it can be a program name with args.
7365 set dummy pwd; ac_word=$2
7366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368 if test "${ac_cv_path_BINPWD+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7383 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7395 BINPWD=$ac_cv_path_BINPWD
7396 if test -n "$BINPWD"; then
7397 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7398 echo "${ECHO_T}$BINPWD" >&6; }
7400 { echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6; }
7406 # Extract the first word of "Graphviz", so it can be a program name with args.
7407 set dummy Graphviz; ac_word=$2
7408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7437 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7438 if test -n "$GRAPHVIZ"; then
7439 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7440 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7442 { echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6; }
7447 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7449 cat >>confdefs.h <<\_ACEOF
7450 #define HAVE_GRAPHVIZ 1
7453 if test "$llvm_cv_os_type" = "MingW" ; then
7454 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7457 cat >>confdefs.h <<_ACEOF
7458 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7462 # Extract the first word of "dot", so it can be a program name with args.
7463 set dummy dot; ac_word=$2
7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466 if test "${ac_cv_path_DOT+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7494 if test -n "$DOT"; then
7495 { echo "$as_me:$LINENO: result: $DOT" >&5
7496 echo "${ECHO_T}$DOT" >&6; }
7498 { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7503 if test "$DOT" != "echo dot" ; then
7505 cat >>confdefs.h <<\_ACEOF
7509 if test "$llvm_cv_os_type" = "MingW" ; then
7510 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7513 cat >>confdefs.h <<_ACEOF
7514 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7518 # Extract the first word of "fdp", so it can be a program name with args.
7519 set dummy fdp; ac_word=$2
7520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7522 if test "${ac_cv_path_FDP+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7537 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7550 if test -n "$FDP"; then
7551 { echo "$as_me:$LINENO: result: $FDP" >&5
7552 echo "${ECHO_T}$FDP" >&6; }
7554 { echo "$as_me:$LINENO: result: no" >&5
7555 echo "${ECHO_T}no" >&6; }
7559 if test "$FDP" != "echo fdp" ; then
7561 cat >>confdefs.h <<\_ACEOF
7565 if test "$llvm_cv_os_type" = "MingW" ; then
7566 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7569 cat >>confdefs.h <<_ACEOF
7570 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7574 # Extract the first word of "neato", so it can be a program name with args.
7575 set dummy neato; ac_word=$2
7576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578 if test "${ac_cv_path_NEATO+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7605 NEATO=$ac_cv_path_NEATO
7606 if test -n "$NEATO"; then
7607 { echo "$as_me:$LINENO: result: $NEATO" >&5
7608 echo "${ECHO_T}$NEATO" >&6; }
7610 { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7615 if test "$NEATO" != "echo neato" ; then
7617 cat >>confdefs.h <<\_ACEOF
7618 #define HAVE_NEATO 1
7621 if test "$llvm_cv_os_type" = "MingW" ; then
7622 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7625 cat >>confdefs.h <<_ACEOF
7626 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7630 # Extract the first word of "twopi", so it can be a program name with args.
7631 set dummy twopi; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_TWOPI+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7661 TWOPI=$ac_cv_path_TWOPI
7662 if test -n "$TWOPI"; then
7663 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7664 echo "${ECHO_T}$TWOPI" >&6; }
7666 { echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6; }
7671 if test "$TWOPI" != "echo twopi" ; then
7673 cat >>confdefs.h <<\_ACEOF
7674 #define HAVE_TWOPI 1
7677 if test "$llvm_cv_os_type" = "MingW" ; then
7678 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7681 cat >>confdefs.h <<_ACEOF
7682 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7686 # Extract the first word of "circo", so it can be a program name with args.
7687 set dummy circo; ac_word=$2
7688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7690 if test "${ac_cv_path_CIRCO+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7705 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7717 CIRCO=$ac_cv_path_CIRCO
7718 if test -n "$CIRCO"; then
7719 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7720 echo "${ECHO_T}$CIRCO" >&6; }
7722 { echo "$as_me:$LINENO: result: no" >&5
7723 echo "${ECHO_T}no" >&6; }
7727 if test "$CIRCO" != "echo circo" ; then
7729 cat >>confdefs.h <<\_ACEOF
7730 #define HAVE_CIRCO 1
7733 if test "$llvm_cv_os_type" = "MingW" ; then
7734 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7737 cat >>confdefs.h <<_ACEOF
7738 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7742 for ac_prog in gv gsview32
7744 # Extract the first word of "$ac_prog", so it can be a program name with args.
7745 set dummy $ac_prog; ac_word=$2
7746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748 if test "${ac_cv_path_GV+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7763 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 if test -n "$GV"; then
7776 { echo "$as_me:$LINENO: result: $GV" >&5
7777 echo "${ECHO_T}$GV" >&6; }
7779 { echo "$as_me:$LINENO: result: no" >&5
7780 echo "${ECHO_T}no" >&6; }
7784 test -n "$GV" && break
7786 test -n "$GV" || GV="echo gv"
7788 if test "$GV" != "echo gv" ; then
7790 cat >>confdefs.h <<\_ACEOF
7794 if test "$llvm_cv_os_type" = "MingW" ; then
7795 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7798 cat >>confdefs.h <<_ACEOF
7799 #define LLVM_PATH_GV "$GV${EXEEXT}"
7803 # Extract the first word of "dotty", so it can be a program name with args.
7804 set dummy dotty; ac_word=$2
7805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7807 if test "${ac_cv_path_DOTTY+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7834 DOTTY=$ac_cv_path_DOTTY
7835 if test -n "$DOTTY"; then
7836 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7837 echo "${ECHO_T}$DOTTY" >&6; }
7839 { echo "$as_me:$LINENO: result: no" >&5
7840 echo "${ECHO_T}no" >&6; }
7844 if test "$DOTTY" != "echo dotty" ; then
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_DOTTY 1
7850 if test "$llvm_cv_os_type" = "MingW" ; then
7851 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7854 cat >>confdefs.h <<_ACEOF
7855 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7861 # Extract the first word of "perl", so it can be a program name with args.
7862 set dummy perl; ac_word=$2
7863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7865 if test "${ac_cv_path_PERL+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7880 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7892 PERL=$ac_cv_path_PERL
7893 if test -n "$PERL"; then
7894 { echo "$as_me:$LINENO: result: $PERL" >&5
7895 echo "${ECHO_T}$PERL" >&6; }
7897 { echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6; }
7902 if test "$PERL" != "none"; then
7903 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7904 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7905 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7906 { echo "$as_me:$LINENO: result: yes" >&5
7907 echo "${ECHO_T}yes" >&6; }
7910 { echo "$as_me:$LINENO: result: not found" >&5
7911 echo "${ECHO_T}not found" >&6; }
7916 if test x"$PERL" = xnone; then
7919 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7920 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7921 { (exit 1); exit 1; }; }
7927 # Find a good install program. We prefer a C program (faster),
7928 # so one script is as good as another. But avoid the broken or
7929 # incompatible versions:
7930 # SysV /etc/install, /usr/sbin/install
7931 # SunOS /usr/etc/install
7932 # IRIX /sbin/install
7934 # AmigaOS /C/install, which installs bootblocks on floppy discs
7935 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7936 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7937 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7938 # OS/2's system install, which has a completely different semantic
7939 # ./install, which can be erroneously created by make from ./install.sh.
7940 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7941 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7942 if test -z "$INSTALL"; then
7943 if test "${ac_cv_path_install+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 test -z "$as_dir" && as_dir=.
7951 # Account for people who put trailing slashes in PATH elements.
7953 ./ | .// | /cC/* | \
7954 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7955 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7958 # OSF1 and SCO ODT 3.0 have their own names for install.
7959 # Don't use installbsd from OSF since it installs stuff as root
7961 for ac_prog in ginstall scoinst install; do
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7964 if test $ac_prog = install &&
7965 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7966 # AIX install. It has an incompatible calling convention.
7968 elif test $ac_prog = install &&
7969 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7970 # program-specific install script used by HP pwplus--don't use.
7973 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7986 if test "${ac_cv_path_install+set}" = set; then
7987 INSTALL=$ac_cv_path_install
7989 # As a last resort, use the slow shell script. Don't cache a
7990 # value for INSTALL within a source directory, because that will
7991 # break other packages using the cache if that directory is
7992 # removed, or if the value is a relative name.
7993 INSTALL=$ac_install_sh
7996 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7997 echo "${ECHO_T}$INSTALL" >&6; }
7999 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8000 # It thinks the first close brace ends the variable substitution.
8001 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8003 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8005 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8008 # Extract the first word of "bzip2", so it can be a program name with args.
8009 set dummy bzip2; ac_word=$2
8010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012 if test "${ac_cv_path_BZIP2+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 BZIP2=$ac_cv_path_BZIP2
8039 if test -n "$BZIP2"; then
8040 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8041 echo "${ECHO_T}$BZIP2" >&6; }
8043 { echo "$as_me:$LINENO: result: no" >&5
8044 echo "${ECHO_T}no" >&6; }
8048 # Extract the first word of "cat", so it can be a program name with args.
8049 set dummy cat; ac_word=$2
8050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052 if test "${ac_cv_path_CAT+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 if test -n "$CAT"; then
8080 { echo "$as_me:$LINENO: result: $CAT" >&5
8081 echo "${ECHO_T}$CAT" >&6; }
8083 { echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6; }
8088 # Extract the first word of "doxygen", so it can be a program name with args.
8089 set dummy doxygen; ac_word=$2
8090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8092 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 DOXYGEN=$ac_cv_path_DOXYGEN
8119 if test -n "$DOXYGEN"; then
8120 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8121 echo "${ECHO_T}$DOXYGEN" >&6; }
8123 { echo "$as_me:$LINENO: result: no" >&5
8124 echo "${ECHO_T}no" >&6; }
8128 # Extract the first word of "groff", so it can be a program name with args.
8129 set dummy groff; ac_word=$2
8130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132 if test "${ac_cv_path_GROFF+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 GROFF=$ac_cv_path_GROFF
8159 if test -n "$GROFF"; then
8160 { echo "$as_me:$LINENO: result: $GROFF" >&5
8161 echo "${ECHO_T}$GROFF" >&6; }
8163 { echo "$as_me:$LINENO: result: no" >&5
8164 echo "${ECHO_T}no" >&6; }
8168 # Extract the first word of "gzip", so it can be a program name with args.
8169 set dummy gzip; ac_word=$2
8170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8172 if test "${ac_cv_path_GZIP+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 GZIP=$ac_cv_path_GZIP
8199 if test -n "$GZIP"; then
8200 { echo "$as_me:$LINENO: result: $GZIP" >&5
8201 echo "${ECHO_T}$GZIP" >&6; }
8203 { echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6; }
8208 # Extract the first word of "pod2html", so it can be a program name with args.
8209 set dummy pod2html; ac_word=$2
8210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8212 if test "${ac_cv_path_POD2HTML+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 POD2HTML=$ac_cv_path_POD2HTML
8239 if test -n "$POD2HTML"; then
8240 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8241 echo "${ECHO_T}$POD2HTML" >&6; }
8243 { echo "$as_me:$LINENO: result: no" >&5
8244 echo "${ECHO_T}no" >&6; }
8248 # Extract the first word of "pod2man", so it can be a program name with args.
8249 set dummy pod2man; ac_word=$2
8250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8252 if test "${ac_cv_path_POD2MAN+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 POD2MAN=$ac_cv_path_POD2MAN
8279 if test -n "$POD2MAN"; then
8280 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8281 echo "${ECHO_T}$POD2MAN" >&6; }
8283 { echo "$as_me:$LINENO: result: no" >&5
8284 echo "${ECHO_T}no" >&6; }
8288 # Extract the first word of "pdfroff", so it can be a program name with args.
8289 set dummy pdfroff; ac_word=$2
8290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8292 if test "${ac_cv_path_PDFROFF+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8307 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 PDFROFF=$ac_cv_path_PDFROFF
8319 if test -n "$PDFROFF"; then
8320 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8321 echo "${ECHO_T}$PDFROFF" >&6; }
8323 { echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6; }
8328 # Extract the first word of "runtest", so it can be a program name with args.
8329 set dummy runtest; ac_word=$2
8330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8332 if test "${ac_cv_path_RUNTEST+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 RUNTEST=$ac_cv_path_RUNTEST
8359 if test -n "$RUNTEST"; then
8360 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8361 echo "${ECHO_T}$RUNTEST" >&6; }
8363 { echo "$as_me:$LINENO: result: no" >&5
8364 echo "${ECHO_T}no" >&6; }
8370 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8371 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8373 # Check whether --with-tclinclude was given.
8374 if test "${with_tclinclude+set}" = set; then
8375 withval=$with_tclinclude; with_tclinclude=${withval}
8380 if test "${ac_cv_path_tclsh+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 if test x"${with_tclinclude}" != x ; then
8385 if test -f ${with_tclinclude}/tclsh ; then
8386 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8387 elif test -f ${with_tclinclude}/src/tclsh ; then
8388 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8390 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8391 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8392 { (exit 1); exit 1; }; }
8398 if test x"${ac_cv_path_tclsh}" = x ; then
8399 { echo "$as_me:$LINENO: result: none" >&5
8400 echo "${ECHO_T}none" >&6; }
8401 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
8403 # Extract the first word of "$ac_prog", so it can be a program name with args.
8404 set dummy $ac_prog; ac_word=$2
8405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8407 if test "${ac_cv_path_TCLSH+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8422 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 TCLSH=$ac_cv_path_TCLSH
8434 if test -n "$TCLSH"; then
8435 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8436 echo "${ECHO_T}$TCLSH" >&6; }
8438 { echo "$as_me:$LINENO: result: no" >&5
8439 echo "${ECHO_T}no" >&6; }
8443 test -n "$TCLSH" && break
8446 if test x"${TCLSH}" = x ; then
8447 ac_cv_path_tclsh='';
8449 ac_cv_path_tclsh="${TCLSH}";
8452 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8453 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8454 TCLSH="${ac_cv_path_tclsh}"
8458 # Extract the first word of "zip", so it can be a program name with args.
8459 set dummy zip; ac_word=$2
8460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8462 if test "${ac_cv_path_ZIP+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8477 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8489 if test -n "$ZIP"; then
8490 { echo "$as_me:$LINENO: result: $ZIP" >&5
8491 echo "${ECHO_T}$ZIP" >&6; }
8493 { echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6; }
8498 for ac_prog in ocamlc
8500 # Extract the first word of "$ac_prog", so it can be a program name with args.
8501 set dummy $ac_prog; ac_word=$2
8502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8504 if test "${ac_cv_path_OCAMLC+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8516 test -z "$as_dir" && as_dir=.
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8519 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 OCAMLC=$ac_cv_path_OCAMLC
8531 if test -n "$OCAMLC"; then
8532 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8533 echo "${ECHO_T}$OCAMLC" >&6; }
8535 { echo "$as_me:$LINENO: result: no" >&5
8536 echo "${ECHO_T}no" >&6; }
8540 test -n "$OCAMLC" && break
8543 for ac_prog in ocamlopt
8545 # Extract the first word of "$ac_prog", so it can be a program name with args.
8546 set dummy $ac_prog; ac_word=$2
8547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8549 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8564 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8575 OCAMLOPT=$ac_cv_path_OCAMLOPT
8576 if test -n "$OCAMLOPT"; then
8577 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8578 echo "${ECHO_T}$OCAMLOPT" >&6; }
8580 { echo "$as_me:$LINENO: result: no" >&5
8581 echo "${ECHO_T}no" >&6; }
8585 test -n "$OCAMLOPT" && break
8588 for ac_prog in ocamldep
8590 # Extract the first word of "$ac_prog", so it can be a program name with args.
8591 set dummy $ac_prog; ac_word=$2
8592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8594 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8609 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 OCAMLDEP=$ac_cv_path_OCAMLDEP
8621 if test -n "$OCAMLDEP"; then
8622 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8623 echo "${ECHO_T}$OCAMLDEP" >&6; }
8625 { echo "$as_me:$LINENO: result: no" >&5
8626 echo "${ECHO_T}no" >&6; }
8630 test -n "$OCAMLDEP" && break
8633 for ac_prog in ocamldoc
8635 # Extract the first word of "$ac_prog", so it can be a program name with args.
8636 set dummy $ac_prog; ac_word=$2
8637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8639 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8665 OCAMLDOC=$ac_cv_path_OCAMLDOC
8666 if test -n "$OCAMLDOC"; then
8667 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8668 echo "${ECHO_T}$OCAMLDOC" >&6; }
8670 { echo "$as_me:$LINENO: result: no" >&5
8671 echo "${ECHO_T}no" >&6; }
8675 test -n "$OCAMLDOC" && break
8678 for ac_prog in gas as
8680 # Extract the first word of "$ac_prog", so it can be a program name with args.
8681 set dummy $ac_prog; ac_word=$2
8682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8684 if test "${ac_cv_path_GAS+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8699 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 if test -n "$GAS"; then
8712 { echo "$as_me:$LINENO: result: $GAS" >&5
8713 echo "${ECHO_T}$GAS" >&6; }
8715 { echo "$as_me:$LINENO: result: no" >&5
8716 echo "${ECHO_T}no" >&6; }
8720 test -n "$GAS" && break
8724 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8725 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8726 if test "${llvm_cv_link_use_r+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 ac_cpp='$CPP $CPPFLAGS'
8731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8736 CFLAGS="$CFLAGS -Wl,-R."
8737 cat >conftest.$ac_ext <<_ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8752 rm -f conftest.$ac_objext conftest$ac_exeext
8753 if { (ac_try="$ac_link"
8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756 *) ac_try_echo=$ac_try;;
8758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759 (eval "$ac_link") 2>conftest.er1
8761 grep -v '^ *+' conftest.er1 >conftest.err
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8767 { (case "(($ac_try" in
8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772 (eval "$ac_try") 2>&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; } &&
8776 { ac_try='test -s conftest$ac_exeext'
8777 { (case "(($ac_try" in
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_try") 2>&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; }; then
8786 llvm_cv_link_use_r=yes
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8791 llvm_cv_link_use_r=no
8794 rm -f core conftest.err conftest.$ac_objext \
8795 conftest$ac_exeext conftest.$ac_ext
8798 ac_cpp='$CPP $CPPFLAGS'
8799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8805 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8806 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8807 if test "$llvm_cv_link_use_r" = yes ; then
8809 cat >>confdefs.h <<\_ACEOF
8810 #define HAVE_LINK_R 1
8816 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8817 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8818 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 ac_cpp='$CPP $CPPFLAGS'
8823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8828 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8829 cat >conftest.$ac_ext <<_ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (ac_try="$ac_link"
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_link") 2>conftest.er1
8853 grep -v '^ *+' conftest.er1 >conftest.err
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8859 { (case "(($ac_try" in
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864 (eval "$ac_try") 2>&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest$ac_exeext'
8869 { (case "(($ac_try" in
8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871 *) ac_try_echo=$ac_try;;
8873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874 (eval "$ac_try") 2>&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 llvm_cv_link_use_export_dynamic=yes
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 llvm_cv_link_use_export_dynamic=no
8886 rm -f core conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8890 ac_cpp='$CPP $CPPFLAGS'
8891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8897 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8898 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8899 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8901 cat >>confdefs.h <<\_ACEOF
8902 #define HAVE_LINK_EXPORT_DYNAMIC 1
8908 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8909 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8910 if test "${llvm_cv_link_use_version_script+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 ac_cpp='$CPP $CPPFLAGS'
8915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8921 # The following code is from the autoconf manual,
8922 # "11.13: Limitations of Usual Tools".
8923 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8924 # Use mktemp if possible; otherwise fall back on mkdir,
8925 # with $RANDOM to make collisions less likely.
8929 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8931 test -n "$tmp" && test -d "$tmp"
8933 tmp=$TMPDIR/foo$$-$RANDOM
8934 (umask 077 && mkdir "$tmp")
8937 echo "{" > "$tmp/export.map"
8938 echo " global: main;" >> "$tmp/export.map"
8939 echo " local: *;" >> "$tmp/export.map"
8940 echo "};" >> "$tmp/export.map"
8942 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8943 cat >conftest.$ac_ext <<_ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8958 rm -f conftest.$ac_objext conftest$ac_exeext
8959 if { (ac_try="$ac_link"
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_link") 2>conftest.er1
8967 grep -v '^ *+' conftest.er1 >conftest.err
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8973 { (case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_try") 2>&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_try") 2>&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 llvm_cv_link_use_version_script=yes
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 llvm_cv_link_use_version_script=no
9000 rm -f core conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
9002 rm "$tmp/export.map"
9006 ac_cpp='$CPP $CPPFLAGS'
9007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9013 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9014 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9015 if test "$llvm_cv_link_use_version_script" = yes ; then
9016 HAVE_LINK_VERSION_SCRIPT=1
9023 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9024 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9025 if test "${ac_cv_c_const+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9038 /* FIXME: Include the comments suggested by Paul. */
9040 /* Ultrix mips cc rejects this. */
9041 typedef int charset[2];
9043 /* SunOS 4.1.1 cc rejects this. */
9044 char const *const *ccp;
9046 /* NEC SVR4.0.2 mips cc rejects this. */
9047 struct point {int x, y;};
9048 static struct point const zero = {0,0};
9049 /* AIX XL C 1.02.0.0 rejects this.
9050 It does not let you subtract one const X* pointer from another in
9051 an arm of an if-expression whose if-part is not a constant
9053 const char *g = "string";
9054 ccp = &g + (g ? g-g : 0);
9055 /* HPUX 7.0 cc rejects these. */
9058 ccp = (char const *const *) p;
9059 { /* SCO 3.2v4 cc rejects this. */
9061 char const *s = 0 ? (char *) 0 : (char const *) 0;
9066 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9068 const int *foo = &x[0];
9071 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9072 typedef const int *iptr;
9076 { /* AIX XL C 1.02.0.0 rejects this saying
9077 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9078 struct s { int j; const int *ap[3]; };
9079 struct s *b; b->j = 5;
9081 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9085 return !x[0] && !zero.x;
9092 rm -f conftest.$ac_objext
9093 if { (ac_try="$ac_compile"
9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096 *) ac_try_echo=$ac_try;;
9098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099 (eval "$ac_compile") 2>conftest.er1
9101 grep -v '^ *+' conftest.er1 >conftest.err
9103 cat conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
9106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9107 { (case "(($ac_try" in
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_try") 2>&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; } &&
9116 { ac_try='test -s conftest.$ac_objext'
9117 { (case "(($ac_try" in
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122 (eval "$ac_try") 2>&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9128 echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9136 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9137 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9138 if test $ac_cv_c_const = no; then
9140 cat >>confdefs.h <<\_ACEOF
9152 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9153 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9154 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9155 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 cat >conftest.$ac_ext <<_ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 #include <sys/types.h>
9177 rm -f conftest.$ac_objext
9178 if { (ac_try="$ac_compile"
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9186 grep -v '^ *+' conftest.er1 >conftest.err
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9192 { (case "(($ac_try" in
9193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_try") 2>&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try='test -s conftest.$ac_objext'
9202 { (case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_try") 2>&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 eval "$as_ac_Header=yes"
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 eval "$as_ac_Header=no"
9219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221 ac_res=`eval echo '${'$as_ac_Header'}'`
9222 { echo "$as_me:$LINENO: result: $ac_res" >&5
9223 echo "${ECHO_T}$ac_res" >&6; }
9224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9225 cat >>confdefs.h <<_ACEOF
9226 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9229 ac_header_dirent=$ac_hdr; break
9233 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9234 if test $ac_header_dirent = dirent.h; then
9235 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9236 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9237 if test "${ac_cv_search_opendir+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 ac_func_search_save_LIBS=$LIBS
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9248 /* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
9263 for ac_lib in '' dir; do
9264 if test -z "$ac_lib"; then
9265 ac_res="none required"
9268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9270 rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (ac_try="$ac_link"
9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274 *) ac_try_echo=$ac_try;;
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277 (eval "$ac_link") 2>conftest.er1
9279 grep -v '^ *+' conftest.er1 >conftest.err
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9285 { (case "(($ac_try" in
9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_try") 2>&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; } &&
9294 { ac_try='test -s conftest$ac_exeext'
9295 { (case "(($ac_try" in
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300 (eval "$ac_try") 2>&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_cv_search_opendir=$ac_res
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9312 rm -f core conftest.err conftest.$ac_objext \
9314 if test "${ac_cv_search_opendir+set}" = set; then
9318 if test "${ac_cv_search_opendir+set}" = set; then
9321 ac_cv_search_opendir=no
9324 LIBS=$ac_func_search_save_LIBS
9326 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9327 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9328 ac_res=$ac_cv_search_opendir
9329 if test "$ac_res" != no; then
9330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9335 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9336 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9337 if test "${ac_cv_search_opendir+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 ac_func_search_save_LIBS=$LIBS
9341 cat >conftest.$ac_ext <<_ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9348 /* Override any GCC internal prototype to avoid an error.
9349 Use char because int might match the return type of a GCC
9350 builtin and then its argument prototype would still apply. */
9363 for ac_lib in '' x; do
9364 if test -z "$ac_lib"; then
9365 ac_res="none required"
9368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (ac_try="$ac_link"
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_link") 2>conftest.er1
9379 grep -v '^ *+' conftest.er1 >conftest.err
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } &&
9384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9385 { (case "(($ac_try" in
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_try") 2>&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest$ac_exeext'
9395 { (case "(($ac_try" in
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_try") 2>&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; }; then
9404 ac_cv_search_opendir=$ac_res
9406 echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9412 rm -f core conftest.err conftest.$ac_objext \
9414 if test "${ac_cv_search_opendir+set}" = set; then
9418 if test "${ac_cv_search_opendir+set}" = set; then
9421 ac_cv_search_opendir=no
9424 LIBS=$ac_func_search_save_LIBS
9426 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9427 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9428 ac_res=$ac_cv_search_opendir
9429 if test "$ac_res" != no; then
9430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9437 for ac_header in dlfcn.h
9439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 ac_res=`eval echo '${'$as_ac_Header'}'`
9447 { echo "$as_me:$LINENO: result: $ac_res" >&5
9448 echo "${ECHO_T}$ac_res" >&6; }
9450 # Is the header compilable?
9451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9453 cat >conftest.$ac_ext <<_ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h. */
9459 $ac_includes_default
9460 #include <$ac_header>
9462 rm -f conftest.$ac_objext
9463 if { (ac_try="$ac_compile"
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_compile") 2>conftest.er1
9471 grep -v '^ *+' conftest.er1 >conftest.err
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9477 { (case "(($ac_try" in
9478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_try") 2>&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; } &&
9486 { ac_try='test -s conftest.$ac_objext'
9487 { (case "(($ac_try" in
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_try") 2>&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; }; then
9496 ac_header_compiler=yes
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_header_compiler=no
9504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9506 echo "${ECHO_T}$ac_header_compiler" >&6; }
9508 # Is the header present?
9509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9511 cat >conftest.$ac_ext <<_ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9517 #include <$ac_header>
9519 if { (ac_try="$ac_cpp conftest.$ac_ext"
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9527 grep -v '^ *+' conftest.er1 >conftest.err
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } >/dev/null; then
9532 if test -s conftest.err; then
9533 ac_cpp_err=$ac_c_preproc_warn_flag
9534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9541 if test -z "$ac_cpp_err"; then
9542 ac_header_preproc=yes
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9547 ac_header_preproc=no
9550 rm -f conftest.err conftest.$ac_ext
9551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9552 echo "${ECHO_T}$ac_header_preproc" >&6; }
9554 # So? What about this header?
9555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9561 ac_header_preproc=yes
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9577 ## ----------------------------------- ##
9578 ## Report this to llvmbugs@cs.uiuc.edu ##
9579 ## ----------------------------------- ##
9581 ) | sed "s/^/$as_me: WARNING: /" >&2
9584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9589 eval "$as_ac_Header=\$ac_header_preproc"
9591 ac_res=`eval echo '${'$as_ac_Header'}'`
9592 { echo "$as_me:$LINENO: result: $ac_res" >&5
9593 echo "${ECHO_T}$ac_res" >&6; }
9596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9597 cat >>confdefs.h <<_ACEOF
9598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9605 # Check whether --enable-ltdl-install was given.
9606 if test "${enable_ltdl_install+set}" = set; then
9607 enableval=$enable_ltdl_install;
9613 if test x"${enable_ltdl_install-no}" != xno; then
9615 INSTALL_LTDL_FALSE='#'
9617 INSTALL_LTDL_TRUE='#'
9623 if test x"${enable_ltdl_convenience-no}" != xno; then
9624 CONVENIENCE_LTDL_TRUE=
9625 CONVENIENCE_LTDL_FALSE='#'
9627 CONVENIENCE_LTDL_TRUE='#'
9628 CONVENIENCE_LTDL_FALSE=
9632 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9633 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9635 libname_spec='lib$name'
9643 shlibpath_overrides_runpath=unknown
9645 dynamic_linker="$host_os ld.so"
9646 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9647 if test "$GCC" = yes; then
9648 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9649 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9650 # if the path contains ";" then we assume it to be the separator
9651 # otherwise default to the standard path separator (i.e. ":") - it is
9652 # assumed that no part of a normal pathname contains ";" but that should
9653 # okay in the real world where ";" in dirpaths is itself problematic.
9654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9659 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9661 need_lib_prefix=unknown
9662 hardcode_into_libs=no
9664 # when you set need_version to no, make sure it does not cause -set_version
9665 # flags to be left without arguments
9666 need_version=unknown
9671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9672 shlibpath_var=LIBPATH
9674 # AIX 3 has no versioning support, so we append a major version to the name.
9675 soname_spec='${libname}${release}${shared_ext}$major'
9682 hardcode_into_libs=yes
9683 if test "$host_cpu" = ia64; then
9684 # AIX 5 supports IA64
9685 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9686 shlibpath_var=LD_LIBRARY_PATH
9688 # With GCC up to 2.95.x, collect2 would create an import file
9689 # for dependence libraries. The import file would start with
9690 # the line `#! .'. This would cause the generated library to
9691 # depend on `.', always an invalid library. This was fixed in
9692 # development snapshots of GCC prior to 3.0.
9694 aix4 | aix4.[01] | aix4.[01].*)
9695 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9697 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9704 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9705 # soname into executable. Probably we can add versioning support to
9706 # collect2, so additional links can be useful in future.
9707 if test "$aix_use_runtimelinking" = yes; then
9708 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9709 # instead of lib<name>.a to let people know that these are not
9710 # typical AIX shared libraries.
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713 # We preserve .a as extension for shared libraries through AIX4.2
9714 # and later when we are not doing run time linking.
9715 library_names_spec='${libname}${release}.a $libname.a'
9716 soname_spec='${libname}${release}${shared_ext}$major'
9718 shlibpath_var=LIBPATH
9723 library_names_spec='$libname.ixlibrary $libname.a'
9724 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9725 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'
9729 library_names_spec='${libname}${shared_ext}'
9730 dynamic_linker="$host_os ld.so"
9731 shlibpath_var=LIBRARY_PATH
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738 soname_spec='${libname}${release}${shared_ext}$major'
9739 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9740 shlibpath_var=LD_LIBRARY_PATH
9741 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9742 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9743 # the default ld.so.conf also contains /usr/contrib/lib and
9744 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9745 # libtool to hard-code these into programs
9748 cygwin* | mingw* | pw32*)
9749 version_type=windows
9754 case $GCC,$host_os in
9755 yes,cygwin* | yes,mingw* | yes,pw32*)
9756 library_names_spec='$libname.dll.a'
9757 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9758 postinstall_cmds='base_file=`basename \${file}`~
9759 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9760 dldir=$destdir/`dirname \$dlpath`~
9761 test -d \$dldir || mkdir -p \$dldir~
9762 $install_prog $dir/$dlname \$dldir/$dlname~
9763 chmod a+x \$dldir/$dlname'
9764 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9765 dlpath=$dir/\$dldll~
9767 shlibpath_overrides_runpath=yes
9771 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9772 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9773 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9776 # MinGW DLLs use traditional 'lib' prefix
9777 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9778 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9779 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9780 # It is most probably a Windows format PATH printed by
9781 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9782 # path with ; separators, and with drive letters. We can handle the
9783 # drive letters (cygwin fileutils understands them), so leave them,
9784 # especially as we might pass files found there to a mingw objdump,
9785 # which wouldn't understand a cygwinified path. Ahh.
9786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9792 # pw32 DLLs use 'pw' prefix rather than 'lib'
9793 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9799 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9802 dynamic_linker='Win32 ld.exe'
9803 # FIXME: first we should search . and the directory the executable is in
9807 darwin* | rhapsody*)
9808 dynamic_linker="$host_os dyld"
9812 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9813 soname_spec='${libname}${release}${major}$shared_ext'
9814 shlibpath_overrides_runpath=yes
9815 shlibpath_var=DYLD_LIBRARY_PATH
9816 shrext_cmds='.dylib'
9817 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9818 if test "$GCC" = yes; then
9819 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"`
9821 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9823 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 shlibpath_var=LD_LIBRARY_PATH
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 shlibpath_var=LD_LIBRARY_PATH
9846 shlibpath_overrides_runpath=no
9847 hardcode_into_libs=yes
9848 dynamic_linker='GNU ld.so'
9851 freebsd* | dragonfly*)
9852 # DragonFly does not have aout. When/if they implement a new
9853 # versioning mechanism, adjust this.
9854 if test -x /usr/bin/objformat; then
9855 objformat=`/usr/bin/objformat`
9858 freebsd[123]*) objformat=aout ;;
9862 version_type=freebsd-$objformat
9863 case $version_type in
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9870 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9874 shlibpath_var=LD_LIBRARY_PATH
9877 shlibpath_overrides_runpath=yes
9879 freebsd3.[01]* | freebsdelf3.[01]*)
9880 shlibpath_overrides_runpath=yes
9881 hardcode_into_libs=yes
9883 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9884 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9885 shlibpath_overrides_runpath=no
9886 hardcode_into_libs=yes
9888 freebsd*) # from 4.6 on
9889 shlibpath_overrides_runpath=yes
9890 hardcode_into_libs=yes
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9900 soname_spec='${libname}${release}${shared_ext}$major'
9901 shlibpath_var=LD_LIBRARY_PATH
9902 hardcode_into_libs=yes
9905 hpux9* | hpux10* | hpux11*)
9906 # Give a soname corresponding to the major version so that dld.sl refuses to
9907 # link against other versions.
9914 hardcode_into_libs=yes
9915 dynamic_linker="$host_os dld.so"
9916 shlibpath_var=LD_LIBRARY_PATH
9917 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9919 soname_spec='${libname}${release}${shared_ext}$major'
9920 if test "X$HPUX_IA64_MODE" = X32; then
9921 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9923 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9925 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9929 hardcode_into_libs=yes
9930 dynamic_linker="$host_os dld.sl"
9931 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934 soname_spec='${libname}${release}${shared_ext}$major'
9935 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9940 dynamic_linker="$host_os dld.sl"
9941 shlibpath_var=SHLIB_PATH
9942 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9947 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9948 postinstall_cmds='chmod 555 $lib'
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9956 soname_spec='${libname}${release}${shared_ext}$major'
9957 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9958 shlibpath_var=LD_LIBRARY_PATH
9959 shlibpath_overrides_runpath=no
9960 hardcode_into_libs=yes
9963 irix5* | irix6* | nonstopux*)
9965 nonstopux*) version_type=nonstopux ;;
9967 if test "$lt_cv_prog_gnu_ld" = yes; then
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9978 irix5* | nonstopux*)
9982 case $LD in # libtool.m4 will add one of these switches to LD
9983 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9984 libsuff= shlibsuff= libmagic=32-bit;;
9985 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9986 libsuff=32 shlibsuff=N32 libmagic=N32;;
9987 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9988 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9989 *) libsuff= shlibsuff= libmagic=never-match;;
9993 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9994 shlibpath_overrides_runpath=no
9995 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9996 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9997 hardcode_into_libs=yes
10000 # No shared lib support for Linux oldld, aout, or coff.
10001 linux*oldld* | linux*aout* | linux*coff*)
10005 # This must be Linux ELF.
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10013 shlibpath_var=LD_LIBRARY_PATH
10014 shlibpath_overrides_runpath=no
10015 # This implies no fast_install, which is unacceptable.
10016 # Some rework will be needed to allow for fast_install
10017 # before this can be enabled.
10018 hardcode_into_libs=yes
10020 # Append ld.so.conf contents to the search path
10021 if test -f /etc/ld.so.conf; then
10022 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' ' '`
10023 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10026 # We used to test for /lib/ld.so.1 and disable shared libraries on
10027 # powerpc, because MkLinux only supported shared libraries with the
10028 # GNU dynamic linker. Since this was broken with cross compilers,
10029 # most powerpc-linux boxes support dynamic linking these days and
10030 # people can always --disable-shared, the test was removed, and we
10031 # assume the GNU/Linux dynamic linker is in use.
10032 dynamic_linker='GNU/Linux ld.so'
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 shlibpath_var=LD_LIBRARY_PATH
10042 shlibpath_overrides_runpath=no
10043 hardcode_into_libs=yes
10044 dynamic_linker='GNU ld.so'
10051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10054 dynamic_linker='NetBSD (a.out) ld.so'
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 dynamic_linker='NetBSD ld.elf_so'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 shlibpath_overrides_runpath=yes
10062 hardcode_into_libs=yes
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath=yes
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077 soname_spec='${libname}${release}${shared_ext}$major'
10078 shlibpath_var=LD_LIBRARY_PATH
10079 shlibpath_overrides_runpath=yes
10084 sys_lib_dlsearch_path_spec="/usr/lib"
10086 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10088 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10089 *) need_version=no ;;
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10096 openbsd2.[89] | openbsd2.[89].*)
10097 shlibpath_overrides_runpath=no
10100 shlibpath_overrides_runpath=yes
10104 shlibpath_overrides_runpath=yes
10109 libname_spec='$name'
10112 library_names_spec='$libname${shared_ext} $libname.a'
10113 dynamic_linker='OS/2 ld.exe'
10114 shlibpath_var=LIBPATH
10117 osf3* | osf4* | osf5*)
10121 soname_spec='${libname}${release}${shared_ext}$major'
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 shlibpath_var=LD_LIBRARY_PATH
10124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10125 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 shlibpath_overrides_runpath=yes
10136 hardcode_into_libs=yes
10137 # ldd complains unless libraries are executable
10138 postinstall_cmds='chmod +x $lib'
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10144 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10145 shlibpath_var=LD_LIBRARY_PATH
10146 shlibpath_overrides_runpath=yes
10147 if test "$with_gnu_ld" = yes; then
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 shlibpath_var=LD_LIBRARY_PATH
10158 case $host_vendor in
10160 shlibpath_overrides_runpath=no
10162 export_dynamic_flag_spec='${wl}-Blargedynsym'
10163 runpath_var=LD_RUN_PATH
10171 shlibpath_overrides_runpath=no
10172 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10178 if test -d /usr/nec ;then
10180 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10181 soname_spec='$libname${shared_ext}.$major'
10182 shlibpath_var=LD_LIBRARY_PATH
10186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10187 version_type=freebsd-elf
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 hardcode_into_libs=yes
10194 if test "$with_gnu_ld" = yes; then
10195 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10196 shlibpath_overrides_runpath=no
10198 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10199 shlibpath_overrides_runpath=yes
10202 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10206 sys_lib_dlsearch_path_spec='/usr/lib'
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 shlibpath_var=LD_LIBRARY_PATH
10220 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10221 echo "${ECHO_T}$dynamic_linker" >&6; }
10222 test "$dynamic_linker" = no && can_build_shared=no
10224 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10225 if test "$GCC" = yes; then
10226 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10230 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10231 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10232 if test "${libltdl_cv_shlibext+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 eval libltdl_cv_shlibext=$shrext_cmds
10240 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10241 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10242 if test -n "$libltdl_cv_shlibext"; then
10244 cat >>confdefs.h <<_ACEOF
10245 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10251 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10252 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10253 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 libltdl_cv_shlibpath_var="$shlibpath_var"
10258 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10259 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10260 if test -n "$libltdl_cv_shlibpath_var"; then
10262 cat >>confdefs.h <<_ACEOF
10263 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10269 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10270 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10271 if test "${libltdl_cv_sys_search_path+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10276 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10277 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10278 if test -n "$libltdl_cv_sys_search_path"; then
10280 for dir in $libltdl_cv_sys_search_path; do
10281 if test -z "$sys_search_path"; then
10282 sys_search_path="$dir"
10284 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10288 cat >>confdefs.h <<_ACEOF
10289 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10294 { echo "$as_me:$LINENO: checking for objdir" >&5
10295 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10296 if test "${libltdl_cv_objdir+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 libltdl_cv_objdir="$objdir"
10300 if test -n "$objdir"; then
10303 rm -f .libs 2>/dev/null
10304 mkdir .libs 2>/dev/null
10305 if test -d .libs; then
10306 libltdl_cv_objdir=.libs
10308 # MS-DOS does not allow filenames that begin with a dot.
10309 libltdl_cv_objdir=_libs
10311 rmdir .libs 2>/dev/null
10315 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10316 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10318 cat >>confdefs.h <<_ACEOF
10319 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10327 # Check for command to grab the raw symbol name followed by C symbol from nm.
10328 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10329 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10330 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 # These are sane defaults that work on at least a few old systems.
10335 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10337 # Character class describing NM global symbol codes.
10338 symcode='[BCDEGRST]'
10340 # Regexp to match symbols that can be accessed directly from C.
10341 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10343 # Transform an extracted symbol line into a proper C declaration
10344 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10346 # Transform an extracted symbol line into symbol name and symbol address
10347 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'"
10349 # Define system-specific variables.
10354 cygwin* | mingw* | pw32*)
10355 symcode='[ABCDGISTW]'
10357 hpux*) # Its linker distinguishes data from code symbols
10358 if test "$host_cpu" = ia64; then
10359 symcode='[ABCDEGRST]'
10361 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10362 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'"
10365 if test "$host_cpu" = ia64; then
10366 symcode='[ABCDGIRSTW]'
10367 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10368 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'"
10371 irix* | nonstopux*)
10372 symcode='[BCDEGRST]'
10375 symcode='[BCDEGQRST]'
10386 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10394 # Handle CRLF in mingw tool chain
10398 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10402 # If we're using GNU nm, then use its standard symbol codes.
10403 case `$NM -V 2>&1` in
10404 *GNU* | *'with BFD'*)
10405 symcode='[ABCDGIRSTW]' ;;
10408 # Try without a prefix undercore, then with it.
10409 for ac_symprfx in "" "_"; do
10411 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10412 symxfrm="\\1 $ac_symprfx\\2 \\2"
10414 # Write the raw and C identifiers.
10415 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10417 # Check to see that the pipe works correctly.
10421 cat > conftest.$ac_ext <<EOF
10426 void nm_test_func(){}
10430 int main(){nm_test_var='a';nm_test_func();return(0);}
10433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10434 (eval $ac_compile) 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; then
10438 # Now try to grab the symbols.
10440 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10441 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && test -s "$nlist"; then
10445 # Try sorting and uniquifying the output.
10446 if sort "$nlist" | uniq > "$nlist"T; then
10447 mv -f "$nlist"T "$nlist"
10452 # Make sure that we snagged all the symbols we need.
10453 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10454 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10455 cat <<EOF > conftest.$ac_ext
10461 # Now generate the symbol file.
10462 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10464 cat <<EOF >> conftest.$ac_ext
10465 #if defined (__STDC__) && __STDC__
10466 # define lt_ptr_t void *
10468 # define lt_ptr_t char *
10472 /* The mapping between symbol names and symbols. */
10477 lt_preloaded_symbols[] =
10480 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10481 cat <<\EOF >> conftest.$ac_ext
10489 # Now try linking the two files.
10490 mv conftest.$ac_objext conftstm.$ac_objext
10491 lt_save_LIBS="$LIBS"
10492 lt_save_CFLAGS="$CFLAGS"
10493 LIBS="conftstm.$ac_objext"
10494 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10496 (eval $ac_link) 2>&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10502 LIBS="$lt_save_LIBS"
10503 CFLAGS="$lt_save_CFLAGS"
10505 echo "cannot find nm_test_func in $nlist" >&5
10508 echo "cannot find nm_test_var in $nlist" >&5
10511 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10514 echo "$progname: failed program was:" >&5
10515 cat conftest.$ac_ext >&5
10517 rm -f conftest* conftst*
10519 # Do not use the global_symbol_pipe unless it works.
10520 if test "$pipe_works" = yes; then
10523 lt_cv_sys_global_symbol_pipe=
10529 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10530 lt_cv_sys_global_symbol_to_cdecl=
10532 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10533 { echo "$as_me:$LINENO: result: failed" >&5
10534 echo "${ECHO_T}failed" >&6; }
10536 { echo "$as_me:$LINENO: result: ok" >&5
10537 echo "${ECHO_T}ok" >&6; }
10541 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10542 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10543 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10547 libltdl_cv_preloaded_symbols=yes
10549 libltdl_cv_preloaded_symbols=no
10553 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10554 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10555 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10557 cat >>confdefs.h <<\_ACEOF
10558 #define HAVE_PRELOADED_SYMBOLS 1
10566 ac_cpp='$CPP $CPPFLAGS'
10567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10572 { echo "$as_me:$LINENO: checking for shl_load" >&5
10573 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10574 if test "${ac_cv_func_shl_load+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 cat >conftest.$ac_ext <<_ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10583 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10585 #define shl_load innocuous_shl_load
10587 /* System header to define __stub macros and hopefully few prototypes,
10588 which can conflict with char shl_load (); below.
10589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10590 <limits.h> exists even on freestanding compilers. */
10593 # include <limits.h>
10595 # include <assert.h>
10600 /* Override any GCC internal prototype to avoid an error.
10601 Use char because int might match the return type of a GCC
10602 builtin and then its argument prototype would still apply. */
10607 /* The GNU C library defines this for functions which it implements
10608 to always fail with ENOSYS. Some functions are actually named
10609 something starting with __ and the normal name is an alias. */
10610 #if defined __stub_shl_load || defined __stub___shl_load
10617 return shl_load ();
10622 rm -f conftest.$ac_objext conftest$ac_exeext
10623 if { (ac_try="$ac_link"
10624 case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629 (eval "$ac_link") 2>conftest.er1
10631 grep -v '^ *+' conftest.er1 >conftest.err
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } &&
10636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10637 { (case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_try") 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_try") 2>&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 ac_cv_func_shl_load=yes
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10661 ac_cv_func_shl_load=no
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10667 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10668 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10669 if test $ac_cv_func_shl_load = yes; then
10671 cat >>confdefs.h <<\_ACEOF
10672 #define HAVE_SHL_LOAD 1
10676 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10677 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10678 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 ac_check_lib_save_LIBS=$LIBS
10683 cat >conftest.$ac_ext <<_ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10690 /* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10700 return shl_load ();
10705 rm -f conftest.$ac_objext conftest$ac_exeext
10706 if { (ac_try="$ac_link"
10707 case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_link") 2>conftest.er1
10714 grep -v '^ *+' conftest.er1 >conftest.err
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10720 { (case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_try") 2>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; } &&
10729 { ac_try='test -s conftest$ac_exeext'
10730 { (case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_try") 2>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; }; then
10739 ac_cv_lib_dld_shl_load=yes
10741 echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10744 ac_cv_lib_dld_shl_load=no
10747 rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10751 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10752 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10753 if test $ac_cv_lib_dld_shl_load = yes; then
10755 cat >>confdefs.h <<\_ACEOF
10756 #define HAVE_SHL_LOAD 1
10759 LIBADD_DL="$LIBADD_DL -ldld"
10761 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10762 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10763 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 ac_check_lib_save_LIBS=$LIBS
10768 cat >conftest.$ac_ext <<_ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10775 /* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
10790 rm -f conftest.$ac_objext conftest$ac_exeext
10791 if { (ac_try="$ac_link"
10792 case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_link") 2>conftest.er1
10799 grep -v '^ *+' conftest.er1 >conftest.err
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10805 { (case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_try") 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; } &&
10814 { ac_try='test -s conftest$ac_exeext'
10815 { (case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820 (eval "$ac_try") 2>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; }; then
10824 ac_cv_lib_dl_dlopen=yes
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10829 ac_cv_lib_dl_dlopen=no
10832 rm -f core conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834 LIBS=$ac_check_lib_save_LIBS
10836 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10837 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10838 if test $ac_cv_lib_dl_dlopen = yes; then
10840 cat >>confdefs.h <<\_ACEOF
10841 #define HAVE_LIBDL 1
10844 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10846 cat >conftest.$ac_ext <<_ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10853 # include <dlfcn.h>
10864 rm -f conftest.$ac_objext conftest$ac_exeext
10865 if { (ac_try="$ac_link"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_link") 2>conftest.er1
10873 grep -v '^ *+' conftest.er1 >conftest.err
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; } &&
10888 { ac_try='test -s conftest$ac_exeext'
10889 { (case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_try") 2>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; }; then
10899 cat >>confdefs.h <<\_ACEOF
10900 #define HAVE_LIBDL 1
10902 libltdl_cv_func_dlopen="yes"
10904 echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10907 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10908 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10909 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 ac_check_lib_save_LIBS=$LIBS
10913 LIBS="-lsvld $LIBS"
10914 cat >conftest.$ac_ext <<_ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h. */
10921 /* Override any GCC internal prototype to avoid an error.
10922 Use char because int might match the return type of a GCC
10923 builtin and then its argument prototype would still apply. */
10936 rm -f conftest.$ac_objext conftest$ac_exeext
10937 if { (ac_try="$ac_link"
10938 case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_link") 2>conftest.er1
10945 grep -v '^ *+' conftest.er1 >conftest.err
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10951 { (case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_try") 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest$ac_exeext'
10961 { (case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_try") 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
10970 ac_cv_lib_svld_dlopen=yes
10972 echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10975 ac_cv_lib_svld_dlopen=no
10978 rm -f core conftest.err conftest.$ac_objext \
10979 conftest$ac_exeext conftest.$ac_ext
10980 LIBS=$ac_check_lib_save_LIBS
10982 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10983 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10984 if test $ac_cv_lib_svld_dlopen = yes; then
10986 cat >>confdefs.h <<\_ACEOF
10987 #define HAVE_LIBDL 1
10990 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10992 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10993 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10994 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 ac_check_lib_save_LIBS=$LIBS
10999 cat >conftest.$ac_ext <<_ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h. */
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11016 return dld_link ();
11021 rm -f conftest.$ac_objext conftest$ac_exeext
11022 if { (ac_try="$ac_link"
11023 case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028 (eval "$ac_link") 2>conftest.er1
11030 grep -v '^ *+' conftest.er1 >conftest.err
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11036 { (case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_try") 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try='test -s conftest$ac_exeext'
11046 { (case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_try") 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 ac_cv_lib_dld_dld_link=yes
11057 echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11060 ac_cv_lib_dld_dld_link=no
11063 rm -f core conftest.err conftest.$ac_objext \
11064 conftest$ac_exeext conftest.$ac_ext
11065 LIBS=$ac_check_lib_save_LIBS
11067 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11068 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11069 if test $ac_cv_lib_dld_dld_link = yes; then
11071 cat >>confdefs.h <<\_ACEOF
11075 LIBADD_DL="$LIBADD_DL -ldld"
11077 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11078 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11079 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 cat >conftest.$ac_ext <<_ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11088 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11090 #define _dyld_func_lookup innocuous__dyld_func_lookup
11092 /* System header to define __stub macros and hopefully few prototypes,
11093 which can conflict with char _dyld_func_lookup (); below.
11094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11095 <limits.h> exists even on freestanding compilers. */
11098 # include <limits.h>
11100 # include <assert.h>
11103 #undef _dyld_func_lookup
11105 /* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
11111 char _dyld_func_lookup ();
11112 /* The GNU C library defines this for functions which it implements
11113 to always fail with ENOSYS. Some functions are actually named
11114 something starting with __ and the normal name is an alias. */
11115 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11122 return _dyld_func_lookup ();
11127 rm -f conftest.$ac_objext conftest$ac_exeext
11128 if { (ac_try="$ac_link"
11129 case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_link") 2>conftest.er1
11136 grep -v '^ *+' conftest.er1 >conftest.err
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } &&
11141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11142 { (case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_try") 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; } &&
11151 { ac_try='test -s conftest$ac_exeext'
11152 { (case "(($ac_try" in
11153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154 *) ac_try_echo=$ac_try;;
11156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157 (eval "$ac_try") 2>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; }; then
11161 ac_cv_func__dyld_func_lookup=yes
11163 echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11166 ac_cv_func__dyld_func_lookup=no
11169 rm -f core conftest.err conftest.$ac_objext \
11170 conftest$ac_exeext conftest.$ac_ext
11172 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11173 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11174 if test $ac_cv_func__dyld_func_lookup = yes; then
11176 cat >>confdefs.h <<\_ACEOF
11177 #define HAVE_DYLD 1
11191 rm -f core conftest.err conftest.$ac_objext \
11192 conftest$ac_exeext conftest.$ac_ext
11203 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11205 lt_save_LIBS="$LIBS"
11206 LIBS="$LIBS $LIBADD_DL"
11208 for ac_func in dlerror
11210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11211 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 cat >conftest.$ac_ext <<_ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11224 #define $ac_func innocuous_$ac_func
11226 /* System header to define __stub macros and hopefully few prototypes,
11227 which can conflict with char $ac_func (); below.
11228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11229 <limits.h> exists even on freestanding compilers. */
11232 # include <limits.h>
11234 # include <assert.h>
11239 /* Override any GCC internal prototype to avoid an error.
11240 Use char because int might match the return type of a GCC
11241 builtin and then its argument prototype would still apply. */
11246 /* The GNU C library defines this for functions which it implements
11247 to always fail with ENOSYS. Some functions are actually named
11248 something starting with __ and the normal name is an alias. */
11249 #if defined __stub_$ac_func || defined __stub___$ac_func
11256 return $ac_func ();
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (ac_try="$ac_link"
11263 case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_link") 2>conftest.er1
11270 grep -v '^ *+' conftest.er1 >conftest.err
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } &&
11275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11276 { (case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_try") 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; } &&
11285 { ac_try='test -s conftest$ac_exeext'
11286 { (case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_try") 2>&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; }; then
11295 eval "$as_ac_var=yes"
11297 echo "$as_me: failed program was:" >&5
11298 sed 's/^/| /' conftest.$ac_ext >&5
11300 eval "$as_ac_var=no"
11303 rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11306 ac_res=`eval echo '${'$as_ac_var'}'`
11307 { echo "$as_me:$LINENO: result: $ac_res" >&5
11308 echo "${ECHO_T}$ac_res" >&6; }
11309 if test `eval echo '${'$as_ac_var'}'` = yes; then
11310 cat >>confdefs.h <<_ACEOF
11311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11317 LIBS="$lt_save_LIBS"
11320 ac_cpp='$CPP $CPPFLAGS'
11321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11327 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11328 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11329 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 ac_cv_sys_symbol_underscore=no
11333 cat > conftest.$ac_ext <<EOF
11334 void nm_test_func(){}
11335 int main(){nm_test_func;return 0;}
11337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11338 (eval $ac_compile) 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; then
11342 # Now try to grab the symbols.
11343 ac_nlist=conftest.nm
11344 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11345 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } && test -s "$ac_nlist"; then
11349 # See whether the symbols have a leading underscore.
11350 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11351 ac_cv_sys_symbol_underscore=yes
11353 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11356 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11360 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11363 echo "configure: failed program was:" >&5
11369 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11370 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11373 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11374 if test x"$libltdl_cv_func_dlopen" = xyes ||
11375 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11376 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11377 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11378 if test "${libltdl_cv_need_uscore+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 libltdl_cv_need_uscore=unknown
11383 LIBS="$LIBS $LIBADD_DL"
11384 if test "$cross_compiling" = yes; then :
11385 libltdl_cv_need_uscore=cross
11387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11388 lt_status=$lt_dlunknown
11389 cat > conftest.$ac_ext <<EOF
11390 #line 11390 "configure"
11391 #include "confdefs.h"
11400 # define LT_DLGLOBAL RTLD_GLOBAL
11403 # define LT_DLGLOBAL DL_GLOBAL
11405 # define LT_DLGLOBAL 0
11409 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11410 find out it does not work in some platform. */
11411 #ifndef LT_DLLAZY_OR_NOW
11413 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11416 # define LT_DLLAZY_OR_NOW DL_LAZY
11419 # define LT_DLLAZY_OR_NOW RTLD_NOW
11422 # define LT_DLLAZY_OR_NOW DL_NOW
11424 # define LT_DLLAZY_OR_NOW 0
11432 extern "C" void exit (int);
11435 void fnord() { int i=42;}
11438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11439 int status = $lt_dlunknown;
11443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11444 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11445 /* dlclose (self); */
11453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11454 (eval $ac_link) 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11458 (./conftest; exit; ) >&5 2>/dev/null
11460 case x$lt_status in
11461 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11462 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11463 x$lt_dlunknown|x*) ;;
11466 # compilation failed
11475 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11476 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11480 if test x"$libltdl_cv_need_uscore" = xyes; then
11482 cat >>confdefs.h <<\_ACEOF
11483 #define NEED_USCORE 1
11489 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11490 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11491 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 # PORTME does your system automatically load deplibs for dlopen?
11495 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11496 # For now, we just catch OSes we know something about -- in the
11497 # future, we'll try test this programmatically.
11498 libltdl_cv_sys_dlopen_deplibs=unknown
11500 aix3*|aix4.1.*|aix4.2.*)
11501 # Unknown whether this is true for these versions of AIX, but
11502 # we want this `case' here to explicitly catch those versions.
11503 libltdl_cv_sys_dlopen_deplibs=unknown
11506 libltdl_cv_sys_dlopen_deplibs=yes
11509 # Assuming the user has installed a libdl from somewhere, this is true
11510 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11511 libltdl_cv_sys_dlopen_deplibs=yes
11513 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11514 # GNU and its variants, using gnu ld.so (Glibc)
11515 libltdl_cv_sys_dlopen_deplibs=yes
11518 libltdl_cv_sys_dlopen_deplibs=yes
11521 libltdl_cv_sys_dlopen_deplibs=yes
11523 irix[12345]*|irix6.[01]*)
11524 # Catch all versions of IRIX before 6.2, and indicate that we don't
11525 # know how it worked for any of those versions.
11526 libltdl_cv_sys_dlopen_deplibs=unknown
11529 # The case above catches anything before 6.2, and it's known that
11530 # at 6.2 and later dlopen does load deplibs.
11531 libltdl_cv_sys_dlopen_deplibs=yes
11534 libltdl_cv_sys_dlopen_deplibs=yes
11537 libltdl_cv_sys_dlopen_deplibs=yes
11540 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11541 # it did *not* use an RPATH in a shared library to find objects the
11542 # library depends on, so we explictly say `no'.
11543 libltdl_cv_sys_dlopen_deplibs=no
11545 osf5.0|osf5.0a|osf5.1)
11546 # dlopen *does* load deplibs and with the right loader patch applied
11547 # it even uses RPATH in a shared library to search for shared objects
11548 # that the library depends on, but there's no easy way to know if that
11549 # patch is installed. Since this is the case, all we can really
11550 # say is unknown -- it depends on the patch being installed. If
11551 # it is, this changes to `yes'. Without it, it would be `no'.
11552 libltdl_cv_sys_dlopen_deplibs=unknown
11555 # the two cases above should catch all versions of osf <= 5.1. Read
11556 # the comments above for what we know about them.
11557 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11558 # is used to find them so we can finally say `yes'.
11559 libltdl_cv_sys_dlopen_deplibs=yes
11562 libltdl_cv_sys_dlopen_deplibs=yes
11564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11565 libltdl_cv_sys_dlopen_deplibs=yes
11570 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11571 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11572 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11574 cat >>confdefs.h <<\_ACEOF
11575 #define LTDL_DLOPEN_DEPLIBS 1
11581 for ac_header in argz.h
11583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11590 ac_res=`eval echo '${'$as_ac_Header'}'`
11591 { echo "$as_me:$LINENO: result: $ac_res" >&5
11592 echo "${ECHO_T}$ac_res" >&6; }
11594 # Is the header compilable?
11595 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11597 cat >conftest.$ac_ext <<_ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 $ac_includes_default
11604 #include <$ac_header>
11606 rm -f conftest.$ac_objext
11607 if { (ac_try="$ac_compile"
11608 case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_compile") 2>conftest.er1
11615 grep -v '^ *+' conftest.er1 >conftest.err
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
11620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11621 { (case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_try") 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; } &&
11630 { ac_try='test -s conftest.$ac_objext'
11631 { (case "(($ac_try" in
11632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633 *) ac_try_echo=$ac_try;;
11635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636 (eval "$ac_try") 2>&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 ac_header_compiler=yes
11642 echo "$as_me: failed program was:" >&5
11643 sed 's/^/| /' conftest.$ac_ext >&5
11645 ac_header_compiler=no
11648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11650 echo "${ECHO_T}$ac_header_compiler" >&6; }
11652 # Is the header present?
11653 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11655 cat >conftest.$ac_ext <<_ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 #include <$ac_header>
11663 if { (ac_try="$ac_cpp conftest.$ac_ext"
11664 case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11671 grep -v '^ *+' conftest.er1 >conftest.err
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } >/dev/null; then
11676 if test -s conftest.err; then
11677 ac_cpp_err=$ac_c_preproc_warn_flag
11678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11685 if test -z "$ac_cpp_err"; then
11686 ac_header_preproc=yes
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 ac_header_preproc=no
11694 rm -f conftest.err conftest.$ac_ext
11695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11696 echo "${ECHO_T}$ac_header_preproc" >&6; }
11698 # So? What about this header?
11699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11705 ac_header_preproc=yes
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11721 ## ----------------------------------- ##
11722 ## Report this to llvmbugs@cs.uiuc.edu ##
11723 ## ----------------------------------- ##
11725 ) | sed "s/^/$as_me: WARNING: /" >&2
11728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 eval "$as_ac_Header=\$ac_header_preproc"
11735 ac_res=`eval echo '${'$as_ac_Header'}'`
11736 { echo "$as_me:$LINENO: result: $ac_res" >&5
11737 echo "${ECHO_T}$ac_res" >&6; }
11740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11741 cat >>confdefs.h <<_ACEOF
11742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11750 { echo "$as_me:$LINENO: checking for error_t" >&5
11751 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11752 if test "${ac_cv_type_error_t+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 cat >conftest.$ac_ext <<_ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11765 typedef error_t ac__type_new_;
11769 if ((ac__type_new_ *) 0)
11771 if (sizeof (ac__type_new_))
11777 rm -f conftest.$ac_objext
11778 if { (ac_try="$ac_compile"
11779 case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_compile") 2>conftest.er1
11786 grep -v '^ *+' conftest.er1 >conftest.err
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
11791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11792 { (case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_try") 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try='test -s conftest.$ac_objext'
11802 { (case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807 (eval "$ac_try") 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 ac_cv_type_error_t=yes
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11816 ac_cv_type_error_t=no
11819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11821 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11822 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11823 if test $ac_cv_type_error_t = yes; then
11825 cat >>confdefs.h <<_ACEOF
11826 #define HAVE_ERROR_T 1
11832 cat >>confdefs.h <<\_ACEOF
11833 #define error_t int
11844 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 cat >conftest.$ac_ext <<_ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11860 #define $ac_func innocuous_$ac_func
11862 /* System header to define __stub macros and hopefully few prototypes,
11863 which can conflict with char $ac_func (); below.
11864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11865 <limits.h> exists even on freestanding compilers. */
11868 # include <limits.h>
11870 # include <assert.h>
11875 /* Override any GCC internal prototype to avoid an error.
11876 Use char because int might match the return type of a GCC
11877 builtin and then its argument prototype would still apply. */
11882 /* The GNU C library defines this for functions which it implements
11883 to always fail with ENOSYS. Some functions are actually named
11884 something starting with __ and the normal name is an alias. */
11885 #if defined __stub_$ac_func || defined __stub___$ac_func
11892 return $ac_func ();
11897 rm -f conftest.$ac_objext conftest$ac_exeext
11898 if { (ac_try="$ac_link"
11899 case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_link") 2>conftest.er1
11906 grep -v '^ *+' conftest.er1 >conftest.err
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11912 { (case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_try") 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; } &&
11921 { ac_try='test -s conftest$ac_exeext'
11922 { (case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_try") 2>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 eval "$as_ac_var=yes"
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 eval "$as_ac_var=no"
11939 rm -f core conftest.err conftest.$ac_objext \
11940 conftest$ac_exeext conftest.$ac_ext
11942 ac_res=`eval echo '${'$as_ac_var'}'`
11943 { echo "$as_me:$LINENO: result: $ac_res" >&5
11944 echo "${ECHO_T}$ac_res" >&6; }
11945 if test `eval echo '${'$as_ac_var'}'` = yes; then
11946 cat >>confdefs.h <<_ACEOF
11947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11980 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11990 ac_res=`eval echo '${'$as_ac_Header'}'`
11991 { echo "$as_me:$LINENO: result: $ac_res" >&5
11992 echo "${ECHO_T}$ac_res" >&6; }
11994 # Is the header compilable?
11995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11997 cat >conftest.$ac_ext <<_ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 $ac_includes_default
12004 #include <$ac_header>
12006 rm -f conftest.$ac_objext
12007 if { (ac_try="$ac_compile"
12008 case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_compile") 2>conftest.er1
12015 grep -v '^ *+' conftest.er1 >conftest.err
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12021 { (case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_try") 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; } &&
12030 { ac_try='test -s conftest.$ac_objext'
12031 { (case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_try") 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 ac_header_compiler=yes
12042 echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12045 ac_header_compiler=no
12048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12050 echo "${ECHO_T}$ac_header_compiler" >&6; }
12052 # Is the header present?
12053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12055 cat >conftest.$ac_ext <<_ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12061 #include <$ac_header>
12063 if { (ac_try="$ac_cpp conftest.$ac_ext"
12064 case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12071 grep -v '^ *+' conftest.er1 >conftest.err
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } >/dev/null; then
12076 if test -s conftest.err; then
12077 ac_cpp_err=$ac_c_preproc_warn_flag
12078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12085 if test -z "$ac_cpp_err"; then
12086 ac_header_preproc=yes
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12091 ac_header_preproc=no
12094 rm -f conftest.err conftest.$ac_ext
12095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12096 echo "${ECHO_T}$ac_header_preproc" >&6; }
12098 # So? What about this header?
12099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12105 ac_header_preproc=yes
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12121 ## ----------------------------------- ##
12122 ## Report this to llvmbugs@cs.uiuc.edu ##
12123 ## ----------------------------------- ##
12125 ) | sed "s/^/$as_me: WARNING: /" >&2
12128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 eval "$as_ac_Header=\$ac_header_preproc"
12135 ac_res=`eval echo '${'$as_ac_Header'}'`
12136 { echo "$as_me:$LINENO: result: $ac_res" >&5
12137 echo "${ECHO_T}$ac_res" >&6; }
12140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12141 cat >>confdefs.h <<_ACEOF
12142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12153 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 ac_res=`eval echo '${'$as_ac_Header'}'`
12163 { echo "$as_me:$LINENO: result: $ac_res" >&5
12164 echo "${ECHO_T}$ac_res" >&6; }
12166 # Is the header compilable?
12167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12169 cat >conftest.$ac_ext <<_ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 $ac_includes_default
12176 #include <$ac_header>
12178 rm -f conftest.$ac_objext
12179 if { (ac_try="$ac_compile"
12180 case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_compile") 2>conftest.er1
12187 grep -v '^ *+' conftest.er1 >conftest.err
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } &&
12192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12193 { (case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_try") 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; } &&
12202 { ac_try='test -s conftest.$ac_objext'
12203 { (case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_try") 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_header_compiler=yes
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 ac_header_compiler=no
12220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12222 echo "${ECHO_T}$ac_header_compiler" >&6; }
12224 # Is the header present?
12225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12227 cat >conftest.$ac_ext <<_ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12233 #include <$ac_header>
12235 if { (ac_try="$ac_cpp conftest.$ac_ext"
12236 case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12243 grep -v '^ *+' conftest.er1 >conftest.err
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } >/dev/null; then
12248 if test -s conftest.err; then
12249 ac_cpp_err=$ac_c_preproc_warn_flag
12250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12257 if test -z "$ac_cpp_err"; then
12258 ac_header_preproc=yes
12260 echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12263 ac_header_preproc=no
12266 rm -f conftest.err conftest.$ac_ext
12267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12268 echo "${ECHO_T}$ac_header_preproc" >&6; }
12270 # So? What about this header?
12271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12277 ac_header_preproc=yes
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12293 ## ----------------------------------- ##
12294 ## Report this to llvmbugs@cs.uiuc.edu ##
12295 ## ----------------------------------- ##
12297 ) | sed "s/^/$as_me: WARNING: /" >&2
12300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 eval "$as_ac_Header=\$ac_header_preproc"
12307 ac_res=`eval echo '${'$as_ac_Header'}'`
12308 { echo "$as_me:$LINENO: result: $ac_res" >&5
12309 echo "${ECHO_T}$ac_res" >&6; }
12312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12313 cat >>confdefs.h <<_ACEOF
12314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12323 for ac_header in string.h strings.h
12325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12332 ac_res=`eval echo '${'$as_ac_Header'}'`
12333 { echo "$as_me:$LINENO: result: $ac_res" >&5
12334 echo "${ECHO_T}$ac_res" >&6; }
12336 # Is the header compilable?
12337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12339 cat >conftest.$ac_ext <<_ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12345 $ac_includes_default
12346 #include <$ac_header>
12348 rm -f conftest.$ac_objext
12349 if { (ac_try="$ac_compile"
12350 case "(($ac_try" in
12351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352 *) ac_try_echo=$ac_try;;
12354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12355 (eval "$ac_compile") 2>conftest.er1
12357 grep -v '^ *+' conftest.er1 >conftest.err
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12363 { (case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_try") 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; } &&
12372 { ac_try='test -s conftest.$ac_objext'
12373 { (case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_try") 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 ac_header_compiler=yes
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12387 ac_header_compiler=no
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12392 echo "${ECHO_T}$ac_header_compiler" >&6; }
12394 # Is the header present?
12395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12397 cat >conftest.$ac_ext <<_ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h. */
12403 #include <$ac_header>
12405 if { (ac_try="$ac_cpp conftest.$ac_ext"
12406 case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12413 grep -v '^ *+' conftest.er1 >conftest.err
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } >/dev/null; then
12418 if test -s conftest.err; then
12419 ac_cpp_err=$ac_c_preproc_warn_flag
12420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12427 if test -z "$ac_cpp_err"; then
12428 ac_header_preproc=yes
12430 echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12433 ac_header_preproc=no
12436 rm -f conftest.err conftest.$ac_ext
12437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12438 echo "${ECHO_T}$ac_header_preproc" >&6; }
12440 # So? What about this header?
12441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12447 ac_header_preproc=yes
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12463 ## ----------------------------------- ##
12464 ## Report this to llvmbugs@cs.uiuc.edu ##
12465 ## ----------------------------------- ##
12467 ) | sed "s/^/$as_me: WARNING: /" >&2
12470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 eval "$as_ac_Header=\$ac_header_preproc"
12477 ac_res=`eval echo '${'$as_ac_Header'}'`
12478 { echo "$as_me:$LINENO: result: $ac_res" >&5
12479 echo "${ECHO_T}$ac_res" >&6; }
12482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12483 cat >>confdefs.h <<_ACEOF
12484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12494 for ac_func in strchr index
12496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12502 cat >conftest.$ac_ext <<_ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12510 #define $ac_func innocuous_$ac_func
12512 /* System header to define __stub macros and hopefully few prototypes,
12513 which can conflict with char $ac_func (); below.
12514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12515 <limits.h> exists even on freestanding compilers. */
12518 # include <limits.h>
12520 # include <assert.h>
12525 /* Override any GCC internal prototype to avoid an error.
12526 Use char because int might match the return type of a GCC
12527 builtin and then its argument prototype would still apply. */
12532 /* The GNU C library defines this for functions which it implements
12533 to always fail with ENOSYS. Some functions are actually named
12534 something starting with __ and the normal name is an alias. */
12535 #if defined __stub_$ac_func || defined __stub___$ac_func
12542 return $ac_func ();
12547 rm -f conftest.$ac_objext conftest$ac_exeext
12548 if { (ac_try="$ac_link"
12549 case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_link") 2>conftest.er1
12556 grep -v '^ *+' conftest.er1 >conftest.err
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12562 { (case "(($ac_try" in
12563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564 *) ac_try_echo=$ac_try;;
12566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567 (eval "$ac_try") 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest$ac_exeext'
12572 { (case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_try") 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 eval "$as_ac_var=yes"
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12586 eval "$as_ac_var=no"
12589 rm -f core conftest.err conftest.$ac_objext \
12590 conftest$ac_exeext conftest.$ac_ext
12592 ac_res=`eval echo '${'$as_ac_var'}'`
12593 { echo "$as_me:$LINENO: result: $ac_res" >&5
12594 echo "${ECHO_T}$ac_res" >&6; }
12595 if test `eval echo '${'$as_ac_var'}'` = yes; then
12596 cat >>confdefs.h <<_ACEOF
12597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12605 for ac_func in strrchr rindex
12607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 cat >conftest.$ac_ext <<_ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12621 #define $ac_func innocuous_$ac_func
12623 /* System header to define __stub macros and hopefully few prototypes,
12624 which can conflict with char $ac_func (); below.
12625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12626 <limits.h> exists even on freestanding compilers. */
12629 # include <limits.h>
12631 # include <assert.h>
12636 /* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12643 /* The GNU C library defines this for functions which it implements
12644 to always fail with ENOSYS. Some functions are actually named
12645 something starting with __ and the normal name is an alias. */
12646 #if defined __stub_$ac_func || defined __stub___$ac_func
12653 return $ac_func ();
12658 rm -f conftest.$ac_objext conftest$ac_exeext
12659 if { (ac_try="$ac_link"
12660 case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_link") 2>conftest.er1
12667 grep -v '^ *+' conftest.er1 >conftest.err
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673 { (case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_try") 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest$ac_exeext'
12683 { (case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_try") 2>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 eval "$as_ac_var=yes"
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12697 eval "$as_ac_var=no"
12700 rm -f core conftest.err conftest.$ac_objext \
12701 conftest$ac_exeext conftest.$ac_ext
12703 ac_res=`eval echo '${'$as_ac_var'}'`
12704 { echo "$as_me:$LINENO: result: $ac_res" >&5
12705 echo "${ECHO_T}$ac_res" >&6; }
12706 if test `eval echo '${'$as_ac_var'}'` = yes; then
12707 cat >>confdefs.h <<_ACEOF
12708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12716 for ac_func in memcpy bcopy
12718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12724 cat >conftest.$ac_ext <<_ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12732 #define $ac_func innocuous_$ac_func
12734 /* System header to define __stub macros and hopefully few prototypes,
12735 which can conflict with char $ac_func (); below.
12736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12737 <limits.h> exists even on freestanding compilers. */
12740 # include <limits.h>
12742 # include <assert.h>
12747 /* Override any GCC internal prototype to avoid an error.
12748 Use char because int might match the return type of a GCC
12749 builtin and then its argument prototype would still apply. */
12754 /* The GNU C library defines this for functions which it implements
12755 to always fail with ENOSYS. Some functions are actually named
12756 something starting with __ and the normal name is an alias. */
12757 #if defined __stub_$ac_func || defined __stub___$ac_func
12764 return $ac_func ();
12769 rm -f conftest.$ac_objext conftest$ac_exeext
12770 if { (ac_try="$ac_link"
12771 case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_link") 2>conftest.er1
12778 grep -v '^ *+' conftest.er1 >conftest.err
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
12783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12784 { (case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_try") 2>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; } &&
12793 { ac_try='test -s conftest$ac_exeext'
12794 { (case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_try") 2>&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
12803 eval "$as_ac_var=yes"
12805 echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12808 eval "$as_ac_var=no"
12811 rm -f core conftest.err conftest.$ac_objext \
12812 conftest$ac_exeext conftest.$ac_ext
12814 ac_res=`eval echo '${'$as_ac_var'}'`
12815 { echo "$as_me:$LINENO: result: $ac_res" >&5
12816 echo "${ECHO_T}$ac_res" >&6; }
12817 if test `eval echo '${'$as_ac_var'}'` = yes; then
12818 cat >>confdefs.h <<_ACEOF
12819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12827 for ac_func in memmove strcmp
12829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12835 cat >conftest.$ac_ext <<_ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12843 #define $ac_func innocuous_$ac_func
12845 /* System header to define __stub macros and hopefully few prototypes,
12846 which can conflict with char $ac_func (); below.
12847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12848 <limits.h> exists even on freestanding compilers. */
12851 # include <limits.h>
12853 # include <assert.h>
12858 /* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12865 /* The GNU C library defines this for functions which it implements
12866 to always fail with ENOSYS. Some functions are actually named
12867 something starting with __ and the normal name is an alias. */
12868 #if defined __stub_$ac_func || defined __stub___$ac_func
12875 return $ac_func ();
12880 rm -f conftest.$ac_objext conftest$ac_exeext
12881 if { (ac_try="$ac_link"
12882 case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_link") 2>conftest.er1
12889 grep -v '^ *+' conftest.er1 >conftest.err
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try='test -s conftest$ac_exeext'
12905 { (case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910 (eval "$ac_try") 2>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 eval "$as_ac_var=yes"
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12919 eval "$as_ac_var=no"
12922 rm -f core conftest.err conftest.$ac_objext \
12923 conftest$ac_exeext conftest.$ac_ext
12925 ac_res=`eval echo '${'$as_ac_var'}'`
12926 { echo "$as_me:$LINENO: result: $ac_res" >&5
12927 echo "${ECHO_T}$ac_res" >&6; }
12928 if test `eval echo '${'$as_ac_var'}'` = yes; then
12929 cat >>confdefs.h <<_ACEOF
12930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12939 for ac_func in closedir opendir readdir
12941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 cat >conftest.$ac_ext <<_ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12955 #define $ac_func innocuous_$ac_func
12957 /* System header to define __stub macros and hopefully few prototypes,
12958 which can conflict with char $ac_func (); below.
12959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12960 <limits.h> exists even on freestanding compilers. */
12963 # include <limits.h>
12965 # include <assert.h>
12970 /* Override any GCC internal prototype to avoid an error.
12971 Use char because int might match the return type of a GCC
12972 builtin and then its argument prototype would still apply. */
12977 /* The GNU C library defines this for functions which it implements
12978 to always fail with ENOSYS. Some functions are actually named
12979 something starting with __ and the normal name is an alias. */
12980 #if defined __stub_$ac_func || defined __stub___$ac_func
12987 return $ac_func ();
12992 rm -f conftest.$ac_objext conftest$ac_exeext
12993 if { (ac_try="$ac_link"
12994 case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_link") 2>conftest.er1
13001 grep -v '^ *+' conftest.er1 >conftest.err
13003 cat conftest.err >&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13007 { (case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_try") 2>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; } &&
13016 { ac_try='test -s conftest$ac_exeext'
13017 { (case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_try") 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 eval "$as_ac_var=yes"
13028 echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13031 eval "$as_ac_var=no"
13034 rm -f core conftest.err conftest.$ac_objext \
13035 conftest$ac_exeext conftest.$ac_ext
13037 ac_res=`eval echo '${'$as_ac_var'}'`
13038 { echo "$as_me:$LINENO: result: $ac_res" >&5
13039 echo "${ECHO_T}$ac_res" >&6; }
13040 if test `eval echo '${'$as_ac_var'}'` = yes; then
13041 cat >>confdefs.h <<_ACEOF
13042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13050 if test "$WITH_LLVMGCCDIR" = "default" ; then
13051 LLVMGCC="llvm-gcc${EXEEXT}"
13052 LLVMGXX="llvm-g++${EXEEXT}"
13053 LLVMGCCCOMMAND="$LLVMGCC"
13054 LLVMGXXCOMMAND="$LLVMGXX"
13055 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13057 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13059 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13060 set dummy $LLVMGCC; ac_word=$2
13061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13063 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13078 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13089 LLVMGCC=$ac_cv_path_LLVMGCC
13090 if test -n "$LLVMGCC"; then
13091 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13092 echo "${ECHO_T}$LLVMGCC" >&6; }
13094 { echo "$as_me:$LINENO: result: no" >&5
13095 echo "${ECHO_T}no" >&6; }
13099 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13100 set dummy $LLVMGXX; ac_word=$2
13101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13103 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13108 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112 for as_dir in $PATH
13115 test -z "$as_dir" && as_dir=.
13116 for ac_exec_ext in '' $ac_executable_extensions; do
13117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13118 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13129 LLVMGXX=$ac_cv_path_LLVMGXX
13130 if test -n "$LLVMGXX"; then
13131 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13132 echo "${ECHO_T}$LLVMGXX" >&6; }
13134 { echo "$as_me:$LINENO: result: no" >&5
13135 echo "${ECHO_T}no" >&6; }
13140 if test -z "$LLVMGCC"; then
13141 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13142 LLVMGCCCOMMAND="$LLVMGCC"
13144 if test -z "$LLVMGXX"; then
13145 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13146 LLVMGXXCOMMAND="$LLVMGXX"
13153 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13155 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13160 # Check whether --with-llvmcc was given.
13161 if test "${with_llvmcc+set}" = set; then
13162 withval=$with_llvmcc;
13167 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13168 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13169 if test "$with_llvmcc" != "check"; then
13170 if (test "$with_llvmcc" != "llvm-gcc" &&
13171 test "$with_llvmcc" != "clang" &&
13172 test "$with_llvmcc" != "none"); then
13173 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13174 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13175 { (exit 1); exit 1; }; }
13177 WITH_LLVMCC="$with_llvmcc"
13178 elif test -n "$LLVMGCC"; then
13179 WITH_LLVMCC=llvm-gcc
13180 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13185 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13186 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13187 LLVMCC_OPTION=$WITH_LLVMCC
13190 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13191 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13204 if test "$GCC" != "yes" && test "$ICC" != "yes"
13206 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13207 echo "$as_me: error: gcc|icc required but not found" >&2;}
13208 { (exit 1); exit 1; }; }
13211 if test "$GXX" != "yes" && test "$IXX" != "yes"
13213 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13214 echo "$as_me: error: g++|icc required but not found" >&2;}
13215 { (exit 1); exit 1; }; }
13218 if test "$GCC" = "yes"
13220 cat >conftest.$ac_ext <<_ACEOF
13221 #if !defined(__GNUC__) || __GNUC__ < 3
13222 #error Unsupported GCC version
13226 rm -f conftest.$ac_objext
13227 if { (ac_try="$ac_compile"
13228 case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_compile") 2>conftest.er1
13235 grep -v '^ *+' conftest.er1 >conftest.err
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
13240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13241 { (case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_try") 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest.$ac_objext'
13251 { (case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_try") 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13266 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13267 { (exit 1); exit 1; }; }
13270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13273 if test -z "$llvm_cv_gnu_make_command"
13275 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13276 echo "$as_me: error: GNU Make required but not found" >&2;}
13277 { (exit 1); exit 1; }; }
13280 { echo "$as_me:$LINENO: result: ok" >&5
13281 echo "${ECHO_T}ok" >&6; }
13283 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13284 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13285 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13287 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13289 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13290 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13294 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13295 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13296 if test "${ac_cv_lib_m_sin+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13299 ac_check_lib_save_LIBS=$LIBS
13301 cat >conftest.$ac_ext <<_ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13308 /* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
13323 rm -f conftest.$ac_objext conftest$ac_exeext
13324 if { (ac_try="$ac_link"
13325 case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_link") 2>conftest.er1
13332 grep -v '^ *+' conftest.er1 >conftest.err
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } &&
13337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_try") 2>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; } &&
13347 { ac_try='test -s conftest$ac_exeext'
13348 { (case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_try") 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13357 ac_cv_lib_m_sin=yes
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13365 rm -f core conftest.err conftest.$ac_objext \
13366 conftest$ac_exeext conftest.$ac_ext
13367 LIBS=$ac_check_lib_save_LIBS
13369 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13370 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13371 if test $ac_cv_lib_m_sin = yes; then
13372 cat >>confdefs.h <<_ACEOF
13373 #define HAVE_LIBM 1
13380 if test "$llvm_cv_os_type" = "MingW" ; then
13382 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13383 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13384 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 ac_check_lib_save_LIBS=$LIBS
13388 LIBS="-limagehlp $LIBS"
13389 cat >conftest.$ac_ext <<_ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13405 rm -f conftest.$ac_objext conftest$ac_exeext
13406 if { (ac_try="$ac_link"
13407 case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_link") 2>conftest.er1
13414 grep -v '^ *+' conftest.er1 >conftest.err
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } &&
13419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest$ac_exeext'
13430 { (case "(($ac_try" in
13431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432 *) ac_try_echo=$ac_try;;
13434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435 (eval "$ac_try") 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
13439 ac_cv_lib_imagehlp_main=yes
13441 echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13444 ac_cv_lib_imagehlp_main=no
13447 rm -f core conftest.err conftest.$ac_objext \
13448 conftest$ac_exeext conftest.$ac_ext
13449 LIBS=$ac_check_lib_save_LIBS
13451 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13452 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13453 if test $ac_cv_lib_imagehlp_main = yes; then
13454 cat >>confdefs.h <<_ACEOF
13455 #define HAVE_LIBIMAGEHLP 1
13458 LIBS="-limagehlp $LIBS"
13463 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13464 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13465 if test "${ac_cv_lib_psapi_main+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 ac_check_lib_save_LIBS=$LIBS
13469 LIBS="-lpsapi $LIBS"
13470 cat >conftest.$ac_ext <<_ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13486 rm -f conftest.$ac_objext conftest$ac_exeext
13487 if { (ac_try="$ac_link"
13488 case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493 (eval "$ac_link") 2>conftest.er1
13495 grep -v '^ *+' conftest.er1 >conftest.err
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13501 { (case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_try") 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; } &&
13510 { ac_try='test -s conftest$ac_exeext'
13511 { (case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_try") 2>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520 ac_cv_lib_psapi_main=yes
13522 echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13525 ac_cv_lib_psapi_main=no
13528 rm -f core conftest.err conftest.$ac_objext \
13529 conftest$ac_exeext conftest.$ac_ext
13530 LIBS=$ac_check_lib_save_LIBS
13532 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13533 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13534 if test $ac_cv_lib_psapi_main = yes; then
13535 cat >>confdefs.h <<_ACEOF
13536 #define HAVE_LIBPSAPI 1
13539 LIBS="-lpsapi $LIBS"
13545 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13546 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13547 if test "${ac_cv_search_dlopen+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 ac_func_search_save_LIBS=$LIBS
13551 cat >conftest.$ac_ext <<_ACEOF
13554 cat confdefs.h >>conftest.$ac_ext
13555 cat >>conftest.$ac_ext <<_ACEOF
13556 /* end confdefs.h. */
13558 /* Override any GCC internal prototype to avoid an error.
13559 Use char because int might match the return type of a GCC
13560 builtin and then its argument prototype would still apply. */
13573 for ac_lib in '' dl; do
13574 if test -z "$ac_lib"; then
13575 ac_res="none required"
13578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13580 rm -f conftest.$ac_objext conftest$ac_exeext
13581 if { (ac_try="$ac_link"
13582 case "(($ac_try" in
13583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584 *) ac_try_echo=$ac_try;;
13586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587 (eval "$ac_link") 2>conftest.er1
13589 grep -v '^ *+' conftest.er1 >conftest.err
13591 cat conftest.err >&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } &&
13594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13595 { (case "(($ac_try" in
13596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13597 *) ac_try_echo=$ac_try;;
13599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13600 (eval "$ac_try") 2>&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); }; } &&
13604 { ac_try='test -s conftest$ac_exeext'
13605 { (case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13610 (eval "$ac_try") 2>&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 ac_cv_search_dlopen=$ac_res
13616 echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13622 rm -f core conftest.err conftest.$ac_objext \
13624 if test "${ac_cv_search_dlopen+set}" = set; then
13628 if test "${ac_cv_search_dlopen+set}" = set; then
13631 ac_cv_search_dlopen=no
13633 rm conftest.$ac_ext
13634 LIBS=$ac_func_search_save_LIBS
13636 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13637 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13638 ac_res=$ac_cv_search_dlopen
13639 if test "$ac_res" != no; then
13640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13642 cat >>confdefs.h <<\_ACEOF
13643 #define HAVE_DLOPEN 1
13647 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13648 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13652 if test "$llvm_cv_enable_libffi" = "yes" ; then
13653 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13654 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13655 if test "${ac_cv_search_ffi_call+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 ac_func_search_save_LIBS=$LIBS
13659 cat >conftest.$ac_ext <<_ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13666 /* Override any GCC internal prototype to avoid an error.
13667 Use char because int might match the return type of a GCC
13668 builtin and then its argument prototype would still apply. */
13676 return ffi_call ();
13681 for ac_lib in '' ffi; do
13682 if test -z "$ac_lib"; then
13683 ac_res="none required"
13686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13688 rm -f conftest.$ac_objext conftest$ac_exeext
13689 if { (ac_try="$ac_link"
13690 case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_link") 2>conftest.er1
13697 grep -v '^ *+' conftest.er1 >conftest.err
13699 cat conftest.err >&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } &&
13702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13703 { (case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_try") 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; } &&
13712 { ac_try='test -s conftest$ac_exeext'
13713 { (case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_try") 2>&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
13722 ac_cv_search_ffi_call=$ac_res
13724 echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13730 rm -f core conftest.err conftest.$ac_objext \
13732 if test "${ac_cv_search_ffi_call+set}" = set; then
13736 if test "${ac_cv_search_ffi_call+set}" = set; then
13739 ac_cv_search_ffi_call=no
13741 rm conftest.$ac_ext
13742 LIBS=$ac_func_search_save_LIBS
13744 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13745 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13746 ac_res=$ac_cv_search_ffi_call
13747 if test "$ac_res" != no; then
13748 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13750 cat >>confdefs.h <<\_ACEOF
13751 #define HAVE_FFI_CALL 1
13755 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13756 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13757 { (exit 1); exit 1; }; }
13762 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13763 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13764 if test "${ac_cv_search_mallinfo+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13767 ac_func_search_save_LIBS=$LIBS
13768 cat >conftest.$ac_ext <<_ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h. */
13775 /* Override any GCC internal prototype to avoid an error.
13776 Use char because int might match the return type of a GCC
13777 builtin and then its argument prototype would still apply. */
13785 return mallinfo ();
13790 for ac_lib in '' malloc; do
13791 if test -z "$ac_lib"; then
13792 ac_res="none required"
13795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13797 rm -f conftest.$ac_objext conftest$ac_exeext
13798 if { (ac_try="$ac_link"
13799 case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_link") 2>conftest.er1
13806 grep -v '^ *+' conftest.er1 >conftest.err
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } &&
13811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13812 { (case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_try") 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; } &&
13821 { ac_try='test -s conftest$ac_exeext'
13822 { (case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_try") 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 ac_cv_search_mallinfo=$ac_res
13833 echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13839 rm -f core conftest.err conftest.$ac_objext \
13841 if test "${ac_cv_search_mallinfo+set}" = set; then
13845 if test "${ac_cv_search_mallinfo+set}" = set; then
13848 ac_cv_search_mallinfo=no
13850 rm conftest.$ac_ext
13851 LIBS=$ac_func_search_save_LIBS
13853 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13854 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13855 ac_res=$ac_cv_search_mallinfo
13856 if test "$ac_res" != no; then
13857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13859 cat >>confdefs.h <<\_ACEOF
13860 #define HAVE_MALLINFO 1
13866 if test "$ENABLE_THREADS" -eq 1 ; then
13868 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13869 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13870 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 ac_check_lib_save_LIBS=$LIBS
13874 LIBS="-lpthread $LIBS"
13875 cat >conftest.$ac_ext <<_ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h. */
13882 /* Override any GCC internal prototype to avoid an error.
13883 Use char because int might match the return type of a GCC
13884 builtin and then its argument prototype would still apply. */
13888 char pthread_mutex_init ();
13892 return pthread_mutex_init ();
13897 rm -f conftest.$ac_objext conftest$ac_exeext
13898 if { (ac_try="$ac_link"
13899 case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_link") 2>conftest.er1
13906 grep -v '^ *+' conftest.er1 >conftest.err
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
13911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13912 { (case "(($ac_try" in
13913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13914 *) ac_try_echo=$ac_try;;
13916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13917 (eval "$ac_try") 2>&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest$ac_exeext'
13922 { (case "(($ac_try" in
13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927 (eval "$ac_try") 2>&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; }; then
13931 ac_cv_lib_pthread_pthread_mutex_init=yes
13933 echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13936 ac_cv_lib_pthread_pthread_mutex_init=no
13939 rm -f core conftest.err conftest.$ac_objext \
13940 conftest$ac_exeext conftest.$ac_ext
13941 LIBS=$ac_check_lib_save_LIBS
13943 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13944 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13945 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13946 cat >>confdefs.h <<_ACEOF
13947 #define HAVE_LIBPTHREAD 1
13950 LIBS="-lpthread $LIBS"
13954 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13955 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13956 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 ac_func_search_save_LIBS=$LIBS
13960 cat >conftest.$ac_ext <<_ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13967 /* Override any GCC internal prototype to avoid an error.
13968 Use char because int might match the return type of a GCC
13969 builtin and then its argument prototype would still apply. */
13973 char pthread_mutex_lock ();
13977 return pthread_mutex_lock ();
13982 for ac_lib in '' pthread; do
13983 if test -z "$ac_lib"; then
13984 ac_res="none required"
13987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13989 rm -f conftest.$ac_objext conftest$ac_exeext
13990 if { (ac_try="$ac_link"
13991 case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_link") 2>conftest.er1
13998 grep -v '^ *+' conftest.er1 >conftest.err
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; } &&
14013 { ac_try='test -s conftest$ac_exeext'
14014 { (case "(($ac_try" in
14015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016 *) ac_try_echo=$ac_try;;
14018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019 (eval "$ac_try") 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
14023 ac_cv_search_pthread_mutex_lock=$ac_res
14025 echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14031 rm -f core conftest.err conftest.$ac_objext \
14033 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14037 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14040 ac_cv_search_pthread_mutex_lock=no
14042 rm conftest.$ac_ext
14043 LIBS=$ac_func_search_save_LIBS
14045 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14046 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14047 ac_res=$ac_cv_search_pthread_mutex_lock
14048 if test "$ac_res" != no; then
14049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14051 cat >>confdefs.h <<\_ACEOF
14052 #define HAVE_PTHREAD_MUTEX_LOCK 1
14057 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14058 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14059 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 ac_func_search_save_LIBS=$LIBS
14063 cat >conftest.$ac_ext <<_ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14070 /* Override any GCC internal prototype to avoid an error.
14071 Use char because int might match the return type of a GCC
14072 builtin and then its argument prototype would still apply. */
14076 char pthread_rwlock_init ();
14080 return pthread_rwlock_init ();
14085 for ac_lib in '' pthread; do
14086 if test -z "$ac_lib"; then
14087 ac_res="none required"
14090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (ac_try="$ac_link"
14094 case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_link") 2>conftest.er1
14101 grep -v '^ *+' conftest.er1 >conftest.err
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14107 { (case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest$ac_exeext'
14117 { (case "(($ac_try" in
14118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119 *) ac_try_echo=$ac_try;;
14121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122 (eval "$ac_try") 2>&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
14126 ac_cv_search_pthread_rwlock_init=$ac_res
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14134 rm -f core conftest.err conftest.$ac_objext \
14136 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14140 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14143 ac_cv_search_pthread_rwlock_init=no
14145 rm conftest.$ac_ext
14146 LIBS=$ac_func_search_save_LIBS
14148 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14149 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14150 ac_res=$ac_cv_search_pthread_rwlock_init
14151 if test "$ac_res" != no; then
14152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14154 cat >>confdefs.h <<\_ACEOF
14155 #define HAVE_PTHREAD_RWLOCK_INIT 1
14160 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14161 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14162 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 ac_func_search_save_LIBS=$LIBS
14166 cat >conftest.$ac_ext <<_ACEOF
14169 cat confdefs.h >>conftest.$ac_ext
14170 cat >>conftest.$ac_ext <<_ACEOF
14171 /* end confdefs.h. */
14173 /* Override any GCC internal prototype to avoid an error.
14174 Use char because int might match the return type of a GCC
14175 builtin and then its argument prototype would still apply. */
14179 char pthread_getspecific ();
14183 return pthread_getspecific ();
14188 for ac_lib in '' pthread; do
14189 if test -z "$ac_lib"; then
14190 ac_res="none required"
14193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14195 rm -f conftest.$ac_objext conftest$ac_exeext
14196 if { (ac_try="$ac_link"
14197 case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_link") 2>conftest.er1
14204 grep -v '^ *+' conftest.er1 >conftest.err
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } &&
14209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14210 { (case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_try") 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; } &&
14219 { ac_try='test -s conftest$ac_exeext'
14220 { (case "(($ac_try" in
14221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222 *) ac_try_echo=$ac_try;;
14224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14225 (eval "$ac_try") 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; }; then
14229 ac_cv_search_pthread_getspecific=$ac_res
14231 echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14237 rm -f core conftest.err conftest.$ac_objext \
14239 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14243 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14246 ac_cv_search_pthread_getspecific=no
14248 rm conftest.$ac_ext
14249 LIBS=$ac_func_search_save_LIBS
14251 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14252 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14253 ac_res=$ac_cv_search_pthread_getspecific
14254 if test "$ac_res" != no; then
14255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14257 cat >>confdefs.h <<\_ACEOF
14258 #define HAVE_PTHREAD_GETSPECIFIC 1
14266 # Check whether --with-udis86 was given.
14267 if test "${with_udis86+set}" = set; then
14268 withval=$with_udis86;
14273 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14276 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14277 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14278 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14281 ac_check_lib_save_LIBS=$LIBS
14282 LIBS="-ludis86 $LIBS"
14283 cat >conftest.$ac_ext <<_ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14290 /* Override any GCC internal prototype to avoid an error.
14291 Use char because int might match the return type of a GCC
14292 builtin and then its argument prototype would still apply. */
14305 rm -f conftest.$ac_objext conftest$ac_exeext
14306 if { (ac_try="$ac_link"
14307 case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_link") 2>conftest.er1
14314 grep -v '^ *+' conftest.er1 >conftest.err
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14320 { (case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_try") 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest$ac_exeext'
14330 { (case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_try") 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_cv_lib_udis86_ud_init=yes
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 ac_cv_lib_udis86_ud_init=no
14347 rm -f core conftest.err conftest.$ac_objext \
14348 conftest$ac_exeext conftest.$ac_ext
14349 LIBS=$ac_check_lib_save_LIBS
14351 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14352 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14353 if test $ac_cv_lib_udis86_ud_init = yes; then
14354 cat >>confdefs.h <<_ACEOF
14355 #define HAVE_LIBUDIS86 1
14358 LIBS="-ludis86 $LIBS"
14362 echo "Error! You need to have libudis86 around."
14374 cat >>confdefs.h <<_ACEOF
14375 #define USE_UDIS86 $USE_UDIS86
14380 # Check whether --with-oprofile was given.
14381 if test "${with_oprofile+set}" = set; then
14382 withval=$with_oprofile;
14386 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14387 no) llvm_cv_oppath=
14390 *) llvm_cv_oppath="${withval}/lib/oprofile"
14391 CPPFLAGS="-I${withval}/include";;
14393 if test -n "$llvm_cv_oppath" ; then
14394 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14395 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14396 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14397 if test "${ac_cv_search_bfd_init+set}" = set; then
14398 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 ac_func_search_save_LIBS=$LIBS
14401 cat >conftest.$ac_ext <<_ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14408 /* Override any GCC internal prototype to avoid an error.
14409 Use char because int might match the return type of a GCC
14410 builtin and then its argument prototype would still apply. */
14418 return bfd_init ();
14423 for ac_lib in '' bfd; do
14424 if test -z "$ac_lib"; then
14425 ac_res="none required"
14428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14430 rm -f conftest.$ac_objext conftest$ac_exeext
14431 if { (ac_try="$ac_link"
14432 case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_link") 2>conftest.er1
14439 grep -v '^ *+' conftest.er1 >conftest.err
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } &&
14444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest$ac_exeext'
14455 { (case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_try") 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 ac_cv_search_bfd_init=$ac_res
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14472 rm -f core conftest.err conftest.$ac_objext \
14474 if test "${ac_cv_search_bfd_init+set}" = set; then
14478 if test "${ac_cv_search_bfd_init+set}" = set; then
14481 ac_cv_search_bfd_init=no
14483 rm conftest.$ac_ext
14484 LIBS=$ac_func_search_save_LIBS
14486 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14487 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14488 ac_res=$ac_cv_search_bfd_init
14489 if test "$ac_res" != no; then
14490 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14494 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14495 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14496 if test "${ac_cv_search_op_open_agent+set}" = set; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 ac_func_search_save_LIBS=$LIBS
14500 cat >conftest.$ac_ext <<_ACEOF
14503 cat confdefs.h >>conftest.$ac_ext
14504 cat >>conftest.$ac_ext <<_ACEOF
14505 /* end confdefs.h. */
14507 /* Override any GCC internal prototype to avoid an error.
14508 Use char because int might match the return type of a GCC
14509 builtin and then its argument prototype would still apply. */
14513 char op_open_agent ();
14517 return op_open_agent ();
14522 for ac_lib in '' opagent; do
14523 if test -z "$ac_lib"; then
14524 ac_res="none required"
14527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14529 rm -f conftest.$ac_objext conftest$ac_exeext
14530 if { (ac_try="$ac_link"
14531 case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_link") 2>conftest.er1
14538 grep -v '^ *+' conftest.er1 >conftest.err
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14544 { (case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_try") 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try='test -s conftest$ac_exeext'
14554 { (case "(($ac_try" in
14555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559 (eval "$ac_try") 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14563 ac_cv_search_op_open_agent=$ac_res
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14571 rm -f core conftest.err conftest.$ac_objext \
14573 if test "${ac_cv_search_op_open_agent+set}" = set; then
14577 if test "${ac_cv_search_op_open_agent+set}" = set; then
14580 ac_cv_search_op_open_agent=no
14582 rm conftest.$ac_ext
14583 LIBS=$ac_func_search_save_LIBS
14585 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14586 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14587 ac_res=$ac_cv_search_op_open_agent
14588 if test "$ac_res" != no; then
14589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14593 echo "Error! You need to have libopagent around."
14598 if test "${ac_cv_header_opagent_h+set}" = set; then
14599 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14600 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14601 if test "${ac_cv_header_opagent_h+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14604 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14605 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14607 # Is the header compilable?
14608 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14609 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14610 cat >conftest.$ac_ext <<_ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14616 $ac_includes_default
14617 #include <opagent.h>
14619 rm -f conftest.$ac_objext
14620 if { (ac_try="$ac_compile"
14621 case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_compile") 2>conftest.er1
14628 grep -v '^ *+' conftest.er1 >conftest.err
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } &&
14633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14634 { (case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_try") 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try='test -s conftest.$ac_objext'
14644 { (case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_try") 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; }; then
14653 ac_header_compiler=yes
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14658 ac_header_compiler=no
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14663 echo "${ECHO_T}$ac_header_compiler" >&6; }
14665 # Is the header present?
14666 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14667 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14668 cat >conftest.$ac_ext <<_ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14674 #include <opagent.h>
14676 if { (ac_try="$ac_cpp conftest.$ac_ext"
14677 case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14684 grep -v '^ *+' conftest.er1 >conftest.err
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } >/dev/null; then
14689 if test -s conftest.err; then
14690 ac_cpp_err=$ac_c_preproc_warn_flag
14691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14698 if test -z "$ac_cpp_err"; then
14699 ac_header_preproc=yes
14701 echo "$as_me: failed program was:" >&5
14702 sed 's/^/| /' conftest.$ac_ext >&5
14704 ac_header_preproc=no
14707 rm -f conftest.err conftest.$ac_ext
14708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14709 echo "${ECHO_T}$ac_header_preproc" >&6; }
14711 # So? What about this header?
14712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14714 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14715 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14717 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14718 ac_header_preproc=yes
14721 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14722 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14723 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14724 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14726 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14728 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14730 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14732 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14734 ## ----------------------------------- ##
14735 ## Report this to llvmbugs@cs.uiuc.edu ##
14736 ## ----------------------------------- ##
14738 ) | sed "s/^/$as_me: WARNING: /" >&2
14741 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14742 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14743 if test "${ac_cv_header_opagent_h+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 ac_cv_header_opagent_h=$ac_header_preproc
14748 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14749 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14752 if test $ac_cv_header_opagent_h = yes; then
14756 echo "Error! You need to have opagent.h around."
14772 cat >>confdefs.h <<_ACEOF
14773 #define USE_OPROFILE $USE_OPROFILE
14778 { echo "$as_me:$LINENO: checking for gCRAnnotations in -lCrashReporterClient" >&5
14779 echo $ECHO_N "checking for gCRAnnotations in -lCrashReporterClient... $ECHO_C" >&6; }
14780 if test "${ac_cv_lib_CrashReporterClient_gCRAnnotations+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14783 ac_check_lib_save_LIBS=$LIBS
14784 LIBS="-lCrashReporterClient $LIBS"
14785 cat >conftest.$ac_ext <<_ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14792 /* Override any GCC internal prototype to avoid an error.
14793 Use char because int might match the return type of a GCC
14794 builtin and then its argument prototype would still apply. */
14798 char gCRAnnotations ();
14802 return gCRAnnotations ();
14807 rm -f conftest.$ac_objext conftest$ac_exeext
14808 if { (ac_try="$ac_link"
14809 case "(($ac_try" in
14810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14811 *) ac_try_echo=$ac_try;;
14813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14814 (eval "$ac_link") 2>conftest.er1
14816 grep -v '^ *+' conftest.er1 >conftest.err
14818 cat conftest.err >&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); } &&
14821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14822 { (case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_try") 2>&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; } &&
14831 { ac_try='test -s conftest$ac_exeext'
14832 { (case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_try") 2>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
14841 ac_cv_lib_CrashReporterClient_gCRAnnotations=yes
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14846 ac_cv_lib_CrashReporterClient_gCRAnnotations=no
14849 rm -f core conftest.err conftest.$ac_objext \
14850 conftest$ac_exeext conftest.$ac_ext
14851 LIBS=$ac_check_lib_save_LIBS
14853 { echo "$as_me:$LINENO: result: $ac_cv_lib_CrashReporterClient_gCRAnnotations" >&5
14854 echo "${ECHO_T}$ac_cv_lib_CrashReporterClient_gCRAnnotations" >&6; }
14855 if test $ac_cv_lib_CrashReporterClient_gCRAnnotations = yes; then
14856 cat >>confdefs.h <<_ACEOF
14857 #define HAVE_LIBCRASHREPORTERCLIENT 1
14860 LIBS="-lCrashReporterClient $LIBS"
14871 ac_header_dirent=no
14872 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14873 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14874 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14875 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 cat >conftest.$ac_ext <<_ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14885 #include <sys/types.h>
14897 rm -f conftest.$ac_objext
14898 if { (ac_try="$ac_compile"
14899 case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904 (eval "$ac_compile") 2>conftest.er1
14906 grep -v '^ *+' conftest.er1 >conftest.err
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14912 { (case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_try") 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; } &&
14921 { ac_try='test -s conftest.$ac_objext'
14922 { (case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_try") 2>&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; }; then
14931 eval "$as_ac_Header=yes"
14933 echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14936 eval "$as_ac_Header=no"
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14941 ac_res=`eval echo '${'$as_ac_Header'}'`
14942 { echo "$as_me:$LINENO: result: $ac_res" >&5
14943 echo "${ECHO_T}$ac_res" >&6; }
14944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14945 cat >>confdefs.h <<_ACEOF
14946 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14949 ac_header_dirent=$ac_hdr; break
14953 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14954 if test $ac_header_dirent = dirent.h; then
14955 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14956 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14957 if test "${ac_cv_search_opendir+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 ac_func_search_save_LIBS=$LIBS
14961 cat >conftest.$ac_ext <<_ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h. */
14968 /* Override any GCC internal prototype to avoid an error.
14969 Use char because int might match the return type of a GCC
14970 builtin and then its argument prototype would still apply. */
14983 for ac_lib in '' dir; do
14984 if test -z "$ac_lib"; then
14985 ac_res="none required"
14988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14990 rm -f conftest.$ac_objext conftest$ac_exeext
14991 if { (ac_try="$ac_link"
14992 case "(($ac_try" in
14993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14994 *) ac_try_echo=$ac_try;;
14996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14997 (eval "$ac_link") 2>conftest.er1
14999 grep -v '^ *+' conftest.er1 >conftest.err
15001 cat conftest.err >&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
15004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15005 { (case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_try") 2>&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; } &&
15014 { ac_try='test -s conftest$ac_exeext'
15015 { (case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_try") 2>&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_cv_search_opendir=$ac_res
15026 echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15032 rm -f core conftest.err conftest.$ac_objext \
15034 if test "${ac_cv_search_opendir+set}" = set; then
15038 if test "${ac_cv_search_opendir+set}" = set; then
15041 ac_cv_search_opendir=no
15043 rm conftest.$ac_ext
15044 LIBS=$ac_func_search_save_LIBS
15046 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15047 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15048 ac_res=$ac_cv_search_opendir
15049 if test "$ac_res" != no; then
15050 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15055 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15056 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15057 if test "${ac_cv_search_opendir+set}" = set; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15060 ac_func_search_save_LIBS=$LIBS
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15068 /* Override any GCC internal prototype to avoid an error.
15069 Use char because int might match the return type of a GCC
15070 builtin and then its argument prototype would still apply. */
15083 for ac_lib in '' x; do
15084 if test -z "$ac_lib"; then
15085 ac_res="none required"
15088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15090 rm -f conftest.$ac_objext conftest$ac_exeext
15091 if { (ac_try="$ac_link"
15092 case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_link") 2>conftest.er1
15099 grep -v '^ *+' conftest.er1 >conftest.err
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; } &&
15114 { ac_try='test -s conftest$ac_exeext'
15115 { (case "(($ac_try" in
15116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117 *) ac_try_echo=$ac_try;;
15119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120 (eval "$ac_try") 2>&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; }; then
15124 ac_cv_search_opendir=$ac_res
15126 echo "$as_me: failed program was:" >&5
15127 sed 's/^/| /' conftest.$ac_ext >&5
15132 rm -f core conftest.err conftest.$ac_objext \
15134 if test "${ac_cv_search_opendir+set}" = set; then
15138 if test "${ac_cv_search_opendir+set}" = set; then
15141 ac_cv_search_opendir=no
15143 rm conftest.$ac_ext
15144 LIBS=$ac_func_search_save_LIBS
15146 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15147 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15148 ac_res=$ac_cv_search_opendir
15149 if test "$ac_res" != no; then
15150 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15156 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15157 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15158 if test "${ac_cv_header_mmap_anon+set}" = set; then
15159 echo $ECHO_N "(cached) $ECHO_C" >&6
15162 ac_cpp='$CPP $CPPFLAGS'
15163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15167 cat >conftest.$ac_ext <<_ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 #include <sys/mman.h>
15174 #include <unistd.h>
15179 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15184 rm -f conftest.$ac_objext
15185 if { (ac_try="$ac_compile"
15186 case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_compile") 2>conftest.er1
15193 grep -v '^ *+' conftest.er1 >conftest.err
15195 cat conftest.err >&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } &&
15198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15199 { (case "(($ac_try" in
15200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201 *) ac_try_echo=$ac_try;;
15203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15204 (eval "$ac_try") 2>&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; } &&
15208 { ac_try='test -s conftest.$ac_objext'
15209 { (case "(($ac_try" in
15210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211 *) ac_try_echo=$ac_try;;
15213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15214 (eval "$ac_try") 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; }; then
15218 ac_cv_header_mmap_anon=yes
15220 echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 ac_cv_header_mmap_anon=no
15226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228 ac_cpp='$CPP $CPPFLAGS'
15229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15235 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15236 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15237 if test "$ac_cv_header_mmap_anon" = yes; then
15239 cat >>confdefs.h <<\_ACEOF
15240 #define HAVE_MMAP_ANONYMOUS 1
15245 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15246 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15247 if test "${ac_cv_header_stat_broken+set}" = set; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
15250 cat >conftest.$ac_ext <<_ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15256 #include <sys/types.h>
15257 #include <sys/stat.h>
15259 #if defined S_ISBLK && defined S_IFDIR
15260 # if S_ISBLK (S_IFDIR)
15265 #if defined S_ISBLK && defined S_IFCHR
15266 # if S_ISBLK (S_IFCHR)
15271 #if defined S_ISLNK && defined S_IFREG
15272 # if S_ISLNK (S_IFREG)
15277 #if defined S_ISSOCK && defined S_IFREG
15278 # if S_ISSOCK (S_IFREG)
15284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15285 $EGREP "You lose" >/dev/null 2>&1; then
15286 ac_cv_header_stat_broken=yes
15288 ac_cv_header_stat_broken=no
15293 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15294 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15295 if test $ac_cv_header_stat_broken = yes; then
15297 cat >>confdefs.h <<\_ACEOF
15298 #define STAT_MACROS_BROKEN 1
15303 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15304 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15305 if test "${ac_cv_header_stdc+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 cat >conftest.$ac_ext <<_ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 #include <stdlib.h>
15315 #include <stdarg.h>
15316 #include <string.h>
15327 rm -f conftest.$ac_objext
15328 if { (ac_try="$ac_compile"
15329 case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334 (eval "$ac_compile") 2>conftest.er1
15336 grep -v '^ *+' conftest.er1 >conftest.err
15338 cat conftest.err >&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15342 { (case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_try") 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest.$ac_objext'
15352 { (case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_try") 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15361 ac_cv_header_stdc=yes
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 ac_cv_header_stdc=no
15369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371 if test $ac_cv_header_stdc = yes; then
15372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15373 cat >conftest.$ac_ext <<_ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 #include <string.h>
15382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15383 $EGREP "memchr" >/dev/null 2>&1; then
15386 ac_cv_header_stdc=no
15392 if test $ac_cv_header_stdc = yes; then
15393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15394 cat >conftest.$ac_ext <<_ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 #include <stdlib.h>
15403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15404 $EGREP "free" >/dev/null 2>&1; then
15407 ac_cv_header_stdc=no
15413 if test $ac_cv_header_stdc = yes; then
15414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15415 if test "$cross_compiling" = yes; then
15418 cat >conftest.$ac_ext <<_ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15425 #include <stdlib.h>
15426 #if ((' ' & 0x0FF) == 0x020)
15427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15430 # define ISLOWER(c) \
15431 (('a' <= (c) && (c) <= 'i') \
15432 || ('j' <= (c) && (c) <= 'r') \
15433 || ('s' <= (c) && (c) <= 'z'))
15434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15437 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15442 for (i = 0; i < 256; i++)
15443 if (XOR (islower (i), ISLOWER (i))
15444 || toupper (i) != TOUPPER (i))
15449 rm -f conftest$ac_exeext
15450 if { (ac_try="$ac_link"
15451 case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_link") 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15460 { (case "(($ac_try" in
15461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15462 *) ac_try_echo=$ac_try;;
15464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15465 (eval "$ac_try") 2>&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15471 echo "$as_me: program exited with status $ac_status" >&5
15472 echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15475 ( exit $ac_status )
15476 ac_cv_header_stdc=no
15478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15484 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15485 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15486 if test $ac_cv_header_stdc = yes; then
15488 cat >>confdefs.h <<\_ACEOF
15489 #define STDC_HEADERS 1
15494 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15495 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15496 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15499 cat >conftest.$ac_ext <<_ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15505 #include <sys/types.h>
15506 #include <sys/wait.h>
15507 #ifndef WEXITSTATUS
15508 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15511 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15519 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15524 rm -f conftest.$ac_objext
15525 if { (ac_try="$ac_compile"
15526 case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_compile") 2>conftest.er1
15533 grep -v '^ *+' conftest.er1 >conftest.err
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } &&
15538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15539 { (case "(($ac_try" in
15540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541 *) ac_try_echo=$ac_try;;
15543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544 (eval "$ac_try") 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; } &&
15548 { ac_try='test -s conftest.$ac_objext'
15549 { (case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_try") 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 ac_cv_header_sys_wait_h=yes
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15563 ac_cv_header_sys_wait_h=no
15566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15568 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15569 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15570 if test $ac_cv_header_sys_wait_h = yes; then
15572 cat >>confdefs.h <<\_ACEOF
15573 #define HAVE_SYS_WAIT_H 1
15578 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15579 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15580 if test "${ac_cv_header_time+set}" = set; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15583 cat >conftest.$ac_ext <<_ACEOF
15586 cat confdefs.h >>conftest.$ac_ext
15587 cat >>conftest.$ac_ext <<_ACEOF
15588 /* end confdefs.h. */
15589 #include <sys/types.h>
15590 #include <sys/time.h>
15596 if ((struct tm *) 0)
15602 rm -f conftest.$ac_objext
15603 if { (ac_try="$ac_compile"
15604 case "(($ac_try" in
15605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606 *) ac_try_echo=$ac_try;;
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609 (eval "$ac_compile") 2>conftest.er1
15611 grep -v '^ *+' conftest.er1 >conftest.err
15613 cat conftest.err >&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15617 { (case "(($ac_try" in
15618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619 *) ac_try_echo=$ac_try;;
15621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622 (eval "$ac_try") 2>&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; } &&
15626 { ac_try='test -s conftest.$ac_objext'
15627 { (case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_try") 2>&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15636 ac_cv_header_time=yes
15638 echo "$as_me: failed program was:" >&5
15639 sed 's/^/| /' conftest.$ac_ext >&5
15641 ac_cv_header_time=no
15644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15646 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15647 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15648 if test $ac_cv_header_time = yes; then
15650 cat >>confdefs.h <<\_ACEOF
15651 #define TIME_WITH_SYS_TIME 1
15663 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 ac_res=`eval echo '${'$as_ac_Header'}'`
15673 { echo "$as_me:$LINENO: result: $ac_res" >&5
15674 echo "${ECHO_T}$ac_res" >&6; }
15676 # Is the header compilable?
15677 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15679 cat >conftest.$ac_ext <<_ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 $ac_includes_default
15686 #include <$ac_header>
15688 rm -f conftest.$ac_objext
15689 if { (ac_try="$ac_compile"
15690 case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15695 (eval "$ac_compile") 2>conftest.er1
15697 grep -v '^ *+' conftest.er1 >conftest.err
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15703 { (case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_try") 2>&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest.$ac_objext'
15713 { (case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_header_compiler=yes
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15727 ac_header_compiler=no
15730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15732 echo "${ECHO_T}$ac_header_compiler" >&6; }
15734 # Is the header present?
15735 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15737 cat >conftest.$ac_ext <<_ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h. */
15743 #include <$ac_header>
15745 if { (ac_try="$ac_cpp conftest.$ac_ext"
15746 case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15753 grep -v '^ *+' conftest.er1 >conftest.err
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } >/dev/null; then
15758 if test -s conftest.err; then
15759 ac_cpp_err=$ac_c_preproc_warn_flag
15760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15767 if test -z "$ac_cpp_err"; then
15768 ac_header_preproc=yes
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15773 ac_header_preproc=no
15776 rm -f conftest.err conftest.$ac_ext
15777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15778 echo "${ECHO_T}$ac_header_preproc" >&6; }
15780 # So? What about this header?
15781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15787 ac_header_preproc=yes
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15797 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15803 ## ----------------------------------- ##
15804 ## Report this to llvmbugs@cs.uiuc.edu ##
15805 ## ----------------------------------- ##
15807 ) | sed "s/^/$as_me: WARNING: /" >&2
15810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 eval "$as_ac_Header=\$ac_header_preproc"
15817 ac_res=`eval echo '${'$as_ac_Header'}'`
15818 { echo "$as_me:$LINENO: result: $ac_res" >&5
15819 echo "${ECHO_T}$ac_res" >&6; }
15822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15823 cat >>confdefs.h <<_ACEOF
15824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15837 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15846 ac_res=`eval echo '${'$as_ac_Header'}'`
15847 { echo "$as_me:$LINENO: result: $ac_res" >&5
15848 echo "${ECHO_T}$ac_res" >&6; }
15850 # Is the header compilable?
15851 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15853 cat >conftest.$ac_ext <<_ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15859 $ac_includes_default
15860 #include <$ac_header>
15862 rm -f conftest.$ac_objext
15863 if { (ac_try="$ac_compile"
15864 case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_compile") 2>conftest.er1
15871 grep -v '^ *+' conftest.er1 >conftest.err
15873 cat conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } &&
15876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15877 { (case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882 (eval "$ac_try") 2>&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; } &&
15886 { ac_try='test -s conftest.$ac_objext'
15887 { (case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_try") 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 ac_header_compiler=yes
15898 echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15901 ac_header_compiler=no
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15906 echo "${ECHO_T}$ac_header_compiler" >&6; }
15908 # Is the header present?
15909 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15911 cat >conftest.$ac_ext <<_ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15917 #include <$ac_header>
15919 if { (ac_try="$ac_cpp conftest.$ac_ext"
15920 case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15927 grep -v '^ *+' conftest.er1 >conftest.err
15929 cat conftest.err >&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } >/dev/null; then
15932 if test -s conftest.err; then
15933 ac_cpp_err=$ac_c_preproc_warn_flag
15934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15941 if test -z "$ac_cpp_err"; then
15942 ac_header_preproc=yes
15944 echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15947 ac_header_preproc=no
15950 rm -f conftest.err conftest.$ac_ext
15951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15952 echo "${ECHO_T}$ac_header_preproc" >&6; }
15954 # So? What about this header?
15955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15961 ac_header_preproc=yes
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15977 ## ----------------------------------- ##
15978 ## Report this to llvmbugs@cs.uiuc.edu ##
15979 ## ----------------------------------- ##
15981 ) | sed "s/^/$as_me: WARNING: /" >&2
15984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 eval "$as_ac_Header=\$ac_header_preproc"
15991 ac_res=`eval echo '${'$as_ac_Header'}'`
15992 { echo "$as_me:$LINENO: result: $ac_res" >&5
15993 echo "${ECHO_T}$ac_res" >&6; }
15996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15997 cat >>confdefs.h <<_ACEOF
15998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16007 for ac_header in utime.h windows.h
16009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 ac_res=`eval echo '${'$as_ac_Header'}'`
16017 { echo "$as_me:$LINENO: result: $ac_res" >&5
16018 echo "${ECHO_T}$ac_res" >&6; }
16020 # Is the header compilable?
16021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16023 cat >conftest.$ac_ext <<_ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16029 $ac_includes_default
16030 #include <$ac_header>
16032 rm -f conftest.$ac_objext
16033 if { (ac_try="$ac_compile"
16034 case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_compile") 2>conftest.er1
16041 grep -v '^ *+' conftest.er1 >conftest.err
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
16046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16047 { (case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_try") 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; } &&
16056 { ac_try='test -s conftest.$ac_objext'
16057 { (case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_try") 2>&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; }; then
16066 ac_header_compiler=yes
16068 echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16071 ac_header_compiler=no
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16076 echo "${ECHO_T}$ac_header_compiler" >&6; }
16078 # Is the header present?
16079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16081 cat >conftest.$ac_ext <<_ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 #include <$ac_header>
16089 if { (ac_try="$ac_cpp conftest.$ac_ext"
16090 case "(($ac_try" in
16091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16092 *) ac_try_echo=$ac_try;;
16094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16097 grep -v '^ *+' conftest.er1 >conftest.err
16099 cat conftest.err >&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } >/dev/null; then
16102 if test -s conftest.err; then
16103 ac_cpp_err=$ac_c_preproc_warn_flag
16104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16111 if test -z "$ac_cpp_err"; then
16112 ac_header_preproc=yes
16114 echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16117 ac_header_preproc=no
16120 rm -f conftest.err conftest.$ac_ext
16121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16122 echo "${ECHO_T}$ac_header_preproc" >&6; }
16124 # So? What about this header?
16125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16131 ac_header_preproc=yes
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16147 ## ----------------------------------- ##
16148 ## Report this to llvmbugs@cs.uiuc.edu ##
16149 ## ----------------------------------- ##
16151 ) | sed "s/^/$as_me: WARNING: /" >&2
16154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 eval "$as_ac_Header=\$ac_header_preproc"
16161 ac_res=`eval echo '${'$as_ac_Header'}'`
16162 { echo "$as_me:$LINENO: result: $ac_res" >&5
16163 echo "${ECHO_T}$ac_res" >&6; }
16166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16167 cat >>confdefs.h <<_ACEOF
16168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16179 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16188 ac_res=`eval echo '${'$as_ac_Header'}'`
16189 { echo "$as_me:$LINENO: result: $ac_res" >&5
16190 echo "${ECHO_T}$ac_res" >&6; }
16192 # Is the header compilable?
16193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16195 cat >conftest.$ac_ext <<_ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 $ac_includes_default
16202 #include <$ac_header>
16204 rm -f conftest.$ac_objext
16205 if { (ac_try="$ac_compile"
16206 case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_compile") 2>conftest.er1
16213 grep -v '^ *+' conftest.er1 >conftest.err
16215 cat conftest.err >&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16219 { (case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_try") 2>&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; } &&
16228 { ac_try='test -s conftest.$ac_objext'
16229 { (case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_try") 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238 ac_header_compiler=yes
16240 echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16243 ac_header_compiler=no
16246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16248 echo "${ECHO_T}$ac_header_compiler" >&6; }
16250 # Is the header present?
16251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16253 cat >conftest.$ac_ext <<_ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 #include <$ac_header>
16261 if { (ac_try="$ac_cpp conftest.$ac_ext"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16269 grep -v '^ *+' conftest.er1 >conftest.err
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } >/dev/null; then
16274 if test -s conftest.err; then
16275 ac_cpp_err=$ac_c_preproc_warn_flag
16276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16283 if test -z "$ac_cpp_err"; then
16284 ac_header_preproc=yes
16286 echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16289 ac_header_preproc=no
16292 rm -f conftest.err conftest.$ac_ext
16293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16294 echo "${ECHO_T}$ac_header_preproc" >&6; }
16296 # So? What about this header?
16297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16303 ac_header_preproc=yes
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16319 ## ----------------------------------- ##
16320 ## Report this to llvmbugs@cs.uiuc.edu ##
16321 ## ----------------------------------- ##
16323 ) | sed "s/^/$as_me: WARNING: /" >&2
16326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16331 eval "$as_ac_Header=\$ac_header_preproc"
16333 ac_res=`eval echo '${'$as_ac_Header'}'`
16334 { echo "$as_me:$LINENO: result: $ac_res" >&5
16335 echo "${ECHO_T}$ac_res" >&6; }
16338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16339 cat >>confdefs.h <<_ACEOF
16340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16351 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 ac_res=`eval echo '${'$as_ac_Header'}'`
16361 { echo "$as_me:$LINENO: result: $ac_res" >&5
16362 echo "${ECHO_T}$ac_res" >&6; }
16364 # Is the header compilable?
16365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16367 cat >conftest.$ac_ext <<_ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 $ac_includes_default
16374 #include <$ac_header>
16376 rm -f conftest.$ac_objext
16377 if { (ac_try="$ac_compile"
16378 case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_compile") 2>conftest.er1
16385 grep -v '^ *+' conftest.er1 >conftest.err
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16391 { (case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_try") 2>&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; } &&
16400 { ac_try='test -s conftest.$ac_objext'
16401 { (case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_try") 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_header_compiler=yes
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16415 ac_header_compiler=no
16418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16420 echo "${ECHO_T}$ac_header_compiler" >&6; }
16422 # Is the header present?
16423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16425 cat >conftest.$ac_ext <<_ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16431 #include <$ac_header>
16433 if { (ac_try="$ac_cpp conftest.$ac_ext"
16434 case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16441 grep -v '^ *+' conftest.er1 >conftest.err
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } >/dev/null; then
16446 if test -s conftest.err; then
16447 ac_cpp_err=$ac_c_preproc_warn_flag
16448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16455 if test -z "$ac_cpp_err"; then
16456 ac_header_preproc=yes
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 ac_header_preproc=no
16464 rm -f conftest.err conftest.$ac_ext
16465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16466 echo "${ECHO_T}$ac_header_preproc" >&6; }
16468 # So? What about this header?
16469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16475 ac_header_preproc=yes
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16491 ## ----------------------------------- ##
16492 ## Report this to llvmbugs@cs.uiuc.edu ##
16493 ## ----------------------------------- ##
16495 ) | sed "s/^/$as_me: WARNING: /" >&2
16498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 eval "$as_ac_Header=\$ac_header_preproc"
16505 ac_res=`eval echo '${'$as_ac_Header'}'`
16506 { echo "$as_me:$LINENO: result: $ac_res" >&5
16507 echo "${ECHO_T}$ac_res" >&6; }
16510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16511 cat >>confdefs.h <<_ACEOF
16512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16520 for ac_header in valgrind/valgrind.h
16522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 ac_res=`eval echo '${'$as_ac_Header'}'`
16530 { echo "$as_me:$LINENO: result: $ac_res" >&5
16531 echo "${ECHO_T}$ac_res" >&6; }
16533 # Is the header compilable?
16534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16536 cat >conftest.$ac_ext <<_ACEOF
16539 cat confdefs.h >>conftest.$ac_ext
16540 cat >>conftest.$ac_ext <<_ACEOF
16541 /* end confdefs.h. */
16542 $ac_includes_default
16543 #include <$ac_header>
16545 rm -f conftest.$ac_objext
16546 if { (ac_try="$ac_compile"
16547 case "(($ac_try" in
16548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552 (eval "$ac_compile") 2>conftest.er1
16554 grep -v '^ *+' conftest.er1 >conftest.err
16556 cat conftest.err >&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
16559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16560 { (case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_try") 2>&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; } &&
16569 { ac_try='test -s conftest.$ac_objext'
16570 { (case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_try") 2>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16579 ac_header_compiler=yes
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 ac_header_compiler=no
16587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16589 echo "${ECHO_T}$ac_header_compiler" >&6; }
16591 # Is the header present?
16592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16594 cat >conftest.$ac_ext <<_ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 #include <$ac_header>
16602 if { (ac_try="$ac_cpp conftest.$ac_ext"
16603 case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16610 grep -v '^ *+' conftest.er1 >conftest.err
16612 cat conftest.err >&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } >/dev/null; then
16615 if test -s conftest.err; then
16616 ac_cpp_err=$ac_c_preproc_warn_flag
16617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16624 if test -z "$ac_cpp_err"; then
16625 ac_header_preproc=yes
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16630 ac_header_preproc=no
16633 rm -f conftest.err conftest.$ac_ext
16634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16635 echo "${ECHO_T}$ac_header_preproc" >&6; }
16637 # So? What about this header?
16638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16644 ac_header_preproc=yes
16647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16660 ## ----------------------------------- ##
16661 ## Report this to llvmbugs@cs.uiuc.edu ##
16662 ## ----------------------------------- ##
16664 ) | sed "s/^/$as_me: WARNING: /" >&2
16667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16672 eval "$as_ac_Header=\$ac_header_preproc"
16674 ac_res=`eval echo '${'$as_ac_Header'}'`
16675 { echo "$as_me:$LINENO: result: $ac_res" >&5
16676 echo "${ECHO_T}$ac_res" >&6; }
16679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16680 cat >>confdefs.h <<_ACEOF
16681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16688 if test "$ENABLE_THREADS" -eq 1 ; then
16690 for ac_header in pthread.h
16692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 ac_res=`eval echo '${'$as_ac_Header'}'`
16700 { echo "$as_me:$LINENO: result: $ac_res" >&5
16701 echo "${ECHO_T}$ac_res" >&6; }
16703 # Is the header compilable?
16704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16706 cat >conftest.$ac_ext <<_ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16712 $ac_includes_default
16713 #include <$ac_header>
16715 rm -f conftest.$ac_objext
16716 if { (ac_try="$ac_compile"
16717 case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_compile") 2>conftest.er1
16724 grep -v '^ *+' conftest.er1 >conftest.err
16726 cat conftest.err >&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); } &&
16729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16730 { (case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_try") 2>&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; } &&
16739 { ac_try='test -s conftest.$ac_objext'
16740 { (case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745 (eval "$ac_try") 2>&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; }; then
16749 ac_header_compiler=yes
16751 echo "$as_me: failed program was:" >&5
16752 sed 's/^/| /' conftest.$ac_ext >&5
16754 ac_header_compiler=no
16757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16759 echo "${ECHO_T}$ac_header_compiler" >&6; }
16761 # Is the header present?
16762 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16764 cat >conftest.$ac_ext <<_ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 #include <$ac_header>
16772 if { (ac_try="$ac_cpp conftest.$ac_ext"
16773 case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16780 grep -v '^ *+' conftest.er1 >conftest.err
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } >/dev/null; then
16785 if test -s conftest.err; then
16786 ac_cpp_err=$ac_c_preproc_warn_flag
16787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16794 if test -z "$ac_cpp_err"; then
16795 ac_header_preproc=yes
16797 echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16800 ac_header_preproc=no
16803 rm -f conftest.err conftest.$ac_ext
16804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16805 echo "${ECHO_T}$ac_header_preproc" >&6; }
16807 # So? What about this header?
16808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16814 ac_header_preproc=yes
16817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16830 ## ----------------------------------- ##
16831 ## Report this to llvmbugs@cs.uiuc.edu ##
16832 ## ----------------------------------- ##
16834 ) | sed "s/^/$as_me: WARNING: /" >&2
16837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 eval "$as_ac_Header=\$ac_header_preproc"
16844 ac_res=`eval echo '${'$as_ac_Header'}'`
16845 { echo "$as_me:$LINENO: result: $ac_res" >&5
16846 echo "${ECHO_T}$ac_res" >&6; }
16849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16850 cat >>confdefs.h <<_ACEOF
16851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16867 if test "$llvm_cv_enable_libffi" = "yes" ; then
16870 for ac_header in ffi.h ffi/ffi.h
16872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
16879 ac_res=`eval echo '${'$as_ac_Header'}'`
16880 { echo "$as_me:$LINENO: result: $ac_res" >&5
16881 echo "${ECHO_T}$ac_res" >&6; }
16883 # Is the header compilable?
16884 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16886 cat >conftest.$ac_ext <<_ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16892 $ac_includes_default
16893 #include <$ac_header>
16895 rm -f conftest.$ac_objext
16896 if { (ac_try="$ac_compile"
16897 case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_compile") 2>conftest.er1
16904 grep -v '^ *+' conftest.er1 >conftest.err
16906 cat conftest.err >&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } &&
16909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16910 { (case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_try") 2>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; } &&
16919 { ac_try='test -s conftest.$ac_objext'
16920 { (case "(($ac_try" in
16921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922 *) ac_try_echo=$ac_try;;
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925 (eval "$ac_try") 2>&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 ac_header_compiler=yes
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16934 ac_header_compiler=no
16937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16939 echo "${ECHO_T}$ac_header_compiler" >&6; }
16941 # Is the header present?
16942 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16944 cat >conftest.$ac_ext <<_ACEOF
16947 cat confdefs.h >>conftest.$ac_ext
16948 cat >>conftest.$ac_ext <<_ACEOF
16949 /* end confdefs.h. */
16950 #include <$ac_header>
16952 if { (ac_try="$ac_cpp conftest.$ac_ext"
16953 case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16960 grep -v '^ *+' conftest.er1 >conftest.err
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } >/dev/null; then
16965 if test -s conftest.err; then
16966 ac_cpp_err=$ac_c_preproc_warn_flag
16967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16974 if test -z "$ac_cpp_err"; then
16975 ac_header_preproc=yes
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 ac_header_preproc=no
16983 rm -f conftest.err conftest.$ac_ext
16984 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16985 echo "${ECHO_T}$ac_header_preproc" >&6; }
16987 # So? What about this header?
16988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16993 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16994 ac_header_preproc=yes
16997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17001 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17002 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17003 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17004 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17007 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17008 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17010 ## ----------------------------------- ##
17011 ## Report this to llvmbugs@cs.uiuc.edu ##
17012 ## ----------------------------------- ##
17014 ) | sed "s/^/$as_me: WARNING: /" >&2
17017 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 eval "$as_ac_Header=\$ac_header_preproc"
17024 ac_res=`eval echo '${'$as_ac_Header'}'`
17025 { echo "$as_me:$LINENO: result: $ac_res" >&5
17026 echo "${ECHO_T}$ac_res" >&6; }
17029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17030 cat >>confdefs.h <<_ACEOF
17031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17041 for ac_header in CrashReporterClient.h
17043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17048 echo $ECHO_N "(cached) $ECHO_C" >&6
17050 ac_res=`eval echo '${'$as_ac_Header'}'`
17051 { echo "$as_me:$LINENO: result: $ac_res" >&5
17052 echo "${ECHO_T}$ac_res" >&6; }
17054 # Is the header compilable?
17055 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17057 cat >conftest.$ac_ext <<_ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 $ac_includes_default
17064 #include <$ac_header>
17066 rm -f conftest.$ac_objext
17067 if { (ac_try="$ac_compile"
17068 case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_compile") 2>conftest.er1
17075 grep -v '^ *+' conftest.er1 >conftest.err
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
17080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17081 { (case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_try") 2>&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; } &&
17090 { ac_try='test -s conftest.$ac_objext'
17091 { (case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_try") 2>&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; }; then
17100 ac_header_compiler=yes
17102 echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17105 ac_header_compiler=no
17108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17110 echo "${ECHO_T}$ac_header_compiler" >&6; }
17112 # Is the header present?
17113 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17115 cat >conftest.$ac_ext <<_ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 #include <$ac_header>
17123 if { (ac_try="$ac_cpp conftest.$ac_ext"
17124 case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17131 grep -v '^ *+' conftest.er1 >conftest.err
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } >/dev/null; then
17136 if test -s conftest.err; then
17137 ac_cpp_err=$ac_c_preproc_warn_flag
17138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17145 if test -z "$ac_cpp_err"; then
17146 ac_header_preproc=yes
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 ac_header_preproc=no
17154 rm -f conftest.err conftest.$ac_ext
17155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17156 echo "${ECHO_T}$ac_header_preproc" >&6; }
17158 # So? What about this header?
17159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17165 ac_header_preproc=yes
17168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17181 ## ----------------------------------- ##
17182 ## Report this to llvmbugs@cs.uiuc.edu ##
17183 ## ----------------------------------- ##
17185 ) | sed "s/^/$as_me: WARNING: /" >&2
17188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
17193 eval "$as_ac_Header=\$ac_header_preproc"
17195 ac_res=`eval echo '${'$as_ac_Header'}'`
17196 { echo "$as_me:$LINENO: result: $ac_res" >&5
17197 echo "${ECHO_T}$ac_res" >&6; }
17200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17201 cat >>confdefs.h <<_ACEOF
17202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17213 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17214 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17215 if test "${ac_cv_huge_val_sanity+set}" = set; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17220 ac_cpp='$CXXCPP $CPPFLAGS'
17221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17225 ac_save_CXXFLAGS=$CXXFLAGS
17227 if test "$cross_compiling" = yes; then
17228 ac_cv_huge_val_sanity=yes
17230 cat >conftest.$ac_ext <<_ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17240 double x = HUGE_VAL; return x != x;
17245 rm -f conftest$ac_exeext
17246 if { (ac_try="$ac_link"
17247 case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_link") 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17256 { (case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_try") 2>&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; }; then
17265 ac_cv_huge_val_sanity=yes
17267 echo "$as_me: program exited with status $ac_status" >&5
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ( exit $ac_status )
17272 ac_cv_huge_val_sanity=no
17274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17278 CXXFLAGS=$ac_save_CXXFLAGS
17280 ac_cpp='$CPP $CPPFLAGS'
17281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17287 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17288 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17289 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17292 { echo "$as_me:$LINENO: checking for pid_t" >&5
17293 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17294 if test "${ac_cv_type_pid_t+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 cat >conftest.$ac_ext <<_ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 $ac_includes_default
17304 typedef pid_t ac__type_new_;
17308 if ((ac__type_new_ *) 0)
17310 if (sizeof (ac__type_new_))
17316 rm -f conftest.$ac_objext
17317 if { (ac_try="$ac_compile"
17318 case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_compile") 2>conftest.er1
17325 grep -v '^ *+' conftest.er1 >conftest.err
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
17330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17331 { (case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_try") 2>&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; } &&
17340 { ac_try='test -s conftest.$ac_objext'
17341 { (case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_try") 2>&5
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 ac_cv_type_pid_t=yes
17352 echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17355 ac_cv_type_pid_t=no
17358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17360 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17361 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17362 if test $ac_cv_type_pid_t = yes; then
17366 cat >>confdefs.h <<_ACEOF
17372 { echo "$as_me:$LINENO: checking for size_t" >&5
17373 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17374 if test "${ac_cv_type_size_t+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17377 cat >conftest.$ac_ext <<_ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383 $ac_includes_default
17384 typedef size_t ac__type_new_;
17388 if ((ac__type_new_ *) 0)
17390 if (sizeof (ac__type_new_))
17396 rm -f conftest.$ac_objext
17397 if { (ac_try="$ac_compile"
17398 case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_compile") 2>conftest.er1
17405 grep -v '^ *+' conftest.er1 >conftest.err
17407 cat conftest.err >&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } &&
17410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17411 { (case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_try") 2>&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; } &&
17420 { ac_try='test -s conftest.$ac_objext'
17421 { (case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_try") 2>&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; }; then
17430 ac_cv_type_size_t=yes
17432 echo "$as_me: failed program was:" >&5
17433 sed 's/^/| /' conftest.$ac_ext >&5
17435 ac_cv_type_size_t=no
17438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17440 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17441 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17442 if test $ac_cv_type_size_t = yes; then
17446 cat >>confdefs.h <<_ACEOF
17447 #define size_t unsigned int
17453 cat >>confdefs.h <<_ACEOF
17454 #define RETSIGTYPE void
17457 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17458 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17459 if test "${ac_cv_struct_tm+set}" = set; then
17460 echo $ECHO_N "(cached) $ECHO_C" >&6
17462 cat >conftest.$ac_ext <<_ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h. */
17468 #include <sys/types.h>
17474 struct tm *tp; tp->tm_sec;
17479 rm -f conftest.$ac_objext
17480 if { (ac_try="$ac_compile"
17481 case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_compile") 2>conftest.er1
17488 grep -v '^ *+' conftest.er1 >conftest.err
17490 cat conftest.err >&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } &&
17493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17494 { (case "(($ac_try" in
17495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496 *) ac_try_echo=$ac_try;;
17498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17499 (eval "$ac_try") 2>&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; } &&
17503 { ac_try='test -s conftest.$ac_objext'
17504 { (case "(($ac_try" in
17505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17506 *) ac_try_echo=$ac_try;;
17508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17509 (eval "$ac_try") 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 ac_cv_struct_tm=time.h
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 ac_cv_struct_tm=sys/time.h
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17524 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17525 if test $ac_cv_struct_tm = sys/time.h; then
17527 cat >>confdefs.h <<\_ACEOF
17528 #define TM_IN_SYS_TIME 1
17533 { echo "$as_me:$LINENO: checking for int64_t" >&5
17534 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17535 if test "${ac_cv_type_int64_t+set}" = set; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 cat >conftest.$ac_ext <<_ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17544 $ac_includes_default
17545 typedef int64_t ac__type_new_;
17549 if ((ac__type_new_ *) 0)
17551 if (sizeof (ac__type_new_))
17557 rm -f conftest.$ac_objext
17558 if { (ac_try="$ac_compile"
17559 case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_compile") 2>conftest.er1
17566 grep -v '^ *+' conftest.er1 >conftest.err
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } &&
17571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17572 { (case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_try") 2>&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } &&
17581 { ac_try='test -s conftest.$ac_objext'
17582 { (case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_try") 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17591 ac_cv_type_int64_t=yes
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17596 ac_cv_type_int64_t=no
17599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17601 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17602 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17603 if test $ac_cv_type_int64_t = yes; then
17605 cat >>confdefs.h <<_ACEOF
17606 #define HAVE_INT64_T 1
17611 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17612 echo "$as_me: error: Type int64_t required but not found" >&2;}
17613 { (exit 1); exit 1; }; }
17616 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17617 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17618 if test "${ac_cv_type_uint64_t+set}" = set; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17621 cat >conftest.$ac_ext <<_ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17627 $ac_includes_default
17628 typedef uint64_t ac__type_new_;
17632 if ((ac__type_new_ *) 0)
17634 if (sizeof (ac__type_new_))
17640 rm -f conftest.$ac_objext
17641 if { (ac_try="$ac_compile"
17642 case "(($ac_try" in
17643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644 *) ac_try_echo=$ac_try;;
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647 (eval "$ac_compile") 2>conftest.er1
17649 grep -v '^ *+' conftest.er1 >conftest.err
17651 cat conftest.err >&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17655 { (case "(($ac_try" in
17656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657 *) ac_try_echo=$ac_try;;
17659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660 (eval "$ac_try") 2>&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try='test -s conftest.$ac_objext'
17665 { (case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_try") 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_type_uint64_t=yes
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17679 ac_cv_type_uint64_t=no
17682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17684 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17685 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17686 if test $ac_cv_type_uint64_t = yes; then
17688 cat >>confdefs.h <<_ACEOF
17689 #define HAVE_UINT64_T 1
17694 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17695 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17696 if test "${ac_cv_type_u_int64_t+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 cat >conftest.$ac_ext <<_ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17705 $ac_includes_default
17706 typedef u_int64_t ac__type_new_;
17710 if ((ac__type_new_ *) 0)
17712 if (sizeof (ac__type_new_))
17718 rm -f conftest.$ac_objext
17719 if { (ac_try="$ac_compile"
17720 case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_compile") 2>conftest.er1
17727 grep -v '^ *+' conftest.er1 >conftest.err
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733 { (case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } &&
17742 { ac_try='test -s conftest.$ac_objext'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_cv_type_u_int64_t=yes
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 ac_cv_type_u_int64_t=no
17760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17762 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17763 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17764 if test $ac_cv_type_u_int64_t = yes; then
17766 cat >>confdefs.h <<_ACEOF
17767 #define HAVE_U_INT64_T 1
17772 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17773 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17774 { (exit 1); exit 1; }; }
17788 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17791 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17796 cat >conftest.$ac_ext <<_ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17804 #define $ac_func innocuous_$ac_func
17806 /* System header to define __stub macros and hopefully few prototypes,
17807 which can conflict with char $ac_func (); below.
17808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17809 <limits.h> exists even on freestanding compilers. */
17812 # include <limits.h>
17814 # include <assert.h>
17819 /* Override any GCC internal prototype to avoid an error.
17820 Use char because int might match the return type of a GCC
17821 builtin and then its argument prototype would still apply. */
17826 /* The GNU C library defines this for functions which it implements
17827 to always fail with ENOSYS. Some functions are actually named
17828 something starting with __ and the normal name is an alias. */
17829 #if defined __stub_$ac_func || defined __stub___$ac_func
17836 return $ac_func ();
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (ac_try="$ac_link"
17843 case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_link") 2>conftest.er1
17850 grep -v '^ *+' conftest.er1 >conftest.err
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; } &&
17865 { ac_try='test -s conftest$ac_exeext'
17866 { (case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_try") 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 eval "$as_ac_var=yes"
17877 echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17880 eval "$as_ac_var=no"
17883 rm -f core conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17886 ac_res=`eval echo '${'$as_ac_var'}'`
17887 { echo "$as_me:$LINENO: result: $ac_res" >&5
17888 echo "${ECHO_T}$ac_res" >&6; }
17889 if test `eval echo '${'$as_ac_var'}'` = yes; then
17890 cat >>confdefs.h <<_ACEOF
17891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17901 for ac_func in powf fmodf strtof round
17903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17909 cat >conftest.$ac_ext <<_ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17917 #define $ac_func innocuous_$ac_func
17919 /* System header to define __stub macros and hopefully few prototypes,
17920 which can conflict with char $ac_func (); below.
17921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17922 <limits.h> exists even on freestanding compilers. */
17925 # include <limits.h>
17927 # include <assert.h>
17932 /* Override any GCC internal prototype to avoid an error.
17933 Use char because int might match the return type of a GCC
17934 builtin and then its argument prototype would still apply. */
17939 /* The GNU C library defines this for functions which it implements
17940 to always fail with ENOSYS. Some functions are actually named
17941 something starting with __ and the normal name is an alias. */
17942 #if defined __stub_$ac_func || defined __stub___$ac_func
17949 return $ac_func ();
17954 rm -f conftest.$ac_objext conftest$ac_exeext
17955 if { (ac_try="$ac_link"
17956 case "(($ac_try" in
17957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958 *) ac_try_echo=$ac_try;;
17960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961 (eval "$ac_link") 2>conftest.er1
17963 grep -v '^ *+' conftest.er1 >conftest.err
17965 cat conftest.err >&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } &&
17968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17969 { (case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_try") 2>&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; } &&
17978 { ac_try='test -s conftest$ac_exeext'
17979 { (case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_try") 2>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; }; then
17988 eval "$as_ac_var=yes"
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17993 eval "$as_ac_var=no"
17996 rm -f core conftest.err conftest.$ac_objext \
17997 conftest$ac_exeext conftest.$ac_ext
17999 ac_res=`eval echo '${'$as_ac_var'}'`
18000 { echo "$as_me:$LINENO: result: $ac_res" >&5
18001 echo "${ECHO_T}$ac_res" >&6; }
18002 if test `eval echo '${'$as_ac_var'}'` = yes; then
18003 cat >>confdefs.h <<_ACEOF
18004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18015 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18021 echo $ECHO_N "(cached) $ECHO_C" >&6
18023 cat >conftest.$ac_ext <<_ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h. */
18029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18031 #define $ac_func innocuous_$ac_func
18033 /* System header to define __stub macros and hopefully few prototypes,
18034 which can conflict with char $ac_func (); below.
18035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18036 <limits.h> exists even on freestanding compilers. */
18039 # include <limits.h>
18041 # include <assert.h>
18046 /* Override any GCC internal prototype to avoid an error.
18047 Use char because int might match the return type of a GCC
18048 builtin and then its argument prototype would still apply. */
18053 /* The GNU C library defines this for functions which it implements
18054 to always fail with ENOSYS. Some functions are actually named
18055 something starting with __ and the normal name is an alias. */
18056 #if defined __stub_$ac_func || defined __stub___$ac_func
18063 return $ac_func ();
18068 rm -f conftest.$ac_objext conftest$ac_exeext
18069 if { (ac_try="$ac_link"
18070 case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_link") 2>conftest.er1
18077 grep -v '^ *+' conftest.er1 >conftest.err
18079 cat conftest.err >&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } &&
18082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18083 { (case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088 (eval "$ac_try") 2>&5
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try='test -s conftest$ac_exeext'
18093 { (case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098 (eval "$ac_try") 2>&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 eval "$as_ac_var=yes"
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 eval "$as_ac_var=no"
18110 rm -f core conftest.err conftest.$ac_objext \
18111 conftest$ac_exeext conftest.$ac_ext
18113 ac_res=`eval echo '${'$as_ac_var'}'`
18114 { echo "$as_me:$LINENO: result: $ac_res" >&5
18115 echo "${ECHO_T}$ac_res" >&6; }
18116 if test `eval echo '${'$as_ac_var'}'` = yes; then
18117 cat >>confdefs.h <<_ACEOF
18118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18127 for ac_func in isatty mkdtemp mkstemp
18129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18133 echo $ECHO_N "(cached) $ECHO_C" >&6
18135 cat >conftest.$ac_ext <<_ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h. */
18141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18143 #define $ac_func innocuous_$ac_func
18145 /* System header to define __stub macros and hopefully few prototypes,
18146 which can conflict with char $ac_func (); below.
18147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18148 <limits.h> exists even on freestanding compilers. */
18151 # include <limits.h>
18153 # include <assert.h>
18158 /* Override any GCC internal prototype to avoid an error.
18159 Use char because int might match the return type of a GCC
18160 builtin and then its argument prototype would still apply. */
18165 /* The GNU C library defines this for functions which it implements
18166 to always fail with ENOSYS. Some functions are actually named
18167 something starting with __ and the normal name is an alias. */
18168 #if defined __stub_$ac_func || defined __stub___$ac_func
18175 return $ac_func ();
18180 rm -f conftest.$ac_objext conftest$ac_exeext
18181 if { (ac_try="$ac_link"
18182 case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_link") 2>conftest.er1
18189 grep -v '^ *+' conftest.er1 >conftest.err
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
18194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18195 { (case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_try") 2>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest$ac_exeext'
18205 { (case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_try") 2>&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; }; then
18214 eval "$as_ac_var=yes"
18216 echo "$as_me: failed program was:" >&5
18217 sed 's/^/| /' conftest.$ac_ext >&5
18219 eval "$as_ac_var=no"
18222 rm -f core conftest.err conftest.$ac_objext \
18223 conftest$ac_exeext conftest.$ac_ext
18225 ac_res=`eval echo '${'$as_ac_var'}'`
18226 { echo "$as_me:$LINENO: result: $ac_res" >&5
18227 echo "${ECHO_T}$ac_res" >&6; }
18228 if test `eval echo '${'$as_ac_var'}'` = yes; then
18229 cat >>confdefs.h <<_ACEOF
18230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18242 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 cat >conftest.$ac_ext <<_ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18258 #define $ac_func innocuous_$ac_func
18260 /* System header to define __stub macros and hopefully few prototypes,
18261 which can conflict with char $ac_func (); below.
18262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18263 <limits.h> exists even on freestanding compilers. */
18266 # include <limits.h>
18268 # include <assert.h>
18273 /* Override any GCC internal prototype to avoid an error.
18274 Use char because int might match the return type of a GCC
18275 builtin and then its argument prototype would still apply. */
18280 /* The GNU C library defines this for functions which it implements
18281 to always fail with ENOSYS. Some functions are actually named
18282 something starting with __ and the normal name is an alias. */
18283 #if defined __stub_$ac_func || defined __stub___$ac_func
18290 return $ac_func ();
18295 rm -f conftest.$ac_objext conftest$ac_exeext
18296 if { (ac_try="$ac_link"
18297 case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_link") 2>conftest.er1
18304 grep -v '^ *+' conftest.er1 >conftest.err
18306 cat conftest.err >&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } &&
18309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18310 { (case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_try") 2>&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; } &&
18319 { ac_try='test -s conftest$ac_exeext'
18320 { (case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_try") 2>&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; }; then
18329 eval "$as_ac_var=yes"
18331 echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18334 eval "$as_ac_var=no"
18337 rm -f core conftest.err conftest.$ac_objext \
18338 conftest$ac_exeext conftest.$ac_ext
18340 ac_res=`eval echo '${'$as_ac_var'}'`
18341 { echo "$as_me:$LINENO: result: $ac_res" >&5
18342 echo "${ECHO_T}$ac_res" >&6; }
18343 if test `eval echo '${'$as_ac_var'}'` = yes; then
18344 cat >>confdefs.h <<_ACEOF
18345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18355 for ac_func in strerror strerror_r strerror_s setenv
18357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18363 cat >conftest.$ac_ext <<_ACEOF
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h. */
18369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18371 #define $ac_func innocuous_$ac_func
18373 /* System header to define __stub macros and hopefully few prototypes,
18374 which can conflict with char $ac_func (); below.
18375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18376 <limits.h> exists even on freestanding compilers. */
18379 # include <limits.h>
18381 # include <assert.h>
18386 /* Override any GCC internal prototype to avoid an error.
18387 Use char because int might match the return type of a GCC
18388 builtin and then its argument prototype would still apply. */
18393 /* The GNU C library defines this for functions which it implements
18394 to always fail with ENOSYS. Some functions are actually named
18395 something starting with __ and the normal name is an alias. */
18396 #if defined __stub_$ac_func || defined __stub___$ac_func
18403 return $ac_func ();
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (ac_try="$ac_link"
18410 case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_link") 2>conftest.er1
18417 grep -v '^ *+' conftest.er1 >conftest.err
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18423 { (case "(($ac_try" in
18424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425 *) ac_try_echo=$ac_try;;
18427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428 (eval "$ac_try") 2>&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest$ac_exeext'
18433 { (case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_try") 2>&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 eval "$as_ac_var=yes"
18444 echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18447 eval "$as_ac_var=no"
18450 rm -f core conftest.err conftest.$ac_objext \
18451 conftest$ac_exeext conftest.$ac_ext
18453 ac_res=`eval echo '${'$as_ac_var'}'`
18454 { echo "$as_me:$LINENO: result: $ac_res" >&5
18455 echo "${ECHO_T}$ac_res" >&6; }
18456 if test `eval echo '${'$as_ac_var'}'` = yes; then
18457 cat >>confdefs.h <<_ACEOF
18458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18468 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 cat >conftest.$ac_ext <<_ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18484 #define $ac_func innocuous_$ac_func
18486 /* System header to define __stub macros and hopefully few prototypes,
18487 which can conflict with char $ac_func (); below.
18488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18489 <limits.h> exists even on freestanding compilers. */
18492 # include <limits.h>
18494 # include <assert.h>
18499 /* Override any GCC internal prototype to avoid an error.
18500 Use char because int might match the return type of a GCC
18501 builtin and then its argument prototype would still apply. */
18506 /* The GNU C library defines this for functions which it implements
18507 to always fail with ENOSYS. Some functions are actually named
18508 something starting with __ and the normal name is an alias. */
18509 #if defined __stub_$ac_func || defined __stub___$ac_func
18516 return $ac_func ();
18521 rm -f conftest.$ac_objext conftest$ac_exeext
18522 if { (ac_try="$ac_link"
18523 case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_link") 2>conftest.er1
18530 grep -v '^ *+' conftest.er1 >conftest.err
18532 cat conftest.err >&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
18535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18536 { (case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_try") 2>&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; } &&
18545 { ac_try='test -s conftest$ac_exeext'
18546 { (case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_try") 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 eval "$as_ac_var=yes"
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18560 eval "$as_ac_var=no"
18563 rm -f core conftest.err conftest.$ac_objext \
18564 conftest$ac_exeext conftest.$ac_ext
18566 ac_res=`eval echo '${'$as_ac_var'}'`
18567 { echo "$as_me:$LINENO: result: $ac_res" >&5
18568 echo "${ECHO_T}$ac_res" >&6; }
18569 if test `eval echo '${'$as_ac_var'}'` = yes; then
18570 cat >>confdefs.h <<_ACEOF
18571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18581 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18584 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18586 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 cat >conftest.$ac_ext <<_ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18597 #define $ac_func innocuous_$ac_func
18599 /* System header to define __stub macros and hopefully few prototypes,
18600 which can conflict with char $ac_func (); below.
18601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18602 <limits.h> exists even on freestanding compilers. */
18605 # include <limits.h>
18607 # include <assert.h>
18612 /* Override any GCC internal prototype to avoid an error.
18613 Use char because int might match the return type of a GCC
18614 builtin and then its argument prototype would still apply. */
18619 /* The GNU C library defines this for functions which it implements
18620 to always fail with ENOSYS. Some functions are actually named
18621 something starting with __ and the normal name is an alias. */
18622 #if defined __stub_$ac_func || defined __stub___$ac_func
18629 return $ac_func ();
18634 rm -f conftest.$ac_objext conftest$ac_exeext
18635 if { (ac_try="$ac_link"
18636 case "(($ac_try" in
18637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638 *) ac_try_echo=$ac_try;;
18640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641 (eval "$ac_link") 2>conftest.er1
18643 grep -v '^ *+' conftest.er1 >conftest.err
18645 cat conftest.err >&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
18648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18649 { (case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_try") 2>&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; } &&
18658 { ac_try='test -s conftest$ac_exeext'
18659 { (case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_try") 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 eval "$as_ac_var=yes"
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18673 eval "$as_ac_var=no"
18676 rm -f core conftest.err conftest.$ac_objext \
18677 conftest$ac_exeext conftest.$ac_ext
18679 ac_res=`eval echo '${'$as_ac_var'}'`
18680 { echo "$as_me:$LINENO: result: $ac_res" >&5
18681 echo "${ECHO_T}$ac_res" >&6; }
18682 if test `eval echo '${'$as_ac_var'}'` = yes; then
18683 cat >>confdefs.h <<_ACEOF
18684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18690 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18691 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18692 if test "${llvm_cv_c_printf_a+set}" = set; then
18693 echo $ECHO_N "(cached) $ECHO_C" >&6
18696 ac_cpp='$CPP $CPPFLAGS'
18697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18701 if test "$cross_compiling" = yes; then
18702 llvmac_cv_c_printf_a=no
18704 cat >conftest.$ac_ext <<_ACEOF
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h. */
18713 #include <stdlib.h>
18719 volatile double A, B;
18723 sprintf(Buffer, "%a", A);
18727 if (A != 0x1.999999999999ap-4)
18734 rm -f conftest$ac_exeext
18735 if { (ac_try="$ac_link"
18736 case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_link") 2>&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
18754 llvm_cv_c_printf_a=yes
18756 echo "$as_me: program exited with status $ac_status" >&5
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18760 ( exit $ac_status )
18761 llvmac_cv_c_printf_a=no
18763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18768 ac_cpp='$CPP $CPPFLAGS'
18769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18774 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18775 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18776 if test "$llvm_cv_c_printf_a" = "yes"; then
18778 cat >>confdefs.h <<\_ACEOF
18779 #define HAVE_PRINTF_A 1
18785 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18786 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18787 if test "${ac_cv_func_rand48+set}" = set; then
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
18791 ac_cpp='$CXXCPP $CPPFLAGS'
18792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18796 cat >conftest.$ac_ext <<_ACEOF
18799 cat confdefs.h >>conftest.$ac_ext
18800 cat >>conftest.$ac_ext <<_ACEOF
18801 /* end confdefs.h. */
18802 #include <stdlib.h>
18806 srand48(0);lrand48();drand48();
18811 rm -f conftest.$ac_objext
18812 if { (ac_try="$ac_compile"
18813 case "(($ac_try" in
18814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815 *) ac_try_echo=$ac_try;;
18817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818 (eval "$ac_compile") 2>conftest.er1
18820 grep -v '^ *+' conftest.er1 >conftest.err
18822 cat conftest.err >&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
18825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18826 { (case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_try") 2>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; } &&
18835 { ac_try='test -s conftest.$ac_objext'
18836 { (case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_try") 2>&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; }; then
18845 ac_cv_func_rand48=yes
18847 echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18850 ac_cv_func_rand48=no
18853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18855 ac_cpp='$CPP $CPPFLAGS'
18856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18861 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18862 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18864 if test "$ac_cv_func_rand48" = "yes" ; then
18866 cat >>confdefs.h <<\_ACEOF
18867 #define HAVE_RAND48 1
18874 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18875 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18876 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18877 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 ac_cpp='$CXXCPP $CPPFLAGS'
18881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18885 cat >conftest.$ac_ext <<_ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18900 rm -f conftest.$ac_objext
18901 if { (ac_try="$ac_compile"
18902 case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_compile") 2>conftest.er1
18909 grep -v '^ *+' conftest.er1 >conftest.err
18911 cat conftest.err >&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } &&
18914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18915 { (case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_try") 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try='test -s conftest.$ac_objext'
18925 { (case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_try") 2>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
18934 ac_cv_func_isnan_in_math_h=yes
18936 echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18939 ac_cv_func_isnan_in_math_h=no
18942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18944 ac_cpp='$CPP $CPPFLAGS'
18945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18950 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18951 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18954 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18956 cat >>confdefs.h <<\_ACEOF
18957 #define HAVE_ISNAN_IN_MATH_H 1
18962 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18963 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18964 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 ac_cpp='$CXXCPP $CPPFLAGS'
18969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18973 cat >conftest.$ac_ext <<_ACEOF
18976 cat confdefs.h >>conftest.$ac_ext
18977 cat >>conftest.$ac_ext <<_ACEOF
18978 /* end confdefs.h. */
18988 rm -f conftest.$ac_objext
18989 if { (ac_try="$ac_compile"
18990 case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_compile") 2>conftest.er1
18997 grep -v '^ *+' conftest.er1 >conftest.err
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } &&
19002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19003 { (case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_try") 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; } &&
19012 { ac_try='test -s conftest.$ac_objext'
19013 { (case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_try") 2>&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; }; then
19022 ac_cv_func_isnan_in_cmath=yes
19024 echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19027 ac_cv_func_isnan_in_cmath=no
19030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19032 ac_cpp='$CPP $CPPFLAGS'
19033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19038 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19039 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19041 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19043 cat >>confdefs.h <<\_ACEOF
19044 #define HAVE_ISNAN_IN_CMATH 1
19049 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19050 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19051 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19055 ac_cpp='$CXXCPP $CPPFLAGS'
19056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19060 cat >conftest.$ac_ext <<_ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h. */
19070 float f; std::isnan(f);
19075 rm -f conftest.$ac_objext
19076 if { (ac_try="$ac_compile"
19077 case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_compile") 2>conftest.er1
19084 grep -v '^ *+' conftest.er1 >conftest.err
19086 cat conftest.err >&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } &&
19089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19090 { (case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_try") 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; } &&
19099 { ac_try='test -s conftest.$ac_objext'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 ac_cv_func_std_isnan_in_cmath=yes
19111 echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19114 ac_cv_func_std_isnan_in_cmath=no
19117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19119 ac_cpp='$CPP $CPPFLAGS'
19120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19125 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19126 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19128 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_STD_ISNAN_IN_CMATH 1
19137 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19138 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19139 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 ac_cpp='$CXXCPP $CPPFLAGS'
19144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19148 cat >conftest.$ac_ext <<_ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19163 rm -f conftest.$ac_objext
19164 if { (ac_try="$ac_compile"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_compile") 2>conftest.er1
19172 grep -v '^ *+' conftest.er1 >conftest.err
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19178 { (case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_try") 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest.$ac_objext'
19188 { (case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_try") 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_cv_func_isinf_in_math_h=yes
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_cv_func_isinf_in_math_h=no
19205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 ac_cpp='$CPP $CPPFLAGS'
19208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19213 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19214 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19216 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19218 cat >>confdefs.h <<\_ACEOF
19219 #define HAVE_ISINF_IN_MATH_H 1
19224 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19225 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19226 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 ac_cpp='$CXXCPP $CPPFLAGS'
19231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19235 cat >conftest.$ac_ext <<_ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h. */
19250 rm -f conftest.$ac_objext
19251 if { (ac_try="$ac_compile"
19252 case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_compile") 2>conftest.er1
19259 grep -v '^ *+' conftest.er1 >conftest.err
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } &&
19264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19265 { (case "(($ac_try" in
19266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267 *) ac_try_echo=$ac_try;;
19269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270 (eval "$ac_try") 2>&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; } &&
19274 { ac_try='test -s conftest.$ac_objext'
19275 { (case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_try") 2>&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; }; then
19284 ac_cv_func_isinf_in_cmath=yes
19286 echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19289 ac_cv_func_isinf_in_cmath=no
19292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19294 ac_cpp='$CPP $CPPFLAGS'
19295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19300 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19301 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19303 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19305 cat >>confdefs.h <<\_ACEOF
19306 #define HAVE_ISINF_IN_CMATH 1
19311 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19312 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19313 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19314 echo $ECHO_N "(cached) $ECHO_C" >&6
19317 ac_cpp='$CXXCPP $CPPFLAGS'
19318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19322 cat >conftest.$ac_ext <<_ACEOF
19325 cat confdefs.h >>conftest.$ac_ext
19326 cat >>conftest.$ac_ext <<_ACEOF
19327 /* end confdefs.h. */
19332 float f; std::isinf(f)}
19337 rm -f conftest.$ac_objext
19338 if { (ac_try="$ac_compile"
19339 case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_compile") 2>conftest.er1
19346 grep -v '^ *+' conftest.er1 >conftest.err
19348 cat conftest.err >&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); } &&
19351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19352 { (case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_try") 2>&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; } &&
19361 { ac_try='test -s conftest.$ac_objext'
19362 { (case "(($ac_try" in
19363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364 *) ac_try_echo=$ac_try;;
19366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_try") 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 ac_cv_func_std_isinf_in_cmath=yes
19373 echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19376 ac_cv_func_std_isinf_in_cmath=no
19379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19381 ac_cpp='$CPP $CPPFLAGS'
19382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19387 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19388 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19390 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19392 cat >>confdefs.h <<\_ACEOF
19393 #define HAVE_STD_ISINF_IN_CMATH 1
19398 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19399 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19400 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
19404 ac_cpp='$CXXCPP $CPPFLAGS'
19405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19415 #include <ieeefp.h>
19419 float f; finite(f);
19424 rm -f conftest.$ac_objext
19425 if { (ac_try="$ac_compile"
19426 case "(($ac_try" in
19427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428 *) ac_try_echo=$ac_try;;
19430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431 (eval "$ac_compile") 2>conftest.er1
19433 grep -v '^ *+' conftest.er1 >conftest.err
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
19438 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19439 { (case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_try") 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; } &&
19448 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19458 ac_cv_func_finite_in_ieeefp_h=yes
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19463 ac_cv_func_finite_in_ieeefp_h=no
19466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19468 ac_cpp='$CPP $CPPFLAGS'
19469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19474 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19475 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19477 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19479 cat >>confdefs.h <<\_ACEOF
19480 #define HAVE_FINITE_IN_IEEEFP_H 1
19487 if test "$llvm_cv_platform_type" = "Unix" ; then
19490 for ac_header in stdlib.h unistd.h
19492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19499 ac_res=`eval echo '${'$as_ac_Header'}'`
19500 { echo "$as_me:$LINENO: result: $ac_res" >&5
19501 echo "${ECHO_T}$ac_res" >&6; }
19503 # Is the header compilable?
19504 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19506 cat >conftest.$ac_ext <<_ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19512 $ac_includes_default
19513 #include <$ac_header>
19515 rm -f conftest.$ac_objext
19516 if { (ac_try="$ac_compile"
19517 case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_compile") 2>conftest.er1
19524 grep -v '^ *+' conftest.er1 >conftest.err
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } &&
19529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19530 { (case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_try") 2>&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; } &&
19539 { ac_try='test -s conftest.$ac_objext'
19540 { (case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_try") 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_header_compiler=yes
19551 echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.$ac_ext >&5
19554 ac_header_compiler=no
19557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19559 echo "${ECHO_T}$ac_header_compiler" >&6; }
19561 # Is the header present?
19562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19564 cat >conftest.$ac_ext <<_ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h. */
19570 #include <$ac_header>
19572 if { (ac_try="$ac_cpp conftest.$ac_ext"
19573 case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19580 grep -v '^ *+' conftest.er1 >conftest.err
19582 cat conftest.err >&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } >/dev/null; then
19585 if test -s conftest.err; then
19586 ac_cpp_err=$ac_c_preproc_warn_flag
19587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19594 if test -z "$ac_cpp_err"; then
19595 ac_header_preproc=yes
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19600 ac_header_preproc=no
19603 rm -f conftest.err conftest.$ac_ext
19604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19605 echo "${ECHO_T}$ac_header_preproc" >&6; }
19607 # So? What about this header?
19608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19614 ac_header_preproc=yes
19617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19630 ## ----------------------------------- ##
19631 ## Report this to llvmbugs@cs.uiuc.edu ##
19632 ## ----------------------------------- ##
19634 ) | sed "s/^/$as_me: WARNING: /" >&2
19637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19640 echo $ECHO_N "(cached) $ECHO_C" >&6
19642 eval "$as_ac_Header=\$ac_header_preproc"
19644 ac_res=`eval echo '${'$as_ac_Header'}'`
19645 { echo "$as_me:$LINENO: result: $ac_res" >&5
19646 echo "${ECHO_T}$ac_res" >&6; }
19649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19650 cat >>confdefs.h <<_ACEOF
19651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19659 for ac_func in getpagesize
19661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19662 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19664 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19667 cat >conftest.$ac_ext <<_ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19675 #define $ac_func innocuous_$ac_func
19677 /* System header to define __stub macros and hopefully few prototypes,
19678 which can conflict with char $ac_func (); below.
19679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19680 <limits.h> exists even on freestanding compilers. */
19683 # include <limits.h>
19685 # include <assert.h>
19690 /* Override any GCC internal prototype to avoid an error.
19691 Use char because int might match the return type of a GCC
19692 builtin and then its argument prototype would still apply. */
19697 /* The GNU C library defines this for functions which it implements
19698 to always fail with ENOSYS. Some functions are actually named
19699 something starting with __ and the normal name is an alias. */
19700 #if defined __stub_$ac_func || defined __stub___$ac_func
19707 return $ac_func ();
19712 rm -f conftest.$ac_objext conftest$ac_exeext
19713 if { (ac_try="$ac_link"
19714 case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_link") 2>conftest.er1
19721 grep -v '^ *+' conftest.er1 >conftest.err
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } &&
19726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19727 { (case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_try") 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest$ac_exeext'
19737 { (case "(($ac_try" in
19738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739 *) ac_try_echo=$ac_try;;
19741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742 (eval "$ac_try") 2>&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 eval "$as_ac_var=yes"
19748 echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19751 eval "$as_ac_var=no"
19754 rm -f core conftest.err conftest.$ac_objext \
19755 conftest$ac_exeext conftest.$ac_ext
19757 ac_res=`eval echo '${'$as_ac_var'}'`
19758 { echo "$as_me:$LINENO: result: $ac_res" >&5
19759 echo "${ECHO_T}$ac_res" >&6; }
19760 if test `eval echo '${'$as_ac_var'}'` = yes; then
19761 cat >>confdefs.h <<_ACEOF
19762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19768 { echo "$as_me:$LINENO: checking for working mmap" >&5
19769 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19770 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 if test "$cross_compiling" = yes; then
19774 ac_cv_func_mmap_fixed_mapped=no
19776 cat >conftest.$ac_ext <<_ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19782 $ac_includes_default
19783 /* malloc might have been renamed as rpl_malloc. */
19786 /* Thanks to Mike Haertel and Jim Avera for this test.
19787 Here is a matrix of mmap possibilities:
19788 mmap private not fixed
19789 mmap private fixed at somewhere currently unmapped
19790 mmap private fixed at somewhere already mapped
19791 mmap shared not fixed
19792 mmap shared fixed at somewhere currently unmapped
19793 mmap shared fixed at somewhere already mapped
19794 For private mappings, we should verify that changes cannot be read()
19795 back from the file, nor mmap's back from the file at a different
19796 address. (There have been systems where private was not correctly
19797 implemented like the infamous i386 svr4.0, and systems where the
19798 VM page cache was not coherent with the file system buffer cache
19799 like early versions of FreeBSD and possibly contemporary NetBSD.)
19800 For shared mappings, we should conversely verify that changes get
19801 propagated back to all the places they're supposed to be.
19803 Grep wants private fixed already mapped.
19804 The main things grep needs to know about mmap are:
19805 * does it exist and is it safe to write into the mmap'd area
19806 * how to use it (BSD variants) */
19809 #include <sys/mman.h>
19811 #if !STDC_HEADERS && !HAVE_STDLIB_H
19815 /* This mess was copied from the GNU getpagesize.h. */
19816 #if !HAVE_GETPAGESIZE
19817 /* Assume that all systems that can run configure have sys/param.h. */
19818 # if !HAVE_SYS_PARAM_H
19819 # define HAVE_SYS_PARAM_H 1
19822 # ifdef _SC_PAGESIZE
19823 # define getpagesize() sysconf(_SC_PAGESIZE)
19824 # else /* no _SC_PAGESIZE */
19825 # if HAVE_SYS_PARAM_H
19826 # include <sys/param.h>
19827 # ifdef EXEC_PAGESIZE
19828 # define getpagesize() EXEC_PAGESIZE
19829 # else /* no EXEC_PAGESIZE */
19831 # define getpagesize() NBPG * CLSIZE
19834 # endif /* no CLSIZE */
19835 # else /* no NBPG */
19837 # define getpagesize() NBPC
19838 # else /* no NBPC */
19840 # define getpagesize() PAGESIZE
19841 # endif /* PAGESIZE */
19842 # endif /* no NBPC */
19843 # endif /* no NBPG */
19844 # endif /* no EXEC_PAGESIZE */
19845 # else /* no HAVE_SYS_PARAM_H */
19846 # define getpagesize() 8192 /* punt totally */
19847 # endif /* no HAVE_SYS_PARAM_H */
19848 # endif /* no _SC_PAGESIZE */
19850 #endif /* no HAVE_GETPAGESIZE */
19855 char *data, *data2, *data3;
19859 pagesize = getpagesize ();
19861 /* First, make a file with some known garbage in it. */
19862 data = (char *) malloc (pagesize);
19865 for (i = 0; i < pagesize; ++i)
19866 *(data + i) = rand ();
19868 fd = creat ("conftest.mmap", 0600);
19871 if (write (fd, data, pagesize) != pagesize)
19875 /* Next, try to mmap the file at a fixed address which already has
19876 something else allocated at it. If we can, also make sure that
19877 we see the same garbage. */
19878 fd = open ("conftest.mmap", O_RDWR);
19881 data2 = (char *) malloc (2 * pagesize);
19884 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19885 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19886 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19888 for (i = 0; i < pagesize; ++i)
19889 if (*(data + i) != *(data2 + i))
19892 /* Finally, make sure that changes to the mapped area do not
19893 percolate back to the file as seen by read(). (This is a bug on
19894 some variants of i386 svr4.0.) */
19895 for (i = 0; i < pagesize; ++i)
19896 *(data2 + i) = *(data2 + i) + 1;
19897 data3 = (char *) malloc (pagesize);
19900 if (read (fd, data3, pagesize) != pagesize)
19902 for (i = 0; i < pagesize; ++i)
19903 if (*(data + i) != *(data3 + i))
19909 rm -f conftest$ac_exeext
19910 if { (ac_try="$ac_link"
19911 case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_link") 2>&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19920 { (case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_try") 2>&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; }; then
19929 ac_cv_func_mmap_fixed_mapped=yes
19931 echo "$as_me: program exited with status $ac_status" >&5
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ( exit $ac_status )
19936 ac_cv_func_mmap_fixed_mapped=no
19938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19943 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19944 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19945 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19947 cat >>confdefs.h <<\_ACEOF
19948 #define HAVE_MMAP 1
19952 rm -f conftest.mmap
19954 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19955 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19956 if test "${ac_cv_func_mmap_file+set}" = set; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
19960 ac_cpp='$CPP $CPPFLAGS'
19961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19965 if test "$cross_compiling" = yes; then
19966 ac_cv_func_mmap_file=no
19968 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19976 #include <sys/types.h>
19977 #include <sys/mman.h>
19985 fd = creat ("foo",0777);
19986 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19988 return (fd != (int) MAP_FAILED);
19993 rm -f conftest$ac_exeext
19994 if { (ac_try="$ac_link"
19995 case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_link") 2>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20004 { (case "(($ac_try" in
20005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006 *) ac_try_echo=$ac_try;;
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009 (eval "$ac_try") 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 ac_cv_func_mmap_file=yes
20015 echo "$as_me: program exited with status $ac_status" >&5
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 ( exit $ac_status )
20020 ac_cv_func_mmap_file=no
20022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20027 ac_cpp='$CPP $CPPFLAGS'
20028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20034 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20035 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20036 if test "$ac_cv_func_mmap_file" = yes; then
20038 cat >>confdefs.h <<\_ACEOF
20039 #define HAVE_MMAP_FILE
20046 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20047 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20048 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 if test "$llvm_cv_os_type" = "Interix" ; then
20052 ac_cv_need_dev_zero_for_mmap=yes
20054 ac_cv_need_dev_zero_for_mmap=no
20058 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20059 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20060 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20062 cat >>confdefs.h <<\_ACEOF
20063 #define NEED_DEV_ZERO_FOR_MMAP 1
20068 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20070 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20071 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20073 if test "$ac_cv_func_mmap_file" = "no"
20075 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20076 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20080 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20081 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20082 cat >conftest.$ac_ext <<_ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20089 volatile unsigned long val = 1;
20090 __sync_synchronize();
20091 __sync_val_compare_and_swap(&val, 1, 0);
20092 __sync_add_and_fetch(&val, 1);
20093 __sync_sub_and_fetch(&val, 1);
20098 rm -f conftest.$ac_objext conftest$ac_exeext
20099 if { (ac_try="$ac_link"
20100 case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_link") 2>conftest.er1
20107 grep -v '^ *+' conftest.er1 >conftest.err
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } &&
20112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20113 { (case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_try") 2>&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; } &&
20122 { ac_try='test -s conftest$ac_exeext'
20123 { (case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_try") 2>&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 { echo "$as_me:$LINENO: result: yes" >&5
20133 echo "${ECHO_T}yes" >&6; }
20135 cat >>confdefs.h <<\_ACEOF
20136 #define LLVM_MULTITHREADED 1
20140 echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20143 { echo "$as_me:$LINENO: result: no" >&5
20144 echo "${ECHO_T}no" >&6; }
20146 cat >>confdefs.h <<\_ACEOF
20147 #define LLVM_MULTITHREADED 0
20150 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20151 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20154 rm -f core conftest.err conftest.$ac_objext \
20155 conftest$ac_exeext conftest.$ac_ext
20159 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20160 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20161 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20162 if test "${llvm_cv_linux_mixed+set}" = set; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
20166 ac_cpp='$CPP $CPPFLAGS'
20167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20171 cat >conftest.$ac_ext <<_ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20178 error: Not x86-64 even if uname says so!
20189 rm -f conftest.$ac_objext
20190 if { (ac_try="$ac_compile"
20191 case "(($ac_try" in
20192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193 *) ac_try_echo=$ac_try;;
20195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196 (eval "$ac_compile") 2>conftest.er1
20198 grep -v '^ *+' conftest.er1 >conftest.err
20200 cat conftest.err >&5
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); } &&
20203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20204 { (case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_try") 2>&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; } &&
20213 { ac_try='test -s conftest.$ac_objext'
20214 { (case "(($ac_try" in
20215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216 *) ac_try_echo=$ac_try;;
20218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219 (eval "$ac_try") 2>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; }; then
20223 llvm_cv_linux_mixed=no
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20228 llvm_cv_linux_mixed=yes
20231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20233 ac_cpp='$CPP $CPPFLAGS'
20234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20240 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20241 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20243 if test "$llvm_cv_linux_mixed" = "yes"; then
20244 llvm_cv_target_arch="x86"
20250 for ac_func in __dso_handle
20252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20258 cat >conftest.$ac_ext <<_ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20266 #define $ac_func innocuous_$ac_func
20268 /* System header to define __stub macros and hopefully few prototypes,
20269 which can conflict with char $ac_func (); below.
20270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20271 <limits.h> exists even on freestanding compilers. */
20274 # include <limits.h>
20276 # include <assert.h>
20281 /* Override any GCC internal prototype to avoid an error.
20282 Use char because int might match the return type of a GCC
20283 builtin and then its argument prototype would still apply. */
20288 /* The GNU C library defines this for functions which it implements
20289 to always fail with ENOSYS. Some functions are actually named
20290 something starting with __ and the normal name is an alias. */
20291 #if defined __stub_$ac_func || defined __stub___$ac_func
20298 return $ac_func ();
20303 rm -f conftest.$ac_objext conftest$ac_exeext
20304 if { (ac_try="$ac_link"
20305 case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_link") 2>conftest.er1
20312 grep -v '^ *+' conftest.er1 >conftest.err
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } &&
20317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20318 { (case "(($ac_try" in
20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323 (eval "$ac_try") 2>&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; } &&
20327 { ac_try='test -s conftest$ac_exeext'
20328 { (case "(($ac_try" in
20329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20330 *) ac_try_echo=$ac_try;;
20332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20333 (eval "$ac_try") 2>&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; }; then
20337 eval "$as_ac_var=yes"
20339 echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20342 eval "$as_ac_var=no"
20345 rm -f core conftest.err conftest.$ac_objext \
20346 conftest$ac_exeext conftest.$ac_ext
20348 ac_res=`eval echo '${'$as_ac_var'}'`
20349 { echo "$as_me:$LINENO: result: $ac_res" >&5
20350 echo "${ECHO_T}$ac_res" >&6; }
20351 if test `eval echo '${'$as_ac_var'}'` = yes; then
20352 cat >>confdefs.h <<_ACEOF
20353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20360 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20361 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20362 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 llvm_cv_llvmgcc_sanity="no"
20366 if test -x "$LLVMGCC" ; then
20367 cp /dev/null conftest.c
20368 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20369 grep 'target datalayout =' > /dev/null 2>&1
20370 if test $? -eq 0 ; then
20371 llvm_cv_llvmgcc_sanity="yes"
20376 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20377 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20379 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20380 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20381 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20382 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20383 LLVMCC1=$llvmcc1path
20385 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20386 LLVMCC1PLUS=$llvmcc1pluspath
20388 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20389 LLVMGCCDIR=$llvmgccdir
20391 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20392 LLVMGCC_LANGS=$llvmgcclangs
20394 { echo "$as_me:$LINENO: result: ok" >&5
20395 echo "${ECHO_T}ok" >&6; }
20398 SHLIBEXT=$libltdl_cv_shlibext
20401 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20404 # Translate the various configuration directories and other basic
20405 # information into substitutions that will end up in Makefile.config.in
20406 # that these configured values can be used by the makefiles
20407 if test "${prefix}" = "NONE" ; then
20408 prefix="/usr/local"
20410 eval LLVM_PREFIX="${prefix}";
20411 eval LLVM_BINDIR="${prefix}/bin";
20412 eval LLVM_LIBDIR="${prefix}/lib";
20413 eval LLVM_DATADIR="${prefix}/share/llvm";
20414 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20415 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20416 eval LLVM_INCLUDEDIR="${prefix}/include";
20417 eval LLVM_INFODIR="${prefix}/info";
20418 eval LLVM_MANDIR="${prefix}/man";
20419 LLVM_CONFIGTIME=`date`
20431 # Place the various directores into the config.h file as #defines so that we
20432 # can know about the installation paths within LLVM.
20434 cat >>confdefs.h <<_ACEOF
20435 #define LLVM_PREFIX "$LLVM_PREFIX"
20439 cat >>confdefs.h <<_ACEOF
20440 #define LLVM_BINDIR "$LLVM_BINDIR"
20444 cat >>confdefs.h <<_ACEOF
20445 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20449 cat >>confdefs.h <<_ACEOF
20450 #define LLVM_DATADIR "$LLVM_DATADIR"
20454 cat >>confdefs.h <<_ACEOF
20455 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20459 cat >>confdefs.h <<_ACEOF
20460 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20464 cat >>confdefs.h <<_ACEOF
20465 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20469 cat >>confdefs.h <<_ACEOF
20470 #define LLVM_INFODIR "$LLVM_INFODIR"
20474 cat >>confdefs.h <<_ACEOF
20475 #define LLVM_MANDIR "$LLVM_MANDIR"
20479 cat >>confdefs.h <<_ACEOF
20480 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20484 cat >>confdefs.h <<_ACEOF
20485 #define LLVM_HOSTTRIPLE "$host"
20489 # Determine which bindings to build.
20490 if test "$BINDINGS_TO_BUILD" = auto ; then
20491 BINDINGS_TO_BUILD=""
20492 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20493 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20496 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20499 # This isn't really configurey, but it avoids having to repeat the list in
20504 # Do any work necessary to ensure that bindings have what they need.
20505 binding_prereqs_failed=0
20506 for a_binding in $BINDINGS_TO_BUILD ; do
20507 case "$a_binding" in
20509 if test "x$OCAMLC" = x ; then
20510 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20511 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20512 binding_prereqs_failed=1
20514 if test "x$OCAMLDEP" = x ; then
20515 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20516 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20517 binding_prereqs_failed=1
20519 if test "x$OCAMLOPT" = x ; then
20520 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20521 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20523 if test "x$with_ocaml_libdir" != xauto ; then
20524 OCAML_LIBDIR=$with_ocaml_libdir
20527 ocaml_stdlib="`"$OCAMLC" -where`"
20528 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20530 # ocaml stdlib is beneath our prefix; use stdlib
20531 OCAML_LIBDIR=$ocaml_stdlib
20534 # ocaml stdlib is outside our prefix; use libdir/ocaml
20535 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20542 if test "$binding_prereqs_failed" = 1 ; then
20543 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20544 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20545 { (exit 1); exit 1; }; }
20548 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20549 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20550 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20554 ac_cpp='$CXXCPP $CPPFLAGS'
20555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20559 oldcxxflags="$CXXFLAGS"
20560 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20561 cat >conftest.$ac_ext <<_ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20576 rm -f conftest.$ac_objext
20577 if { (ac_try="$ac_compile"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_compile") 2>conftest.er1
20585 grep -v '^ *+' conftest.er1 >conftest.err
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } &&
20590 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20591 { (case "(($ac_try" in
20592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20593 *) ac_try_echo=$ac_try;;
20595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20596 (eval "$ac_try") 2>&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; } &&
20600 { ac_try='test -s conftest.$ac_objext'
20601 { (case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_try") 2>&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
20610 llvm_cv_cxx_visibility_inlines_hidden=yes
20612 echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20615 llvm_cv_cxx_visibility_inlines_hidden=no
20618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20619 CXXFLAGS="$oldcxxflags"
20621 ac_cpp='$CPP $CPPFLAGS'
20622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20628 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20629 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20630 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20631 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20634 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20639 if test "$llvm_cv_link_use_r" = "yes" ; then
20646 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20647 RDYNAMIC="-Wl,-export-dynamic"
20654 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20656 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20658 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20660 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20662 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20664 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20667 ac_config_files="$ac_config_files Makefile.config"
20670 ac_config_files="$ac_config_files llvm.spec"
20673 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20676 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20679 ac_config_commands="$ac_config_commands setup"
20681 ac_config_commands="$ac_config_commands Makefile"
20684 ac_config_commands="$ac_config_commands Makefile.common"
20687 ac_config_commands="$ac_config_commands examples/Makefile"
20690 ac_config_commands="$ac_config_commands lib/Makefile"
20693 ac_config_commands="$ac_config_commands runtime/Makefile"
20696 ac_config_commands="$ac_config_commands test/Makefile"
20699 ac_config_commands="$ac_config_commands test/Makefile.tests"
20702 ac_config_commands="$ac_config_commands unittests/Makefile"
20705 ac_config_commands="$ac_config_commands tools/Makefile"
20708 ac_config_commands="$ac_config_commands utils/Makefile"
20711 ac_config_commands="$ac_config_commands projects/Makefile"
20714 ac_config_commands="$ac_config_commands bindings/Makefile"
20717 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20721 cat >confcache <<\_ACEOF
20722 # This file is a shell script that caches the results of configure
20723 # tests run on this system so they can be shared between configure
20724 # scripts and configure runs, see configure's option --config-cache.
20725 # It is not useful on other systems. If it contains results you don't
20726 # want to keep, you may remove or edit it.
20728 # config.status only pays attention to the cache file if you give it
20729 # the --recheck option to rerun configure.
20731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20733 # following values.
20737 # The following way of writing the cache mishandles newlines in values,
20738 # but we know of no workaround that is simple, portable, and efficient.
20739 # So, we kill variables containing newlines.
20740 # Ultrix sh set writes to stderr and can't be redirected directly,
20741 # and sets the high bit in the cache file unless we assign to the vars.
20743 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20744 eval ac_val=\$$ac_var
20748 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20749 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20752 _ | IFS | as_nl) ;; #(
20753 *) $as_unset $ac_var ;;
20759 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20760 *${as_nl}ac_space=\ *)
20761 # `set' does not quote correctly, so add quotes (double-quote
20762 # substitution turns \\\\ into \\, and sed turns \\ into \).
20765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20768 # `set' quotes correctly as required by POSIX, so do not add quotes.
20769 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20778 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20780 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20782 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20783 if test -w "$cache_file"; then
20784 test "x$cache_file" != "x/dev/null" &&
20785 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20786 echo "$as_me: updating cache $cache_file" >&6;}
20787 cat confcache >$cache_file
20789 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20790 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20795 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20796 # Let make expand exec_prefix.
20797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20799 DEFS=-DHAVE_CONFIG_H
20803 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20804 # 1. Remove the extension, and $U if already installed.
20805 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20806 ac_i=`echo "$ac_i" | sed "$ac_script"`
20807 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20808 # will be set to the directory where LIBOBJS objects are built.
20809 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20810 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20812 LIBOBJS=$ac_libobjs
20814 LTLIBOBJS=$ac_ltlibobjs
20817 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20818 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20819 Usually this means the macro was only invoked conditionally." >&5
20820 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20821 Usually this means the macro was only invoked conditionally." >&2;}
20822 { (exit 1); exit 1; }; }
20824 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20825 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20826 Usually this means the macro was only invoked conditionally." >&5
20827 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20828 Usually this means the macro was only invoked conditionally." >&2;}
20829 { (exit 1); exit 1; }; }
20832 : ${CONFIG_STATUS=./config.status}
20833 ac_clean_files_save=$ac_clean_files
20834 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20835 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20836 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20837 cat >$CONFIG_STATUS <<_ACEOF
20839 # Generated by $as_me.
20840 # Run this file to recreate the current configuration.
20841 # Compiler output produced by configure, useful for debugging
20842 # configure, is in config.log if it exists.
20845 ac_cs_recheck=false
20847 SHELL=\${CONFIG_SHELL-$SHELL}
20850 cat >>$CONFIG_STATUS <<\_ACEOF
20851 ## --------------------- ##
20852 ## M4sh Initialization. ##
20853 ## --------------------- ##
20855 # Be Bourne compatible
20856 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20859 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20860 # is contrary to our usage. Disable this feature.
20861 alias -g '${1+"$@"}'='"$@"'
20862 setopt NO_GLOB_SUBST
20864 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20866 BIN_SH=xpg4; export BIN_SH # for Tru64
20867 DUALCASE=1; export DUALCASE # for MKS sh
20871 # Avoid depending upon Character Ranges.
20872 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20873 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20874 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20875 as_cr_digits='0123456789'
20876 as_cr_alnum=$as_cr_Letters$as_cr_digits
20878 # The user is always right.
20879 if test "${PATH_SEPARATOR+set}" != set; then
20880 echo "#! /bin/sh" >conf$$.sh
20881 echo "exit 0" >>conf$$.sh
20883 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20891 # Support unset when possible.
20892 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20900 # We need space, tab and new line, in precisely that order. Quoting is
20901 # there to prevent editors from complaining about space-tab.
20902 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20903 # splitting by setting IFS to empty value.)
20908 # Find who we are. Look in the path if we contain no directory separator.
20910 *[\\/]* ) as_myself=$0 ;;
20911 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20912 for as_dir in $PATH
20915 test -z "$as_dir" && as_dir=.
20916 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20922 # We did not find ourselves, most probably we were run as `sh COMMAND'
20923 # in which case we are not to be found in the path.
20924 if test "x$as_myself" = x; then
20927 if test ! -f "$as_myself"; then
20928 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20929 { (exit 1); exit 1; }
20932 # Work around bugs in pre-3.0 UWIN ksh.
20933 for as_var in ENV MAIL MAILPATH
20934 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20942 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20943 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20944 LC_TELEPHONE LC_TIME
20946 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20947 eval $as_var=C; export $as_var
20949 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20953 # Required to use basename.
20954 if expr a : '\(a\)' >/dev/null 2>&1 &&
20955 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20961 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20962 as_basename=basename
20968 # Name of the executable.
20969 as_me=`$as_basename -- "$0" ||
20970 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20971 X"$0" : 'X\(//\)$' \| \
20972 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20974 sed '/^.*\/\([^/][^/]*\)\/*$/{
20993 as_lineno_1=$LINENO
20994 as_lineno_2=$LINENO
20995 test "x$as_lineno_1" != "x$as_lineno_2" &&
20996 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20998 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20999 # uniformly replaced by the line number. The first 'sed' inserts a
21000 # line-number line after each line using $LINENO; the second 'sed'
21001 # does the real work. The second script uses 'N' to pair each
21002 # line-number line with the line containing $LINENO, and appends
21003 # trailing '-' during substitution so that $LINENO is not a special
21004 # case at line end.
21005 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21006 # scripts with optimization help from Paolo Bonzini. Blame Lee
21007 # E. McMahon (1931-1989) for sed's syntax. :-)
21019 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21022 ' >$as_me.lineno &&
21023 chmod +x "$as_me.lineno" ||
21024 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21025 { (exit 1); exit 1; }; }
21027 # Don't try to exec as it changes $[0], causing all sort of problems
21028 # (the dirname of $[0] is not the place where we might find the
21029 # original and so on. Autoconf is especially sensitive to this).
21030 . "./$as_me.lineno"
21031 # Exit status is that of the last command.
21036 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21042 ECHO_C= ECHO_N= ECHO_T=
21043 case `echo -n x` in
21045 case `echo 'x\c'` in
21046 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21053 if expr a : '\(a\)' >/dev/null 2>&1 &&
21054 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21060 rm -f conf$$ conf$$.exe conf$$.file
21061 if test -d conf$$.dir; then
21062 rm -f conf$$.dir/conf$$.file
21068 if ln -s conf$$.file conf$$ 2>/dev/null; then
21070 # ... but there are two gotchas:
21071 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21072 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21073 # In both cases, we have to default to `cp -p'.
21074 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21076 elif ln conf$$.file conf$$ 2>/dev/null; then
21081 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21082 rmdir conf$$.dir 2>/dev/null
21084 if mkdir -p . 2>/dev/null; then
21087 test -d ./-p && rmdir ./-p
21091 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21092 # systems may use methods other than mode bits to determine executability.
21093 cat >conf$$.file <<_ASEOF
21097 chmod +x conf$$.file
21098 if test -x conf$$.file >/dev/null 2>&1; then
21099 as_executable_p="test -x"
21105 # Sed expression to map a string onto a valid CPP name.
21106 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21108 # Sed expression to map a string onto a valid variable name.
21109 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21114 # Save the log message, to keep $[0] and so on meaningful, and to
21115 # report actual input values of CONFIG_FILES etc. instead of their
21116 # values after options handling.
21118 This file was extended by llvm $as_me 2.8svn, which was
21119 generated by GNU Autoconf 2.60. Invocation command line was
21121 CONFIG_FILES = $CONFIG_FILES
21122 CONFIG_HEADERS = $CONFIG_HEADERS
21123 CONFIG_LINKS = $CONFIG_LINKS
21124 CONFIG_COMMANDS = $CONFIG_COMMANDS
21127 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21132 cat >>$CONFIG_STATUS <<_ACEOF
21133 # Files that config.status was made for.
21134 config_files="$ac_config_files"
21135 config_headers="$ac_config_headers"
21136 config_commands="$ac_config_commands"
21140 cat >>$CONFIG_STATUS <<\_ACEOF
21142 \`$as_me' instantiates files from templates according to the
21143 current configuration.
21145 Usage: $0 [OPTIONS] [FILE]...
21147 -h, --help print this help, then exit
21148 -V, --version print version number, then exit
21149 -q, --quiet do not print progress messages
21150 -d, --debug don't remove temporary files
21151 --recheck update $as_me by reconfiguring in the same conditions
21152 --file=FILE[:TEMPLATE]
21153 instantiate the configuration file FILE
21154 --header=FILE[:TEMPLATE]
21155 instantiate the configuration header FILE
21157 Configuration files:
21160 Configuration headers:
21163 Configuration commands:
21166 Report bugs to <bug-autoconf@gnu.org>."
21169 cat >>$CONFIG_STATUS <<_ACEOF
21171 llvm config.status 2.8svn
21172 configured by $0, generated by GNU Autoconf 2.60,
21173 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21175 Copyright (C) 2006 Free Software Foundation, Inc.
21176 This config.status script is free software; the Free Software Foundation
21177 gives unlimited permission to copy, distribute and modify it."
21184 cat >>$CONFIG_STATUS <<\_ACEOF
21185 # If no file are specified by the user, then we need to provide default
21186 # value. By we need to know if files were specified by the user.
21192 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21193 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21204 # Handling of the options.
21205 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21207 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21208 echo "$ac_cs_version"; exit ;;
21209 --debug | --debu | --deb | --de | --d | -d )
21211 --file | --fil | --fi | --f )
21213 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21214 ac_need_defaults=false;;
21215 --header | --heade | --head | --hea )
21217 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21218 ac_need_defaults=false;;
21220 # Conflict between --help and --header
21221 { echo "$as_me: error: ambiguous option: $1
21222 Try \`$0 --help' for more information." >&2
21223 { (exit 1); exit 1; }; };;
21224 --help | --hel | -h )
21225 echo "$ac_cs_usage"; exit ;;
21226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21227 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21230 # This is an error.
21231 -*) { echo "$as_me: error: unrecognized option: $1
21232 Try \`$0 --help' for more information." >&2
21233 { (exit 1); exit 1; }; } ;;
21235 *) ac_config_targets="$ac_config_targets $1"
21236 ac_need_defaults=false ;;
21242 ac_configure_extra_args=
21244 if $ac_cs_silent; then
21246 ac_configure_extra_args="$ac_configure_extra_args --silent"
21250 cat >>$CONFIG_STATUS <<_ACEOF
21251 if \$ac_cs_recheck; then
21252 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21253 CONFIG_SHELL=$SHELL
21254 export CONFIG_SHELL
21255 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21259 cat >>$CONFIG_STATUS <<\_ACEOF
21263 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21264 ## Running $as_me. ##
21270 cat >>$CONFIG_STATUS <<_ACEOF
21274 llvm_src="${srcdir}"
21278 cat >>$CONFIG_STATUS <<\_ACEOF
21280 # Handling of arguments.
21281 for ac_config_target in $ac_config_targets
21283 case $ac_config_target in
21284 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21285 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21286 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21287 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21288 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21289 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21290 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21291 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21292 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
21293 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21294 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21295 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21296 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21297 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21298 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21299 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21300 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21301 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21302 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21303 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21304 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21305 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21306 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21307 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21309 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21310 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21311 { (exit 1); exit 1; }; };;
21316 # If the user did not use the arguments to specify the items to instantiate,
21317 # then the envvar interface is used. Set only those that are not.
21318 # We use the long form for the default assignment because of an extremely
21319 # bizarre bug on SunOS 4.1.3.
21320 if $ac_need_defaults; then
21321 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21322 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21323 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21326 # Have a temporary directory for convenience. Make it in the build tree
21327 # simply because there is no reason against having it here, and in addition,
21328 # creating and moving files from /tmp can sometimes cause problems.
21329 # Hook for its removal unless debugging.
21330 # Note that there is a small window in which the directory will not be cleaned:
21331 # after its creation but before its name has been assigned to `$tmp'.
21335 trap 'exit_status=$?
21336 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21338 trap '{ (exit 1); exit 1; }' 1 2 13 15
21340 # Create a (secure) tmp directory for tmp files.
21343 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21344 test -n "$tmp" && test -d "$tmp"
21347 tmp=./conf$$-$RANDOM
21348 (umask 077 && mkdir "$tmp")
21351 echo "$me: cannot create a temporary directory in ." >&2
21352 { (exit 1); exit 1; }
21356 # Set up the sed scripts for CONFIG_FILES section.
21359 # No need to generate the scripts if there are no CONFIG_FILES.
21360 # This happens for instance when ./config.status config.h
21361 if test -n "$CONFIG_FILES"; then
21368 for ac_last_try in false false false false false :; do
21369 cat >conf$$subs.sed <<_ACEOF
21370 SHELL!$SHELL$ac_delim
21371 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21372 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21373 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21374 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21375 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21376 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21377 exec_prefix!$exec_prefix$ac_delim
21378 prefix!$prefix$ac_delim
21379 program_transform_name!$program_transform_name$ac_delim
21380 bindir!$bindir$ac_delim
21381 sbindir!$sbindir$ac_delim
21382 libexecdir!$libexecdir$ac_delim
21383 datarootdir!$datarootdir$ac_delim
21384 datadir!$datadir$ac_delim
21385 sysconfdir!$sysconfdir$ac_delim
21386 sharedstatedir!$sharedstatedir$ac_delim
21387 localstatedir!$localstatedir$ac_delim
21388 includedir!$includedir$ac_delim
21389 oldincludedir!$oldincludedir$ac_delim
21390 docdir!$docdir$ac_delim
21391 infodir!$infodir$ac_delim
21392 htmldir!$htmldir$ac_delim
21393 dvidir!$dvidir$ac_delim
21394 pdfdir!$pdfdir$ac_delim
21395 psdir!$psdir$ac_delim
21396 libdir!$libdir$ac_delim
21397 localedir!$localedir$ac_delim
21398 mandir!$mandir$ac_delim
21399 DEFS!$DEFS$ac_delim
21400 ECHO_C!$ECHO_C$ac_delim
21401 ECHO_N!$ECHO_N$ac_delim
21402 ECHO_T!$ECHO_T$ac_delim
21403 LIBS!$LIBS$ac_delim
21404 build_alias!$build_alias$ac_delim
21405 host_alias!$host_alias$ac_delim
21406 target_alias!$target_alias$ac_delim
21407 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21408 subdirs!$subdirs$ac_delim
21409 build!$build$ac_delim
21410 build_cpu!$build_cpu$ac_delim
21411 build_vendor!$build_vendor$ac_delim
21412 build_os!$build_os$ac_delim
21413 host!$host$ac_delim
21414 host_cpu!$host_cpu$ac_delim
21415 host_vendor!$host_vendor$ac_delim
21416 host_os!$host_os$ac_delim
21417 target!$target$ac_delim
21418 target_cpu!$target_cpu$ac_delim
21419 target_vendor!$target_vendor$ac_delim
21420 target_os!$target_os$ac_delim
21422 HOST_OS!$HOST_OS$ac_delim
21423 TARGET_OS!$TARGET_OS$ac_delim
21424 LINKALL!$LINKALL$ac_delim
21425 NOLINKALL!$NOLINKALL$ac_delim
21426 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21427 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21428 ARCH!$ARCH$ac_delim
21429 ENDIAN!$ENDIAN$ac_delim
21431 CFLAGS!$CFLAGS$ac_delim
21432 LDFLAGS!$LDFLAGS$ac_delim
21433 CPPFLAGS!$CPPFLAGS$ac_delim
21434 ac_ct_CC!$ac_ct_CC$ac_delim
21435 EXEEXT!$EXEEXT$ac_delim
21436 OBJEXT!$OBJEXT$ac_delim
21438 GREP!$GREP$ac_delim
21439 EGREP!$EGREP$ac_delim
21440 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21441 BUILD_CC!$BUILD_CC$ac_delim
21442 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21443 BUILD_CXX!$BUILD_CXX$ac_delim
21444 CVSBUILD!$CVSBUILD$ac_delim
21445 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21446 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21447 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21448 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21449 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21450 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21451 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21453 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21454 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21455 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21456 ENABLE_PIC!$ENABLE_PIC$ac_delim
21457 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21458 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21459 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21460 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21461 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21462 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21463 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21464 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21465 CLANGPATH!$CLANGPATH$ac_delim
21466 CLANGXXPATH!$CLANGXXPATH$ac_delim
21469 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21471 elif $ac_last_try; then
21472 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21473 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21474 { (exit 1); exit 1; }; }
21476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21480 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21481 if test -n "$ac_eof"; then
21482 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21483 ac_eof=`expr $ac_eof + 1`
21486 cat >>$CONFIG_STATUS <<_ACEOF
21487 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21488 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21491 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21492 s/^/s,@/; s/!/@,|#_!!_#|/
21495 s/'"$ac_delim"'$/,g/; t
21497 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21498 ' >>$CONFIG_STATUS <conf$$subs.sed
21499 rm -f conf$$subs.sed
21500 cat >>$CONFIG_STATUS <<_ACEOF
21506 for ac_last_try in false false false false false :; do
21507 cat >conf$$subs.sed <<_ACEOF
21508 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21509 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21510 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21511 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21512 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21513 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21515 CXXFLAGS!$CXXFLAGS$ac_delim
21516 ac_ct_CXX!$ac_ct_CXX$ac_delim
21518 ifGNUmake!$ifGNUmake$ac_delim
21519 LN_S!$LN_S$ac_delim
21522 DATE!$DATE$ac_delim
21523 FIND!$FIND$ac_delim
21524 MKDIR!$MKDIR$ac_delim
21526 RANLIB!$RANLIB$ac_delim
21531 BINPWD!$BINPWD$ac_delim
21532 GRAPHVIZ!$GRAPHVIZ$ac_delim
21535 NEATO!$NEATO$ac_delim
21536 TWOPI!$TWOPI$ac_delim
21537 CIRCO!$CIRCO$ac_delim
21539 DOTTY!$DOTTY$ac_delim
21540 PERL!$PERL$ac_delim
21541 HAVE_PERL!$HAVE_PERL$ac_delim
21542 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21543 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21544 INSTALL_DATA!$INSTALL_DATA$ac_delim
21545 BZIP2!$BZIP2$ac_delim
21547 DOXYGEN!$DOXYGEN$ac_delim
21548 GROFF!$GROFF$ac_delim
21549 GZIP!$GZIP$ac_delim
21550 POD2HTML!$POD2HTML$ac_delim
21551 POD2MAN!$POD2MAN$ac_delim
21552 PDFROFF!$PDFROFF$ac_delim
21553 RUNTEST!$RUNTEST$ac_delim
21554 TCLSH!$TCLSH$ac_delim
21556 OCAMLC!$OCAMLC$ac_delim
21557 OCAMLOPT!$OCAMLOPT$ac_delim
21558 OCAMLDEP!$OCAMLDEP$ac_delim
21559 OCAMLDOC!$OCAMLDOC$ac_delim
21561 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21562 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21563 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21564 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21565 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21566 LIBADD_DL!$LIBADD_DL$ac_delim
21567 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21568 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21569 LLVMGCC!$LLVMGCC$ac_delim
21570 LLVMGXX!$LLVMGXX$ac_delim
21571 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21572 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21573 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21574 USE_UDIS86!$USE_UDIS86$ac_delim
21575 USE_OPROFILE!$USE_OPROFILE$ac_delim
21576 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21577 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21578 MMAP_FILE!$MMAP_FILE$ac_delim
21579 LLVMCC1!$LLVMCC1$ac_delim
21580 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21581 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21582 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21583 SHLIBEXT!$SHLIBEXT$ac_delim
21584 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21585 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21586 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21587 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21588 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21589 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21590 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21591 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21592 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21593 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21594 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21595 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21596 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21597 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21598 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21599 RPATH!$RPATH$ac_delim
21600 RDYNAMIC!$RDYNAMIC$ac_delim
21601 LIBOBJS!$LIBOBJS$ac_delim
21602 LTLIBOBJS!$LTLIBOBJS$ac_delim
21605 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
21607 elif $ac_last_try; then
21608 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21609 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21610 { (exit 1); exit 1; }; }
21612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21616 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21617 if test -n "$ac_eof"; then
21618 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21619 ac_eof=`expr $ac_eof + 1`
21622 cat >>$CONFIG_STATUS <<_ACEOF
21623 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21627 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21628 s/^/s,@/; s/!/@,|#_!!_#|/
21631 s/'"$ac_delim"'$/,g/; t
21633 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21634 ' >>$CONFIG_STATUS <conf$$subs.sed
21635 rm -f conf$$subs.sed
21636 cat >>$CONFIG_STATUS <<_ACEOF
21643 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21644 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21645 # trailing colons and then remove the whole line if VPATH becomes empty
21646 # (actually we leave an empty line to preserve line numbers).
21647 if test "x$srcdir" = x.; then
21648 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21649 s/:*\$(srcdir):*/:/
21650 s/:*\${srcdir}:*/:/
21652 s/^\([^=]*=[ ]*\):*/\1/
21658 cat >>$CONFIG_STATUS <<\_ACEOF
21659 fi # test -n "$CONFIG_FILES"
21662 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21665 :[FHLC]) ac_mode=$ac_tag; continue;;
21667 case $ac_mode$ac_tag in
21669 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21670 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21671 { (exit 1); exit 1; }; };;
21672 :[FH]-) ac_tag=-:-;;
21673 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21690 -) ac_f="$tmp/stdin";;
21691 *) # Look for the file first in the build tree, then in the source tree
21692 # (if the path is not absolute). The absolute path cannot be DOS-style,
21693 # because $ac_f cannot contain `:'.
21697 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21699 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21700 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21701 { (exit 1); exit 1; }; };;
21703 ac_file_inputs="$ac_file_inputs $ac_f"
21706 # Let's still pretend it is `configure' which instantiates (i.e., don't
21707 # use $as_me), people would be surprised to read:
21708 # /* config.h. Generated by config.status. */
21709 configure_input="Generated from "`IFS=:
21710 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21711 if test x"$ac_file" != x-; then
21712 configure_input="$ac_file. $configure_input"
21713 { echo "$as_me:$LINENO: creating $ac_file" >&5
21714 echo "$as_me: creating $ac_file" >&6;}
21718 *:-:* | *:-) cat >"$tmp/stdin";;
21723 ac_dir=`$as_dirname -- "$ac_file" ||
21724 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21725 X"$ac_file" : 'X\(//\)[^/]' \| \
21726 X"$ac_file" : 'X\(//\)$' \| \
21727 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21733 /^X\(\/\/\)[^/].*/{
21748 -*) as_dir=./$as_dir;;
21750 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21754 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21755 *) as_qdir=$as_dir;;
21757 as_dirs="'$as_qdir' $as_dirs"
21758 as_dir=`$as_dirname -- "$as_dir" ||
21759 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21760 X"$as_dir" : 'X\(//\)[^/]' \| \
21761 X"$as_dir" : 'X\(//\)$' \| \
21762 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21768 /^X\(\/\/\)[^/].*/{
21781 test -d "$as_dir" && break
21783 test -z "$as_dirs" || eval "mkdir $as_dirs"
21784 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21785 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21786 { (exit 1); exit 1; }; }; }
21790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21792 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21793 # A ".." for each directory in $ac_dir_suffix.
21794 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21795 case $ac_top_builddir_sub in
21796 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21797 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21800 ac_abs_top_builddir=$ac_pwd
21801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21802 # for backward compatibility:
21803 ac_top_builddir=$ac_top_build_prefix
21806 .) # We are building in place.
21808 ac_top_srcdir=$ac_top_builddir_sub
21809 ac_abs_top_srcdir=$ac_pwd ;;
21810 [\\/]* | ?:[\\/]* ) # Absolute name.
21811 ac_srcdir=$srcdir$ac_dir_suffix;
21812 ac_top_srcdir=$srcdir
21813 ac_abs_top_srcdir=$srcdir ;;
21814 *) # Relative name.
21815 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21816 ac_top_srcdir=$ac_top_build_prefix$srcdir
21817 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21829 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21830 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21834 cat >>$CONFIG_STATUS <<\_ACEOF
21835 # If the template does not know about datarootdir, expand it.
21836 # FIXME: This hack should be removed a few years after 2.60.
21837 ac_datarootdir_hack=; ac_datarootdir_seen=
21839 case `sed -n '/datarootdir/ {
21848 ' $ac_file_inputs` in
21849 *datarootdir*) ac_datarootdir_seen=yes;;
21850 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21851 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21852 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21854 cat >>$CONFIG_STATUS <<_ACEOF
21855 ac_datarootdir_hack='
21856 s&@datadir@&$datadir&g
21857 s&@docdir@&$docdir&g
21858 s&@infodir@&$infodir&g
21859 s&@localedir@&$localedir&g
21860 s&@mandir@&$mandir&g
21861 s&\\\${datarootdir}&$datarootdir&g' ;;
21865 # Neutralize VPATH when `$srcdir' = `.'.
21866 # Shell code in configure.ac might set extrasub.
21867 # FIXME: do we really want to maintain this feature?
21868 cat >>$CONFIG_STATUS <<_ACEOF
21872 cat >>$CONFIG_STATUS <<\_ACEOF
21874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21875 s&@configure_input@&$configure_input&;t t
21876 s&@top_builddir@&$ac_top_builddir_sub&;t t
21877 s&@srcdir@&$ac_srcdir&;t t
21878 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21879 s&@top_srcdir@&$ac_top_srcdir&;t t
21880 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21881 s&@builddir@&$ac_builddir&;t t
21882 s&@abs_builddir@&$ac_abs_builddir&;t t
21883 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21884 s&@INSTALL@&$ac_INSTALL&;t t
21885 $ac_datarootdir_hack
21886 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21888 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21889 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21890 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21891 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21892 which seems to be undefined. Please make sure it is defined." >&5
21893 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21894 which seems to be undefined. Please make sure it is defined." >&2;}
21898 -) cat "$tmp/out"; rm -f "$tmp/out";;
21899 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21908 # Transform confdefs.h into a sed script `conftest.defines', that
21909 # substitutes the proper values into config.h.in to produce config.h.
21910 rm -f conftest.defines conftest.tail
21911 # First, append a space to every undef/define line, to ease matching.
21912 echo 's/$/ /' >conftest.defines
21913 # Then, protect against being on the right side of a sed subst, or in
21914 # an unquoted here document, in config.status. If some macros were
21915 # called several times there might be several #defines for the same
21916 # symbol, which is useless. But do not sort them, since the last
21917 # AC_DEFINE must be honored.
21918 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21919 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21920 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21921 # PARAMS is the parameter list in the macro definition--in most cases, it's
21922 # just an empty string.
21923 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21924 ac_dB='\\)[ (].*,\\1define\\2'
21932 s/^[ ]*#[ ]*define[ ][ ]*//
21937 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21938 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21939 ' >>conftest.defines
21941 # Remove the space that was appended to ease matching.
21942 # Then replace #undef with comments. This is necessary, for
21943 # example, in the case of _POSIX_SOURCE, which is predefined and required
21944 # on some systems where configure will not decide to define it.
21945 # (The regexp can be short, since the line contains either #define or #undef.)
21947 s,^[ #]*u.*,/* & */,' >>conftest.defines
21949 # Break up conftest.defines:
21950 ac_max_sed_lines=50
21952 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21953 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21954 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21956 ac_in='$ac_file_inputs'
21957 ac_out='"$tmp/out1"'
21958 ac_nxt='"$tmp/out2"'
21962 # Write a here document:
21963 cat >>$CONFIG_STATUS <<_ACEOF
21964 # First, check the format of the line:
21965 cat >"\$tmp/defines.sed" <<\\CEOF
21966 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21967 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21971 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21973 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21974 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21975 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21976 grep . conftest.tail >/dev/null || break
21977 rm -f conftest.defines
21978 mv conftest.tail conftest.defines
21980 rm -f conftest.defines conftest.tail
21982 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21983 cat >>$CONFIG_STATUS <<\_ACEOF
21984 if test x"$ac_file" != x-; then
21985 echo "/* $configure_input */" >"$tmp/config.h"
21986 cat "$ac_result" >>"$tmp/config.h"
21987 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21988 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21989 echo "$as_me: $ac_file is unchanged" >&6;}
21992 mv "$tmp/config.h" $ac_file
21995 echo "/* $configure_input */"
22001 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22002 echo "$as_me: executing $ac_file commands" >&6;}
22007 case $ac_file$ac_mode in
22008 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22010 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22012 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22014 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22016 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22017 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22018 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22020 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22022 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22023 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22024 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22026 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22027 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22028 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22029 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22030 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22031 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22032 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22033 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22039 { (exit 0); exit 0; }
22041 chmod +x $CONFIG_STATUS
22042 ac_clean_files=$ac_clean_files_save
22045 # configure is writing to config.log, and then calls config.status.
22046 # config.status does its own redirection, appending to config.log.
22047 # Unfortunately, on DOS this fails, as config.log is still kept open
22048 # by configure, so config.status won't be able to write to it; its
22049 # output is simply discarded. So we exec the FD to /dev/null,
22050 # effectively closing config.log, so it can be properly (re)opened and
22051 # appended to by config.status. When coming back to configure, we
22052 # need to make the FD available again.
22053 if test "$no_create" != yes; then
22055 ac_config_status_args=
22056 test "$silent" = yes &&
22057 ac_config_status_args="$ac_config_status_args --quiet"
22059 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22061 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22062 # would make configure fail if this is the last instruction.
22063 $ac_cs_success || { (exit 1); exit 1; }
22067 # CONFIG_SUBDIRS section.
22069 if test "$no_recursion" != yes; then
22071 # Remove --cache-file and --srcdir arguments so they do not pile up.
22072 ac_sub_configure_args=
22074 eval "set x $ac_configure_args"
22078 if test -n "$ac_prev"; then
22083 -cache-file | --cache-file | --cache-fil | --cache-fi \
22084 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22085 ac_prev=cache_file ;;
22086 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22087 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22090 --config-cache | -C)
22092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22102 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22104 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22108 # Always prepend --prefix to ensure using the same prefix
22109 # in subdir configurations.
22110 ac_arg="--prefix=$prefix"
22112 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22114 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22117 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22119 # Do not complain, so a configure script can configure whichever
22120 # parts of a large source tree are present.
22121 test -d "$srcdir/$ac_dir" || continue
22123 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22124 echo "$as_me:$LINENO: $ac_msg" >&5
22128 -*) as_dir=./$as_dir;;
22130 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22134 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22135 *) as_qdir=$as_dir;;
22137 as_dirs="'$as_qdir' $as_dirs"
22138 as_dir=`$as_dirname -- "$as_dir" ||
22139 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22140 X"$as_dir" : 'X\(//\)[^/]' \| \
22141 X"$as_dir" : 'X\(//\)$' \| \
22142 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22148 /^X\(\/\/\)[^/].*/{
22161 test -d "$as_dir" && break
22163 test -z "$as_dirs" || eval "mkdir $as_dirs"
22164 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22165 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22166 { (exit 1); exit 1; }; }; }
22170 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22172 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22173 # A ".." for each directory in $ac_dir_suffix.
22174 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22175 case $ac_top_builddir_sub in
22176 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22177 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22180 ac_abs_top_builddir=$ac_pwd
22181 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22182 # for backward compatibility:
22183 ac_top_builddir=$ac_top_build_prefix
22186 .) # We are building in place.
22188 ac_top_srcdir=$ac_top_builddir_sub
22189 ac_abs_top_srcdir=$ac_pwd ;;
22190 [\\/]* | ?:[\\/]* ) # Absolute name.
22191 ac_srcdir=$srcdir$ac_dir_suffix;
22192 ac_top_srcdir=$srcdir
22193 ac_abs_top_srcdir=$srcdir ;;
22194 *) # Relative name.
22195 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22196 ac_top_srcdir=$ac_top_build_prefix$srcdir
22197 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22199 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22204 # Check for guested configure; otherwise get Cygnus style configure.
22205 if test -f "$ac_srcdir/configure.gnu"; then
22206 ac_sub_configure=$ac_srcdir/configure.gnu
22207 elif test -f "$ac_srcdir/configure"; then
22208 ac_sub_configure=$ac_srcdir/configure
22209 elif test -f "$ac_srcdir/configure.in"; then
22210 # This should be Cygnus configure.
22211 ac_sub_configure=$ac_aux_dir/configure
22213 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22214 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22218 # The recursion is here.
22219 if test -n "$ac_sub_configure"; then
22220 # Make the cache file name correct relative to the subdirectory.
22221 case $cache_file in
22222 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22223 *) # Relative name.
22224 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22227 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22228 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22229 # The eval makes quoting arguments work.
22230 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22231 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22232 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22233 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22234 { (exit 1); exit 1; }; }