2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.9svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.9svn'
565 PACKAGE_STRING='llvm 2.9svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
685 ENABLE_EXPENSIVE_CHECKS
698 LLVM_ENUM_ASM_PRINTERS
699 LLVM_ENUM_ASM_PARSERS
700 LLVM_ENUM_DISASSEMBLERS
756 HAVE_LINK_VERSION_SCRIPT
759 CONVENIENCE_LTDL_TRUE
760 CONVENIENCE_LTDL_FALSE
768 NO_MISSING_FIELD_INITIALIZERS
793 ENABLE_VISIBILITY_INLINES_HIDDEN
799 ac_precious_vars='build_alias
810 ac_subdirs_all='projects/llvm-gcc
814 projects/llvm-poolalloc
817 projects/llvm-stacker
825 # Initialize some variables set by options.
827 ac_init_version=false
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
837 program_transform_name=s,x,x,
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
883 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930 { (exit 1); exit 1; }; }
931 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932 eval enable_$ac_feature=no ;;
934 -docdir | --docdir | --docdi | --doc | --do)
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 -enable-* | --enable-*)
945 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949 { (exit 1); exit 1; }; }
950 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951 eval enable_$ac_feature=\$ac_optarg ;;
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
966 -help | --help | --hel | --he | -h)
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 htmldir=$ac_optarg ;;
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
996 -libdir | --libdir | --libdi | --libd)
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1087 -psdir | --psdir | --psdi | --psd | --ps)
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 sbindir=$ac_optarg ;;
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 sharedstatedir=$ac_optarg ;;
1113 -site | --site | --sit)
1115 -site=* | --site=* | --sit=*)
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1142 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid package name: $ac_package" >&2
1146 { (exit 1); exit 1; }; }
1147 ac_package=`echo $ac_package| sed 's/-/_/g'`
1148 eval with_$ac_package=\$ac_optarg ;;
1150 -without-* | --without-*)
1151 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package | sed 's/-/_/g'`
1157 eval with_$ac_package=no ;;
1160 # Obsolete; use --with-x.
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1177 -*) { echo "$as_me: error: unrecognized option: $ac_option
1178 Try \`$0 --help' for more information." >&2
1179 { (exit 1); exit 1; }; }
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187 { (exit 1); exit 1; }; }
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 { echo "$as_me: error: missing argument to $ac_option" >&2
1205 { (exit 1); exit 1; }; }
1208 # Be sure to have absolute directory names.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1214 eval ac_val=\$$ac_var
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220 { (exit 1); exit 1; }; }
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1228 target=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244 test "$silent" = yes && exec 6>/dev/null
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 { echo "$as_me: error: Working directory cannot be determined" >&2
1251 { (exit 1); exit 1; }; }
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 { echo "$as_me: error: pwd does not report name of working directory" >&2
1254 { (exit 1); exit 1; }; }
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$0" ||
1262 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$0" : 'X\(//\)[^/]' \| \
1264 X"$0" : 'X\(//\)$' \| \
1265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1289 ac_srcdir_defaulted=no
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294 { (exit 1); exit 1; }; }
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299 { (exit 1); exit 1; }; }
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1325 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 --target=TARGET configure for building compilers for TARGET [HOST]
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of llvm 2.9svn:";;
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-polly Use polly if available (default is YES)
1399 --enable-optimized Compile with optimizations enabled (default is NO)
1400 --enable-profiling Compile with profiling enabled (default is NO)
1401 --enable-assertions Compile with assertion checks enabled (default is
1403 --enable-expensive-checks
1404 Compile with expensive debug checks enabled (default
1406 --enable-debug-runtime Build runtime libs with debug symbols (default is
1408 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1409 optimization is on and YES if it's off)
1410 --enable-jit Enable Just In Time Compiling (default is YES)
1411 --enable-doxygen Build doxygen documentation (default is NO)
1412 --enable-threads Use threads if available (default is YES)
1413 --enable-pic Build LLVM with Position Independent Code (default
1415 --enable-shared Build a shared library and link tools against it
1417 --enable-timestamps Enable embedding timestamp information in build
1419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
1421 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1422 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1424 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1426 --enable-bindings Build specific language bindings:
1427 all,auto,none,{binding-name} (default=auto)
1428 --enable-libffi Check for the presence of libffi (default is NO)
1429 --enable-ltdl-install install libltdl
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1436 --with-llvmgcc Specify location of llvm-gcc driver (default
1438 --with-llvmgxx Specify location of llvm-g++ driver (default
1440 --with-clang Specify location of clang compiler (default is
1442 --with-built-clang Use the compiled Clang as the LLVM compiler
1444 --with-optimize-option Select the compiler options to use for optimized
1446 --with-extra-options Specify additional options to compile LLVM with
1447 --with-ocaml-libdir Specify install location for ocaml bindings (default
1449 --with-clang-resource-dir
1450 Relative directory from the Clang binary for
1452 --with-c-include-dirs Colon separated list of directories clang will
1454 --with-cxx-include-root Directory with the libstdc++ headers.
1455 --with-cxx-include-arch Architecture of the libstdc++ headers.
1456 --with-cxx-include-32bit-dir
1457 32 bit multilib dir.
1458 --with-cxx-include-64bit-dir
1459 64 bit multilib directory.
1460 --with-binutils-include Specify path to binutils/include/ containing
1461 plugin-api.h file for gold plugin.
1462 --with-tclinclude directory where tcl headers are
1463 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1464 clang, or none; default=check)
1465 --with-udis86=<path> Use udis86 external x86 disassembler library
1466 --with-oprofile=<prefix>
1467 Tell OProfile >= 0.9.4 how to symbolize JIT output
1469 Some influential environment variables:
1470 CC C compiler command
1471 CFLAGS C compiler flags
1472 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1473 nonstandard directory <lib dir>
1474 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1477 CXX C++ compiler command
1478 CXXFLAGS C++ compiler flags
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1483 Report bugs to <llvmbugs@cs.uiuc.edu>.
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" || continue
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1511 .) # We are building in place.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1535 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1544 llvm configure 2.9svn
1545 generated by GNU Autoconf 2.60
1547 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1548 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1549 This configure script is free software; the Free Software Foundation
1550 gives unlimited permission to copy, distribute and modify it.
1552 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1556 cat >config.log <<_ACEOF
1557 This file contains any messages produced by compilers while
1558 running configure, to aid debugging if configure makes a mistake.
1560 It was created by llvm $as_me 2.9svn, which was
1561 generated by GNU Autoconf 2.60. Invocation command line was
1573 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1574 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1575 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1576 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1577 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1579 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1580 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1582 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1583 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1584 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1585 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1586 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1587 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1588 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 test -z "$as_dir" && as_dir=.
1597 echo "PATH: $as_dir"
1613 # Keep a trace of the command line.
1614 # Strip out --no-create and --no-recursion so they do not pile up.
1615 # Strip out --silent because we don't want to record it for future runs.
1616 # Also quote any args containing shell meta-characters.
1617 # Make two passes to allow for proper duplicate-argument suppression.
1621 ac_must_keep_next=false
1627 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1628 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1629 | -silent | --silent | --silen | --sile | --sil)
1632 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1635 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1637 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1638 if test $ac_must_keep_next = true; then
1639 ac_must_keep_next=false # Got value, back to normal.
1642 *=* | --config-cache | -C | -disable-* | --disable-* \
1643 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1644 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1645 | -with-* | --with-* | -without-* | --without-* | --x)
1646 case "$ac_configure_args0 " in
1647 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1650 -* ) ac_must_keep_next=true ;;
1653 ac_configure_args="$ac_configure_args '$ac_arg'"
1658 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1659 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1661 # When interrupted or exit'd, cleanup temporary files, and complete
1662 # config.log. We remove comments because anyway the quotes in there
1663 # would cause problems or look ugly.
1664 # WARNING: Use '\'' to represent an apostrophe within the trap.
1665 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1666 trap 'exit_status=$?
1667 # Save into config.log some information that might help in debugging.
1672 ## ---------------- ##
1673 ## Cache variables. ##
1674 ## ---------------- ##
1677 # The following way of writing the cache mishandles newlines in values,
1679 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1680 eval ac_val=\$$ac_var
1684 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1685 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1688 _ | IFS | as_nl) ;; #(
1689 *) $as_unset $ac_var ;;
1694 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1695 *${as_nl}ac_space=\ *)
1697 "s/'\''/'\''\\\\'\'''\''/g;
1698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1701 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1709 ## ----------------- ##
1710 ## Output variables. ##
1711 ## ----------------- ##
1714 for ac_var in $ac_subst_vars
1716 eval ac_val=\$$ac_var
1718 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1720 echo "$ac_var='\''$ac_val'\''"
1724 if test -n "$ac_subst_files"; then
1726 ## ------------------- ##
1727 ## File substitutions. ##
1728 ## ------------------- ##
1731 for ac_var in $ac_subst_files
1733 eval ac_val=\$$ac_var
1735 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737 echo "$ac_var='\''$ac_val'\''"
1742 if test -s confdefs.h; then
1752 test "$ac_signal" != 0 &&
1753 echo "$as_me: caught signal $ac_signal"
1754 echo "$as_me: exit $exit_status"
1756 rm -f core *.core core.conftest.* &&
1757 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1760 for ac_signal in 1 2 13 15; do
1761 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1765 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1766 rm -f -r conftest* confdefs.h
1768 # Predefined preprocessor variables.
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_NAME "$PACKAGE_NAME"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_STRING "$PACKAGE_STRING"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1795 # Let the site file select an alternate cache file if it wants to.
1796 # Prefer explicitly selected file to automatically selected ones.
1797 if test -n "$CONFIG_SITE"; then
1798 set x "$CONFIG_SITE"
1799 elif test "x$prefix" != xNONE; then
1800 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1802 set x "$ac_default_prefix/share/config.site" \
1803 "$ac_default_prefix/etc/config.site"
1808 if test -r "$ac_site_file"; then
1809 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1810 echo "$as_me: loading site script $ac_site_file" >&6;}
1811 sed 's/^/| /' "$ac_site_file" >&5
1816 if test -r "$cache_file"; then
1817 # Some versions of bash will fail to source /dev/null (special
1818 # files actually), so we avoid doing that.
1819 if test -f "$cache_file"; then
1820 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1821 echo "$as_me: loading cache $cache_file" >&6;}
1823 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1824 *) . "./$cache_file";;
1828 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1829 echo "$as_me: creating cache $cache_file" >&6;}
1833 # Check that the precious variables saved in the cache have kept the same
1835 ac_cache_corrupted=false
1836 for ac_var in $ac_precious_vars; do
1837 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1838 eval ac_new_set=\$ac_env_${ac_var}_set
1839 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1840 eval ac_new_val=\$ac_env_${ac_var}_value
1841 case $ac_old_set,$ac_new_set in
1843 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1844 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1845 ac_cache_corrupted=: ;;
1847 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1848 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1849 ac_cache_corrupted=: ;;
1852 if test "x$ac_old_val" != "x$ac_new_val"; then
1853 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1854 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1855 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1856 echo "$as_me: former value: $ac_old_val" >&2;}
1857 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1858 echo "$as_me: current value: $ac_new_val" >&2;}
1859 ac_cache_corrupted=:
1862 # Pass precious variables to config.status.
1863 if test "$ac_new_set" = set; then
1865 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1866 *) ac_arg=$ac_var=$ac_new_val ;;
1868 case " $ac_configure_args " in
1869 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1870 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1874 if $ac_cache_corrupted; then
1875 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1876 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1877 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1878 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1879 { (exit 1); exit 1; }; }
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1923 for ac_dir in autoconf "$srcdir"/autoconf; do
1924 if test -f "$ac_dir/install-sh"; then
1926 ac_install_sh="$ac_aux_dir/install-sh -c"
1928 elif test -f "$ac_dir/install.sh"; then
1930 ac_install_sh="$ac_aux_dir/install.sh -c"
1932 elif test -f "$ac_dir/shtool"; then
1934 ac_install_sh="$ac_aux_dir/shtool install -c"
1938 if test -z "$ac_aux_dir"; then
1939 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1940 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1941 { (exit 1); exit 1; }; }
1944 # These three variables are undocumented and unsupported,
1945 # and are intended to be withdrawn in a future Autoconf release.
1946 # They can cause serious problems if a builder's source tree is in a directory
1947 # whose full name contains unusual characters.
1948 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1949 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1950 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1954 if test ${srcdir} != "." ; then
1955 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1956 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1957 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1958 { (exit 1); exit 1; }; }
1964 if test -d ${srcdir}/projects/llvm-gcc ; then
1965 subdirs="$subdirs projects/llvm-gcc"
1969 if test -d ${srcdir}/projects/test-suite ; then
1970 subdirs="$subdirs projects/test-suite"
1974 if test -d ${srcdir}/projects/llvm-test ; then
1975 subdirs="$subdirs projects/llvm-test"
1979 if test -d ${srcdir}/projects/poolalloc ; then
1980 subdirs="$subdirs projects/poolalloc"
1984 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1985 subdirs="$subdirs projects/llvm-poolalloc"
1989 for i in `ls ${srcdir}/projects`
1991 if test -d ${srcdir}/projects/${i} ; then
1993 sample) subdirs="$subdirs projects/sample"
1995 privbracket) subdirs="$subdirs projects/privbracket"
1997 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1999 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2001 llvm-java) subdirs="$subdirs projects/llvm-java"
2003 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2005 safecode) subdirs="$subdirs projects/safecode"
2007 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2015 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2016 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2022 # Check whether --enable-polly was given.
2023 if test "${enable_polly+set}" = set; then
2024 enableval=$enable_polly;
2029 case "$enableval" in
2034 default) ENABLE_POLLY=1
2036 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2037 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2038 { (exit 1); exit 1; }; } ;;
2042 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2045 subdirs="$subdirs tools/polly"
2050 # Make sure we can run config.sub.
2051 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2052 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2053 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2054 { (exit 1); exit 1; }; }
2056 { echo "$as_me:$LINENO: checking build system type" >&5
2057 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2058 if test "${ac_cv_build+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 ac_build_alias=$build_alias
2062 test "x$ac_build_alias" = x &&
2063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2064 test "x$ac_build_alias" = x &&
2065 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2066 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2067 { (exit 1); exit 1; }; }
2068 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2069 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2070 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2071 { (exit 1); exit 1; }; }
2074 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2075 echo "${ECHO_T}$ac_cv_build" >&6; }
2076 case $ac_cv_build in
2078 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2079 echo "$as_me: error: invalid value of canonical build" >&2;}
2080 { (exit 1); exit 1; }; };;
2083 ac_save_IFS=$IFS; IFS='-'
2089 # Remember, the first character of IFS is used to create $*,
2090 # except with old shells:
2093 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2096 { echo "$as_me:$LINENO: checking host system type" >&5
2097 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2098 if test "${ac_cv_host+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 if test "x$host_alias" = x; then
2102 ac_cv_host=$ac_cv_build
2104 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2105 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2106 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2107 { (exit 1); exit 1; }; }
2111 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2112 echo "${ECHO_T}$ac_cv_host" >&6; }
2115 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2116 echo "$as_me: error: invalid value of canonical host" >&2;}
2117 { (exit 1); exit 1; }; };;
2120 ac_save_IFS=$IFS; IFS='-'
2126 # Remember, the first character of IFS is used to create $*,
2127 # except with old shells:
2130 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2133 { echo "$as_me:$LINENO: checking target system type" >&5
2134 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2135 if test "${ac_cv_target+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 if test "x$target_alias" = x; then
2139 ac_cv_target=$ac_cv_host
2141 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2142 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2143 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2144 { (exit 1); exit 1; }; }
2148 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2149 echo "${ECHO_T}$ac_cv_target" >&6; }
2150 case $ac_cv_target in
2152 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2153 echo "$as_me: error: invalid value of canonical target" >&2;}
2154 { (exit 1); exit 1; }; };;
2156 target=$ac_cv_target
2157 ac_save_IFS=$IFS; IFS='-'
2163 # Remember, the first character of IFS is used to create $*,
2164 # except with old shells:
2167 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2170 # The aliases save the names the user supplied, while $host etc.
2171 # will get canonicalized.
2172 test -n "$target_alias" &&
2173 test "$program_prefix$program_suffix$program_transform_name" = \
2175 program_prefix=${target_alias}-
2177 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2178 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2179 if test "${llvm_cv_os_type+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186 llvm_cv_os_type="AIX"
2187 llvm_cv_platform_type="Unix" ;;
2189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191 llvm_cv_os_type="IRIX"
2192 llvm_cv_platform_type="Unix" ;;
2194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196 llvm_cv_os_type="Cygwin"
2197 llvm_cv_platform_type="Unix" ;;
2199 llvm_cv_link_all_option="-Wl,-all_load"
2200 llvm_cv_no_link_all_option="-Wl,-noall_load"
2201 llvm_cv_os_type="Darwin"
2202 llvm_cv_platform_type="Unix" ;;
2204 llvm_cv_link_all_option="-Wl,-all_load"
2205 llvm_cv_no_link_all_option="-Wl,-noall_load"
2206 llvm_cv_os_type="Minix"
2207 llvm_cv_platform_type="Unix" ;;
2209 llvm_cv_link_all_option="-Wl,--whole-archive"
2210 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2211 llvm_cv_os_type="FreeBSD"
2212 llvm_cv_platform_type="Unix" ;;
2214 llvm_cv_link_all_option="-Wl,--whole-archive"
2215 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2216 llvm_cv_os_type="OpenBSD"
2217 llvm_cv_platform_type="Unix" ;;
2219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2221 llvm_cv_os_type="NetBSD"
2222 llvm_cv_platform_type="Unix" ;;
2224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226 llvm_cv_os_type="DragonFly"
2227 llvm_cv_platform_type="Unix" ;;
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="HP-UX"
2232 llvm_cv_platform_type="Unix" ;;
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="Interix"
2237 llvm_cv_platform_type="Unix" ;;
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="Linux"
2242 llvm_cv_platform_type="Unix" ;;
2244 llvm_cv_link_all_option="-Wl,-z,allextract"
2245 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2246 llvm_cv_os_type="SunOS"
2247 llvm_cv_platform_type="Unix" ;;
2249 llvm_cv_link_all_option="-Wl,-z,allextract"
2250 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2251 llvm_cv_os_type="AuroraUX"
2252 llvm_cv_platform_type="Unix" ;;
2254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2256 llvm_cv_os_type="Win32"
2257 llvm_cv_platform_type="Win32" ;;
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="MingW"
2262 llvm_cv_platform_type="Win32" ;;
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="Haiku"
2267 llvm_cv_platform_type="Unix" ;;
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="Freestanding"
2272 llvm_cv_platform_type="Unix" ;;
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="Freestanding"
2277 llvm_cv_platform_type="Unix" ;;
2279 llvm_cv_link_all_option=""
2280 llvm_cv_no_link_all_option=""
2281 llvm_cv_os_type="Unknown"
2282 llvm_cv_platform_type="Unknown" ;;
2285 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2286 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2288 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2289 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2290 if test "${llvm_cv_target_os_type+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 llvm_cv_target_os_type="AIX" ;;
2297 llvm_cv_target_os_type="IRIX" ;;
2299 llvm_cv_target_os_type="Cygwin" ;;
2301 llvm_cv_target_os_type="Darwin" ;;
2303 llvm_cv_target_os_type="Minix" ;;
2305 llvm_cv_target_os_type="FreeBSD" ;;
2307 llvm_cv_target_os_type="OpenBSD" ;;
2309 llvm_cv_target_os_type="NetBSD" ;;
2311 llvm_cv_target_os_type="DragonFly" ;;
2313 llvm_cv_target_os_type="HP-UX" ;;
2315 llvm_cv_target_os_type="Interix" ;;
2317 llvm_cv_target_os_type="Linux" ;;
2319 llvm_cv_target_os_type="SunOS" ;;
2321 llvm_cv_target_os_type="AuroraUX" ;;
2323 llvm_cv_target_os_type="Win32" ;;
2325 llvm_cv_target_os_type="MingW" ;;
2327 llvm_cv_target_os_type="Haiku" ;;
2329 llvm_cv_target_os_type="Freestanding" ;;
2331 llvm_cv_target_os_type="Unknown" ;;
2334 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2335 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2337 if test "$llvm_cv_os_type" = "Unknown" ; then
2338 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2339 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2340 { (exit 1); exit 1; }; }
2345 HOST_OS=$llvm_cv_os_type
2347 TARGET_OS=$llvm_cv_target_os_type
2350 LINKALL=$llvm_cv_link_all_option
2352 NOLINKALL=$llvm_cv_no_link_all_option
2355 case $llvm_cv_platform_type in
2358 cat >>confdefs.h <<\_ACEOF
2359 #define LLVM_ON_UNIX 1
2369 cat >>confdefs.h <<\_ACEOF
2370 #define LLVM_ON_WIN32 1
2380 { echo "$as_me:$LINENO: checking target architecture" >&5
2381 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2382 if test "${llvm_cv_target_arch+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 i?86-*) llvm_cv_target_arch="x86" ;;
2387 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2388 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2389 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2390 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2391 arm*-*) llvm_cv_target_arch="ARM" ;;
2392 mips-*) llvm_cv_target_arch="Mips" ;;
2393 xcore-*) llvm_cv_target_arch="XCore" ;;
2394 msp430-*) llvm_cv_target_arch="MSP430" ;;
2395 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2396 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2397 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2398 ptx-*) llvm_cv_target_arch="PTX" ;;
2399 *) llvm_cv_target_arch="Unknown" ;;
2402 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2403 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2405 if test "$llvm_cv_target_arch" = "Unknown" ; then
2406 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2407 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2410 # Determine the LLVM native architecture for the target
2411 case "$llvm_cv_target_arch" in
2412 x86) LLVM_NATIVE_ARCH="X86" ;;
2413 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2414 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2417 ARCH=$llvm_cv_target_arch
2421 ac_cpp='$CPP $CPPFLAGS'
2422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2425 if test -n "$ac_tool_prefix"; then
2426 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2427 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 if test -n "$CC"; then
2455 { echo "$as_me:$LINENO: result: $CC" >&5
2456 echo "${ECHO_T}$CC" >&6; }
2458 { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2464 if test -z "$ac_cv_prog_CC"; then
2466 # Extract the first word of "gcc", so it can be a program name with args.
2467 set dummy gcc; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 if test -n "$ac_ct_CC"; then
2474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_ac_ct_CC="gcc"
2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2494 if test -n "$ac_ct_CC"; then
2495 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2496 echo "${ECHO_T}$ac_ct_CC" >&6; }
2498 { echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6; }
2502 if test "x$ac_ct_CC" = x; then
2505 case $cross_compiling:$ac_tool_warned in
2507 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet. If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&5
2510 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2511 whose name does not start with the host triplet. If you think this
2512 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2513 ac_tool_warned=yes ;;
2521 if test -z "$CC"; then
2522 if test -n "$ac_tool_prefix"; then
2523 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2524 set dummy ${ac_tool_prefix}cc; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_CC+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 if test -n "$CC"; then
2531 ac_cv_prog_CC="$CC" # Let the user override the test.
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2540 ac_cv_prog_CC="${ac_tool_prefix}cc"
2541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 if test -n "$CC"; then
2552 { echo "$as_me:$LINENO: result: $CC" >&5
2553 echo "${ECHO_T}$CC" >&6; }
2555 { echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6; }
2562 if test -z "$CC"; then
2563 # Extract the first word of "cc", so it can be a program name with args.
2564 set dummy cc; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_CC+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2582 ac_prog_rejected=yes
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 if test $ac_prog_rejected = yes; then
2594 # We found a bogon in the path, so make sure we never use it.
2595 set dummy $ac_cv_prog_CC
2597 if test $# != 0; then
2598 # We chose a different compiler from the bogus one.
2599 # However, it has the same basename, so the bogon will be chosen
2600 # first if we set CC to just the basename; use the full file name.
2602 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2608 if test -n "$CC"; then
2609 { echo "$as_me:$LINENO: result: $CC" >&5
2610 echo "${ECHO_T}$CC" >&6; }
2612 { echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6; }
2618 if test -z "$CC"; then
2619 if test -n "$ac_tool_prefix"; then
2620 for ac_prog in cl.exe
2622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2626 if test "${ac_cv_prog_CC+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 if test -n "$CC"; then
2630 ac_cv_prog_CC="$CC" # Let the user override the test.
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2639 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 if test -n "$CC"; then
2651 { echo "$as_me:$LINENO: result: $CC" >&5
2652 echo "${ECHO_T}$CC" >&6; }
2654 { echo "$as_me:$LINENO: result: no" >&5
2655 echo "${ECHO_T}no" >&6; }
2659 test -n "$CC" && break
2662 if test -z "$CC"; then
2664 for ac_prog in cl.exe
2666 # Extract the first word of "$ac_prog", so it can be a program name with args.
2667 set dummy $ac_prog; ac_word=$2
2668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 if test -n "$ac_ct_CC"; then
2674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2683 ac_cv_prog_ac_ct_CC="$ac_prog"
2684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2694 if test -n "$ac_ct_CC"; then
2695 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2696 echo "${ECHO_T}$ac_ct_CC" >&6; }
2698 { echo "$as_me:$LINENO: result: no" >&5
2699 echo "${ECHO_T}no" >&6; }
2703 test -n "$ac_ct_CC" && break
2706 if test "x$ac_ct_CC" = x; then
2709 case $cross_compiling:$ac_tool_warned in
2711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2712 whose name does not start with the host triplet. If you think this
2713 configuration is useful to you, please write to autoconf@gnu.org." >&5
2714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2715 whose name does not start with the host triplet. If you think this
2716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2717 ac_tool_warned=yes ;;
2726 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2727 See \`config.log' for more details." >&5
2728 echo "$as_me: error: no acceptable C compiler found in \$PATH
2729 See \`config.log' for more details." >&2;}
2730 { (exit 1); exit 1; }; }
2732 # Provide some information about the compiler.
2733 echo "$as_me:$LINENO: checking for C compiler version" >&5
2734 ac_compiler=`set X $ac_compile; echo $2`
2735 { (ac_try="$ac_compiler --version >&5"
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compiler --version >&5") 2>&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }
2745 { (ac_try="$ac_compiler -v >&5"
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler -v >&5") 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755 { (ac_try="$ac_compiler -V >&5"
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -V >&5") 2>&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }
2766 cat >conftest.$ac_ext <<_ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2781 ac_clean_files_save=$ac_clean_files
2782 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2783 # Try to create an executable without -o first, disregard a.out.
2784 # It will help us diagnose broken compilers, and finding out an intuition
2786 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2787 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2788 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2790 # List of possible output files, starting from the most likely.
2791 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2792 # only as a last resort. b.out is created by i960 compilers.
2793 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2795 # The IRIX 6 linker writes into existing files which may not be
2796 # executable, retaining their permissions. Remove them first so a
2797 # subsequent execution test works.
2799 for ac_file in $ac_files
2802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2803 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2808 if { (ac_try="$ac_link_default"
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814 (eval "$ac_link_default") 2>&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; then
2818 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2819 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2820 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2821 # so that the user can short-circuit this test for compilers unknown to
2823 for ac_file in $ac_files
2825 test -f "$ac_file" || continue
2827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2830 # We found the default executable, but exeext='' is most
2834 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2836 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2838 # We set ac_cv_exeext here because the later test for it is not
2839 # safe: cross compilers may not add the suffix if given an `-o'
2840 # argument, so we may need to know it at that point already.
2841 # Even if this section looks crufty: it has the advantage of
2848 test "$ac_cv_exeext" = no && ac_cv_exeext=
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: C compiler cannot create executables
2857 See \`config.log' for more details." >&2;}
2858 { (exit 77); exit 77; }; }
2861 ac_exeext=$ac_cv_exeext
2862 { echo "$as_me:$LINENO: result: $ac_file" >&5
2863 echo "${ECHO_T}$ac_file" >&6; }
2865 # Check that the compiler produces executables we can run. If not, either
2866 # the compiler is broken, or we cross compile.
2867 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2868 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2869 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2870 # If not cross compiling, check that we can run a simple program.
2871 if test "$cross_compiling" != yes; then
2872 if { ac_try='./$ac_file'
2873 { (case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_try") 2>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2884 if test "$cross_compiling" = maybe; then
2887 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2888 If you meant to cross compile, use \`--host'.
2889 See \`config.log' for more details." >&5
2890 echo "$as_me: error: cannot run C compiled programs.
2891 If you meant to cross compile, use \`--host'.
2892 See \`config.log' for more details." >&2;}
2893 { (exit 1); exit 1; }; }
2897 { echo "$as_me:$LINENO: result: yes" >&5
2898 echo "${ECHO_T}yes" >&6; }
2900 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2901 ac_clean_files=$ac_clean_files_save
2902 # Check that the compiler produces executables we can run. If not, either
2903 # the compiler is broken, or we cross compile.
2904 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2905 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2906 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2907 echo "${ECHO_T}$cross_compiling" >&6; }
2909 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2910 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2911 if { (ac_try="$ac_link"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_link") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; then
2921 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2922 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2923 # work properly (i.e., refer to `conftest.exe'), while it won't with
2925 for ac_file in conftest.exe conftest conftest.*; do
2926 test -f "$ac_file" || continue
2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2929 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2935 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2936 See \`config.log' for more details." >&5
2937 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2938 See \`config.log' for more details." >&2;}
2939 { (exit 1); exit 1; }; }
2942 rm -f conftest$ac_cv_exeext
2943 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2944 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2946 rm -f conftest.$ac_ext
2947 EXEEXT=$ac_cv_exeext
2949 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2950 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2951 if test "${ac_cv_objext+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 cat >conftest.$ac_ext <<_ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2969 rm -f conftest.o conftest.obj
2970 if { (ac_try="$ac_compile"
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; then
2980 for ac_file in conftest.o conftest.obj conftest.*; do
2981 test -f "$ac_file" || continue;
2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2984 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2992 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2993 See \`config.log' for more details." >&5
2994 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2995 See \`config.log' for more details." >&2;}
2996 { (exit 1); exit 1; }; }
2999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3001 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3002 echo "${ECHO_T}$ac_cv_objext" >&6; }
3003 OBJEXT=$ac_cv_objext
3005 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3006 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3007 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3028 rm -f conftest.$ac_objext
3029 if { (ac_try="$ac_compile"
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_compile") 2>conftest.er1
3037 grep -v '^ *+' conftest.er1 >conftest.err
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3043 { (case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_try") 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; } &&
3052 { ac_try='test -s conftest.$ac_objext'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; }; then
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3071 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3074 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3075 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3076 GCC=`test $ac_compiler_gnu = yes && echo yes`
3077 ac_test_CFLAGS=${CFLAGS+set}
3078 ac_save_CFLAGS=$CFLAGS
3079 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3080 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3081 if test "${ac_cv_prog_cc_g+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 ac_save_c_werror_flag=$ac_c_werror_flag
3085 ac_c_werror_flag=yes
3088 cat >conftest.$ac_ext <<_ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_compile") 2>conftest.er1
3112 grep -v '^ *+' conftest.er1 >conftest.err
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } &&
3117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3118 { (case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_try") 2>&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; } &&
3127 { ac_try='test -s conftest.$ac_objext'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3143 cat >conftest.$ac_ext <<_ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3158 rm -f conftest.$ac_objext
3159 if { (ac_try="$ac_compile"
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_compile") 2>conftest.er1
3167 grep -v '^ *+' conftest.er1 >conftest.err
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } &&
3172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3173 { (case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_try") 2>&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; } &&
3182 { ac_try='test -s conftest.$ac_objext'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 ac_c_werror_flag=$ac_save_c_werror_flag
3199 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_compile") 2>conftest.er1
3223 grep -v '^ *+' conftest.er1 >conftest.err
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3229 { (case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_try") 2>&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; } &&
3238 { ac_try='test -s conftest.$ac_objext'
3239 { (case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_try") 2>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 ac_c_werror_flag=$ac_save_c_werror_flag
3265 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3266 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3267 if test "$ac_test_CFLAGS" = set; then
3268 CFLAGS=$ac_save_CFLAGS
3269 elif test $ac_cv_prog_cc_g = yes; then
3270 if test "$GCC" = yes; then
3276 if test "$GCC" = yes; then
3282 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3283 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3284 if test "${ac_cv_prog_cc_c89+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 ac_cv_prog_cc_c89=no
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3297 #include <sys/types.h>
3298 #include <sys/stat.h>
3299 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3300 struct buf { int x; };
3301 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3302 static char *e (p, i)
3308 static char *f (char * (*g) (char **, int), char **p, ...)
3313 s = g (p, va_arg (v,int));
3318 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3319 function prototypes and stuff, but not '\xHH' hex character constants.
3320 These don't provoke an error unfortunately, instead are silently treated
3321 as 'x'. The following induces an error, until -std is added to get
3322 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3323 array size at least. It's necessary to write '\x00'==0 to get something
3324 that's true only with -std. */
3325 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3327 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3328 inside strings and character constants. */
3330 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3332 int test (int i, double x);
3333 struct s1 {int (*f) (int a);};
3334 struct s2 {int (*f) (double a);};
3335 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3341 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3346 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3347 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3349 CC="$ac_save_CC $ac_arg"
3350 rm -f conftest.$ac_objext
3351 if { (ac_try="$ac_compile"
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_compile") 2>conftest.er1
3359 grep -v '^ *+' conftest.er1 >conftest.err
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3365 { (case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_try") 2>&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; } &&
3374 { ac_try='test -s conftest.$ac_objext'
3375 { (case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_try") 2>&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; }; then
3384 ac_cv_prog_cc_c89=$ac_arg
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3392 rm -f core conftest.err conftest.$ac_objext
3393 test "x$ac_cv_prog_cc_c89" != "xno" && break
3395 rm -f conftest.$ac_ext
3400 case "x$ac_cv_prog_cc_c89" in
3402 { echo "$as_me:$LINENO: result: none needed" >&5
3403 echo "${ECHO_T}none needed" >&6; } ;;
3405 { echo "$as_me:$LINENO: result: unsupported" >&5
3406 echo "${ECHO_T}unsupported" >&6; } ;;
3408 CC="$CC $ac_cv_prog_cc_c89"
3409 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3410 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3415 ac_cpp='$CPP $CPPFLAGS'
3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3427 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3428 # On Suns, sometimes $CPP names a directory.
3429 if test -n "$CPP" && test -d "$CPP"; then
3432 if test -z "$CPP"; then
3433 if test "${ac_cv_prog_CPP+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 # Double quotes because CPP needs to be expanded
3437 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3440 for ac_c_preproc_warn_flag in '' yes
3442 # Use a header file that comes with gcc, so configuring glibc
3443 # with a fresh cross-compiler works.
3444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3445 # <limits.h> exists even on freestanding compilers.
3446 # On the NeXT, cc -E runs the code through the compiler's parser,
3447 # not just through cpp. "Syntax error" is here to catch this case.
3448 cat >conftest.$ac_ext <<_ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3455 # include <limits.h>
3457 # include <assert.h>
3461 if { (ac_try="$ac_cpp conftest.$ac_ext"
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3469 grep -v '^ *+' conftest.er1 >conftest.err
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev/null; then
3474 if test -s conftest.err; then
3475 ac_cpp_err=$ac_c_preproc_warn_flag
3476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3483 if test -z "$ac_cpp_err"; then
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 # Broken: fails on valid input.
3493 rm -f conftest.err conftest.$ac_ext
3495 # OK, works on sane cases. Now check whether nonexistent headers
3496 # can be detected and how.
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 #include <ac_nonexistent.h>
3505 if { (ac_try="$ac_cpp conftest.$ac_ext"
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3513 grep -v '^ *+' conftest.er1 >conftest.err
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } >/dev/null; then
3518 if test -s conftest.err; then
3519 ac_cpp_err=$ac_c_preproc_warn_flag
3520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527 if test -z "$ac_cpp_err"; then
3528 # Broken: success on invalid input.
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3534 # Passes both tests.
3539 rm -f conftest.err conftest.$ac_ext
3542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3543 rm -f conftest.err conftest.$ac_ext
3544 if $ac_preproc_ok; then
3556 { echo "$as_me:$LINENO: result: $CPP" >&5
3557 echo "${ECHO_T}$CPP" >&6; }
3559 for ac_c_preproc_warn_flag in '' yes
3561 # Use a header file that comes with gcc, so configuring glibc
3562 # with a fresh cross-compiler works.
3563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3564 # <limits.h> exists even on freestanding compilers.
3565 # On the NeXT, cc -E runs the code through the compiler's parser,
3566 # not just through cpp. "Syntax error" is here to catch this case.
3567 cat >conftest.$ac_ext <<_ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3574 # include <limits.h>
3576 # include <assert.h>
3580 if { (ac_try="$ac_cpp conftest.$ac_ext"
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3588 grep -v '^ *+' conftest.er1 >conftest.err
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } >/dev/null; then
3593 if test -s conftest.err; then
3594 ac_cpp_err=$ac_c_preproc_warn_flag
3595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3602 if test -z "$ac_cpp_err"; then
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3608 # Broken: fails on valid input.
3612 rm -f conftest.err conftest.$ac_ext
3614 # OK, works on sane cases. Now check whether nonexistent headers
3615 # can be detected and how.
3616 cat >conftest.$ac_ext <<_ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 #include <ac_nonexistent.h>
3624 if { (ac_try="$ac_cpp conftest.$ac_ext"
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3632 grep -v '^ *+' conftest.er1 >conftest.err
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } >/dev/null; then
3637 if test -s conftest.err; then
3638 ac_cpp_err=$ac_c_preproc_warn_flag
3639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3646 if test -z "$ac_cpp_err"; then
3647 # Broken: success on invalid input.
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3653 # Passes both tests.
3658 rm -f conftest.err conftest.$ac_ext
3661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3662 rm -f conftest.err conftest.$ac_ext
3663 if $ac_preproc_ok; then
3666 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3667 See \`config.log' for more details." >&5
3668 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3669 See \`config.log' for more details." >&2;}
3670 { (exit 1); exit 1; }; }
3674 ac_cpp='$CPP $CPPFLAGS'
3675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3681 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3682 if test "${ac_cv_path_GREP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 # Extract the first word of "grep ggrep" to use in msg output
3686 if test -z "$GREP"; then
3687 set dummy grep ggrep; ac_prog_name=$2
3688 if test "${ac_cv_path_GREP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 ac_path_GREP_found=false
3692 # Loop through the user's path and test for each of PROGNAME-LIST
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3697 test -z "$as_dir" && as_dir=.
3698 for ac_prog in grep ggrep; do
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3701 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3702 # Check for GNU ac_path_GREP and select it if it is found.
3703 # Check for GNU $ac_path_GREP
3704 case `"$ac_path_GREP" --version 2>&1` in
3706 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3709 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3712 cat "conftest.in" "conftest.in" >"conftest.tmp"
3713 mv "conftest.tmp" "conftest.in"
3714 cp "conftest.in" "conftest.nl"
3715 echo 'GREP' >> "conftest.nl"
3716 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3718 ac_count=`expr $ac_count + 1`
3719 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3720 # Best one so far, save it but keep looking for a better one
3721 ac_cv_path_GREP="$ac_path_GREP"
3722 ac_path_GREP_max=$ac_count
3724 # 10*(2^10) chars as input seems more than enough
3725 test $ac_count -gt 10 && break
3727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3731 $ac_path_GREP_found && break 3
3741 GREP="$ac_cv_path_GREP"
3742 if test -z "$GREP"; then
3743 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3744 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3745 { (exit 1); exit 1; }; }
3749 ac_cv_path_GREP=$GREP
3754 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3755 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3756 GREP="$ac_cv_path_GREP"
3759 { echo "$as_me:$LINENO: checking for egrep" >&5
3760 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3761 if test "${ac_cv_path_EGREP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3765 then ac_cv_path_EGREP="$GREP -E"
3767 # Extract the first word of "egrep" to use in msg output
3768 if test -z "$EGREP"; then
3769 set dummy egrep; ac_prog_name=$2
3770 if test "${ac_cv_path_EGREP+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 ac_path_EGREP_found=false
3774 # Loop through the user's path and test for each of PROGNAME-LIST
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3779 test -z "$as_dir" && as_dir=.
3780 for ac_prog in egrep; do
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3783 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3784 # Check for GNU ac_path_EGREP and select it if it is found.
3785 # Check for GNU $ac_path_EGREP
3786 case `"$ac_path_EGREP" --version 2>&1` in
3788 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3791 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3794 cat "conftest.in" "conftest.in" >"conftest.tmp"
3795 mv "conftest.tmp" "conftest.in"
3796 cp "conftest.in" "conftest.nl"
3797 echo 'EGREP' >> "conftest.nl"
3798 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3799 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3800 ac_count=`expr $ac_count + 1`
3801 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3802 # Best one so far, save it but keep looking for a better one
3803 ac_cv_path_EGREP="$ac_path_EGREP"
3804 ac_path_EGREP_max=$ac_count
3806 # 10*(2^10) chars as input seems more than enough
3807 test $ac_count -gt 10 && break
3809 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3813 $ac_path_EGREP_found && break 3
3823 EGREP="$ac_cv_path_EGREP"
3824 if test -z "$EGREP"; then
3825 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3826 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3827 { (exit 1); exit 1; }; }
3831 ac_cv_path_EGREP=$EGREP
3837 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3838 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3839 EGREP="$ac_cv_path_EGREP"
3842 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3843 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3844 if test "${ac_cv_header_stdc+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 cat >conftest.$ac_ext <<_ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3866 rm -f conftest.$ac_objext
3867 if { (ac_try="$ac_compile"
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_compile") 2>conftest.er1
3875 grep -v '^ *+' conftest.er1 >conftest.err
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3881 { (case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_try") 2>&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; } &&
3890 { ac_try='test -s conftest.$ac_objext'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 ac_cv_header_stdc=yes
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 ac_cv_header_stdc=no
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 if test $ac_cv_header_stdc = yes; then
3911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3912 cat >conftest.$ac_ext <<_ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3922 $EGREP "memchr" >/dev/null 2>&1; then
3925 ac_cv_header_stdc=no
3931 if test $ac_cv_header_stdc = yes; then
3932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3933 cat >conftest.$ac_ext <<_ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943 $EGREP "free" >/dev/null 2>&1; then
3946 ac_cv_header_stdc=no
3952 if test $ac_cv_header_stdc = yes; then
3953 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3954 if test "$cross_compiling" = yes; then
3957 cat >conftest.$ac_ext <<_ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3965 #if ((' ' & 0x0FF) == 0x020)
3966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3969 # define ISLOWER(c) \
3970 (('a' <= (c) && (c) <= 'i') \
3971 || ('j' <= (c) && (c) <= 'r') \
3972 || ('s' <= (c) && (c) <= 'z'))
3973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3981 for (i = 0; i < 256; i++)
3982 if (XOR (islower (i), ISLOWER (i))
3983 || toupper (i) != TOUPPER (i))
3988 rm -f conftest$ac_exeext
3989 if { (ac_try="$ac_link"
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995 (eval "$ac_link") 2>&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3999 { (case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_try") 2>&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4010 echo "$as_me: program exited with status $ac_status" >&5
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4015 ac_cv_header_stdc=no
4017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4023 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4024 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4025 if test $ac_cv_header_stdc = yes; then
4027 cat >>confdefs.h <<\_ACEOF
4028 #define STDC_HEADERS 1
4033 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4043 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4044 inttypes.h stdint.h unistd.h
4046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 $ac_includes_default
4060 #include <$ac_header>
4062 rm -f conftest.$ac_objext
4063 if { (ac_try="$ac_compile"
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_compile") 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4077 { (case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_try") 2>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; } &&
4086 { ac_try='test -s conftest.$ac_objext'
4087 { (case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
4096 eval "$as_ac_Header=yes"
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4101 eval "$as_ac_Header=no"
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 ac_res=`eval echo '${'$as_ac_Header'}'`
4107 { echo "$as_me:$LINENO: result: $ac_res" >&5
4108 echo "${ECHO_T}$ac_res" >&6; }
4109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4110 cat >>confdefs.h <<_ACEOF
4111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4119 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4120 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4121 if test "${ac_cv_c_bigendian+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 # See if sys/param.h defines the BYTE_ORDER macro.
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 #include <sys/types.h>
4132 #include <sys/param.h>
4137 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4145 rm -f conftest.$ac_objext
4146 if { (ac_try="$ac_compile"
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_compile") 2>conftest.er1
4154 grep -v '^ *+' conftest.er1 >conftest.err
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 # It does; now see whether it defined to BIG_ENDIAN or not.
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 #include <sys/types.h>
4187 #include <sys/param.h>
4192 #if BYTE_ORDER != BIG_ENDIAN
4200 rm -f conftest.$ac_objext
4201 if { (ac_try="$ac_compile"
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_compile") 2>conftest.er1
4209 grep -v '^ *+' conftest.er1 >conftest.err
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } &&
4214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4215 { (case "(($ac_try" in
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220 (eval "$ac_try") 2>&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 ac_cv_c_bigendian=yes
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4239 ac_cv_c_bigendian=no
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 # It does not; compile a test program.
4248 if test "$cross_compiling" = yes; then
4249 # try to guess the endianness by grepping values into an object file
4250 ac_cv_c_bigendian=unknown
4251 cat >conftest.$ac_ext <<_ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4258 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4259 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4260 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4261 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4262 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4266 _ascii (); _ebcdic ();
4271 rm -f conftest.$ac_objext
4272 if { (ac_try="$ac_compile"
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_compile") 2>conftest.er1
4280 grep -v '^ *+' conftest.er1 >conftest.err
4282 cat conftest.err >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4286 { (case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4306 ac_cv_c_bigendian=yes
4308 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4309 if test "$ac_cv_c_bigendian" = unknown; then
4310 ac_cv_c_bigendian=no
4312 # finding both strings is unlikely to happen, but who knows?
4313 ac_cv_c_bigendian=unknown
4317 echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 cat >conftest.$ac_ext <<_ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 $ac_includes_default
4336 /* Are we little or big endian? From Harbison&Steele. */
4340 char c[sizeof (long int)];
4343 return u.c[sizeof (long int) - 1] == 1;
4349 rm -f conftest$ac_exeext
4350 if { (ac_try="$ac_link"
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_link") 2>&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4360 { (case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_try") 2>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 ac_cv_c_bigendian=no
4371 echo "$as_me: program exited with status $ac_status" >&5
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4376 ac_cv_c_bigendian=yes
4378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4387 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4388 case $ac_cv_c_bigendian in
4396 { { echo "$as_me:$LINENO: error: unknown endianness
4397 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4398 echo "$as_me: error: unknown endianness
4399 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4400 { (exit 1); exit 1; }; } ;;
4404 if test "$cross_compiling" = yes; then
4405 LLVM_CROSS_COMPILING=1
4408 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4409 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4410 if test "${ac_cv_build_exeext+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4414 ac_cv_build_exeext=.exe
4416 ac_build_prefix=${build_alias}-
4418 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4419 set dummy ${ac_build_prefix}gcc; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 if test -n "$BUILD_CC"; then
4426 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 BUILD_CC=$ac_cv_prog_BUILD_CC
4446 if test -n "$BUILD_CC"; then
4447 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4448 echo "${ECHO_T}$BUILD_CC" >&6; }
4450 { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4455 if test -z "$BUILD_CC"; then
4456 # Extract the first word of "gcc", so it can be a program name with args.
4457 set dummy gcc; ac_word=$2
4458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4460 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 if test -n "$BUILD_CC"; then
4464 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_BUILD_CC="gcc"
4474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 BUILD_CC=$ac_cv_prog_BUILD_CC
4484 if test -n "$BUILD_CC"; then
4485 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4486 echo "${ECHO_T}$BUILD_CC" >&6; }
4488 { echo "$as_me:$LINENO: result: no" >&5
4489 echo "${ECHO_T}no" >&6; }
4493 if test -z "$BUILD_CC"; then
4494 # Extract the first word of "cc", so it can be a program name with args.
4495 set dummy cc; ac_word=$2
4496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 if test -n "$BUILD_CC"; then
4502 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4513 ac_prog_rejected=yes
4516 ac_cv_prog_BUILD_CC="cc"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 if test $ac_prog_rejected = yes; then
4525 # We found a bogon in the path, so make sure we never use it.
4526 set dummy $ac_cv_prog_BUILD_CC
4528 if test $# != 0; then
4529 # We chose a different compiler from the bogus one.
4530 # However, it has the same basename, so the bogon will be chosen
4531 # first if we set BUILD_CC to just the basename; use the full file name.
4533 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4538 BUILD_CC=$ac_cv_prog_BUILD_CC
4539 if test -n "$BUILD_CC"; then
4540 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4541 echo "${ECHO_T}$BUILD_CC" >&6; }
4543 { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4550 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4551 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4552 { (exit 1); exit 1; }; }
4553 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4555 echo 'int main () { return 0; }' > conftest.$ac_ext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4558 (eval $ac_build_link) 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; then
4562 for file in conftest.*; do
4564 *.c | *.o | *.obj | *.dSYM) ;;
4565 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4569 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4570 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4571 { (exit 1); exit 1; }; }
4574 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4579 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4580 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4581 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4582 ac_build_exeext=$BUILD_EXEEXT
4584 ac_build_prefix=${build_alias}-
4585 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4586 set dummy ${ac_build_prefix}g++; ac_word=$2
4587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4589 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 if test -n "$BUILD_CXX"; then
4593 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4613 if test -n "$BUILD_CXX"; then
4614 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4615 echo "${ECHO_T}$BUILD_CXX" >&6; }
4617 { echo "$as_me:$LINENO: result: no" >&5
4618 echo "${ECHO_T}no" >&6; }
4622 if test -z "$BUILD_CXX"; then
4623 # Extract the first word of "g++", so it can be a program name with args.
4624 set dummy g++; ac_word=$2
4625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 if test -n "$BUILD_CXX"; then
4631 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_prog_BUILD_CXX="g++"
4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4651 if test -n "$BUILD_CXX"; then
4652 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4653 echo "${ECHO_T}$BUILD_CXX" >&6; }
4655 { echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6; }
4660 if test -z "$BUILD_CXX"; then
4661 # Extract the first word of "c++", so it can be a program name with args.
4662 set dummy c++; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 if test -n "$BUILD_CXX"; then
4669 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4680 ac_prog_rejected=yes
4683 ac_cv_prog_BUILD_CXX="c++"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 if test $ac_prog_rejected = yes; then
4692 # We found a bogon in the path, so make sure we never use it.
4693 set dummy $ac_cv_prog_BUILD_CXX
4695 if test $# != 0; then
4696 # We chose a different compiler from the bogus one.
4697 # However, it has the same basename, so the bogon will be chosen
4698 # first if we set BUILD_CXX to just the basename; use the full file name.
4700 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4705 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4706 if test -n "$BUILD_CXX"; then
4707 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4708 echo "${ECHO_T}$BUILD_CXX" >&6; }
4710 { echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6; }
4718 LLVM_CROSS_COMPILING=0
4722 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4733 # Check whether --enable-optimized was given.
4734 if test "${enable_optimized+set}" = set; then
4735 enableval=$enable_optimized;
4740 if test ${enableval} = "no" ; then
4744 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4748 # Check whether --enable-profiling was given.
4749 if test "${enable_profiling+set}" = set; then
4750 enableval=$enable_profiling;
4755 if test ${enableval} = "no" ; then
4759 ENABLE_PROFILING=ENABLE_PROFILING=1
4763 # Check whether --enable-assertions was given.
4764 if test "${enable_assertions+set}" = set; then
4765 enableval=$enable_assertions;
4770 if test ${enableval} = "yes" ; then
4774 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4778 # Check whether --enable-expensive-checks was given.
4779 if test "${enable_expensive_checks+set}" = set; then
4780 enableval=$enable_expensive_checks;
4785 if test ${enableval} = "yes" ; then
4786 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4788 EXPENSIVE_CHECKS=yes
4791 ENABLE_EXPENSIVE_CHECKS=
4797 # Check whether --enable-debug-runtime was given.
4798 if test "${enable_debug_runtime+set}" = set; then
4799 enableval=$enable_debug_runtime;
4804 if test ${enableval} = "no" ; then
4808 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4812 # Check whether --enable-debug-symbols was given.
4813 if test "${enable_debug_symbols+set}" = set; then
4814 enableval=$enable_debug_symbols;
4819 if test ${enableval} = "no" ; then
4823 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4827 # Check whether --enable-jit was given.
4828 if test "${enable_jit+set}" = set; then
4829 enableval=$enable_jit;
4834 if test ${enableval} = "no"
4839 case "$llvm_cv_target_arch" in
4840 x86) TARGET_HAS_JIT=1
4842 Sparc) TARGET_HAS_JIT=0
4844 PowerPC) TARGET_HAS_JIT=1
4846 x86_64) TARGET_HAS_JIT=1
4848 Alpha) TARGET_HAS_JIT=1
4850 ARM) TARGET_HAS_JIT=1
4852 Mips) TARGET_HAS_JIT=0
4854 XCore) TARGET_HAS_JIT=0
4856 MSP430) TARGET_HAS_JIT=0
4858 SystemZ) TARGET_HAS_JIT=0
4860 Blackfin) TARGET_HAS_JIT=0
4862 MBlaze) TARGET_HAS_JIT=0
4864 PTX) TARGET_HAS_JIT=0
4871 # Check whether --enable-doxygen was given.
4872 if test "${enable_doxygen+set}" = set; then
4873 enableval=$enable_doxygen;
4878 case "$enableval" in
4879 yes) ENABLE_DOXYGEN=1
4881 no) ENABLE_DOXYGEN=0
4883 default) ENABLE_DOXYGEN=0
4885 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4886 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4887 { (exit 1); exit 1; }; } ;;
4890 # Check whether --enable-threads was given.
4891 if test "${enable_threads+set}" = set; then
4892 enableval=$enable_threads;
4897 case "$enableval" in
4898 yes) ENABLE_THREADS=1
4900 no) ENABLE_THREADS=0
4902 default) ENABLE_THREADS=1
4904 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4905 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4906 { (exit 1); exit 1; }; } ;;
4909 cat >>confdefs.h <<_ACEOF
4910 #define ENABLE_THREADS $ENABLE_THREADS
4914 # Check whether --enable-pic was given.
4915 if test "${enable_pic+set}" = set; then
4916 enableval=$enable_pic;
4921 case "$enableval" in
4926 default) ENABLE_PIC=1
4928 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4929 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4930 { (exit 1); exit 1; }; } ;;
4933 cat >>confdefs.h <<_ACEOF
4934 #define ENABLE_PIC $ENABLE_PIC
4938 # Check whether --enable-shared was given.
4939 if test "${enable_shared+set}" = set; then
4940 enableval=$enable_shared;
4945 case "$enableval" in
4946 yes) ENABLE_SHARED=1
4950 default) ENABLE_SHARED=0
4952 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4953 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4954 { (exit 1); exit 1; }; } ;;
4957 # Check whether --enable-timestamps was given.
4958 if test "${enable_timestamps+set}" = set; then
4959 enableval=$enable_timestamps;
4964 case "$enableval" in
4965 yes) ENABLE_TIMESTAMPS=1
4967 no) ENABLE_TIMESTAMPS=0
4969 default) ENABLE_TIMESTAMPS=1
4971 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4972 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4973 { (exit 1); exit 1; }; } ;;
4976 cat >>confdefs.h <<_ACEOF
4977 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4982 # Check whether --enable-targets was given.
4983 if test "${enable_targets+set}" = set; then
4984 enableval=$enable_targets;
4989 if test "$enableval" = host-only ; then
4992 case "$enableval" in
4993 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4994 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4996 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4997 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4998 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4999 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5000 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5001 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5002 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5003 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5004 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5005 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5006 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5007 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5008 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5009 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5010 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5011 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5012 host) case "$llvm_cv_target_arch" in
5013 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5014 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5015 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5016 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5017 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5018 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5019 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5020 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5021 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5022 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5023 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5024 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5025 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5026 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5027 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5028 echo "$as_me: error: Can not set target to build" >&2;}
5029 { (exit 1); exit 1; }; } ;;
5031 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5032 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5033 { (exit 1); exit 1; }; } ;;
5038 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5041 # Determine whether we are building LLVM support for the native architecture.
5042 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5043 for a_target in $TARGETS_TO_BUILD; do
5044 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5046 cat >>confdefs.h <<_ACEOF
5047 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5050 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5051 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5052 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5054 cat >>confdefs.h <<_ACEOF
5055 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5059 cat >>confdefs.h <<_ACEOF
5060 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5064 cat >>confdefs.h <<_ACEOF
5065 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5071 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5072 # target feature def files.
5073 LLVM_ENUM_TARGETS=""
5074 LLVM_ENUM_ASM_PRINTERS=""
5075 LLVM_ENUM_ASM_PARSERS=""
5076 LLVM_ENUM_DISASSEMBLERS=""
5077 for target_to_build in $TARGETS_TO_BUILD; do
5078 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5079 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5080 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5082 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5083 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5084 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5086 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5087 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5089 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5090 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5098 # Check whether --enable-cbe-printf-a was given.
5099 if test "${enable_cbe_printf_a+set}" = set; then
5100 enableval=$enable_cbe_printf_a;
5105 case "$enableval" in
5106 yes) ENABLE_CBE_PRINTF_A=1
5108 no) ENABLE_CBE_PRINTF_A=0
5110 default) ENABLE_CBE_PRINTF_A=1
5112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5113 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5114 { (exit 1); exit 1; }; } ;;
5117 cat >>confdefs.h <<_ACEOF
5118 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5123 # Check whether --with-llvmgccdir was given.
5124 if test "${with_llvmgccdir+set}" = set; then
5125 withval=$with_llvmgccdir;
5131 default) WITH_LLVMGCCDIR=default ;;
5132 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5133 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5134 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5135 { (exit 1); exit 1; }; } ;;
5139 # Check whether --with-llvmgcc was given.
5140 if test "${with_llvmgcc+set}" = set; then
5141 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5147 # Check whether --with-llvmgxx was given.
5148 if test "${with_llvmgxx+set}" = set; then
5149 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5154 if test -n "$LLVMGCC"; then
5155 LLVMGCCCOMMAND="$LLVMGCC"
5158 if test -n "$LLVMGXX"; then
5159 LLVMGXXCOMMAND="$LLVMGXX"
5162 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5163 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5164 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5165 { (exit 1); exit 1; }; };
5168 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5169 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5170 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5171 { (exit 1); exit 1; }; };
5175 # Check whether --with-clang was given.
5176 if test "${with_clang+set}" = set; then
5177 withval=$with_clang;
5184 # Check whether --with-built-clang was given.
5185 if test "${with_built_clang+set}" = set; then
5186 withval=$with_built_clang;
5188 with_built_clang=check
5192 { echo "$as_me:$LINENO: checking clang compiler" >&5
5193 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5196 if test "$with_clang" != "default"; then
5197 WITH_CLANGPATH="$with_clang"
5198 if ! test -x "$WITH_CLANGPATH"; then
5199 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5200 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5201 { (exit 1); exit 1; }; }
5203 elif test "$with_built_clang" = "yes"; then
5205 elif test "$with_built_clang" = "no"; then
5208 if test "$with_built_clang" != "check"; then
5209 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5210 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5211 { (exit 1); exit 1; }; }
5214 if test -f ${srcdir}/tools/clang/README.txt; then
5219 if ! test -z "$WITH_CLANGPATH"; then
5220 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5221 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5222 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5223 elif test "$WITH_BUILT_CLANG" = "1"; then
5224 { echo "$as_me:$LINENO: result: built" >&5
5225 echo "${ECHO_T}built" >&6; }
5227 { echo "$as_me:$LINENO: result: none" >&5
5228 echo "${ECHO_T}none" >&6; }
5230 CLANGPATH=$WITH_CLANGPATH
5232 CLANGXXPATH=$WITH_CLANGXXPATH
5234 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5238 # Check whether --with-optimize-option was given.
5239 if test "${with_optimize_option+set}" = set; then
5240 withval=$with_optimize_option;
5245 { echo "$as_me:$LINENO: checking optimization flags" >&5
5246 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5249 case "$llvm_cv_os_type" in
5250 FreeBSD) optimize_option=-O2 ;;
5251 MingW) optimize_option=-O2 ;;
5252 *) optimize_option=-O3 ;;
5254 *) optimize_option="$withval" ;;
5256 OPTIMIZE_OPTION=$optimize_option
5258 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5259 echo "${ECHO_T}$optimize_option" >&6; }
5262 # Check whether --with-extra-options was given.
5263 if test "${with_extra_options+set}" = set; then
5264 withval=$with_extra_options;
5270 default) EXTRA_OPTIONS= ;;
5271 *) EXTRA_OPTIONS=$withval ;;
5273 EXTRA_OPTIONS=$EXTRA_OPTIONS
5276 # Check whether --enable-bindings was given.
5277 if test "${enable_bindings+set}" = set; then
5278 enableval=$enable_bindings;
5283 BINDINGS_TO_BUILD=""
5284 case "$enableval" in
5285 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5286 all ) BINDINGS_TO_BUILD="ocaml" ;;
5287 none | no) BINDINGS_TO_BUILD="" ;;
5288 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5289 case "$a_binding" in
5290 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5291 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5292 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5293 { (exit 1); exit 1; }; } ;;
5300 # Check whether --with-ocaml-libdir was given.
5301 if test "${with_ocaml_libdir+set}" = set; then
5302 withval=$with_ocaml_libdir;
5308 auto) with_ocaml_libdir="$withval" ;;
5309 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5310 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5311 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5312 { (exit 1); exit 1; }; } ;;
5316 # Check whether --with-clang-resource-dir was given.
5317 if test "${with_clang_resource_dir+set}" = set; then
5318 withval=$with_clang_resource_dir;
5324 cat >>confdefs.h <<_ACEOF
5325 #define CLANG_RESOURCE_DIR "$withval"
5330 # Check whether --with-c-include-dirs was given.
5331 if test "${with_c_include_dirs+set}" = set; then
5332 withval=$with_c_include_dirs;
5338 cat >>confdefs.h <<_ACEOF
5339 #define C_INCLUDE_DIRS "$withval"
5344 # Check whether --with-cxx-include-root was given.
5345 if test "${with_cxx_include_root+set}" = set; then
5346 withval=$with_cxx_include_root;
5352 cat >>confdefs.h <<_ACEOF
5353 #define CXX_INCLUDE_ROOT "$withval"
5358 # Check whether --with-cxx-include-arch was given.
5359 if test "${with_cxx_include_arch+set}" = set; then
5360 withval=$with_cxx_include_arch;
5366 cat >>confdefs.h <<_ACEOF
5367 #define CXX_INCLUDE_ARCH "$withval"
5372 # Check whether --with-cxx-include-32bit-dir was given.
5373 if test "${with_cxx_include_32bit_dir+set}" = set; then
5374 withval=$with_cxx_include_32bit_dir;
5380 cat >>confdefs.h <<_ACEOF
5381 #define CXX_INCLUDE_32BIT_DIR "$withval"
5386 # Check whether --with-cxx-include-64bit-dir was given.
5387 if test "${with_cxx_include_64bit_dir+set}" = set; then
5388 withval=$with_cxx_include_64bit_dir;
5394 cat >>confdefs.h <<_ACEOF
5395 #define CXX_INCLUDE_64BIT_DIR "$withval"
5400 # Check whether --with-binutils-include was given.
5401 if test "${with_binutils_include+set}" = set; then
5402 withval=$with_binutils_include;
5408 default) WITH_BINUTILS_INCDIR=default ;;
5409 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5410 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5411 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5412 { (exit 1); exit 1; }; } ;;
5414 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5415 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5417 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5418 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5419 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5420 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5421 { (exit 1); exit 1; }; };
5425 # Check whether --enable-libffi was given.
5426 if test "${enable_libffi+set}" = set; then
5427 enableval=$enable_libffi; case "$enableval" in
5428 yes) llvm_cv_enable_libffi="yes" ;;
5429 no) llvm_cv_enable_libffi="no" ;;
5430 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5431 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5432 { (exit 1); exit 1; }; } ;;
5435 llvm_cv_enable_libffi=no
5441 ac_cpp='$CPP $CPPFLAGS'
5442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5445 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5446 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5447 # On Suns, sometimes $CPP names a directory.
5448 if test -n "$CPP" && test -d "$CPP"; then
5451 if test -z "$CPP"; then
5452 if test "${ac_cv_prog_CPP+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 # Double quotes because CPP needs to be expanded
5456 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5459 for ac_c_preproc_warn_flag in '' yes
5461 # Use a header file that comes with gcc, so configuring glibc
5462 # with a fresh cross-compiler works.
5463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5464 # <limits.h> exists even on freestanding compilers.
5465 # On the NeXT, cc -E runs the code through the compiler's parser,
5466 # not just through cpp. "Syntax error" is here to catch this case.
5467 cat >conftest.$ac_ext <<_ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5474 # include <limits.h>
5476 # include <assert.h>
5480 if { (ac_try="$ac_cpp conftest.$ac_ext"
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5488 grep -v '^ *+' conftest.er1 >conftest.err
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } >/dev/null; then
5493 if test -s conftest.err; then
5494 ac_cpp_err=$ac_c_preproc_warn_flag
5495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5502 if test -z "$ac_cpp_err"; then
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 # Broken: fails on valid input.
5512 rm -f conftest.err conftest.$ac_ext
5514 # OK, works on sane cases. Now check whether nonexistent headers
5515 # can be detected and how.
5516 cat >conftest.$ac_ext <<_ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 #include <ac_nonexistent.h>
5524 if { (ac_try="$ac_cpp conftest.$ac_ext"
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5532 grep -v '^ *+' conftest.er1 >conftest.err
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } >/dev/null; then
5537 if test -s conftest.err; then
5538 ac_cpp_err=$ac_c_preproc_warn_flag
5539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5546 if test -z "$ac_cpp_err"; then
5547 # Broken: success on invalid input.
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5553 # Passes both tests.
5558 rm -f conftest.err conftest.$ac_ext
5561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5562 rm -f conftest.err conftest.$ac_ext
5563 if $ac_preproc_ok; then
5575 { echo "$as_me:$LINENO: result: $CPP" >&5
5576 echo "${ECHO_T}$CPP" >&6; }
5578 for ac_c_preproc_warn_flag in '' yes
5580 # Use a header file that comes with gcc, so configuring glibc
5581 # with a fresh cross-compiler works.
5582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5583 # <limits.h> exists even on freestanding compilers.
5584 # On the NeXT, cc -E runs the code through the compiler's parser,
5585 # not just through cpp. "Syntax error" is here to catch this case.
5586 cat >conftest.$ac_ext <<_ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5593 # include <limits.h>
5595 # include <assert.h>
5599 if { (ac_try="$ac_cpp conftest.$ac_ext"
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5607 grep -v '^ *+' conftest.er1 >conftest.err
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } >/dev/null; then
5612 if test -s conftest.err; then
5613 ac_cpp_err=$ac_c_preproc_warn_flag
5614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5621 if test -z "$ac_cpp_err"; then
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 # Broken: fails on valid input.
5631 rm -f conftest.err conftest.$ac_ext
5633 # OK, works on sane cases. Now check whether nonexistent headers
5634 # can be detected and how.
5635 cat >conftest.$ac_ext <<_ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5641 #include <ac_nonexistent.h>
5643 if { (ac_try="$ac_cpp conftest.$ac_ext"
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5651 grep -v '^ *+' conftest.er1 >conftest.err
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } >/dev/null; then
5656 if test -s conftest.err; then
5657 ac_cpp_err=$ac_c_preproc_warn_flag
5658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5665 if test -z "$ac_cpp_err"; then
5666 # Broken: success on invalid input.
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5672 # Passes both tests.
5677 rm -f conftest.err conftest.$ac_ext
5680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5681 rm -f conftest.err conftest.$ac_ext
5682 if $ac_preproc_ok; then
5685 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5686 See \`config.log' for more details." >&5
5687 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5688 See \`config.log' for more details." >&2;}
5689 { (exit 1); exit 1; }; }
5693 ac_cpp='$CPP $CPPFLAGS'
5694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703 if test -n "$ac_tool_prefix"; then
5706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5710 if test "${ac_cv_prog_CC+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 if test -n "$CC"; then
5714 ac_cv_prog_CC="$CC" # Let the user override the test.
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 if test -n "$CC"; then
5735 { echo "$as_me:$LINENO: result: $CC" >&5
5736 echo "${ECHO_T}$CC" >&6; }
5738 { echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6; }
5743 test -n "$CC" && break
5746 if test -z "$CC"; then
5750 # Extract the first word of "$ac_prog", so it can be a program name with args.
5751 set dummy $ac_prog; ac_word=$2
5752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 if test -n "$ac_ct_CC"; then
5758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5767 ac_cv_prog_ac_ct_CC="$ac_prog"
5768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5778 if test -n "$ac_ct_CC"; then
5779 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5780 echo "${ECHO_T}$ac_ct_CC" >&6; }
5782 { echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6; }
5787 test -n "$ac_ct_CC" && break
5790 if test "x$ac_ct_CC" = x; then
5793 case $cross_compiling:$ac_tool_warned in
5795 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5796 whose name does not start with the host triplet. If you think this
5797 configuration is useful to you, please write to autoconf@gnu.org." >&5
5798 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5799 whose name does not start with the host triplet. If you think this
5800 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5801 ac_tool_warned=yes ;;
5808 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5809 See \`config.log' for more details." >&5
5810 echo "$as_me: error: no acceptable C compiler found in \$PATH
5811 See \`config.log' for more details." >&2;}
5812 { (exit 1); exit 1; }; }
5814 # Provide some information about the compiler.
5815 echo "$as_me:$LINENO: checking for C compiler version" >&5
5816 ac_compiler=`set X $ac_compile; echo $2`
5817 { (ac_try="$ac_compiler --version >&5"
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compiler --version >&5") 2>&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }
5827 { (ac_try="$ac_compiler -v >&5"
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compiler -v >&5") 2>&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }
5837 { (ac_try="$ac_compiler -V >&5"
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compiler -V >&5") 2>&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }
5848 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5849 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5850 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 cat >conftest.$ac_ext <<_ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
5880 grep -v '^ *+' conftest.er1 >conftest.err
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5886 { (case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_try") 2>&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_try") 2>&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5917 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5918 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5919 GCC=`test $ac_compiler_gnu = yes && echo yes`
5920 ac_test_CFLAGS=${CFLAGS+set}
5921 ac_save_CFLAGS=$CFLAGS
5922 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5923 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5924 if test "${ac_cv_prog_cc_g+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 ac_save_c_werror_flag=$ac_c_werror_flag
5928 ac_c_werror_flag=yes
5931 cat >conftest.$ac_ext <<_ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5955 grep -v '^ *+' conftest.er1 >conftest.err
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } &&
5960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5961 { (case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_try") 2>&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; } &&
5970 { ac_try='test -s conftest.$ac_objext'
5971 { (case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_try") 2>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; }; then
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5986 cat >conftest.$ac_ext <<_ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6010 grep -v '^ *+' conftest.er1 >conftest.err
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6016 { (case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_try") 2>&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; } &&
6025 { ac_try='test -s conftest.$ac_objext'
6026 { (case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_try") 2>&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6040 ac_c_werror_flag=$ac_save_c_werror_flag
6042 cat >conftest.$ac_ext <<_ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6057 rm -f conftest.$ac_objext
6058 if { (ac_try="$ac_compile"
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_compile") 2>conftest.er1
6066 grep -v '^ *+' conftest.er1 >conftest.err
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6072 { (case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_try") 2>&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_try") 2>&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 ac_c_werror_flag=$ac_save_c_werror_flag
6108 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6109 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6110 if test "$ac_test_CFLAGS" = set; then
6111 CFLAGS=$ac_save_CFLAGS
6112 elif test $ac_cv_prog_cc_g = yes; then
6113 if test "$GCC" = yes; then
6119 if test "$GCC" = yes; then
6125 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6126 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6127 if test "${ac_cv_prog_cc_c89+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 ac_cv_prog_cc_c89=no
6132 cat >conftest.$ac_ext <<_ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6140 #include <sys/types.h>
6141 #include <sys/stat.h>
6142 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6143 struct buf { int x; };
6144 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6145 static char *e (p, i)
6151 static char *f (char * (*g) (char **, int), char **p, ...)
6156 s = g (p, va_arg (v,int));
6161 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6162 function prototypes and stuff, but not '\xHH' hex character constants.
6163 These don't provoke an error unfortunately, instead are silently treated
6164 as 'x'. The following induces an error, until -std is added to get
6165 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6166 array size at least. It's necessary to write '\x00'==0 to get something
6167 that's true only with -std. */
6168 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6170 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6171 inside strings and character constants. */
6173 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6175 int test (int i, double x);
6176 struct s1 {int (*f) (int a);};
6177 struct s2 {int (*f) (double a);};
6178 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6184 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6189 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6190 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6192 CC="$ac_save_CC $ac_arg"
6193 rm -f conftest.$ac_objext
6194 if { (ac_try="$ac_compile"
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_compile") 2>conftest.er1
6202 grep -v '^ *+' conftest.er1 >conftest.err
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } &&
6207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6208 { (case "(($ac_try" in
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_try") 2>&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try='test -s conftest.$ac_objext'
6218 { (case "(($ac_try" in
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$ac_try") 2>&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6227 ac_cv_prog_cc_c89=$ac_arg
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6235 rm -f core conftest.err conftest.$ac_objext
6236 test "x$ac_cv_prog_cc_c89" != "xno" && break
6238 rm -f conftest.$ac_ext
6243 case "x$ac_cv_prog_cc_c89" in
6245 { echo "$as_me:$LINENO: result: none needed" >&5
6246 echo "${ECHO_T}none needed" >&6; } ;;
6248 { echo "$as_me:$LINENO: result: unsupported" >&5
6249 echo "${ECHO_T}unsupported" >&6; } ;;
6251 CC="$CC $ac_cv_prog_cc_c89"
6252 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6253 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6258 ac_cpp='$CPP $CPPFLAGS'
6259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6264 ac_cpp='$CXXCPP $CPPFLAGS'
6265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6268 if test -z "$CXX"; then
6269 if test -n "$CCC"; then
6272 if test -n "$ac_tool_prefix"; then
6275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6279 if test "${ac_cv_prog_CXX+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 if test -n "$CXX"; then
6283 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 if test -n "$CXX"; then
6304 { echo "$as_me:$LINENO: result: $CXX" >&5
6305 echo "${ECHO_T}$CXX" >&6; }
6307 { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6312 test -n "$CXX" && break
6315 if test -z "$CXX"; then
6319 # Extract the first word of "$ac_prog", so it can be a program name with args.
6320 set dummy $ac_prog; ac_word=$2
6321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6323 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 if test -n "$ac_ct_CXX"; then
6327 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_ac_ct_CXX="$ac_prog"
6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6347 if test -n "$ac_ct_CXX"; then
6348 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6349 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6351 { echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6; }
6356 test -n "$ac_ct_CXX" && break
6359 if test "x$ac_ct_CXX" = x; then
6362 case $cross_compiling:$ac_tool_warned in
6364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6365 whose name does not start with the host triplet. If you think this
6366 configuration is useful to you, please write to autoconf@gnu.org." >&5
6367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6368 whose name does not start with the host triplet. If you think this
6369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6370 ac_tool_warned=yes ;;
6378 # Provide some information about the compiler.
6379 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6380 ac_compiler=`set X $ac_compile; echo $2`
6381 { (ac_try="$ac_compiler --version >&5"
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compiler --version >&5") 2>&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }
6391 { (ac_try="$ac_compiler -v >&5"
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_compiler -v >&5") 2>&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }
6401 { (ac_try="$ac_compiler -V >&5"
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_compiler -V >&5") 2>&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }
6412 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6413 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6414 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 cat >conftest.$ac_ext <<_ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6435 rm -f conftest.$ac_objext
6436 if { (ac_try="$ac_compile"
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_compile") 2>conftest.er1
6444 grep -v '^ *+' conftest.er1 >conftest.err
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6450 { (case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_try") 2>&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; } &&
6459 { ac_try='test -s conftest.$ac_objext'
6460 { (case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_try") 2>&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6481 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6482 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6483 GXX=`test $ac_compiler_gnu = yes && echo yes`
6484 ac_test_CXXFLAGS=${CXXFLAGS+set}
6485 ac_save_CXXFLAGS=$CXXFLAGS
6486 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6487 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6488 if test "${ac_cv_prog_cxx_g+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6492 ac_cxx_werror_flag=yes
6495 cat >conftest.$ac_ext <<_ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6510 rm -f conftest.$ac_objext
6511 if { (ac_try="$ac_compile"
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_compile") 2>conftest.er1
6519 grep -v '^ *+' conftest.er1 >conftest.err
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6525 { (case "(($ac_try" in
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_try") 2>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_try") 2>&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 ac_cv_prog_cxx_g=yes
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6550 cat >conftest.$ac_ext <<_ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6565 rm -f conftest.$ac_objext
6566 if { (ac_try="$ac_compile"
6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572 (eval "$ac_compile") 2>conftest.er1
6574 grep -v '^ *+' conftest.er1 >conftest.err
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6580 { (case "(($ac_try" in
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_try") 2>&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try='test -s conftest.$ac_objext'
6590 { (case "(($ac_try" in
6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595 (eval "$ac_try") 2>&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6604 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6606 cat >conftest.$ac_ext <<_ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h. */
6621 rm -f conftest.$ac_objext
6622 if { (ac_try="$ac_compile"
6624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625 *) ac_try_echo=$ac_try;;
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_compile") 2>conftest.er1
6630 grep -v '^ *+' conftest.er1 >conftest.err
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6636 { (case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641 (eval "$ac_try") 2>&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; } &&
6645 { ac_try='test -s conftest.$ac_objext'
6646 { (case "(($ac_try" in
6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_try") 2>&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 ac_cv_prog_cxx_g=yes
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6672 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6673 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6674 if test "$ac_test_CXXFLAGS" = set; then
6675 CXXFLAGS=$ac_save_CXXFLAGS
6676 elif test $ac_cv_prog_cxx_g = yes; then
6677 if test "$GXX" = yes; then
6683 if test "$GXX" = yes; then
6690 ac_cpp='$CPP $CPPFLAGS'
6691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6696 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6697 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6698 if test "${lt_cv_path_NM+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 if test -n "$NM"; then
6702 # Let the user override the test.
6705 lt_nm_to_check="${ac_tool_prefix}nm"
6706 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6707 lt_nm_to_check="$lt_nm_to_check nm"
6709 for lt_tmp_nm in $lt_nm_to_check; do
6710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6711 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6713 test -z "$ac_dir" && ac_dir=.
6714 tmp_nm="$ac_dir/$lt_tmp_nm"
6715 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6716 # Check to see if the nm accepts a BSD-compat flag.
6717 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6718 # nm: unknown option "B" ignored
6719 # Tru64's nm complains that /dev/null is an invalid object file
6720 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6721 */dev/null* | *'Invalid file or object type'*)
6722 lt_cv_path_NM="$tmp_nm -B"
6726 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6728 lt_cv_path_NM="$tmp_nm -p"
6732 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6733 continue # so that we can try to find one that supports BSD flags
6742 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6745 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6746 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6751 { echo "$as_me:$LINENO: checking for GNU make" >&5
6752 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6753 if test "${llvm_cv_gnu_make_command+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 llvm_cv_gnu_make_command=''
6757 for a in "$MAKE" make gmake gnumake ; do
6758 if test -z "$a" ; then continue ; fi ;
6759 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6761 llvm_cv_gnu_make_command=$a ;
6766 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6767 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6768 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6772 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6773 echo "${ECHO_T}\"Not found\"" >&6; };
6777 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6778 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6780 if test "$LN_S" = "ln -s"; then
6781 { echo "$as_me:$LINENO: result: yes" >&5
6782 echo "${ECHO_T}yes" >&6; }
6784 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6785 echo "${ECHO_T}no, using $LN_S" >&6; }
6788 # Extract the first word of "cmp", so it can be a program name with args.
6789 set dummy cmp; ac_word=$2
6790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792 if test "${ac_cv_path_CMP+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6820 if test -n "$CMP"; then
6821 { echo "$as_me:$LINENO: result: $CMP" >&5
6822 echo "${ECHO_T}$CMP" >&6; }
6824 { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6829 # Extract the first word of "cp", so it can be a program name with args.
6830 set dummy cp; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_path_CP+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6861 if test -n "$CP"; then
6862 { echo "$as_me:$LINENO: result: $CP" >&5
6863 echo "${ECHO_T}$CP" >&6; }
6865 { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6870 # Extract the first word of "date", so it can be a program name with args.
6871 set dummy date; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_path_DATE+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6901 DATE=$ac_cv_path_DATE
6902 if test -n "$DATE"; then
6903 { echo "$as_me:$LINENO: result: $DATE" >&5
6904 echo "${ECHO_T}$DATE" >&6; }
6906 { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6911 # Extract the first word of "find", so it can be a program name with args.
6912 set dummy find; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_path_FIND+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6942 FIND=$ac_cv_path_FIND
6943 if test -n "$FIND"; then
6944 { echo "$as_me:$LINENO: result: $FIND" >&5
6945 echo "${ECHO_T}$FIND" >&6; }
6947 { echo "$as_me:$LINENO: result: no" >&5
6948 echo "${ECHO_T}no" >&6; }
6952 # Extract the first word of "grep", so it can be a program name with args.
6953 set dummy grep; ac_word=$2
6954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956 if test "${ac_cv_path_GREP+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6971 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6983 GREP=$ac_cv_path_GREP
6984 if test -n "$GREP"; then
6985 { echo "$as_me:$LINENO: result: $GREP" >&5
6986 echo "${ECHO_T}$GREP" >&6; }
6988 { echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6; }
6993 # Extract the first word of "mkdir", so it can be a program name with args.
6994 set dummy mkdir; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_path_MKDIR+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7024 MKDIR=$ac_cv_path_MKDIR
7025 if test -n "$MKDIR"; then
7026 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7027 echo "${ECHO_T}$MKDIR" >&6; }
7029 { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7034 # Extract the first word of "mv", so it can be a program name with args.
7035 set dummy mv; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_MV+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7066 if test -n "$MV"; then
7067 { echo "$as_me:$LINENO: result: $MV" >&5
7068 echo "${ECHO_T}$MV" >&6; }
7070 { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7077 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7080 if test "${ac_cv_prog_RANLIB+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 if test -n "$RANLIB"; then
7084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 RANLIB=$ac_cv_prog_RANLIB
7104 if test -n "$RANLIB"; then
7105 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7106 echo "${ECHO_T}$RANLIB" >&6; }
7108 { echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6; }
7114 if test -z "$ac_cv_prog_RANLIB"; then
7115 ac_ct_RANLIB=$RANLIB
7116 # Extract the first word of "ranlib", so it can be a program name with args.
7117 set dummy ranlib; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 if test -n "$ac_ct_RANLIB"; then
7124 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_prog_ac_ct_RANLIB="ranlib"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7144 if test -n "$ac_ct_RANLIB"; then
7145 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7146 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7148 { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7152 if test "x$ac_ct_RANLIB" = x; then
7155 case $cross_compiling:$ac_tool_warned in
7157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7158 whose name does not start with the host triplet. If you think this
7159 configuration is useful to you, please write to autoconf@gnu.org." >&5
7160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7161 whose name does not start with the host triplet. If you think this
7162 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7163 ac_tool_warned=yes ;;
7165 RANLIB=$ac_ct_RANLIB
7168 RANLIB="$ac_cv_prog_RANLIB"
7171 if test -n "$ac_tool_prefix"; then
7172 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7173 set dummy ${ac_tool_prefix}ar; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_prog_AR+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 if test -n "$AR"; then
7180 ac_cv_prog_AR="$AR" # Let the user override the test.
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7189 ac_cv_prog_AR="${ac_tool_prefix}ar"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 if test -n "$AR"; then
7201 { echo "$as_me:$LINENO: result: $AR" >&5
7202 echo "${ECHO_T}$AR" >&6; }
7204 { echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6; }
7210 if test -z "$ac_cv_prog_AR"; then
7212 # Extract the first word of "ar", so it can be a program name with args.
7213 set dummy ar; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 if test -n "$ac_ct_AR"; then
7220 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7229 ac_cv_prog_ac_ct_AR="ar"
7230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7240 if test -n "$ac_ct_AR"; then
7241 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7242 echo "${ECHO_T}$ac_ct_AR" >&6; }
7244 { echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6; }
7248 if test "x$ac_ct_AR" = x; then
7251 case $cross_compiling:$ac_tool_warned in
7253 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7254 whose name does not start with the host triplet. If you think this
7255 configuration is useful to you, please write to autoconf@gnu.org." >&5
7256 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7257 whose name does not start with the host triplet. If you think this
7258 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7259 ac_tool_warned=yes ;;
7267 # Extract the first word of "rm", so it can be a program name with args.
7268 set dummy rm; ac_word=$2
7269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7271 if test "${ac_cv_path_RM+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7286 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7299 if test -n "$RM"; then
7300 { echo "$as_me:$LINENO: result: $RM" >&5
7301 echo "${ECHO_T}$RM" >&6; }
7303 { echo "$as_me:$LINENO: result: no" >&5
7304 echo "${ECHO_T}no" >&6; }
7308 # Extract the first word of "sed", so it can be a program name with args.
7309 set dummy sed; ac_word=$2
7310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7312 if test "${ac_cv_path_SED+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7327 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7340 if test -n "$SED"; then
7341 { echo "$as_me:$LINENO: result: $SED" >&5
7342 echo "${ECHO_T}$SED" >&6; }
7344 { echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6; }
7349 # Extract the first word of "tar", so it can be a program name with args.
7350 set dummy tar; ac_word=$2
7351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7353 if test "${ac_cv_path_TAR+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7381 if test -n "$TAR"; then
7382 { echo "$as_me:$LINENO: result: $TAR" >&5
7383 echo "${ECHO_T}$TAR" >&6; }
7385 { echo "$as_me:$LINENO: result: no" >&5
7386 echo "${ECHO_T}no" >&6; }
7390 # Extract the first word of "pwd", so it can be a program name with args.
7391 set dummy pwd; ac_word=$2
7392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394 if test "${ac_cv_path_BINPWD+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7421 BINPWD=$ac_cv_path_BINPWD
7422 if test -n "$BINPWD"; then
7423 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7424 echo "${ECHO_T}$BINPWD" >&6; }
7426 { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7432 # Extract the first word of "Graphviz", so it can be a program name with args.
7433 set dummy Graphviz; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7463 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7464 if test -n "$GRAPHVIZ"; then
7465 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7466 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7468 { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7473 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7475 cat >>confdefs.h <<\_ACEOF
7476 #define HAVE_GRAPHVIZ 1
7479 if test "$llvm_cv_os_type" = "MingW" ; then
7480 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7483 cat >>confdefs.h <<_ACEOF
7484 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7488 # Extract the first word of "dot", so it can be a program name with args.
7489 set dummy dot; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_DOT+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7520 if test -n "$DOT"; then
7521 { echo "$as_me:$LINENO: result: $DOT" >&5
7522 echo "${ECHO_T}$DOT" >&6; }
7524 { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7529 if test "$DOT" != "echo dot" ; then
7531 cat >>confdefs.h <<\_ACEOF
7535 if test "$llvm_cv_os_type" = "MingW" ; then
7536 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7539 cat >>confdefs.h <<_ACEOF
7540 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7544 # Extract the first word of "fdp", so it can be a program name with args.
7545 set dummy fdp; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_FDP+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7576 if test -n "$FDP"; then
7577 { echo "$as_me:$LINENO: result: $FDP" >&5
7578 echo "${ECHO_T}$FDP" >&6; }
7580 { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7585 if test "$FDP" != "echo fdp" ; then
7587 cat >>confdefs.h <<\_ACEOF
7591 if test "$llvm_cv_os_type" = "MingW" ; then
7592 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7595 cat >>confdefs.h <<_ACEOF
7596 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7600 # Extract the first word of "neato", so it can be a program name with args.
7601 set dummy neato; ac_word=$2
7602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7604 if test "${ac_cv_path_NEATO+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7619 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7631 NEATO=$ac_cv_path_NEATO
7632 if test -n "$NEATO"; then
7633 { echo "$as_me:$LINENO: result: $NEATO" >&5
7634 echo "${ECHO_T}$NEATO" >&6; }
7636 { echo "$as_me:$LINENO: result: no" >&5
7637 echo "${ECHO_T}no" >&6; }
7641 if test "$NEATO" != "echo neato" ; then
7643 cat >>confdefs.h <<\_ACEOF
7644 #define HAVE_NEATO 1
7647 if test "$llvm_cv_os_type" = "MingW" ; then
7648 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7651 cat >>confdefs.h <<_ACEOF
7652 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7656 # Extract the first word of "twopi", so it can be a program name with args.
7657 set dummy twopi; ac_word=$2
7658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7660 if test "${ac_cv_path_TWOPI+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7687 TWOPI=$ac_cv_path_TWOPI
7688 if test -n "$TWOPI"; then
7689 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7690 echo "${ECHO_T}$TWOPI" >&6; }
7692 { echo "$as_me:$LINENO: result: no" >&5
7693 echo "${ECHO_T}no" >&6; }
7697 if test "$TWOPI" != "echo twopi" ; then
7699 cat >>confdefs.h <<\_ACEOF
7700 #define HAVE_TWOPI 1
7703 if test "$llvm_cv_os_type" = "MingW" ; then
7704 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7707 cat >>confdefs.h <<_ACEOF
7708 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7712 # Extract the first word of "circo", so it can be a program name with args.
7713 set dummy circo; ac_word=$2
7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716 if test "${ac_cv_path_CIRCO+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7743 CIRCO=$ac_cv_path_CIRCO
7744 if test -n "$CIRCO"; then
7745 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7746 echo "${ECHO_T}$CIRCO" >&6; }
7748 { echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6; }
7753 if test "$CIRCO" != "echo circo" ; then
7755 cat >>confdefs.h <<\_ACEOF
7756 #define HAVE_CIRCO 1
7759 if test "$llvm_cv_os_type" = "MingW" ; then
7760 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7763 cat >>confdefs.h <<_ACEOF
7764 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7768 for ac_prog in gv gsview32
7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774 if test "${ac_cv_path_GV+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 if test -n "$GV"; then
7802 { echo "$as_me:$LINENO: result: $GV" >&5
7803 echo "${ECHO_T}$GV" >&6; }
7805 { echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6; }
7810 test -n "$GV" && break
7812 test -n "$GV" || GV="echo gv"
7814 if test "$GV" != "echo gv" ; then
7816 cat >>confdefs.h <<\_ACEOF
7820 if test "$llvm_cv_os_type" = "MingW" ; then
7821 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7824 cat >>confdefs.h <<_ACEOF
7825 #define LLVM_PATH_GV "$GV${EXEEXT}"
7829 # Extract the first word of "dotty", so it can be a program name with args.
7830 set dummy dotty; ac_word=$2
7831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7833 if test "${ac_cv_path_DOTTY+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7848 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7860 DOTTY=$ac_cv_path_DOTTY
7861 if test -n "$DOTTY"; then
7862 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7863 echo "${ECHO_T}$DOTTY" >&6; }
7865 { echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6; }
7870 if test "$DOTTY" != "echo dotty" ; then
7872 cat >>confdefs.h <<\_ACEOF
7873 #define HAVE_DOTTY 1
7876 if test "$llvm_cv_os_type" = "MingW" ; then
7877 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7880 cat >>confdefs.h <<_ACEOF
7881 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7885 # Extract the first word of "xdot.py", so it can be a program name with args.
7886 set dummy xdot.py; ac_word=$2
7887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7889 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7904 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7916 XDOT_PY=$ac_cv_path_XDOT_PY
7917 if test -n "$XDOT_PY"; then
7918 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7919 echo "${ECHO_T}$XDOT_PY" >&6; }
7921 { echo "$as_me:$LINENO: result: no" >&5
7922 echo "${ECHO_T}no" >&6; }
7926 if test "$XDOT_PY" != "echo xdot.py" ; then
7928 cat >>confdefs.h <<\_ACEOF
7929 #define HAVE_XDOT_PY 1
7932 if test "$llvm_cv_os_type" = "MingW" ; then
7933 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7936 cat >>confdefs.h <<_ACEOF
7937 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7943 # Extract the first word of "perl", so it can be a program name with args.
7944 set dummy perl; ac_word=$2
7945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7947 if test "${ac_cv_path_PERL+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7974 PERL=$ac_cv_path_PERL
7975 if test -n "$PERL"; then
7976 { echo "$as_me:$LINENO: result: $PERL" >&5
7977 echo "${ECHO_T}$PERL" >&6; }
7979 { echo "$as_me:$LINENO: result: no" >&5
7980 echo "${ECHO_T}no" >&6; }
7984 if test "$PERL" != "none"; then
7985 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7986 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7987 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7988 { echo "$as_me:$LINENO: result: yes" >&5
7989 echo "${ECHO_T}yes" >&6; }
7992 { echo "$as_me:$LINENO: result: not found" >&5
7993 echo "${ECHO_T}not found" >&6; }
7998 if test x"$PERL" = xnone; then
8001 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8002 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8003 { (exit 1); exit 1; }; }
8009 # Find a good install program. We prefer a C program (faster),
8010 # so one script is as good as another. But avoid the broken or
8011 # incompatible versions:
8012 # SysV /etc/install, /usr/sbin/install
8013 # SunOS /usr/etc/install
8014 # IRIX /sbin/install
8016 # AmigaOS /C/install, which installs bootblocks on floppy discs
8017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8020 # OS/2's system install, which has a completely different semantic
8021 # ./install, which can be erroneously created by make from ./install.sh.
8022 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8023 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8024 if test -z "$INSTALL"; then
8025 if test "${ac_cv_path_install+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 test -z "$as_dir" && as_dir=.
8033 # Account for people who put trailing slashes in PATH elements.
8035 ./ | .// | /cC/* | \
8036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8040 # OSF1 and SCO ODT 3.0 have their own names for install.
8041 # Don't use installbsd from OSF since it installs stuff as root
8043 for ac_prog in ginstall scoinst install; do
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8046 if test $ac_prog = install &&
8047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8048 # AIX install. It has an incompatible calling convention.
8050 elif test $ac_prog = install &&
8051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8052 # program-specific install script used by HP pwplus--don't use.
8055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8068 if test "${ac_cv_path_install+set}" = set; then
8069 INSTALL=$ac_cv_path_install
8071 # As a last resort, use the slow shell script. Don't cache a
8072 # value for INSTALL within a source directory, because that will
8073 # break other packages using the cache if that directory is
8074 # removed, or if the value is a relative name.
8075 INSTALL=$ac_install_sh
8078 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8079 echo "${ECHO_T}$INSTALL" >&6; }
8081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8082 # It thinks the first close brace ends the variable substitution.
8083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8085 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8087 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8090 [\\/$]* | ?:[\\/]* ) ;;
8091 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8094 # Extract the first word of "bzip2", so it can be a program name with args.
8095 set dummy bzip2; ac_word=$2
8096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098 if test "${ac_cv_path_BZIP2+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8113 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 BZIP2=$ac_cv_path_BZIP2
8125 if test -n "$BZIP2"; then
8126 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8127 echo "${ECHO_T}$BZIP2" >&6; }
8129 { echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6; }
8134 # Extract the first word of "cat", so it can be a program name with args.
8135 set dummy cat; ac_word=$2
8136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138 if test "${ac_cv_path_CAT+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8153 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 if test -n "$CAT"; then
8166 { echo "$as_me:$LINENO: result: $CAT" >&5
8167 echo "${ECHO_T}$CAT" >&6; }
8169 { echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6; }
8174 # Extract the first word of "doxygen", so it can be a program name with args.
8175 set dummy doxygen; ac_word=$2
8176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8178 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 test -z "$as_dir" && as_dir=.
8191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8193 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8204 DOXYGEN=$ac_cv_path_DOXYGEN
8205 if test -n "$DOXYGEN"; then
8206 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8207 echo "${ECHO_T}$DOXYGEN" >&6; }
8209 { echo "$as_me:$LINENO: result: no" >&5
8210 echo "${ECHO_T}no" >&6; }
8214 # Extract the first word of "groff", so it can be a program name with args.
8215 set dummy groff; ac_word=$2
8216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8218 if test "${ac_cv_path_GROFF+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 GROFF=$ac_cv_path_GROFF
8245 if test -n "$GROFF"; then
8246 { echo "$as_me:$LINENO: result: $GROFF" >&5
8247 echo "${ECHO_T}$GROFF" >&6; }
8249 { echo "$as_me:$LINENO: result: no" >&5
8250 echo "${ECHO_T}no" >&6; }
8254 # Extract the first word of "gzip", so it can be a program name with args.
8255 set dummy gzip; ac_word=$2
8256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8258 if test "${ac_cv_path_GZIP+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 GZIP=$ac_cv_path_GZIP
8285 if test -n "$GZIP"; then
8286 { echo "$as_me:$LINENO: result: $GZIP" >&5
8287 echo "${ECHO_T}$GZIP" >&6; }
8289 { echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6; }
8294 # Extract the first word of "pod2html", so it can be a program name with args.
8295 set dummy pod2html; ac_word=$2
8296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298 if test "${ac_cv_path_POD2HTML+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8313 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 POD2HTML=$ac_cv_path_POD2HTML
8325 if test -n "$POD2HTML"; then
8326 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8327 echo "${ECHO_T}$POD2HTML" >&6; }
8329 { echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6; }
8334 # Extract the first word of "pod2man", so it can be a program name with args.
8335 set dummy pod2man; ac_word=$2
8336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8338 if test "${ac_cv_path_POD2MAN+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8353 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 POD2MAN=$ac_cv_path_POD2MAN
8365 if test -n "$POD2MAN"; then
8366 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8367 echo "${ECHO_T}$POD2MAN" >&6; }
8369 { echo "$as_me:$LINENO: result: no" >&5
8370 echo "${ECHO_T}no" >&6; }
8374 # Extract the first word of "pdfroff", so it can be a program name with args.
8375 set dummy pdfroff; ac_word=$2
8376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8378 if test "${ac_cv_path_PDFROFF+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 test -z "$as_dir" && as_dir=.
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8393 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 PDFROFF=$ac_cv_path_PDFROFF
8405 if test -n "$PDFROFF"; then
8406 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8407 echo "${ECHO_T}$PDFROFF" >&6; }
8409 { echo "$as_me:$LINENO: result: no" >&5
8410 echo "${ECHO_T}no" >&6; }
8414 # Extract the first word of "runtest", so it can be a program name with args.
8415 set dummy runtest; ac_word=$2
8416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8418 if test "${ac_cv_path_RUNTEST+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8433 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8444 RUNTEST=$ac_cv_path_RUNTEST
8445 if test -n "$RUNTEST"; then
8446 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8447 echo "${ECHO_T}$RUNTEST" >&6; }
8449 { echo "$as_me:$LINENO: result: no" >&5
8450 echo "${ECHO_T}no" >&6; }
8456 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8457 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8459 # Check whether --with-tclinclude was given.
8460 if test "${with_tclinclude+set}" = set; then
8461 withval=$with_tclinclude; with_tclinclude=${withval}
8466 if test "${ac_cv_path_tclsh+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 if test x"${with_tclinclude}" != x ; then
8471 if test -f ${with_tclinclude}/tclsh ; then
8472 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8473 elif test -f ${with_tclinclude}/src/tclsh ; then
8474 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8476 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8477 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8478 { (exit 1); exit 1; }; }
8484 if test x"${ac_cv_path_tclsh}" = x ; then
8485 { echo "$as_me:$LINENO: result: none" >&5
8486 echo "${ECHO_T}none" >&6; }
8487 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
8489 # Extract the first word of "$ac_prog", so it can be a program name with args.
8490 set dummy $ac_prog; ac_word=$2
8491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8493 if test "${ac_cv_path_TCLSH+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 test -z "$as_dir" && as_dir=.
8506 for ac_exec_ext in '' $ac_executable_extensions; do
8507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8508 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 TCLSH=$ac_cv_path_TCLSH
8520 if test -n "$TCLSH"; then
8521 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8522 echo "${ECHO_T}$TCLSH" >&6; }
8524 { echo "$as_me:$LINENO: result: no" >&5
8525 echo "${ECHO_T}no" >&6; }
8529 test -n "$TCLSH" && break
8532 if test x"${TCLSH}" = x ; then
8533 ac_cv_path_tclsh='';
8535 ac_cv_path_tclsh="${TCLSH}";
8538 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8539 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8540 TCLSH="${ac_cv_path_tclsh}"
8544 # Extract the first word of "zip", so it can be a program name with args.
8545 set dummy zip; ac_word=$2
8546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8548 if test "${ac_cv_path_ZIP+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8563 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8575 if test -n "$ZIP"; then
8576 { echo "$as_me:$LINENO: result: $ZIP" >&5
8577 echo "${ECHO_T}$ZIP" >&6; }
8579 { echo "$as_me:$LINENO: result: no" >&5
8580 echo "${ECHO_T}no" >&6; }
8584 for ac_prog in ocamlc
8586 # Extract the first word of "$ac_prog", so it can be a program name with args.
8587 set dummy $ac_prog; ac_word=$2
8588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8590 if test "${ac_cv_path_OCAMLC+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 test -z "$as_dir" && as_dir=.
8603 for ac_exec_ext in '' $ac_executable_extensions; do
8604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8605 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8616 OCAMLC=$ac_cv_path_OCAMLC
8617 if test -n "$OCAMLC"; then
8618 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8619 echo "${ECHO_T}$OCAMLC" >&6; }
8621 { echo "$as_me:$LINENO: result: no" >&5
8622 echo "${ECHO_T}no" >&6; }
8626 test -n "$OCAMLC" && break
8629 for ac_prog in ocamlopt
8631 # Extract the first word of "$ac_prog", so it can be a program name with args.
8632 set dummy $ac_prog; ac_word=$2
8633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8635 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 test -z "$as_dir" && as_dir=.
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8650 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 OCAMLOPT=$ac_cv_path_OCAMLOPT
8662 if test -n "$OCAMLOPT"; then
8663 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8664 echo "${ECHO_T}$OCAMLOPT" >&6; }
8666 { echo "$as_me:$LINENO: result: no" >&5
8667 echo "${ECHO_T}no" >&6; }
8671 test -n "$OCAMLOPT" && break
8674 for ac_prog in ocamldep
8676 # Extract the first word of "$ac_prog", so it can be a program name with args.
8677 set dummy $ac_prog; ac_word=$2
8678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8680 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 test -z "$as_dir" && as_dir=.
8693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8695 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 OCAMLDEP=$ac_cv_path_OCAMLDEP
8707 if test -n "$OCAMLDEP"; then
8708 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8709 echo "${ECHO_T}$OCAMLDEP" >&6; }
8711 { echo "$as_me:$LINENO: result: no" >&5
8712 echo "${ECHO_T}no" >&6; }
8716 test -n "$OCAMLDEP" && break
8719 for ac_prog in ocamldoc
8721 # Extract the first word of "$ac_prog", so it can be a program name with args.
8722 set dummy $ac_prog; ac_word=$2
8723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8725 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 test -z "$as_dir" && as_dir=.
8738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8740 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 OCAMLDOC=$ac_cv_path_OCAMLDOC
8752 if test -n "$OCAMLDOC"; then
8753 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8754 echo "${ECHO_T}$OCAMLDOC" >&6; }
8756 { echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6; }
8761 test -n "$OCAMLDOC" && break
8764 for ac_prog in gas as
8766 # Extract the first word of "$ac_prog", so it can be a program name with args.
8767 set dummy $ac_prog; ac_word=$2
8768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8770 if test "${ac_cv_path_GAS+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782 test -z "$as_dir" && as_dir=.
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8785 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 if test -n "$GAS"; then
8798 { echo "$as_me:$LINENO: result: $GAS" >&5
8799 echo "${ECHO_T}$GAS" >&6; }
8801 { echo "$as_me:$LINENO: result: no" >&5
8802 echo "${ECHO_T}no" >&6; }
8806 test -n "$GAS" && break
8810 { echo "$as_me:$LINENO: checking for linker version" >&5
8811 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8812 if test "${llvm_cv_link_version+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 version_string="$(ld -v 2>&1 | head -1)"
8819 if (echo "$version_string" | grep -q "ld64"); then
8820 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8822 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8826 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8827 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8829 cat >>confdefs.h <<_ACEOF
8830 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8835 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8836 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8837 if test "${llvm_cv_link_use_r+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 ac_cpp='$CPP $CPPFLAGS'
8842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8847 CFLAGS="$CFLAGS -Wl,-R."
8848 cat >conftest.$ac_ext <<_ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8863 rm -f conftest.$ac_objext conftest$ac_exeext
8864 if { (ac_try="$ac_link"
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_link") 2>conftest.er1
8872 grep -v '^ *+' conftest.er1 >conftest.err
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } &&
8877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8878 { (case "(($ac_try" in
8879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8880 *) ac_try_echo=$ac_try;;
8882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8883 (eval "$ac_try") 2>&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; } &&
8887 { ac_try='test -s conftest$ac_exeext'
8888 { (case "(($ac_try" in
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893 (eval "$ac_try") 2>&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; }; then
8897 llvm_cv_link_use_r=yes
8899 echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8902 llvm_cv_link_use_r=no
8905 rm -f core conftest.err conftest.$ac_objext \
8906 conftest$ac_exeext conftest.$ac_ext
8909 ac_cpp='$CPP $CPPFLAGS'
8910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8916 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8917 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8918 if test "$llvm_cv_link_use_r" = yes ; then
8920 cat >>confdefs.h <<\_ACEOF
8921 #define HAVE_LINK_R 1
8927 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8928 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8929 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 ac_cpp='$CPP $CPPFLAGS'
8934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8939 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8940 cat >conftest.$ac_ext <<_ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (ac_try="$ac_link"
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_link") 2>conftest.er1
8964 grep -v '^ *+' conftest.er1 >conftest.err
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970 { (case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_try") 2>&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 llvm_cv_link_use_export_dynamic=yes
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 llvm_cv_link_use_export_dynamic=no
8997 rm -f core conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
9001 ac_cpp='$CPP $CPPFLAGS'
9002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9009 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9010 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9012 cat >>confdefs.h <<\_ACEOF
9013 #define HAVE_LINK_EXPORT_DYNAMIC 1
9019 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9020 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9021 if test "${llvm_cv_link_use_version_script+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 ac_cpp='$CPP $CPPFLAGS'
9026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9032 # The following code is from the autoconf manual,
9033 # "11.13: Limitations of Usual Tools".
9034 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9035 # Use mktemp if possible; otherwise fall back on mkdir,
9036 # with $RANDOM to make collisions less likely.
9040 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9042 test -n "$tmp" && test -d "$tmp"
9044 tmp=$TMPDIR/foo$$-$RANDOM
9045 (umask 077 && mkdir "$tmp")
9048 echo "{" > "$tmp/export.map"
9049 echo " global: main;" >> "$tmp/export.map"
9050 echo " local: *;" >> "$tmp/export.map"
9051 echo "};" >> "$tmp/export.map"
9053 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9054 cat >conftest.$ac_ext <<_ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9069 rm -f conftest.$ac_objext conftest$ac_exeext
9070 if { (ac_try="$ac_link"
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_link") 2>conftest.er1
9078 grep -v '^ *+' conftest.er1 >conftest.err
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9084 { (case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_try") 2>&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; } &&
9093 { ac_try='test -s conftest$ac_exeext'
9094 { (case "(($ac_try" in
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_try") 2>&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
9103 llvm_cv_link_use_version_script=yes
9105 echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9108 llvm_cv_link_use_version_script=no
9111 rm -f core conftest.err conftest.$ac_objext \
9112 conftest$ac_exeext conftest.$ac_ext
9113 rm "$tmp/export.map"
9117 ac_cpp='$CPP $CPPFLAGS'
9118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9124 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9125 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9126 if test "$llvm_cv_link_use_version_script" = yes ; then
9127 HAVE_LINK_VERSION_SCRIPT=1
9134 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9135 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9136 if test "${ac_cv_c_const+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9139 cat >conftest.$ac_ext <<_ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9149 /* FIXME: Include the comments suggested by Paul. */
9151 /* Ultrix mips cc rejects this. */
9152 typedef int charset[2];
9154 /* SunOS 4.1.1 cc rejects this. */
9155 char const *const *ccp;
9157 /* NEC SVR4.0.2 mips cc rejects this. */
9158 struct point {int x, y;};
9159 static struct point const zero = {0,0};
9160 /* AIX XL C 1.02.0.0 rejects this.
9161 It does not let you subtract one const X* pointer from another in
9162 an arm of an if-expression whose if-part is not a constant
9164 const char *g = "string";
9165 ccp = &g + (g ? g-g : 0);
9166 /* HPUX 7.0 cc rejects these. */
9169 ccp = (char const *const *) p;
9170 { /* SCO 3.2v4 cc rejects this. */
9172 char const *s = 0 ? (char *) 0 : (char const *) 0;
9177 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9179 const int *foo = &x[0];
9182 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9183 typedef const int *iptr;
9187 { /* AIX XL C 1.02.0.0 rejects this saying
9188 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9189 struct s { int j; const int *ap[3]; };
9190 struct s *b; b->j = 5;
9192 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9196 return !x[0] && !zero.x;
9203 rm -f conftest.$ac_objext
9204 if { (ac_try="$ac_compile"
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_compile") 2>conftest.er1
9212 grep -v '^ *+' conftest.er1 >conftest.err
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9218 { (case "(($ac_try" in
9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_try") 2>&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_try") 2>&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9248 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9249 if test $ac_cv_c_const = no; then
9251 cat >>confdefs.h <<\_ACEOF
9263 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9264 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9265 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9266 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 cat >conftest.$ac_ext <<_ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h. */
9276 #include <sys/types.h>
9288 rm -f conftest.$ac_objext
9289 if { (ac_try="$ac_compile"
9291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9292 *) ac_try_echo=$ac_try;;
9294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9295 (eval "$ac_compile") 2>conftest.er1
9297 grep -v '^ *+' conftest.er1 >conftest.err
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9303 { (case "(($ac_try" in
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_try") 2>&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; } &&
9312 { ac_try='test -s conftest.$ac_objext'
9313 { (case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_try") 2>&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 eval "$as_ac_Header=yes"
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 eval "$as_ac_Header=no"
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332 ac_res=`eval echo '${'$as_ac_Header'}'`
9333 { echo "$as_me:$LINENO: result: $ac_res" >&5
9334 echo "${ECHO_T}$ac_res" >&6; }
9335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9336 cat >>confdefs.h <<_ACEOF
9337 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9340 ac_header_dirent=$ac_hdr; break
9344 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9345 if test $ac_header_dirent = dirent.h; then
9346 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9347 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9348 if test "${ac_cv_search_opendir+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 ac_func_search_save_LIBS=$LIBS
9352 cat >conftest.$ac_ext <<_ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9359 /* Override any GCC internal prototype to avoid an error.
9360 Use char because int might match the return type of a GCC
9361 builtin and then its argument prototype would still apply. */
9374 for ac_lib in '' dir; do
9375 if test -z "$ac_lib"; then
9376 ac_res="none required"
9379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (ac_try="$ac_link"
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_link") 2>conftest.er1
9390 grep -v '^ *+' conftest.er1 >conftest.err
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
9395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9396 { (case "(($ac_try" in
9397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_try") 2>&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try='test -s conftest$ac_exeext'
9406 { (case "(($ac_try" in
9407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9408 *) ac_try_echo=$ac_try;;
9410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9411 (eval "$ac_try") 2>&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415 ac_cv_search_opendir=$ac_res
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9423 rm -f core conftest.err conftest.$ac_objext \
9425 if test "${ac_cv_search_opendir+set}" = set; then
9429 if test "${ac_cv_search_opendir+set}" = set; then
9432 ac_cv_search_opendir=no
9435 LIBS=$ac_func_search_save_LIBS
9437 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9438 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9439 ac_res=$ac_cv_search_opendir
9440 if test "$ac_res" != no; then
9441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9446 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9447 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9448 if test "${ac_cv_search_opendir+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 ac_func_search_save_LIBS=$LIBS
9452 cat >conftest.$ac_ext <<_ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9459 /* Override any GCC internal prototype to avoid an error.
9460 Use char because int might match the return type of a GCC
9461 builtin and then its argument prototype would still apply. */
9474 for ac_lib in '' x; do
9475 if test -z "$ac_lib"; then
9476 ac_res="none required"
9479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9481 rm -f conftest.$ac_objext conftest$ac_exeext
9482 if { (ac_try="$ac_link"
9484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485 *) ac_try_echo=$ac_try;;
9487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488 (eval "$ac_link") 2>conftest.er1
9490 grep -v '^ *+' conftest.er1 >conftest.err
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9496 { (case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_try") 2>&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; } &&
9505 { ac_try='test -s conftest$ac_exeext'
9506 { (case "(($ac_try" in
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_try") 2>&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; }; then
9515 ac_cv_search_opendir=$ac_res
9517 echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9523 rm -f core conftest.err conftest.$ac_objext \
9525 if test "${ac_cv_search_opendir+set}" = set; then
9529 if test "${ac_cv_search_opendir+set}" = set; then
9532 ac_cv_search_opendir=no
9535 LIBS=$ac_func_search_save_LIBS
9537 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9538 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9539 ac_res=$ac_cv_search_opendir
9540 if test "$ac_res" != no; then
9541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9548 for ac_header in dlfcn.h
9550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 ac_res=`eval echo '${'$as_ac_Header'}'`
9558 { echo "$as_me:$LINENO: result: $ac_res" >&5
9559 echo "${ECHO_T}$ac_res" >&6; }
9561 # Is the header compilable?
9562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9564 cat >conftest.$ac_ext <<_ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 $ac_includes_default
9571 #include <$ac_header>
9573 rm -f conftest.$ac_objext
9574 if { (ac_try="$ac_compile"
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_compile") 2>conftest.er1
9582 grep -v '^ *+' conftest.er1 >conftest.err
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9588 { (case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_try") 2>&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest.$ac_objext'
9598 { (case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_try") 2>&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_header_compiler=yes
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 ac_header_compiler=no
9615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9617 echo "${ECHO_T}$ac_header_compiler" >&6; }
9619 # Is the header present?
9620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9622 cat >conftest.$ac_ext <<_ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9628 #include <$ac_header>
9630 if { (ac_try="$ac_cpp conftest.$ac_ext"
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9638 grep -v '^ *+' conftest.er1 >conftest.err
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } >/dev/null; then
9643 if test -s conftest.err; then
9644 ac_cpp_err=$ac_c_preproc_warn_flag
9645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9652 if test -z "$ac_cpp_err"; then
9653 ac_header_preproc=yes
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9658 ac_header_preproc=no
9661 rm -f conftest.err conftest.$ac_ext
9662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9663 echo "${ECHO_T}$ac_header_preproc" >&6; }
9665 # So? What about this header?
9666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9672 ac_header_preproc=yes
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9688 ## ----------------------------------- ##
9689 ## Report this to llvmbugs@cs.uiuc.edu ##
9690 ## ----------------------------------- ##
9692 ) | sed "s/^/$as_me: WARNING: /" >&2
9695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 eval "$as_ac_Header=\$ac_header_preproc"
9702 ac_res=`eval echo '${'$as_ac_Header'}'`
9703 { echo "$as_me:$LINENO: result: $ac_res" >&5
9704 echo "${ECHO_T}$ac_res" >&6; }
9707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9708 cat >>confdefs.h <<_ACEOF
9709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9716 # Check whether --enable-ltdl-install was given.
9717 if test "${enable_ltdl_install+set}" = set; then
9718 enableval=$enable_ltdl_install;
9724 if test x"${enable_ltdl_install-no}" != xno; then
9726 INSTALL_LTDL_FALSE='#'
9728 INSTALL_LTDL_TRUE='#'
9734 if test x"${enable_ltdl_convenience-no}" != xno; then
9735 CONVENIENCE_LTDL_TRUE=
9736 CONVENIENCE_LTDL_FALSE='#'
9738 CONVENIENCE_LTDL_TRUE='#'
9739 CONVENIENCE_LTDL_FALSE=
9743 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9744 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9746 libname_spec='lib$name'
9754 shlibpath_overrides_runpath=unknown
9756 dynamic_linker="$host_os ld.so"
9757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9758 if test "$GCC" = yes; then
9759 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9760 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9761 # if the path contains ";" then we assume it to be the separator
9762 # otherwise default to the standard path separator (i.e. ":") - it is
9763 # assumed that no part of a normal pathname contains ";" but that should
9764 # okay in the real world where ";" in dirpaths is itself problematic.
9765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9770 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9772 need_lib_prefix=unknown
9773 hardcode_into_libs=no
9775 # when you set need_version to no, make sure it does not cause -set_version
9776 # flags to be left without arguments
9777 need_version=unknown
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9783 shlibpath_var=LIBPATH
9785 # AIX 3 has no versioning support, so we append a major version to the name.
9786 soname_spec='${libname}${release}${shared_ext}$major'
9793 hardcode_into_libs=yes
9794 if test "$host_cpu" = ia64; then
9795 # AIX 5 supports IA64
9796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9797 shlibpath_var=LD_LIBRARY_PATH
9799 # With GCC up to 2.95.x, collect2 would create an import file
9800 # for dependence libraries. The import file would start with
9801 # the line `#! .'. This would cause the generated library to
9802 # depend on `.', always an invalid library. This was fixed in
9803 # development snapshots of GCC prior to 3.0.
9805 aix4 | aix4.[01] | aix4.[01].*)
9806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9808 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9816 # soname into executable. Probably we can add versioning support to
9817 # collect2, so additional links can be useful in future.
9818 if test "$aix_use_runtimelinking" = yes; then
9819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9820 # instead of lib<name>.a to let people know that these are not
9821 # typical AIX shared libraries.
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9824 # We preserve .a as extension for shared libraries through AIX4.2
9825 # and later when we are not doing run time linking.
9826 library_names_spec='${libname}${release}.a $libname.a'
9827 soname_spec='${libname}${release}${shared_ext}$major'
9829 shlibpath_var=LIBPATH
9834 library_names_spec='$libname.ixlibrary $libname.a'
9835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9836 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'
9840 library_names_spec='${libname}${shared_ext}'
9841 dynamic_linker="$host_os ld.so"
9842 shlibpath_var=LIBRARY_PATH
9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9851 shlibpath_var=LD_LIBRARY_PATH
9852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9854 # the default ld.so.conf also contains /usr/contrib/lib and
9855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9856 # libtool to hard-code these into programs
9859 cygwin* | mingw* | pw32*)
9860 version_type=windows
9865 case $GCC,$host_os in
9866 yes,cygwin* | yes,mingw* | yes,pw32*)
9867 library_names_spec='$libname.dll.a'
9868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9869 postinstall_cmds='base_file=`basename \${file}`~
9870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9871 dldir=$destdir/`dirname \$dlpath`~
9872 test -d \$dldir || mkdir -p \$dldir~
9873 $install_prog $dir/$dlname \$dldir/$dlname~
9874 chmod a+x \$dldir/$dlname'
9875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9876 dlpath=$dir/\$dldll~
9878 shlibpath_overrides_runpath=yes
9882 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9883 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9884 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9887 # MinGW DLLs use traditional 'lib' prefix
9888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9889 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9890 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9891 # It is most probably a Windows format PATH printed by
9892 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9893 # path with ; separators, and with drive letters. We can handle the
9894 # drive letters (cygwin fileutils understands them), so leave them,
9895 # especially as we might pass files found there to a mingw objdump,
9896 # which wouldn't understand a cygwinified path. Ahh.
9897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9903 # pw32 DLLs use 'pw' prefix rather than 'lib'
9904 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9913 dynamic_linker='Win32 ld.exe'
9914 # FIXME: first we should search . and the directory the executable is in
9918 darwin* | rhapsody*)
9919 dynamic_linker="$host_os dyld"
9923 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9924 soname_spec='${libname}${release}${major}$shared_ext'
9925 shlibpath_overrides_runpath=yes
9926 shlibpath_var=DYLD_LIBRARY_PATH
9927 shrext_cmds='.dylib'
9928 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9929 if test "$GCC" = yes; then
9930 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"`
9932 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9942 soname_spec='${libname}${release}${shared_ext}$major'
9943 shlibpath_var=LD_LIBRARY_PATH
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 shlibpath_var=LD_LIBRARY_PATH
9957 shlibpath_overrides_runpath=no
9958 hardcode_into_libs=yes
9959 dynamic_linker='GNU ld.so'
9962 freebsd* | dragonfly*)
9963 # DragonFly does not have aout. When/if they implement a new
9964 # versioning mechanism, adjust this.
9965 if test -x /usr/bin/objformat; then
9966 objformat=`/usr/bin/objformat`
9969 freebsd[123]*) objformat=aout ;;
9973 version_type=freebsd-$objformat
9974 case $version_type in
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9985 shlibpath_var=LD_LIBRARY_PATH
9988 shlibpath_overrides_runpath=yes
9990 freebsd3.[01]* | freebsdelf3.[01]*)
9991 shlibpath_overrides_runpath=yes
9992 hardcode_into_libs=yes
9994 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9995 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9996 shlibpath_overrides_runpath=no
9997 hardcode_into_libs=yes
9999 freebsd*) # from 4.6 on
10000 shlibpath_overrides_runpath=yes
10001 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
10013 hardcode_into_libs=yes
10016 hpux9* | hpux10* | hpux11*)
10017 # Give a soname corresponding to the major version so that dld.sl refuses to
10018 # link against other versions.
10025 hardcode_into_libs=yes
10026 dynamic_linker="$host_os dld.so"
10027 shlibpath_var=LD_LIBRARY_PATH
10028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 if test "X$HPUX_IA64_MODE" = X32; then
10032 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10040 hardcode_into_libs=yes
10041 dynamic_linker="$host_os dld.sl"
10042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10051 dynamic_linker="$host_os dld.sl"
10052 shlibpath_var=SHLIB_PATH
10053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055 soname_spec='${libname}${release}${shared_ext}$major'
10058 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10059 postinstall_cmds='chmod 555 $lib'
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10067 soname_spec='${libname}${release}${shared_ext}$major'
10068 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10069 shlibpath_var=LD_LIBRARY_PATH
10070 shlibpath_overrides_runpath=no
10071 hardcode_into_libs=yes
10074 irix5* | irix6* | nonstopux*)
10076 nonstopux*) version_type=nonstopux ;;
10078 if test "$lt_cv_prog_gnu_ld" = yes; then
10086 soname_spec='${libname}${release}${shared_ext}$major'
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10089 irix5* | nonstopux*)
10090 libsuff= shlibsuff=
10093 case $LD in # libtool.m4 will add one of these switches to LD
10094 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10095 libsuff= shlibsuff= libmagic=32-bit;;
10096 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10097 libsuff=32 shlibsuff=N32 libmagic=N32;;
10098 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10099 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10100 *) libsuff= shlibsuff= libmagic=never-match;;
10104 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10105 shlibpath_overrides_runpath=no
10106 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10107 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10108 hardcode_into_libs=yes
10111 # No shared lib support for Linux oldld, aout, or coff.
10112 linux*oldld* | linux*aout* | linux*coff*)
10116 # This must be Linux ELF.
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 soname_spec='${libname}${release}${shared_ext}$major'
10123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10124 shlibpath_var=LD_LIBRARY_PATH
10125 shlibpath_overrides_runpath=no
10126 # This implies no fast_install, which is unacceptable.
10127 # Some rework will be needed to allow for fast_install
10128 # before this can be enabled.
10129 hardcode_into_libs=yes
10131 # Append ld.so.conf contents to the search path
10132 if test -f /etc/ld.so.conf; then
10133 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' ' '`
10134 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10137 # We used to test for /lib/ld.so.1 and disable shared libraries on
10138 # powerpc, because MkLinux only supported shared libraries with the
10139 # GNU dynamic linker. Since this was broken with cross compilers,
10140 # most powerpc-linux boxes support dynamic linking these days and
10141 # people can always --disable-shared, the test was removed, and we
10142 # assume the GNU/Linux dynamic linker is in use.
10143 dynamic_linker='GNU/Linux ld.so'
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10151 soname_spec='${libname}${release}${shared_ext}$major'
10152 shlibpath_var=LD_LIBRARY_PATH
10153 shlibpath_overrides_runpath=no
10154 hardcode_into_libs=yes
10155 dynamic_linker='GNU ld.so'
10162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10165 dynamic_linker='NetBSD (a.out) ld.so'
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10168 soname_spec='${libname}${release}${shared_ext}$major'
10169 dynamic_linker='NetBSD ld.elf_so'
10171 shlibpath_var=LD_LIBRARY_PATH
10172 shlibpath_overrides_runpath=yes
10173 hardcode_into_libs=yes
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 shlibpath_overrides_runpath=yes
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 shlibpath_overrides_runpath=yes
10195 sys_lib_dlsearch_path_spec="/usr/lib"
10197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10199 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10200 *) need_version=no ;;
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10207 openbsd2.[89] | openbsd2.[89].*)
10208 shlibpath_overrides_runpath=no
10211 shlibpath_overrides_runpath=yes
10215 shlibpath_overrides_runpath=yes
10220 libname_spec='$name'
10223 library_names_spec='$libname${shared_ext} $libname.a'
10224 dynamic_linker='OS/2 ld.exe'
10225 shlibpath_var=LIBPATH
10228 osf3* | osf4* | osf5*)
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 shlibpath_overrides_runpath=yes
10247 hardcode_into_libs=yes
10248 # ldd complains unless libraries are executable
10249 postinstall_cmds='chmod +x $lib'
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=yes
10258 if test "$with_gnu_ld" = yes; then
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 case $host_vendor in
10271 shlibpath_overrides_runpath=no
10273 export_dynamic_flag_spec='${wl}-Blargedynsym'
10274 runpath_var=LD_RUN_PATH
10282 shlibpath_overrides_runpath=no
10283 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10289 if test -d /usr/nec ;then
10291 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10292 soname_spec='$libname${shared_ext}.$major'
10293 shlibpath_var=LD_LIBRARY_PATH
10297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10298 version_type=freebsd-elf
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 hardcode_into_libs=yes
10305 if test "$with_gnu_ld" = yes; then
10306 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10307 shlibpath_overrides_runpath=no
10309 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10310 shlibpath_overrides_runpath=yes
10313 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10317 sys_lib_dlsearch_path_spec='/usr/lib'
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 shlibpath_var=LD_LIBRARY_PATH
10331 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10332 echo "${ECHO_T}$dynamic_linker" >&6; }
10333 test "$dynamic_linker" = no && can_build_shared=no
10335 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10336 if test "$GCC" = yes; then
10337 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10341 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10342 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10343 if test "${libltdl_cv_shlibext+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10348 eval libltdl_cv_shlibext=$shrext_cmds
10351 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10352 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10353 if test -n "$libltdl_cv_shlibext"; then
10355 cat >>confdefs.h <<_ACEOF
10356 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10362 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10363 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10364 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 libltdl_cv_shlibpath_var="$shlibpath_var"
10369 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10370 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10371 if test -n "$libltdl_cv_shlibpath_var"; then
10373 cat >>confdefs.h <<_ACEOF
10374 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10380 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10381 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10382 if test "${libltdl_cv_sys_search_path+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10387 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10388 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10389 if test -n "$libltdl_cv_sys_search_path"; then
10391 for dir in $libltdl_cv_sys_search_path; do
10392 if test -z "$sys_search_path"; then
10393 sys_search_path="$dir"
10395 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10399 cat >>confdefs.h <<_ACEOF
10400 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10405 { echo "$as_me:$LINENO: checking for objdir" >&5
10406 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10407 if test "${libltdl_cv_objdir+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 libltdl_cv_objdir="$objdir"
10411 if test -n "$objdir"; then
10414 rm -f .libs 2>/dev/null
10415 mkdir .libs 2>/dev/null
10416 if test -d .libs; then
10417 libltdl_cv_objdir=.libs
10419 # MS-DOS does not allow filenames that begin with a dot.
10420 libltdl_cv_objdir=_libs
10422 rmdir .libs 2>/dev/null
10426 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10427 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10429 cat >>confdefs.h <<_ACEOF
10430 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10438 # Check for command to grab the raw symbol name followed by C symbol from nm.
10439 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10440 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10441 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 # These are sane defaults that work on at least a few old systems.
10446 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10448 # Character class describing NM global symbol codes.
10449 symcode='[BCDEGRST]'
10451 # Regexp to match symbols that can be accessed directly from C.
10452 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10454 # Transform an extracted symbol line into a proper C declaration
10455 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10457 # Transform an extracted symbol line into symbol name and symbol address
10458 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'"
10460 # Define system-specific variables.
10465 cygwin* | mingw* | pw32*)
10466 symcode='[ABCDGISTW]'
10468 hpux*) # Its linker distinguishes data from code symbols
10469 if test "$host_cpu" = ia64; then
10470 symcode='[ABCDEGRST]'
10472 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10473 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'"
10476 if test "$host_cpu" = ia64; then
10477 symcode='[ABCDGIRSTW]'
10478 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10479 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'"
10482 irix* | nonstopux*)
10483 symcode='[BCDEGRST]'
10486 symcode='[BCDEGQRST]'
10497 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10505 # Handle CRLF in mingw tool chain
10509 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10513 # If we're using GNU nm, then use its standard symbol codes.
10514 case `$NM -V 2>&1` in
10515 *GNU* | *'with BFD'*)
10516 symcode='[ABCDGIRSTW]' ;;
10519 # Try without a prefix undercore, then with it.
10520 for ac_symprfx in "" "_"; do
10522 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10523 symxfrm="\\1 $ac_symprfx\\2 \\2"
10525 # Write the raw and C identifiers.
10526 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10528 # Check to see that the pipe works correctly.
10532 cat > conftest.$ac_ext <<EOF
10537 void nm_test_func(){}
10541 int main(){nm_test_var='a';nm_test_func();return(0);}
10544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10545 (eval $ac_compile) 2>&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; then
10549 # Now try to grab the symbols.
10551 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10552 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && test -s "$nlist"; then
10556 # Try sorting and uniquifying the output.
10557 if sort "$nlist" | uniq > "$nlist"T; then
10558 mv -f "$nlist"T "$nlist"
10563 # Make sure that we snagged all the symbols we need.
10564 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10565 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10566 cat <<EOF > conftest.$ac_ext
10572 # Now generate the symbol file.
10573 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10575 cat <<EOF >> conftest.$ac_ext
10576 #if defined (__STDC__) && __STDC__
10577 # define lt_ptr_t void *
10579 # define lt_ptr_t char *
10583 /* The mapping between symbol names and symbols. */
10588 lt_preloaded_symbols[] =
10591 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10592 cat <<\EOF >> conftest.$ac_ext
10600 # Now try linking the two files.
10601 mv conftest.$ac_objext conftstm.$ac_objext
10602 lt_save_LIBS="$LIBS"
10603 lt_save_CFLAGS="$CFLAGS"
10604 LIBS="conftstm.$ac_objext"
10605 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10607 (eval $ac_link) 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10613 LIBS="$lt_save_LIBS"
10614 CFLAGS="$lt_save_CFLAGS"
10616 echo "cannot find nm_test_func in $nlist" >&5
10619 echo "cannot find nm_test_var in $nlist" >&5
10622 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10625 echo "$progname: failed program was:" >&5
10626 cat conftest.$ac_ext >&5
10628 rm -f conftest* conftst*
10630 # Do not use the global_symbol_pipe unless it works.
10631 if test "$pipe_works" = yes; then
10634 lt_cv_sys_global_symbol_pipe=
10640 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10641 lt_cv_sys_global_symbol_to_cdecl=
10643 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10644 { echo "$as_me:$LINENO: result: failed" >&5
10645 echo "${ECHO_T}failed" >&6; }
10647 { echo "$as_me:$LINENO: result: ok" >&5
10648 echo "${ECHO_T}ok" >&6; }
10652 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10653 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10654 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10657 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10658 libltdl_cv_preloaded_symbols=yes
10660 libltdl_cv_preloaded_symbols=no
10664 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10665 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10666 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10668 cat >>confdefs.h <<\_ACEOF
10669 #define HAVE_PRELOADED_SYMBOLS 1
10677 ac_cpp='$CPP $CPPFLAGS'
10678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10683 { echo "$as_me:$LINENO: checking for shl_load" >&5
10684 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10685 if test "${ac_cv_func_shl_load+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 cat >conftest.$ac_ext <<_ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10696 #define shl_load innocuous_shl_load
10698 /* System header to define __stub macros and hopefully few prototypes,
10699 which can conflict with char shl_load (); below.
10700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10701 <limits.h> exists even on freestanding compilers. */
10704 # include <limits.h>
10706 # include <assert.h>
10711 /* Override any GCC internal prototype to avoid an error.
10712 Use char because int might match the return type of a GCC
10713 builtin and then its argument prototype would still apply. */
10718 /* The GNU C library defines this for functions which it implements
10719 to always fail with ENOSYS. Some functions are actually named
10720 something starting with __ and the normal name is an alias. */
10721 #if defined __stub_shl_load || defined __stub___shl_load
10728 return shl_load ();
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (ac_try="$ac_link"
10735 case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_link") 2>conftest.er1
10742 grep -v '^ *+' conftest.er1 >conftest.err
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
10747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10748 { (case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753 (eval "$ac_try") 2>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; } &&
10757 { ac_try='test -s conftest$ac_exeext'
10758 { (case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_try") 2>&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 ac_cv_func_shl_load=yes
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10772 ac_cv_func_shl_load=no
10775 rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
10778 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10779 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10780 if test $ac_cv_func_shl_load = yes; then
10782 cat >>confdefs.h <<\_ACEOF
10783 #define HAVE_SHL_LOAD 1
10787 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10788 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10789 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 ac_check_lib_save_LIBS=$LIBS
10794 cat >conftest.$ac_ext <<_ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10801 /* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10811 return shl_load ();
10816 rm -f conftest.$ac_objext conftest$ac_exeext
10817 if { (ac_try="$ac_link"
10818 case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_link") 2>conftest.er1
10825 grep -v '^ *+' conftest.er1 >conftest.err
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } &&
10830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10831 { (case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_try") 2>&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; } &&
10840 { ac_try='test -s conftest$ac_exeext'
10841 { (case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_try") 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10850 ac_cv_lib_dld_shl_load=yes
10852 echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 ac_cv_lib_dld_shl_load=no
10858 rm -f core conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10862 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10863 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10864 if test $ac_cv_lib_dld_shl_load = yes; then
10866 cat >>confdefs.h <<\_ACEOF
10867 #define HAVE_SHL_LOAD 1
10870 LIBADD_DL="$LIBADD_DL -ldld"
10872 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10873 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10874 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10877 ac_check_lib_save_LIBS=$LIBS
10879 cat >conftest.$ac_ext <<_ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10886 /* Override any GCC internal prototype to avoid an error.
10887 Use char because int might match the return type of a GCC
10888 builtin and then its argument prototype would still apply. */
10901 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (ac_try="$ac_link"
10903 case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_link") 2>conftest.er1
10910 grep -v '^ *+' conftest.er1 >conftest.err
10912 cat conftest.err >&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); } &&
10915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10916 { (case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_try") 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try='test -s conftest$ac_exeext'
10926 { (case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_try") 2>&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
10935 ac_cv_lib_dl_dlopen=yes
10937 echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10940 ac_cv_lib_dl_dlopen=no
10943 rm -f core conftest.err conftest.$ac_objext \
10944 conftest$ac_exeext conftest.$ac_ext
10945 LIBS=$ac_check_lib_save_LIBS
10947 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10949 if test $ac_cv_lib_dl_dlopen = yes; then
10951 cat >>confdefs.h <<\_ACEOF
10952 #define HAVE_LIBDL 1
10955 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10957 cat >conftest.$ac_ext <<_ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10964 # include <dlfcn.h>
10975 rm -f conftest.$ac_objext conftest$ac_exeext
10976 if { (ac_try="$ac_link"
10977 case "(($ac_try" in
10978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 *) ac_try_echo=$ac_try;;
10981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982 (eval "$ac_link") 2>conftest.er1
10984 grep -v '^ *+' conftest.er1 >conftest.err
10986 cat conftest.err >&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } &&
10989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10990 { (case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_try") 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; } &&
10999 { ac_try='test -s conftest$ac_exeext'
11000 { (case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_try") 2>&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11010 cat >>confdefs.h <<\_ACEOF
11011 #define HAVE_LIBDL 1
11013 libltdl_cv_func_dlopen="yes"
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11018 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11019 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11020 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11023 ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-lsvld $LIBS"
11025 cat >conftest.$ac_ext <<_ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11032 /* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (ac_try="$ac_link"
11049 case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054 (eval "$ac_link") 2>conftest.er1
11056 grep -v '^ *+' conftest.er1 >conftest.err
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11062 { (case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_try") 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest$ac_exeext'
11072 { (case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_try") 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 ac_cv_lib_svld_dlopen=yes
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ac_cv_lib_svld_dlopen=no
11089 rm -f core conftest.err conftest.$ac_objext \
11090 conftest$ac_exeext conftest.$ac_ext
11091 LIBS=$ac_check_lib_save_LIBS
11093 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11094 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11095 if test $ac_cv_lib_svld_dlopen = yes; then
11097 cat >>confdefs.h <<\_ACEOF
11098 #define HAVE_LIBDL 1
11101 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11103 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11104 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11105 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 ac_check_lib_save_LIBS=$LIBS
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11117 /* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11127 return dld_link ();
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (ac_try="$ac_link"
11134 case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_link") 2>conftest.er1
11141 grep -v '^ *+' conftest.er1 >conftest.err
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
11146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11147 { (case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_try") 2>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; } &&
11156 { ac_try='test -s conftest$ac_exeext'
11157 { (case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_try") 2>&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 ac_cv_lib_dld_dld_link=yes
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11171 ac_cv_lib_dld_dld_link=no
11174 rm -f core conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176 LIBS=$ac_check_lib_save_LIBS
11178 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11179 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11180 if test $ac_cv_lib_dld_dld_link = yes; then
11182 cat >>confdefs.h <<\_ACEOF
11186 LIBADD_DL="$LIBADD_DL -ldld"
11188 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11189 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11190 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 cat >conftest.$ac_ext <<_ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11201 #define _dyld_func_lookup innocuous__dyld_func_lookup
11203 /* System header to define __stub macros and hopefully few prototypes,
11204 which can conflict with char _dyld_func_lookup (); below.
11205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11206 <limits.h> exists even on freestanding compilers. */
11209 # include <limits.h>
11211 # include <assert.h>
11214 #undef _dyld_func_lookup
11216 /* Override any GCC internal prototype to avoid an error.
11217 Use char because int might match the return type of a GCC
11218 builtin and then its argument prototype would still apply. */
11222 char _dyld_func_lookup ();
11223 /* The GNU C library defines this for functions which it implements
11224 to always fail with ENOSYS. Some functions are actually named
11225 something starting with __ and the normal name is an alias. */
11226 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11233 return _dyld_func_lookup ();
11238 rm -f conftest.$ac_objext conftest$ac_exeext
11239 if { (ac_try="$ac_link"
11240 case "(($ac_try" in
11241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242 *) ac_try_echo=$ac_try;;
11244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11245 (eval "$ac_link") 2>conftest.er1
11247 grep -v '^ *+' conftest.er1 >conftest.err
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11253 { (case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_try") 2>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; } &&
11262 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; }; then
11272 ac_cv_func__dyld_func_lookup=yes
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 ac_cv_func__dyld_func_lookup=no
11280 rm -f core conftest.err conftest.$ac_objext \
11281 conftest$ac_exeext conftest.$ac_ext
11283 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11284 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11285 if test $ac_cv_func__dyld_func_lookup = yes; then
11287 cat >>confdefs.h <<\_ACEOF
11288 #define HAVE_DYLD 1
11302 rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
11314 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11316 lt_save_LIBS="$LIBS"
11317 LIBS="$LIBS $LIBADD_DL"
11319 for ac_func in dlerror
11321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 cat >conftest.$ac_ext <<_ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11335 #define $ac_func innocuous_$ac_func
11337 /* System header to define __stub macros and hopefully few prototypes,
11338 which can conflict with char $ac_func (); below.
11339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11340 <limits.h> exists even on freestanding compilers. */
11343 # include <limits.h>
11345 # include <assert.h>
11350 /* Override any GCC internal prototype to avoid an error.
11351 Use char because int might match the return type of a GCC
11352 builtin and then its argument prototype would still apply. */
11357 /* The GNU C library defines this for functions which it implements
11358 to always fail with ENOSYS. Some functions are actually named
11359 something starting with __ and the normal name is an alias. */
11360 #if defined __stub_$ac_func || defined __stub___$ac_func
11367 return $ac_func ();
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (ac_try="$ac_link"
11374 case "(($ac_try" in
11375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379 (eval "$ac_link") 2>conftest.er1
11381 grep -v '^ *+' conftest.er1 >conftest.err
11383 cat conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
11386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11387 { (case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_try") 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; } &&
11396 { ac_try='test -s conftest$ac_exeext'
11397 { (case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_try") 2>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 eval "$as_ac_var=yes"
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11411 eval "$as_ac_var=no"
11414 rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11417 ac_res=`eval echo '${'$as_ac_var'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11420 if test `eval echo '${'$as_ac_var'}'` = yes; then
11421 cat >>confdefs.h <<_ACEOF
11422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11428 LIBS="$lt_save_LIBS"
11431 ac_cpp='$CPP $CPPFLAGS'
11432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11438 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11439 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11440 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 ac_cv_sys_symbol_underscore=no
11444 cat > conftest.$ac_ext <<EOF
11445 void nm_test_func(){}
11446 int main(){nm_test_func;return 0;}
11448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11449 (eval $ac_compile) 2>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; then
11453 # Now try to grab the symbols.
11454 ac_nlist=conftest.nm
11455 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11456 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } && test -s "$ac_nlist"; then
11460 # See whether the symbols have a leading underscore.
11461 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11462 ac_cv_sys_symbol_underscore=yes
11464 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11467 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11471 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11474 echo "configure: failed program was:" >&5
11480 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11481 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11484 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11485 if test x"$libltdl_cv_func_dlopen" = xyes ||
11486 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11487 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11488 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11489 if test "${libltdl_cv_need_uscore+set}" = set; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 libltdl_cv_need_uscore=unknown
11494 LIBS="$LIBS $LIBADD_DL"
11495 if test "$cross_compiling" = yes; then :
11496 libltdl_cv_need_uscore=cross
11498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11499 lt_status=$lt_dlunknown
11500 cat > conftest.$ac_ext <<EOF
11501 #line 11501 "configure"
11502 #include "confdefs.h"
11511 # define LT_DLGLOBAL RTLD_GLOBAL
11514 # define LT_DLGLOBAL DL_GLOBAL
11516 # define LT_DLGLOBAL 0
11520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11521 find out it does not work in some platform. */
11522 #ifndef LT_DLLAZY_OR_NOW
11524 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11527 # define LT_DLLAZY_OR_NOW DL_LAZY
11530 # define LT_DLLAZY_OR_NOW RTLD_NOW
11533 # define LT_DLLAZY_OR_NOW DL_NOW
11535 # define LT_DLLAZY_OR_NOW 0
11543 extern "C" void exit (int);
11546 void fnord() { int i=42;}
11549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11550 int status = $lt_dlunknown;
11554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11555 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11556 /* dlclose (self); */
11564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11565 (eval $ac_link) 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11569 (./conftest; exit; ) >&5 2>/dev/null
11571 case x$lt_status in
11572 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11573 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11574 x$lt_dlunknown|x*) ;;
11577 # compilation failed
11586 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11587 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11591 if test x"$libltdl_cv_need_uscore" = xyes; then
11593 cat >>confdefs.h <<\_ACEOF
11594 #define NEED_USCORE 1
11600 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11601 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11602 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 # PORTME does your system automatically load deplibs for dlopen?
11606 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11607 # For now, we just catch OSes we know something about -- in the
11608 # future, we'll try test this programmatically.
11609 libltdl_cv_sys_dlopen_deplibs=unknown
11611 aix3*|aix4.1.*|aix4.2.*)
11612 # Unknown whether this is true for these versions of AIX, but
11613 # we want this `case' here to explicitly catch those versions.
11614 libltdl_cv_sys_dlopen_deplibs=unknown
11617 libltdl_cv_sys_dlopen_deplibs=yes
11620 # Assuming the user has installed a libdl from somewhere, this is true
11621 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11622 libltdl_cv_sys_dlopen_deplibs=yes
11624 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11625 # GNU and its variants, using gnu ld.so (Glibc)
11626 libltdl_cv_sys_dlopen_deplibs=yes
11629 libltdl_cv_sys_dlopen_deplibs=yes
11632 libltdl_cv_sys_dlopen_deplibs=yes
11634 irix[12345]*|irix6.[01]*)
11635 # Catch all versions of IRIX before 6.2, and indicate that we don't
11636 # know how it worked for any of those versions.
11637 libltdl_cv_sys_dlopen_deplibs=unknown
11640 # The case above catches anything before 6.2, and it's known that
11641 # at 6.2 and later dlopen does load deplibs.
11642 libltdl_cv_sys_dlopen_deplibs=yes
11645 libltdl_cv_sys_dlopen_deplibs=yes
11648 libltdl_cv_sys_dlopen_deplibs=yes
11651 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11652 # it did *not* use an RPATH in a shared library to find objects the
11653 # library depends on, so we explictly say `no'.
11654 libltdl_cv_sys_dlopen_deplibs=no
11656 osf5.0|osf5.0a|osf5.1)
11657 # dlopen *does* load deplibs and with the right loader patch applied
11658 # it even uses RPATH in a shared library to search for shared objects
11659 # that the library depends on, but there's no easy way to know if that
11660 # patch is installed. Since this is the case, all we can really
11661 # say is unknown -- it depends on the patch being installed. If
11662 # it is, this changes to `yes'. Without it, it would be `no'.
11663 libltdl_cv_sys_dlopen_deplibs=unknown
11666 # the two cases above should catch all versions of osf <= 5.1. Read
11667 # the comments above for what we know about them.
11668 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11669 # is used to find them so we can finally say `yes'.
11670 libltdl_cv_sys_dlopen_deplibs=yes
11673 libltdl_cv_sys_dlopen_deplibs=yes
11675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11676 libltdl_cv_sys_dlopen_deplibs=yes
11681 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11682 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11683 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11685 cat >>confdefs.h <<\_ACEOF
11686 #define LTDL_DLOPEN_DEPLIBS 1
11692 for ac_header in argz.h
11694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11701 ac_res=`eval echo '${'$as_ac_Header'}'`
11702 { echo "$as_me:$LINENO: result: $ac_res" >&5
11703 echo "${ECHO_T}$ac_res" >&6; }
11705 # Is the header compilable?
11706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11708 cat >conftest.$ac_ext <<_ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 $ac_includes_default
11715 #include <$ac_header>
11717 rm -f conftest.$ac_objext
11718 if { (ac_try="$ac_compile"
11719 case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_compile") 2>conftest.er1
11726 grep -v '^ *+' conftest.er1 >conftest.err
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11732 { (case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_try") 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try='test -s conftest.$ac_objext'
11742 { (case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747 (eval "$ac_try") 2>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 ac_header_compiler=yes
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11756 ac_header_compiler=no
11759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11761 echo "${ECHO_T}$ac_header_compiler" >&6; }
11763 # Is the header present?
11764 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11766 cat >conftest.$ac_ext <<_ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 #include <$ac_header>
11774 if { (ac_try="$ac_cpp conftest.$ac_ext"
11775 case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } >/dev/null; then
11787 if test -s conftest.err; then
11788 ac_cpp_err=$ac_c_preproc_warn_flag
11789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11796 if test -z "$ac_cpp_err"; then
11797 ac_header_preproc=yes
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 ac_header_preproc=no
11805 rm -f conftest.err conftest.$ac_ext
11806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11807 echo "${ECHO_T}$ac_header_preproc" >&6; }
11809 # So? What about this header?
11810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11816 ac_header_preproc=yes
11819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11832 ## ----------------------------------- ##
11833 ## Report this to llvmbugs@cs.uiuc.edu ##
11834 ## ----------------------------------- ##
11836 ) | sed "s/^/$as_me: WARNING: /" >&2
11839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11844 eval "$as_ac_Header=\$ac_header_preproc"
11846 ac_res=`eval echo '${'$as_ac_Header'}'`
11847 { echo "$as_me:$LINENO: result: $ac_res" >&5
11848 echo "${ECHO_T}$ac_res" >&6; }
11851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11852 cat >>confdefs.h <<_ACEOF
11853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11861 { echo "$as_me:$LINENO: checking for error_t" >&5
11862 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11863 if test "${ac_cv_type_error_t+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 cat >conftest.$ac_ext <<_ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11876 typedef error_t ac__type_new_;
11880 if ((ac__type_new_ *) 0)
11882 if (sizeof (ac__type_new_))
11888 rm -f conftest.$ac_objext
11889 if { (ac_try="$ac_compile"
11890 case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_compile") 2>conftest.er1
11897 grep -v '^ *+' conftest.er1 >conftest.err
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11903 { (case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_try") 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; } &&
11912 { ac_try='test -s conftest.$ac_objext'
11913 { (case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_try") 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_cv_type_error_t=yes
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 ac_cv_type_error_t=no
11930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11932 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11933 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11934 if test $ac_cv_type_error_t = yes; then
11936 cat >>confdefs.h <<_ACEOF
11937 #define HAVE_ERROR_T 1
11943 cat >>confdefs.h <<\_ACEOF
11944 #define error_t int
11955 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11963 cat >conftest.$ac_ext <<_ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11971 #define $ac_func innocuous_$ac_func
11973 /* System header to define __stub macros and hopefully few prototypes,
11974 which can conflict with char $ac_func (); below.
11975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11976 <limits.h> exists even on freestanding compilers. */
11979 # include <limits.h>
11981 # include <assert.h>
11986 /* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
11993 /* The GNU C library defines this for functions which it implements
11994 to always fail with ENOSYS. Some functions are actually named
11995 something starting with __ and the normal name is an alias. */
11996 #if defined __stub_$ac_func || defined __stub___$ac_func
12003 return $ac_func ();
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (ac_try="$ac_link"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_link") 2>conftest.er1
12017 grep -v '^ *+' conftest.er1 >conftest.err
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; } &&
12032 { ac_try='test -s conftest$ac_exeext'
12033 { (case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 eval "$as_ac_var=yes"
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 eval "$as_ac_var=no"
12050 rm -f core conftest.err conftest.$ac_objext \
12051 conftest$ac_exeext conftest.$ac_ext
12053 ac_res=`eval echo '${'$as_ac_var'}'`
12054 { echo "$as_me:$LINENO: result: $ac_res" >&5
12055 echo "${ECHO_T}$ac_res" >&6; }
12056 if test `eval echo '${'$as_ac_var'}'` = yes; then
12057 cat >>confdefs.h <<_ACEOF
12058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12091 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 ac_res=`eval echo '${'$as_ac_Header'}'`
12102 { echo "$as_me:$LINENO: result: $ac_res" >&5
12103 echo "${ECHO_T}$ac_res" >&6; }
12105 # Is the header compilable?
12106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12108 cat >conftest.$ac_ext <<_ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 $ac_includes_default
12115 #include <$ac_header>
12117 rm -f conftest.$ac_objext
12118 if { (ac_try="$ac_compile"
12119 case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_compile") 2>conftest.er1
12126 grep -v '^ *+' conftest.er1 >conftest.err
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } &&
12131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12132 { (case "(($ac_try" in
12133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134 *) ac_try_echo=$ac_try;;
12136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137 (eval "$ac_try") 2>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest.$ac_objext'
12142 { (case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_try") 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; }; then
12151 ac_header_compiler=yes
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12156 ac_header_compiler=no
12159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12161 echo "${ECHO_T}$ac_header_compiler" >&6; }
12163 # Is the header present?
12164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12166 cat >conftest.$ac_ext <<_ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 #include <$ac_header>
12174 if { (ac_try="$ac_cpp conftest.$ac_ext"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12182 grep -v '^ *+' conftest.er1 >conftest.err
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } >/dev/null; then
12187 if test -s conftest.err; then
12188 ac_cpp_err=$ac_c_preproc_warn_flag
12189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12196 if test -z "$ac_cpp_err"; then
12197 ac_header_preproc=yes
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 ac_header_preproc=no
12205 rm -f conftest.err conftest.$ac_ext
12206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12207 echo "${ECHO_T}$ac_header_preproc" >&6; }
12209 # So? What about this header?
12210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12216 ac_header_preproc=yes
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12232 ## ----------------------------------- ##
12233 ## Report this to llvmbugs@cs.uiuc.edu ##
12234 ## ----------------------------------- ##
12236 ) | sed "s/^/$as_me: WARNING: /" >&2
12239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 eval "$as_ac_Header=\$ac_header_preproc"
12246 ac_res=`eval echo '${'$as_ac_Header'}'`
12247 { echo "$as_me:$LINENO: result: $ac_res" >&5
12248 echo "${ECHO_T}$ac_res" >&6; }
12251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12252 cat >>confdefs.h <<_ACEOF
12253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12264 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 ac_res=`eval echo '${'$as_ac_Header'}'`
12274 { echo "$as_me:$LINENO: result: $ac_res" >&5
12275 echo "${ECHO_T}$ac_res" >&6; }
12277 # Is the header compilable?
12278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12280 cat >conftest.$ac_ext <<_ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 $ac_includes_default
12287 #include <$ac_header>
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12304 { (case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_try") 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest.$ac_objext'
12314 { (case "(($ac_try" in
12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316 *) ac_try_echo=$ac_try;;
12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_try") 2>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 ac_header_compiler=yes
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 ac_header_compiler=no
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12333 echo "${ECHO_T}$ac_header_compiler" >&6; }
12335 # Is the header present?
12336 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12338 cat >conftest.$ac_ext <<_ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12344 #include <$ac_header>
12346 if { (ac_try="$ac_cpp conftest.$ac_ext"
12347 case "(($ac_try" in
12348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349 *) ac_try_echo=$ac_try;;
12351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12354 grep -v '^ *+' conftest.er1 >conftest.err
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } >/dev/null; then
12359 if test -s conftest.err; then
12360 ac_cpp_err=$ac_c_preproc_warn_flag
12361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12368 if test -z "$ac_cpp_err"; then
12369 ac_header_preproc=yes
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 ac_header_preproc=no
12377 rm -f conftest.err conftest.$ac_ext
12378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12379 echo "${ECHO_T}$ac_header_preproc" >&6; }
12381 # So? What about this header?
12382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12388 ac_header_preproc=yes
12391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12404 ## ----------------------------------- ##
12405 ## Report this to llvmbugs@cs.uiuc.edu ##
12406 ## ----------------------------------- ##
12408 ) | sed "s/^/$as_me: WARNING: /" >&2
12411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 eval "$as_ac_Header=\$ac_header_preproc"
12418 ac_res=`eval echo '${'$as_ac_Header'}'`
12419 { echo "$as_me:$LINENO: result: $ac_res" >&5
12420 echo "${ECHO_T}$ac_res" >&6; }
12423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12424 cat >>confdefs.h <<_ACEOF
12425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12434 for ac_header in string.h strings.h
12436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 ac_res=`eval echo '${'$as_ac_Header'}'`
12444 { echo "$as_me:$LINENO: result: $ac_res" >&5
12445 echo "${ECHO_T}$ac_res" >&6; }
12447 # Is the header compilable?
12448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12450 cat >conftest.$ac_ext <<_ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 $ac_includes_default
12457 #include <$ac_header>
12459 rm -f conftest.$ac_objext
12460 if { (ac_try="$ac_compile"
12461 case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_compile") 2>conftest.er1
12468 grep -v '^ *+' conftest.er1 >conftest.err
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12474 { (case "(($ac_try" in
12475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476 *) ac_try_echo=$ac_try;;
12478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479 (eval "$ac_try") 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } &&
12483 { ac_try='test -s conftest.$ac_objext'
12484 { (case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_try") 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 ac_header_compiler=yes
12495 echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12498 ac_header_compiler=no
12501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12503 echo "${ECHO_T}$ac_header_compiler" >&6; }
12505 # Is the header present?
12506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12508 cat >conftest.$ac_ext <<_ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 #include <$ac_header>
12516 if { (ac_try="$ac_cpp conftest.$ac_ext"
12517 case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12524 grep -v '^ *+' conftest.er1 >conftest.err
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } >/dev/null; then
12529 if test -s conftest.err; then
12530 ac_cpp_err=$ac_c_preproc_warn_flag
12531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12538 if test -z "$ac_cpp_err"; then
12539 ac_header_preproc=yes
12541 echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12544 ac_header_preproc=no
12547 rm -f conftest.err conftest.$ac_ext
12548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12549 echo "${ECHO_T}$ac_header_preproc" >&6; }
12551 # So? What about this header?
12552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12558 ac_header_preproc=yes
12561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12574 ## ----------------------------------- ##
12575 ## Report this to llvmbugs@cs.uiuc.edu ##
12576 ## ----------------------------------- ##
12578 ) | sed "s/^/$as_me: WARNING: /" >&2
12581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 eval "$as_ac_Header=\$ac_header_preproc"
12588 ac_res=`eval echo '${'$as_ac_Header'}'`
12589 { echo "$as_me:$LINENO: result: $ac_res" >&5
12590 echo "${ECHO_T}$ac_res" >&6; }
12593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12594 cat >>confdefs.h <<_ACEOF
12595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12605 for ac_func in strchr index
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 strrchr rindex
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 memcpy bcopy
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
12938 for ac_func in memmove strcmp
12940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12944 echo $ECHO_N "(cached) $ECHO_C" >&6
12946 cat >conftest.$ac_ext <<_ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12954 #define $ac_func innocuous_$ac_func
12956 /* System header to define __stub macros and hopefully few prototypes,
12957 which can conflict with char $ac_func (); below.
12958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12959 <limits.h> exists even on freestanding compilers. */
12962 # include <limits.h>
12964 # include <assert.h>
12969 /* Override any GCC internal prototype to avoid an error.
12970 Use char because int might match the return type of a GCC
12971 builtin and then its argument prototype would still apply. */
12976 /* The GNU C library defines this for functions which it implements
12977 to always fail with ENOSYS. Some functions are actually named
12978 something starting with __ and the normal name is an alias. */
12979 #if defined __stub_$ac_func || defined __stub___$ac_func
12986 return $ac_func ();
12991 rm -f conftest.$ac_objext conftest$ac_exeext
12992 if { (ac_try="$ac_link"
12993 case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_link") 2>conftest.er1
13000 grep -v '^ *+' conftest.er1 >conftest.err
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13006 { (case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011 (eval "$ac_try") 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; } &&
13015 { ac_try='test -s conftest$ac_exeext'
13016 { (case "(($ac_try" in
13017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018 *) ac_try_echo=$ac_try;;
13020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021 (eval "$ac_try") 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
13025 eval "$as_ac_var=yes"
13027 echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13030 eval "$as_ac_var=no"
13033 rm -f core conftest.err conftest.$ac_objext \
13034 conftest$ac_exeext conftest.$ac_ext
13036 ac_res=`eval echo '${'$as_ac_var'}'`
13037 { echo "$as_me:$LINENO: result: $ac_res" >&5
13038 echo "${ECHO_T}$ac_res" >&6; }
13039 if test `eval echo '${'$as_ac_var'}'` = yes; then
13040 cat >>confdefs.h <<_ACEOF
13041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13050 for ac_func in closedir opendir readdir
13052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13058 cat >conftest.$ac_ext <<_ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h. */
13064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13066 #define $ac_func innocuous_$ac_func
13068 /* System header to define __stub macros and hopefully few prototypes,
13069 which can conflict with char $ac_func (); below.
13070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13071 <limits.h> exists even on freestanding compilers. */
13074 # include <limits.h>
13076 # include <assert.h>
13081 /* Override any GCC internal prototype to avoid an error.
13082 Use char because int might match the return type of a GCC
13083 builtin and then its argument prototype would still apply. */
13088 /* The GNU C library defines this for functions which it implements
13089 to always fail with ENOSYS. Some functions are actually named
13090 something starting with __ and the normal name is an alias. */
13091 #if defined __stub_$ac_func || defined __stub___$ac_func
13098 return $ac_func ();
13103 rm -f conftest.$ac_objext conftest$ac_exeext
13104 if { (ac_try="$ac_link"
13105 case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_link") 2>conftest.er1
13112 grep -v '^ *+' conftest.er1 >conftest.err
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13118 { (case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_try") 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; } &&
13127 { ac_try='test -s conftest$ac_exeext'
13128 { (case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_try") 2>&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; }; then
13137 eval "$as_ac_var=yes"
13139 echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.$ac_ext >&5
13142 eval "$as_ac_var=no"
13145 rm -f core conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13148 ac_res=`eval echo '${'$as_ac_var'}'`
13149 { echo "$as_me:$LINENO: result: $ac_res" >&5
13150 echo "${ECHO_T}$ac_res" >&6; }
13151 if test `eval echo '${'$as_ac_var'}'` = yes; then
13152 cat >>confdefs.h <<_ACEOF
13153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13161 if test "$WITH_LLVMGCCDIR" = "default" ; then
13162 LLVMGCC="llvm-gcc${EXEEXT}"
13163 LLVMGXX="llvm-g++${EXEEXT}"
13164 LLVMGCCCOMMAND="$LLVMGCC"
13165 LLVMGXXCOMMAND="$LLVMGXX"
13166 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13168 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13170 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13171 set dummy $LLVMGCC; ac_word=$2
13172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13174 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183 for as_dir in $PATH
13186 test -z "$as_dir" && as_dir=.
13187 for ac_exec_ext in '' $ac_executable_extensions; do
13188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13189 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13200 LLVMGCC=$ac_cv_path_LLVMGCC
13201 if test -n "$LLVMGCC"; then
13202 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13203 echo "${ECHO_T}$LLVMGCC" >&6; }
13205 { echo "$as_me:$LINENO: result: no" >&5
13206 echo "${ECHO_T}no" >&6; }
13210 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13211 set dummy $LLVMGXX; ac_word=$2
13212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13214 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223 for as_dir in $PATH
13226 test -z "$as_dir" && as_dir=.
13227 for ac_exec_ext in '' $ac_executable_extensions; do
13228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13229 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13240 LLVMGXX=$ac_cv_path_LLVMGXX
13241 if test -n "$LLVMGXX"; then
13242 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13243 echo "${ECHO_T}$LLVMGXX" >&6; }
13245 { echo "$as_me:$LINENO: result: no" >&5
13246 echo "${ECHO_T}no" >&6; }
13251 if test -z "$LLVMGCC"; then
13252 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13253 LLVMGCCCOMMAND="$LLVMGCC"
13255 if test -z "$LLVMGXX"; then
13256 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13257 LLVMGXXCOMMAND="$LLVMGXX"
13264 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13266 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13271 # Check whether --with-llvmcc was given.
13272 if test "${with_llvmcc+set}" = set; then
13273 withval=$with_llvmcc;
13278 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13279 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13280 if test "$with_llvmcc" != "check"; then
13281 if (test "$with_llvmcc" != "llvm-gcc" &&
13282 test "$with_llvmcc" != "clang" &&
13283 test "$with_llvmcc" != "none"); then
13284 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13285 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13286 { (exit 1); exit 1; }; }
13288 WITH_LLVMCC="$with_llvmcc"
13289 elif test -n "$LLVMGCC"; then
13290 WITH_LLVMCC=llvm-gcc
13291 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13296 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13297 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13298 LLVMCC_OPTION=$WITH_LLVMCC
13301 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13302 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13315 if test "$GCC" != "yes" && test "$ICC" != "yes"
13317 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13318 echo "$as_me: error: gcc|icc required but not found" >&2;}
13319 { (exit 1); exit 1; }; }
13322 if test "$GXX" != "yes" && test "$IXX" != "yes"
13324 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13325 echo "$as_me: error: g++|icc required but not found" >&2;}
13326 { (exit 1); exit 1; }; }
13329 if test "$GCC" = "yes"
13331 cat >conftest.$ac_ext <<_ACEOF
13332 #if !defined(__GNUC__) || __GNUC__ < 3
13333 #error Unsupported GCC version
13337 rm -f conftest.$ac_objext
13338 if { (ac_try="$ac_compile"
13339 case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_compile") 2>conftest.er1
13346 grep -v '^ *+' conftest.er1 >conftest.err
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } &&
13351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13352 { (case "(($ac_try" in
13353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354 *) ac_try_echo=$ac_try;;
13356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357 (eval "$ac_try") 2>&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; } &&
13361 { ac_try='test -s conftest.$ac_objext'
13362 { (case "(($ac_try" in
13363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364 *) ac_try_echo=$ac_try;;
13366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367 (eval "$ac_try") 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13373 echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.$ac_ext >&5
13376 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13377 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13378 { (exit 1); exit 1; }; }
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384 if test -z "$llvm_cv_gnu_make_command"
13386 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13387 echo "$as_me: error: GNU Make required but not found" >&2;}
13388 { (exit 1); exit 1; }; }
13391 { echo "$as_me:$LINENO: result: ok" >&5
13392 echo "${ECHO_T}ok" >&6; }
13394 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13395 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13396 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13398 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13400 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13401 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13405 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13406 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13407 if test "${ac_cv_lib_m_sin+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 ac_check_lib_save_LIBS=$LIBS
13412 cat >conftest.$ac_ext <<_ACEOF
13415 cat confdefs.h >>conftest.$ac_ext
13416 cat >>conftest.$ac_ext <<_ACEOF
13417 /* end confdefs.h. */
13419 /* Override any GCC internal prototype to avoid an error.
13420 Use char because int might match the return type of a GCC
13421 builtin and then its argument prototype would still apply. */
13434 rm -f conftest.$ac_objext conftest$ac_exeext
13435 if { (ac_try="$ac_link"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_link") 2>conftest.er1
13443 grep -v '^ *+' conftest.er1 >conftest.err
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13449 { (case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454 (eval "$ac_try") 2>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; } &&
13458 { ac_try='test -s conftest$ac_exeext'
13459 { (case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_try") 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 ac_cv_lib_m_sin=yes
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13476 rm -f core conftest.err conftest.$ac_objext \
13477 conftest$ac_exeext conftest.$ac_ext
13478 LIBS=$ac_check_lib_save_LIBS
13480 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13481 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13482 if test $ac_cv_lib_m_sin = yes; then
13483 cat >>confdefs.h <<_ACEOF
13484 #define HAVE_LIBM 1
13491 if test "$llvm_cv_os_type" = "MingW" ; then
13493 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13494 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13495 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 ac_check_lib_save_LIBS=$LIBS
13499 LIBS="-limagehlp $LIBS"
13500 cat >conftest.$ac_ext <<_ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13516 rm -f conftest.$ac_objext conftest$ac_exeext
13517 if { (ac_try="$ac_link"
13518 case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_link") 2>conftest.er1
13525 grep -v '^ *+' conftest.er1 >conftest.err
13527 cat conftest.err >&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13531 { (case "(($ac_try" in
13532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533 *) ac_try_echo=$ac_try;;
13535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536 (eval "$ac_try") 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; } &&
13540 { ac_try='test -s conftest$ac_exeext'
13541 { (case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_try") 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
13550 ac_cv_lib_imagehlp_main=yes
13552 echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13555 ac_cv_lib_imagehlp_main=no
13558 rm -f core conftest.err conftest.$ac_objext \
13559 conftest$ac_exeext conftest.$ac_ext
13560 LIBS=$ac_check_lib_save_LIBS
13562 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13563 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13564 if test $ac_cv_lib_imagehlp_main = yes; then
13565 cat >>confdefs.h <<_ACEOF
13566 #define HAVE_LIBIMAGEHLP 1
13569 LIBS="-limagehlp $LIBS"
13574 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13575 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13576 if test "${ac_cv_lib_psapi_main+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 ac_check_lib_save_LIBS=$LIBS
13580 LIBS="-lpsapi $LIBS"
13581 cat >conftest.$ac_ext <<_ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13597 rm -f conftest.$ac_objext conftest$ac_exeext
13598 if { (ac_try="$ac_link"
13599 case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_link") 2>conftest.er1
13606 grep -v '^ *+' conftest.er1 >conftest.err
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13612 { (case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; } &&
13621 { ac_try='test -s conftest$ac_exeext'
13622 { (case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_try") 2>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
13631 ac_cv_lib_psapi_main=yes
13633 echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13636 ac_cv_lib_psapi_main=no
13639 rm -f core conftest.err conftest.$ac_objext \
13640 conftest$ac_exeext conftest.$ac_ext
13641 LIBS=$ac_check_lib_save_LIBS
13643 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13644 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13645 if test $ac_cv_lib_psapi_main = yes; then
13646 cat >>confdefs.h <<_ACEOF
13647 #define HAVE_LIBPSAPI 1
13650 LIBS="-lpsapi $LIBS"
13656 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13657 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13658 if test "${ac_cv_search_dlopen+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 ac_func_search_save_LIBS=$LIBS
13662 cat >conftest.$ac_ext <<_ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13669 /* Override any GCC internal prototype to avoid an error.
13670 Use char because int might match the return type of a GCC
13671 builtin and then its argument prototype would still apply. */
13684 for ac_lib in '' dl; do
13685 if test -z "$ac_lib"; then
13686 ac_res="none required"
13689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (ac_try="$ac_link"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_link") 2>conftest.er1
13700 grep -v '^ *+' conftest.er1 >conftest.err
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13706 { (case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_try") 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
13715 { ac_try='test -s conftest$ac_exeext'
13716 { (case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_try") 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 ac_cv_search_dlopen=$ac_res
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13733 rm -f core conftest.err conftest.$ac_objext \
13735 if test "${ac_cv_search_dlopen+set}" = set; then
13739 if test "${ac_cv_search_dlopen+set}" = set; then
13742 ac_cv_search_dlopen=no
13744 rm conftest.$ac_ext
13745 LIBS=$ac_func_search_save_LIBS
13747 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13748 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13749 ac_res=$ac_cv_search_dlopen
13750 if test "$ac_res" != no; then
13751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13753 cat >>confdefs.h <<\_ACEOF
13754 #define HAVE_DLOPEN 1
13758 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13759 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13763 if test "$llvm_cv_enable_libffi" = "yes" ; then
13764 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13765 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13766 if test "${ac_cv_search_ffi_call+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 ac_func_search_save_LIBS=$LIBS
13770 cat >conftest.$ac_ext <<_ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h. */
13777 /* Override any GCC internal prototype to avoid an error.
13778 Use char because int might match the return type of a GCC
13779 builtin and then its argument prototype would still apply. */
13787 return ffi_call ();
13792 for ac_lib in '' ffi; do
13793 if test -z "$ac_lib"; then
13794 ac_res="none required"
13797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13799 rm -f conftest.$ac_objext conftest$ac_exeext
13800 if { (ac_try="$ac_link"
13801 case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_link") 2>conftest.er1
13808 grep -v '^ *+' conftest.er1 >conftest.err
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13814 { (case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_try") 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; } &&
13823 { ac_try='test -s conftest$ac_exeext'
13824 { (case "(($ac_try" in
13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826 *) ac_try_echo=$ac_try;;
13828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829 (eval "$ac_try") 2>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 ac_cv_search_ffi_call=$ac_res
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13841 rm -f core conftest.err conftest.$ac_objext \
13843 if test "${ac_cv_search_ffi_call+set}" = set; then
13847 if test "${ac_cv_search_ffi_call+set}" = set; then
13850 ac_cv_search_ffi_call=no
13852 rm conftest.$ac_ext
13853 LIBS=$ac_func_search_save_LIBS
13855 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13856 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13857 ac_res=$ac_cv_search_ffi_call
13858 if test "$ac_res" != no; then
13859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13861 cat >>confdefs.h <<\_ACEOF
13862 #define HAVE_FFI_CALL 1
13866 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13867 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13868 { (exit 1); exit 1; }; }
13873 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13874 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13875 if test "${ac_cv_search_mallinfo+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 ac_func_search_save_LIBS=$LIBS
13879 cat >conftest.$ac_ext <<_ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13886 /* Override any GCC internal prototype to avoid an error.
13887 Use char because int might match the return type of a GCC
13888 builtin and then its argument prototype would still apply. */
13896 return mallinfo ();
13901 for ac_lib in '' malloc; do
13902 if test -z "$ac_lib"; then
13903 ac_res="none required"
13906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13908 rm -f conftest.$ac_objext conftest$ac_exeext
13909 if { (ac_try="$ac_link"
13910 case "(($ac_try" in
13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_link") 2>conftest.er1
13917 grep -v '^ *+' conftest.er1 >conftest.err
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } &&
13922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13923 { (case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928 (eval "$ac_try") 2>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; } &&
13932 { ac_try='test -s conftest$ac_exeext'
13933 { (case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_try") 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; }; then
13942 ac_cv_search_mallinfo=$ac_res
13944 echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13950 rm -f core conftest.err conftest.$ac_objext \
13952 if test "${ac_cv_search_mallinfo+set}" = set; then
13956 if test "${ac_cv_search_mallinfo+set}" = set; then
13959 ac_cv_search_mallinfo=no
13961 rm conftest.$ac_ext
13962 LIBS=$ac_func_search_save_LIBS
13964 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13965 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13966 ac_res=$ac_cv_search_mallinfo
13967 if test "$ac_res" != no; then
13968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13970 cat >>confdefs.h <<\_ACEOF
13971 #define HAVE_MALLINFO 1
13977 if test "$ENABLE_THREADS" -eq 1 ; then
13979 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13980 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13981 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 ac_check_lib_save_LIBS=$LIBS
13985 LIBS="-lpthread $LIBS"
13986 cat >conftest.$ac_ext <<_ACEOF
13989 cat confdefs.h >>conftest.$ac_ext
13990 cat >>conftest.$ac_ext <<_ACEOF
13991 /* end confdefs.h. */
13993 /* Override any GCC internal prototype to avoid an error.
13994 Use char because int might match the return type of a GCC
13995 builtin and then its argument prototype would still apply. */
13999 char pthread_mutex_init ();
14003 return pthread_mutex_init ();
14008 rm -f conftest.$ac_objext conftest$ac_exeext
14009 if { (ac_try="$ac_link"
14010 case "(($ac_try" in
14011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14012 *) ac_try_echo=$ac_try;;
14014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14015 (eval "$ac_link") 2>conftest.er1
14017 grep -v '^ *+' conftest.er1 >conftest.err
14019 cat conftest.err >&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } &&
14022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14023 { (case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_try") 2>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; } &&
14032 { ac_try='test -s conftest$ac_exeext'
14033 { (case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_try") 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 ac_cv_lib_pthread_pthread_mutex_init=yes
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 ac_cv_lib_pthread_pthread_mutex_init=no
14050 rm -f core conftest.err conftest.$ac_objext \
14051 conftest$ac_exeext conftest.$ac_ext
14052 LIBS=$ac_check_lib_save_LIBS
14054 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14055 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14056 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14057 cat >>confdefs.h <<_ACEOF
14058 #define HAVE_LIBPTHREAD 1
14061 LIBS="-lpthread $LIBS"
14065 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14066 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14067 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 ac_func_search_save_LIBS=$LIBS
14071 cat >conftest.$ac_ext <<_ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14078 /* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14084 char pthread_mutex_lock ();
14088 return pthread_mutex_lock ();
14093 for ac_lib in '' pthread; do
14094 if test -z "$ac_lib"; then
14095 ac_res="none required"
14098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (ac_try="$ac_link"
14102 case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_link") 2>conftest.er1
14109 grep -v '^ *+' conftest.er1 >conftest.err
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14115 { (case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_try") 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest$ac_exeext'
14125 { (case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_try") 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_cv_search_pthread_mutex_lock=$ac_res
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14142 rm -f core conftest.err conftest.$ac_objext \
14144 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14148 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14151 ac_cv_search_pthread_mutex_lock=no
14153 rm conftest.$ac_ext
14154 LIBS=$ac_func_search_save_LIBS
14156 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14157 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14158 ac_res=$ac_cv_search_pthread_mutex_lock
14159 if test "$ac_res" != no; then
14160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14162 cat >>confdefs.h <<\_ACEOF
14163 #define HAVE_PTHREAD_MUTEX_LOCK 1
14168 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14169 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14170 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 ac_func_search_save_LIBS=$LIBS
14174 cat >conftest.$ac_ext <<_ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14181 /* Override any GCC internal prototype to avoid an error.
14182 Use char because int might match the return type of a GCC
14183 builtin and then its argument prototype would still apply. */
14187 char pthread_rwlock_init ();
14191 return pthread_rwlock_init ();
14196 for ac_lib in '' pthread; do
14197 if test -z "$ac_lib"; then
14198 ac_res="none required"
14201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14203 rm -f conftest.$ac_objext conftest$ac_exeext
14204 if { (ac_try="$ac_link"
14205 case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_link") 2>conftest.er1
14212 grep -v '^ *+' conftest.er1 >conftest.err
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } &&
14217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14218 { (case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_try") 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; } &&
14227 { ac_try='test -s conftest$ac_exeext'
14228 { (case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_try") 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_cv_search_pthread_rwlock_init=$ac_res
14239 echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14245 rm -f core conftest.err conftest.$ac_objext \
14247 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14251 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14254 ac_cv_search_pthread_rwlock_init=no
14256 rm conftest.$ac_ext
14257 LIBS=$ac_func_search_save_LIBS
14259 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14260 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14261 ac_res=$ac_cv_search_pthread_rwlock_init
14262 if test "$ac_res" != no; then
14263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14265 cat >>confdefs.h <<\_ACEOF
14266 #define HAVE_PTHREAD_RWLOCK_INIT 1
14271 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14272 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14273 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 ac_func_search_save_LIBS=$LIBS
14277 cat >conftest.$ac_ext <<_ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14284 /* Override any GCC internal prototype to avoid an error.
14285 Use char because int might match the return type of a GCC
14286 builtin and then its argument prototype would still apply. */
14290 char pthread_getspecific ();
14294 return pthread_getspecific ();
14299 for ac_lib in '' pthread; do
14300 if test -z "$ac_lib"; then
14301 ac_res="none required"
14304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14306 rm -f conftest.$ac_objext conftest$ac_exeext
14307 if { (ac_try="$ac_link"
14308 case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_link") 2>conftest.er1
14315 grep -v '^ *+' conftest.er1 >conftest.err
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14321 { (case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_try") 2>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; } &&
14330 { ac_try='test -s conftest$ac_exeext'
14331 { (case "(($ac_try" in
14332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333 *) ac_try_echo=$ac_try;;
14335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14336 (eval "$ac_try") 2>&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 ac_cv_search_pthread_getspecific=$ac_res
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14348 rm -f core conftest.err conftest.$ac_objext \
14350 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14354 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14357 ac_cv_search_pthread_getspecific=no
14359 rm conftest.$ac_ext
14360 LIBS=$ac_func_search_save_LIBS
14362 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14363 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14364 ac_res=$ac_cv_search_pthread_getspecific
14365 if test "$ac_res" != no; then
14366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14368 cat >>confdefs.h <<\_ACEOF
14369 #define HAVE_PTHREAD_GETSPECIFIC 1
14377 # Check whether --with-udis86 was given.
14378 if test "${with_udis86+set}" = set; then
14379 withval=$with_udis86;
14384 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14387 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14388 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14389 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14392 ac_check_lib_save_LIBS=$LIBS
14393 LIBS="-ludis86 $LIBS"
14394 cat >conftest.$ac_ext <<_ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14401 /* Override any GCC internal prototype to avoid an error.
14402 Use char because int might match the return type of a GCC
14403 builtin and then its argument prototype would still apply. */
14416 rm -f conftest.$ac_objext conftest$ac_exeext
14417 if { (ac_try="$ac_link"
14418 case "(($ac_try" in
14419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420 *) ac_try_echo=$ac_try;;
14422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423 (eval "$ac_link") 2>conftest.er1
14425 grep -v '^ *+' conftest.er1 >conftest.err
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14431 { (case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_try") 2>&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; } &&
14440 { ac_try='test -s conftest$ac_exeext'
14441 { (case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_try") 2>&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
14450 ac_cv_lib_udis86_ud_init=yes
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14455 ac_cv_lib_udis86_ud_init=no
14458 rm -f core conftest.err conftest.$ac_objext \
14459 conftest$ac_exeext conftest.$ac_ext
14460 LIBS=$ac_check_lib_save_LIBS
14462 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14463 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14464 if test $ac_cv_lib_udis86_ud_init = yes; then
14465 cat >>confdefs.h <<_ACEOF
14466 #define HAVE_LIBUDIS86 1
14469 LIBS="-ludis86 $LIBS"
14473 echo "Error! You need to have libudis86 around."
14485 cat >>confdefs.h <<_ACEOF
14486 #define USE_UDIS86 $USE_UDIS86
14491 # Check whether --with-oprofile was given.
14492 if test "${with_oprofile+set}" = set; then
14493 withval=$with_oprofile;
14497 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14498 no) llvm_cv_oppath=
14501 *) llvm_cv_oppath="${withval}/lib/oprofile"
14502 CPPFLAGS="-I${withval}/include";;
14504 if test -n "$llvm_cv_oppath" ; then
14505 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14506 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14507 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14508 if test "${ac_cv_search_bfd_init+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 ac_func_search_save_LIBS=$LIBS
14512 cat >conftest.$ac_ext <<_ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14519 /* Override any GCC internal prototype to avoid an error.
14520 Use char because int might match the return type of a GCC
14521 builtin and then its argument prototype would still apply. */
14529 return bfd_init ();
14534 for ac_lib in '' bfd; do
14535 if test -z "$ac_lib"; then
14536 ac_res="none required"
14539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14541 rm -f conftest.$ac_objext conftest$ac_exeext
14542 if { (ac_try="$ac_link"
14543 case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_link") 2>conftest.er1
14550 grep -v '^ *+' conftest.er1 >conftest.err
14552 cat conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } &&
14555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14556 { (case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561 (eval "$ac_try") 2>&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; } &&
14565 { ac_try='test -s conftest$ac_exeext'
14566 { (case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_try") 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
14575 ac_cv_search_bfd_init=$ac_res
14577 echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14583 rm -f core conftest.err conftest.$ac_objext \
14585 if test "${ac_cv_search_bfd_init+set}" = set; then
14589 if test "${ac_cv_search_bfd_init+set}" = set; then
14592 ac_cv_search_bfd_init=no
14594 rm conftest.$ac_ext
14595 LIBS=$ac_func_search_save_LIBS
14597 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14598 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14599 ac_res=$ac_cv_search_bfd_init
14600 if test "$ac_res" != no; then
14601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14605 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14606 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14607 if test "${ac_cv_search_op_open_agent+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 ac_func_search_save_LIBS=$LIBS
14611 cat >conftest.$ac_ext <<_ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14618 /* Override any GCC internal prototype to avoid an error.
14619 Use char because int might match the return type of a GCC
14620 builtin and then its argument prototype would still apply. */
14624 char op_open_agent ();
14628 return op_open_agent ();
14633 for ac_lib in '' opagent; do
14634 if test -z "$ac_lib"; then
14635 ac_res="none required"
14638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14640 rm -f conftest.$ac_objext conftest$ac_exeext
14641 if { (ac_try="$ac_link"
14642 case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_link") 2>conftest.er1
14649 grep -v '^ *+' conftest.er1 >conftest.err
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } &&
14654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14655 { (case "(($ac_try" in
14656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657 *) ac_try_echo=$ac_try;;
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660 (eval "$ac_try") 2>&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest$ac_exeext'
14665 { (case "(($ac_try" in
14666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667 *) ac_try_echo=$ac_try;;
14669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14670 (eval "$ac_try") 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14674 ac_cv_search_op_open_agent=$ac_res
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14682 rm -f core conftest.err conftest.$ac_objext \
14684 if test "${ac_cv_search_op_open_agent+set}" = set; then
14688 if test "${ac_cv_search_op_open_agent+set}" = set; then
14691 ac_cv_search_op_open_agent=no
14693 rm conftest.$ac_ext
14694 LIBS=$ac_func_search_save_LIBS
14696 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14697 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14698 ac_res=$ac_cv_search_op_open_agent
14699 if test "$ac_res" != no; then
14700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14704 echo "Error! You need to have libopagent around."
14709 if test "${ac_cv_header_opagent_h+set}" = set; then
14710 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14711 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14712 if test "${ac_cv_header_opagent_h+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14716 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14718 # Is the header compilable?
14719 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14720 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14721 cat >conftest.$ac_ext <<_ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14727 $ac_includes_default
14728 #include <opagent.h>
14730 rm -f conftest.$ac_objext
14731 if { (ac_try="$ac_compile"
14732 case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_compile") 2>conftest.er1
14739 grep -v '^ *+' conftest.er1 >conftest.err
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14745 { (case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_try") 2>&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; } &&
14754 { ac_try='test -s conftest.$ac_objext'
14755 { (case "(($ac_try" in
14756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14757 *) ac_try_echo=$ac_try;;
14759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14760 (eval "$ac_try") 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_header_compiler=yes
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 ac_header_compiler=no
14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14774 echo "${ECHO_T}$ac_header_compiler" >&6; }
14776 # Is the header present?
14777 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14778 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14779 cat >conftest.$ac_ext <<_ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 #include <opagent.h>
14787 if { (ac_try="$ac_cpp conftest.$ac_ext"
14788 case "(($ac_try" in
14789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14795 grep -v '^ *+' conftest.er1 >conftest.err
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } >/dev/null; then
14800 if test -s conftest.err; then
14801 ac_cpp_err=$ac_c_preproc_warn_flag
14802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14809 if test -z "$ac_cpp_err"; then
14810 ac_header_preproc=yes
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14815 ac_header_preproc=no
14818 rm -f conftest.err conftest.$ac_ext
14819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820 echo "${ECHO_T}$ac_header_preproc" >&6; }
14822 # So? What about this header?
14823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14825 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14826 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14828 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14829 ac_header_preproc=yes
14832 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14833 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14835 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14837 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14839 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14841 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14843 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14845 ## ----------------------------------- ##
14846 ## Report this to llvmbugs@cs.uiuc.edu ##
14847 ## ----------------------------------- ##
14849 ) | sed "s/^/$as_me: WARNING: /" >&2
14852 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14853 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14854 if test "${ac_cv_header_opagent_h+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 ac_cv_header_opagent_h=$ac_header_preproc
14859 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14860 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14863 if test $ac_cv_header_opagent_h = yes; then
14867 echo "Error! You need to have opagent.h around."
14883 cat >>confdefs.h <<_ACEOF
14884 #define USE_OPROFILE $USE_OPROFILE
14894 ac_header_dirent=no
14895 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14896 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14897 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14898 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
14902 cat >conftest.$ac_ext <<_ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14908 #include <sys/types.h>
14920 rm -f conftest.$ac_objext
14921 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14929 grep -v '^ *+' conftest.er1 >conftest.err
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } &&
14934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14935 { (case "(($ac_try" in
14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_try") 2>&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; } &&
14944 { ac_try='test -s conftest.$ac_objext'
14945 { (case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950 (eval "$ac_try") 2>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }; then
14954 eval "$as_ac_Header=yes"
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14959 eval "$as_ac_Header=no"
14962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14964 ac_res=`eval echo '${'$as_ac_Header'}'`
14965 { echo "$as_me:$LINENO: result: $ac_res" >&5
14966 echo "${ECHO_T}$ac_res" >&6; }
14967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14968 cat >>confdefs.h <<_ACEOF
14969 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14972 ac_header_dirent=$ac_hdr; break
14976 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14977 if test $ac_header_dirent = dirent.h; then
14978 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14979 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14980 if test "${ac_cv_search_opendir+set}" = set; then
14981 echo $ECHO_N "(cached) $ECHO_C" >&6
14983 ac_func_search_save_LIBS=$LIBS
14984 cat >conftest.$ac_ext <<_ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h. */
14991 /* Override any GCC internal prototype to avoid an error.
14992 Use char because int might match the return type of a GCC
14993 builtin and then its argument prototype would still apply. */
15006 for ac_lib in '' dir; do
15007 if test -z "$ac_lib"; then
15008 ac_res="none required"
15011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15013 rm -f conftest.$ac_objext conftest$ac_exeext
15014 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15022 grep -v '^ *+' conftest.er1 >conftest.err
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15028 { (case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_try") 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; } &&
15037 { ac_try='test -s conftest$ac_exeext'
15038 { (case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_try") 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
15047 ac_cv_search_opendir=$ac_res
15049 echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15055 rm -f core conftest.err conftest.$ac_objext \
15057 if test "${ac_cv_search_opendir+set}" = set; then
15061 if test "${ac_cv_search_opendir+set}" = set; then
15064 ac_cv_search_opendir=no
15066 rm conftest.$ac_ext
15067 LIBS=$ac_func_search_save_LIBS
15069 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15070 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15071 ac_res=$ac_cv_search_opendir
15072 if test "$ac_res" != no; then
15073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15078 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15079 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15080 if test "${ac_cv_search_opendir+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15083 ac_func_search_save_LIBS=$LIBS
15084 cat >conftest.$ac_ext <<_ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h. */
15091 /* Override any GCC internal prototype to avoid an error.
15092 Use char because int might match the return type of a GCC
15093 builtin and then its argument prototype would still apply. */
15106 for ac_lib in '' x; do
15107 if test -z "$ac_lib"; then
15108 ac_res="none required"
15111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15113 rm -f conftest.$ac_objext conftest$ac_exeext
15114 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15122 grep -v '^ *+' conftest.er1 >conftest.err
15124 cat conftest.err >&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } &&
15127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15128 { (case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_try") 2>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } &&
15137 { ac_try='test -s conftest$ac_exeext'
15138 { (case "(($ac_try" in
15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140 *) ac_try_echo=$ac_try;;
15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143 (eval "$ac_try") 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; }; then
15147 ac_cv_search_opendir=$ac_res
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15155 rm -f core conftest.err conftest.$ac_objext \
15157 if test "${ac_cv_search_opendir+set}" = set; then
15161 if test "${ac_cv_search_opendir+set}" = set; then
15164 ac_cv_search_opendir=no
15166 rm conftest.$ac_ext
15167 LIBS=$ac_func_search_save_LIBS
15169 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15170 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15171 ac_res=$ac_cv_search_opendir
15172 if test "$ac_res" != no; then
15173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15179 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15180 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15181 if test "${ac_cv_header_mmap_anon+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 ac_cpp='$CPP $CPPFLAGS'
15186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15190 cat >conftest.$ac_ext <<_ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15196 #include <sys/mman.h>
15197 #include <unistd.h>
15202 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15207 rm -f conftest.$ac_objext
15208 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15216 grep -v '^ *+' conftest.er1 >conftest.err
15218 cat conftest.err >&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } &&
15221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15222 { (case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_try") 2>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; } &&
15231 { ac_try='test -s conftest.$ac_objext'
15232 { (case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_try") 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 ac_cv_header_mmap_anon=yes
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15246 ac_cv_header_mmap_anon=no
15249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251 ac_cpp='$CPP $CPPFLAGS'
15252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15258 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15259 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15260 if test "$ac_cv_header_mmap_anon" = yes; then
15262 cat >>confdefs.h <<\_ACEOF
15263 #define HAVE_MMAP_ANONYMOUS 1
15268 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15269 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15270 if test "${ac_cv_header_stat_broken+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 cat >conftest.$ac_ext <<_ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15279 #include <sys/types.h>
15280 #include <sys/stat.h>
15282 #if defined S_ISBLK && defined S_IFDIR
15283 # if S_ISBLK (S_IFDIR)
15288 #if defined S_ISBLK && defined S_IFCHR
15289 # if S_ISBLK (S_IFCHR)
15294 #if defined S_ISLNK && defined S_IFREG
15295 # if S_ISLNK (S_IFREG)
15300 #if defined S_ISSOCK && defined S_IFREG
15301 # if S_ISSOCK (S_IFREG)
15307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15308 $EGREP "You lose" >/dev/null 2>&1; then
15309 ac_cv_header_stat_broken=yes
15311 ac_cv_header_stat_broken=no
15316 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15317 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15318 if test $ac_cv_header_stat_broken = yes; then
15320 cat >>confdefs.h <<\_ACEOF
15321 #define STAT_MACROS_BROKEN 1
15326 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15327 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15328 if test "${ac_cv_header_stdc+set}" = set; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
15331 cat >conftest.$ac_ext <<_ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 #include <stdlib.h>
15338 #include <stdarg.h>
15339 #include <string.h>
15350 rm -f conftest.$ac_objext
15351 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15359 grep -v '^ *+' conftest.er1 >conftest.err
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15365 { (case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_try") 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; } &&
15374 { ac_try='test -s conftest.$ac_objext'
15375 { (case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_try") 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_cv_header_stdc=yes
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 ac_cv_header_stdc=no
15392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15394 if test $ac_cv_header_stdc = yes; then
15395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15396 cat >conftest.$ac_ext <<_ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 #include <string.h>
15405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15406 $EGREP "memchr" >/dev/null 2>&1; then
15409 ac_cv_header_stdc=no
15415 if test $ac_cv_header_stdc = yes; then
15416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 #include <stdlib.h>
15426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15427 $EGREP "free" >/dev/null 2>&1; then
15430 ac_cv_header_stdc=no
15436 if test $ac_cv_header_stdc = yes; then
15437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15438 if test "$cross_compiling" = yes; then
15441 cat >conftest.$ac_ext <<_ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15448 #include <stdlib.h>
15449 #if ((' ' & 0x0FF) == 0x020)
15450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15453 # define ISLOWER(c) \
15454 (('a' <= (c) && (c) <= 'i') \
15455 || ('j' <= (c) && (c) <= 'r') \
15456 || ('s' <= (c) && (c) <= 'z'))
15457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15465 for (i = 0; i < 256; i++)
15466 if (XOR (islower (i), ISLOWER (i))
15467 || toupper (i) != TOUPPER (i))
15472 rm -f conftest$ac_exeext
15473 if { (ac_try="$ac_link"
15474 case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_link") 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15483 { (case "(($ac_try" in
15484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485 *) ac_try_echo=$ac_try;;
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488 (eval "$ac_try") 2>&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15494 echo "$as_me: program exited with status $ac_status" >&5
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 ( exit $ac_status )
15499 ac_cv_header_stdc=no
15501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15507 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15508 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15509 if test $ac_cv_header_stdc = yes; then
15511 cat >>confdefs.h <<\_ACEOF
15512 #define STDC_HEADERS 1
15517 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15518 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15519 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 cat >conftest.$ac_ext <<_ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15528 #include <sys/types.h>
15529 #include <sys/wait.h>
15530 #ifndef WEXITSTATUS
15531 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15534 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15542 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15547 rm -f conftest.$ac_objext
15548 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15556 grep -v '^ *+' conftest.er1 >conftest.err
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15562 { (case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_try") 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; } &&
15571 { ac_try='test -s conftest.$ac_objext'
15572 { (case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_try") 2>&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
15581 ac_cv_header_sys_wait_h=yes
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 ac_cv_header_sys_wait_h=no
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15591 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15592 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15593 if test $ac_cv_header_sys_wait_h = yes; then
15595 cat >>confdefs.h <<\_ACEOF
15596 #define HAVE_SYS_WAIT_H 1
15601 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15602 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15603 if test "${ac_cv_header_time+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15606 cat >conftest.$ac_ext <<_ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15612 #include <sys/types.h>
15613 #include <sys/time.h>
15619 if ((struct tm *) 0)
15625 rm -f conftest.$ac_objext
15626 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15634 grep -v '^ *+' conftest.er1 >conftest.err
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15640 { (case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645 (eval "$ac_try") 2>&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; } &&
15649 { ac_try='test -s conftest.$ac_objext'
15650 { (case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_try") 2>&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }; then
15659 ac_cv_header_time=yes
15661 echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15664 ac_cv_header_time=no
15667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15670 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15671 if test $ac_cv_header_time = yes; then
15673 cat >>confdefs.h <<\_ACEOF
15674 #define TIME_WITH_SYS_TIME 1
15686 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15695 ac_res=`eval echo '${'$as_ac_Header'}'`
15696 { echo "$as_me:$LINENO: result: $ac_res" >&5
15697 echo "${ECHO_T}$ac_res" >&6; }
15699 # Is the header compilable?
15700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15702 cat >conftest.$ac_ext <<_ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h. */
15708 $ac_includes_default
15709 #include <$ac_header>
15711 rm -f conftest.$ac_objext
15712 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15720 grep -v '^ *+' conftest.er1 >conftest.err
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } &&
15725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15726 { (case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_try") 2>&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; } &&
15735 { ac_try='test -s conftest.$ac_objext'
15736 { (case "(($ac_try" in
15737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741 (eval "$ac_try") 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_header_compiler=yes
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 ac_header_compiler=no
15753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15755 echo "${ECHO_T}$ac_header_compiler" >&6; }
15757 # Is the header present?
15758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15760 cat >conftest.$ac_ext <<_ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h. */
15766 #include <$ac_header>
15768 if { (ac_try="$ac_cpp conftest.$ac_ext"
15769 case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15776 grep -v '^ *+' conftest.er1 >conftest.err
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } >/dev/null; then
15781 if test -s conftest.err; then
15782 ac_cpp_err=$ac_c_preproc_warn_flag
15783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15790 if test -z "$ac_cpp_err"; then
15791 ac_header_preproc=yes
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15796 ac_header_preproc=no
15799 rm -f conftest.err conftest.$ac_ext
15800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15801 echo "${ECHO_T}$ac_header_preproc" >&6; }
15803 # So? What about this header?
15804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15810 ac_header_preproc=yes
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15826 ## ----------------------------------- ##
15827 ## Report this to llvmbugs@cs.uiuc.edu ##
15828 ## ----------------------------------- ##
15830 ) | sed "s/^/$as_me: WARNING: /" >&2
15833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15838 eval "$as_ac_Header=\$ac_header_preproc"
15840 ac_res=`eval echo '${'$as_ac_Header'}'`
15841 { echo "$as_me:$LINENO: result: $ac_res" >&5
15842 echo "${ECHO_T}$ac_res" >&6; }
15845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15846 cat >>confdefs.h <<_ACEOF
15847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15860 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 ac_res=`eval echo '${'$as_ac_Header'}'`
15870 { echo "$as_me:$LINENO: result: $ac_res" >&5
15871 echo "${ECHO_T}$ac_res" >&6; }
15873 # Is the header compilable?
15874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15876 cat >conftest.$ac_ext <<_ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 $ac_includes_default
15883 #include <$ac_header>
15885 rm -f conftest.$ac_objext
15886 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15894 grep -v '^ *+' conftest.er1 >conftest.err
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15900 { (case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_try") 2>&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; } &&
15909 { ac_try='test -s conftest.$ac_objext'
15910 { (case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915 (eval "$ac_try") 2>&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_header_compiler=yes
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 ac_header_compiler=no
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15929 echo "${ECHO_T}$ac_header_compiler" >&6; }
15931 # Is the header present?
15932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15934 cat >conftest.$ac_ext <<_ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15940 #include <$ac_header>
15942 if { (ac_try="$ac_cpp conftest.$ac_ext"
15943 case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15950 grep -v '^ *+' conftest.er1 >conftest.err
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } >/dev/null; then
15955 if test -s conftest.err; then
15956 ac_cpp_err=$ac_c_preproc_warn_flag
15957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15964 if test -z "$ac_cpp_err"; then
15965 ac_header_preproc=yes
15967 echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15970 ac_header_preproc=no
15973 rm -f conftest.err conftest.$ac_ext
15974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15975 echo "${ECHO_T}$ac_header_preproc" >&6; }
15977 # So? What about this header?
15978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15984 ac_header_preproc=yes
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16000 ## ----------------------------------- ##
16001 ## Report this to llvmbugs@cs.uiuc.edu ##
16002 ## ----------------------------------- ##
16004 ) | sed "s/^/$as_me: WARNING: /" >&2
16007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16012 eval "$as_ac_Header=\$ac_header_preproc"
16014 ac_res=`eval echo '${'$as_ac_Header'}'`
16015 { echo "$as_me:$LINENO: result: $ac_res" >&5
16016 echo "${ECHO_T}$ac_res" >&6; }
16019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16020 cat >>confdefs.h <<_ACEOF
16021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16030 for ac_header in utime.h windows.h
16032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16039 ac_res=`eval echo '${'$as_ac_Header'}'`
16040 { echo "$as_me:$LINENO: result: $ac_res" >&5
16041 echo "${ECHO_T}$ac_res" >&6; }
16043 # Is the header compilable?
16044 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16046 cat >conftest.$ac_ext <<_ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16052 $ac_includes_default
16053 #include <$ac_header>
16055 rm -f conftest.$ac_objext
16056 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16064 grep -v '^ *+' conftest.er1 >conftest.err
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } &&
16069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; } &&
16079 { ac_try='test -s conftest.$ac_objext'
16080 { (case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_try") 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_header_compiler=yes
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 ac_header_compiler=no
16097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16099 echo "${ECHO_T}$ac_header_compiler" >&6; }
16101 # Is the header present?
16102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16104 cat >conftest.$ac_ext <<_ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16110 #include <$ac_header>
16112 if { (ac_try="$ac_cpp conftest.$ac_ext"
16113 case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16120 grep -v '^ *+' conftest.er1 >conftest.err
16122 cat conftest.err >&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } >/dev/null; then
16125 if test -s conftest.err; then
16126 ac_cpp_err=$ac_c_preproc_warn_flag
16127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16134 if test -z "$ac_cpp_err"; then
16135 ac_header_preproc=yes
16137 echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16140 ac_header_preproc=no
16143 rm -f conftest.err conftest.$ac_ext
16144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16145 echo "${ECHO_T}$ac_header_preproc" >&6; }
16147 # So? What about this header?
16148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16154 ac_header_preproc=yes
16157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16170 ## ----------------------------------- ##
16171 ## Report this to llvmbugs@cs.uiuc.edu ##
16172 ## ----------------------------------- ##
16174 ) | sed "s/^/$as_me: WARNING: /" >&2
16177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 eval "$as_ac_Header=\$ac_header_preproc"
16184 ac_res=`eval echo '${'$as_ac_Header'}'`
16185 { echo "$as_me:$LINENO: result: $ac_res" >&5
16186 echo "${ECHO_T}$ac_res" >&6; }
16189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16190 cat >>confdefs.h <<_ACEOF
16191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16202 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16209 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 ac_res=`eval echo '${'$as_ac_Header'}'`
16212 { echo "$as_me:$LINENO: result: $ac_res" >&5
16213 echo "${ECHO_T}$ac_res" >&6; }
16215 # Is the header compilable?
16216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16218 cat >conftest.$ac_ext <<_ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 $ac_includes_default
16225 #include <$ac_header>
16227 rm -f conftest.$ac_objext
16228 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16236 grep -v '^ *+' conftest.er1 >conftest.err
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
16241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16242 { (case "(($ac_try" in
16243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244 *) ac_try_echo=$ac_try;;
16246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247 (eval "$ac_try") 2>&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; } &&
16251 { ac_try='test -s conftest.$ac_objext'
16252 { (case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_try") 2>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 ac_header_compiler=yes
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 ac_header_compiler=no
16269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16271 echo "${ECHO_T}$ac_header_compiler" >&6; }
16273 # Is the header present?
16274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16276 cat >conftest.$ac_ext <<_ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16282 #include <$ac_header>
16284 if { (ac_try="$ac_cpp conftest.$ac_ext"
16285 case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16292 grep -v '^ *+' conftest.er1 >conftest.err
16294 cat conftest.err >&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } >/dev/null; then
16297 if test -s conftest.err; then
16298 ac_cpp_err=$ac_c_preproc_warn_flag
16299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16306 if test -z "$ac_cpp_err"; then
16307 ac_header_preproc=yes
16309 echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16312 ac_header_preproc=no
16315 rm -f conftest.err conftest.$ac_ext
16316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16317 echo "${ECHO_T}$ac_header_preproc" >&6; }
16319 # So? What about this header?
16320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16326 ac_header_preproc=yes
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16342 ## ----------------------------------- ##
16343 ## Report this to llvmbugs@cs.uiuc.edu ##
16344 ## ----------------------------------- ##
16346 ) | sed "s/^/$as_me: WARNING: /" >&2
16349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16354 eval "$as_ac_Header=\$ac_header_preproc"
16356 ac_res=`eval echo '${'$as_ac_Header'}'`
16357 { echo "$as_me:$LINENO: result: $ac_res" >&5
16358 echo "${ECHO_T}$ac_res" >&6; }
16361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16362 cat >>confdefs.h <<_ACEOF
16363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16374 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16383 ac_res=`eval echo '${'$as_ac_Header'}'`
16384 { echo "$as_me:$LINENO: result: $ac_res" >&5
16385 echo "${ECHO_T}$ac_res" >&6; }
16387 # Is the header compilable?
16388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16390 cat >conftest.$ac_ext <<_ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396 $ac_includes_default
16397 #include <$ac_header>
16399 rm -f conftest.$ac_objext
16400 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16408 grep -v '^ *+' conftest.er1 >conftest.err
16410 cat conftest.err >&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } &&
16413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16414 { (case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_try") 2>&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; } &&
16423 { ac_try='test -s conftest.$ac_objext'
16424 { (case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_try") 2>&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }; }; then
16433 ac_header_compiler=yes
16435 echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16438 ac_header_compiler=no
16441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16443 echo "${ECHO_T}$ac_header_compiler" >&6; }
16445 # Is the header present?
16446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16448 cat >conftest.$ac_ext <<_ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h. */
16454 #include <$ac_header>
16456 if { (ac_try="$ac_cpp conftest.$ac_ext"
16457 case "(($ac_try" in
16458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459 *) ac_try_echo=$ac_try;;
16461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16464 grep -v '^ *+' conftest.er1 >conftest.err
16466 cat conftest.err >&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); } >/dev/null; then
16469 if test -s conftest.err; then
16470 ac_cpp_err=$ac_c_preproc_warn_flag
16471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16478 if test -z "$ac_cpp_err"; then
16479 ac_header_preproc=yes
16481 echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16484 ac_header_preproc=no
16487 rm -f conftest.err conftest.$ac_ext
16488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16489 echo "${ECHO_T}$ac_header_preproc" >&6; }
16491 # So? What about this header?
16492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16498 ac_header_preproc=yes
16501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16514 ## ----------------------------------- ##
16515 ## Report this to llvmbugs@cs.uiuc.edu ##
16516 ## ----------------------------------- ##
16518 ) | sed "s/^/$as_me: WARNING: /" >&2
16521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 eval "$as_ac_Header=\$ac_header_preproc"
16528 ac_res=`eval echo '${'$as_ac_Header'}'`
16529 { echo "$as_me:$LINENO: result: $ac_res" >&5
16530 echo "${ECHO_T}$ac_res" >&6; }
16533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16534 cat >>confdefs.h <<_ACEOF
16535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16543 for ac_header in valgrind/valgrind.h
16545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16552 ac_res=`eval echo '${'$as_ac_Header'}'`
16553 { echo "$as_me:$LINENO: result: $ac_res" >&5
16554 echo "${ECHO_T}$ac_res" >&6; }
16556 # Is the header compilable?
16557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16559 cat >conftest.$ac_ext <<_ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 $ac_includes_default
16566 #include <$ac_header>
16568 rm -f conftest.$ac_objext
16569 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16577 grep -v '^ *+' conftest.er1 >conftest.err
16579 cat conftest.err >&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } &&
16582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16583 { (case "(($ac_try" in
16584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585 *) ac_try_echo=$ac_try;;
16587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588 (eval "$ac_try") 2>&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; } &&
16592 { ac_try='test -s conftest.$ac_objext'
16593 { (case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_try") 2>&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; }; then
16602 ac_header_compiler=yes
16604 echo "$as_me: failed program was:" >&5
16605 sed 's/^/| /' conftest.$ac_ext >&5
16607 ac_header_compiler=no
16610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16612 echo "${ECHO_T}$ac_header_compiler" >&6; }
16614 # Is the header present?
16615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16617 cat >conftest.$ac_ext <<_ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16623 #include <$ac_header>
16625 if { (ac_try="$ac_cpp conftest.$ac_ext"
16626 case "(($ac_try" in
16627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628 *) ac_try_echo=$ac_try;;
16630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16633 grep -v '^ *+' conftest.er1 >conftest.err
16635 cat conftest.err >&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } >/dev/null; then
16638 if test -s conftest.err; then
16639 ac_cpp_err=$ac_c_preproc_warn_flag
16640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16647 if test -z "$ac_cpp_err"; then
16648 ac_header_preproc=yes
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 ac_header_preproc=no
16656 rm -f conftest.err conftest.$ac_ext
16657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16658 echo "${ECHO_T}$ac_header_preproc" >&6; }
16660 # So? What about this header?
16661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16667 ac_header_preproc=yes
16670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16683 ## ----------------------------------- ##
16684 ## Report this to llvmbugs@cs.uiuc.edu ##
16685 ## ----------------------------------- ##
16687 ) | sed "s/^/$as_me: WARNING: /" >&2
16690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 eval "$as_ac_Header=\$ac_header_preproc"
16697 ac_res=`eval echo '${'$as_ac_Header'}'`
16698 { echo "$as_me:$LINENO: result: $ac_res" >&5
16699 echo "${ECHO_T}$ac_res" >&6; }
16702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16703 cat >>confdefs.h <<_ACEOF
16704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16712 for ac_header in fenv.h
16714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 ac_res=`eval echo '${'$as_ac_Header'}'`
16722 { echo "$as_me:$LINENO: result: $ac_res" >&5
16723 echo "${ECHO_T}$ac_res" >&6; }
16725 # Is the header compilable?
16726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16728 cat >conftest.$ac_ext <<_ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16734 $ac_includes_default
16735 #include <$ac_header>
16737 rm -f conftest.$ac_objext
16738 if { (ac_try="$ac_compile"
16739 case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_compile") 2>conftest.er1
16746 grep -v '^ *+' conftest.er1 >conftest.err
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16752 { (case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_try") 2>&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try='test -s conftest.$ac_objext'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 ac_header_compiler=yes
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 ac_header_compiler=no
16779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16781 echo "${ECHO_T}$ac_header_compiler" >&6; }
16783 # Is the header present?
16784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16786 cat >conftest.$ac_ext <<_ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16792 #include <$ac_header>
16794 if { (ac_try="$ac_cpp conftest.$ac_ext"
16795 case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16802 grep -v '^ *+' conftest.er1 >conftest.err
16804 cat conftest.err >&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } >/dev/null; then
16807 if test -s conftest.err; then
16808 ac_cpp_err=$ac_c_preproc_warn_flag
16809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16816 if test -z "$ac_cpp_err"; then
16817 ac_header_preproc=yes
16819 echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16822 ac_header_preproc=no
16825 rm -f conftest.err conftest.$ac_ext
16826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16827 echo "${ECHO_T}$ac_header_preproc" >&6; }
16829 # So? What about this header?
16830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16836 ac_header_preproc=yes
16839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16846 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16852 ## ----------------------------------- ##
16853 ## Report this to llvmbugs@cs.uiuc.edu ##
16854 ## ----------------------------------- ##
16856 ) | sed "s/^/$as_me: WARNING: /" >&2
16859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 eval "$as_ac_Header=\$ac_header_preproc"
16866 ac_res=`eval echo '${'$as_ac_Header'}'`
16867 { echo "$as_me:$LINENO: result: $ac_res" >&5
16868 echo "${ECHO_T}$ac_res" >&6; }
16871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16872 cat >>confdefs.h <<_ACEOF
16873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16880 if test "$ENABLE_THREADS" -eq 1 ; then
16882 for ac_header in pthread.h
16884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 ac_res=`eval echo '${'$as_ac_Header'}'`
16892 { echo "$as_me:$LINENO: result: $ac_res" >&5
16893 echo "${ECHO_T}$ac_res" >&6; }
16895 # Is the header compilable?
16896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16898 cat >conftest.$ac_ext <<_ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 $ac_includes_default
16905 #include <$ac_header>
16907 rm -f conftest.$ac_objext
16908 if { (ac_try="$ac_compile"
16909 case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_compile") 2>conftest.er1
16916 grep -v '^ *+' conftest.er1 >conftest.err
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; } &&
16931 { ac_try='test -s conftest.$ac_objext'
16932 { (case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_try") 2>&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_header_compiler=yes
16943 echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16946 ac_header_compiler=no
16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16951 echo "${ECHO_T}$ac_header_compiler" >&6; }
16953 # Is the header present?
16954 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16956 cat >conftest.$ac_ext <<_ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16962 #include <$ac_header>
16964 if { (ac_try="$ac_cpp conftest.$ac_ext"
16965 case "(($ac_try" in
16966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967 *) ac_try_echo=$ac_try;;
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16972 grep -v '^ *+' conftest.er1 >conftest.err
16974 cat conftest.err >&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } >/dev/null; then
16977 if test -s conftest.err; then
16978 ac_cpp_err=$ac_c_preproc_warn_flag
16979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16986 if test -z "$ac_cpp_err"; then
16987 ac_header_preproc=yes
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16992 ac_header_preproc=no
16995 rm -f conftest.err conftest.$ac_ext
16996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16997 echo "${ECHO_T}$ac_header_preproc" >&6; }
16999 # So? What about this header?
17000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17006 ac_header_preproc=yes
17009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17022 ## ----------------------------------- ##
17023 ## Report this to llvmbugs@cs.uiuc.edu ##
17024 ## ----------------------------------- ##
17026 ) | sed "s/^/$as_me: WARNING: /" >&2
17029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17034 eval "$as_ac_Header=\$ac_header_preproc"
17036 ac_res=`eval echo '${'$as_ac_Header'}'`
17037 { echo "$as_me:$LINENO: result: $ac_res" >&5
17038 echo "${ECHO_T}$ac_res" >&6; }
17041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17042 cat >>confdefs.h <<_ACEOF
17043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17059 if test "$llvm_cv_enable_libffi" = "yes" ; then
17062 for ac_header in ffi.h ffi/ffi.h
17064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 ac_res=`eval echo '${'$as_ac_Header'}'`
17072 { echo "$as_me:$LINENO: result: $ac_res" >&5
17073 echo "${ECHO_T}$ac_res" >&6; }
17075 # Is the header compilable?
17076 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17078 cat >conftest.$ac_ext <<_ACEOF
17081 cat confdefs.h >>conftest.$ac_ext
17082 cat >>conftest.$ac_ext <<_ACEOF
17083 /* end confdefs.h. */
17084 $ac_includes_default
17085 #include <$ac_header>
17087 rm -f conftest.$ac_objext
17088 if { (ac_try="$ac_compile"
17089 case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_compile") 2>conftest.er1
17096 grep -v '^ *+' conftest.er1 >conftest.err
17098 cat conftest.err >&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } &&
17101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17102 { (case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_try") 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; } &&
17111 { ac_try='test -s conftest.$ac_objext'
17112 { (case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_try") 2>&5
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; }; then
17121 ac_header_compiler=yes
17123 echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17126 ac_header_compiler=no
17129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17131 echo "${ECHO_T}$ac_header_compiler" >&6; }
17133 # Is the header present?
17134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17136 cat >conftest.$ac_ext <<_ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142 #include <$ac_header>
17144 if { (ac_try="$ac_cpp conftest.$ac_ext"
17145 case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17152 grep -v '^ *+' conftest.er1 >conftest.err
17154 cat conftest.err >&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } >/dev/null; then
17157 if test -s conftest.err; then
17158 ac_cpp_err=$ac_c_preproc_warn_flag
17159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17166 if test -z "$ac_cpp_err"; then
17167 ac_header_preproc=yes
17169 echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17172 ac_header_preproc=no
17175 rm -f conftest.err conftest.$ac_ext
17176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17177 echo "${ECHO_T}$ac_header_preproc" >&6; }
17179 # So? What about this header?
17180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17186 ac_header_preproc=yes
17189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17202 ## ----------------------------------- ##
17203 ## Report this to llvmbugs@cs.uiuc.edu ##
17204 ## ----------------------------------- ##
17206 ) | sed "s/^/$as_me: WARNING: /" >&2
17209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17214 eval "$as_ac_Header=\$ac_header_preproc"
17216 ac_res=`eval echo '${'$as_ac_Header'}'`
17217 { echo "$as_me:$LINENO: result: $ac_res" >&5
17218 echo "${ECHO_T}$ac_res" >&6; }
17221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17222 cat >>confdefs.h <<_ACEOF
17223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17233 for ac_header in CrashReporterClient.h
17235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17240 echo $ECHO_N "(cached) $ECHO_C" >&6
17242 ac_res=`eval echo '${'$as_ac_Header'}'`
17243 { echo "$as_me:$LINENO: result: $ac_res" >&5
17244 echo "${ECHO_T}$ac_res" >&6; }
17246 # Is the header compilable?
17247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17249 cat >conftest.$ac_ext <<_ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17255 $ac_includes_default
17256 #include <$ac_header>
17258 rm -f conftest.$ac_objext
17259 if { (ac_try="$ac_compile"
17260 case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_compile") 2>conftest.er1
17267 grep -v '^ *+' conftest.er1 >conftest.err
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } &&
17272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; } &&
17282 { ac_try='test -s conftest.$ac_objext'
17283 { (case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_try") 2>&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 ac_header_compiler=yes
17294 echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17297 ac_header_compiler=no
17300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17302 echo "${ECHO_T}$ac_header_compiler" >&6; }
17304 # Is the header present?
17305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17307 cat >conftest.$ac_ext <<_ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 #include <$ac_header>
17315 if { (ac_try="$ac_cpp conftest.$ac_ext"
17316 case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17323 grep -v '^ *+' conftest.er1 >conftest.err
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } >/dev/null; then
17328 if test -s conftest.err; then
17329 ac_cpp_err=$ac_c_preproc_warn_flag
17330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17337 if test -z "$ac_cpp_err"; then
17338 ac_header_preproc=yes
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 ac_header_preproc=no
17346 rm -f conftest.err conftest.$ac_ext
17347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17348 echo "${ECHO_T}$ac_header_preproc" >&6; }
17350 # So? What about this header?
17351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17357 ac_header_preproc=yes
17360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17373 ## ----------------------------------- ##
17374 ## Report this to llvmbugs@cs.uiuc.edu ##
17375 ## ----------------------------------- ##
17377 ) | sed "s/^/$as_me: WARNING: /" >&2
17380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 eval "$as_ac_Header=\$ac_header_preproc"
17387 ac_res=`eval echo '${'$as_ac_Header'}'`
17388 { echo "$as_me:$LINENO: result: $ac_res" >&5
17389 echo "${ECHO_T}$ac_res" >&6; }
17392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17393 cat >>confdefs.h <<_ACEOF
17394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17405 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17406 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17407 if test "${ac_cv_huge_val_sanity+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 ac_cpp='$CXXCPP $CPPFLAGS'
17413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17417 ac_save_CXXFLAGS=$CXXFLAGS
17419 if test "$cross_compiling" = yes; then
17420 ac_cv_huge_val_sanity=yes
17422 cat >conftest.$ac_ext <<_ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17432 double x = HUGE_VAL; return x != x;
17437 rm -f conftest$ac_exeext
17438 if { (ac_try="$ac_link"
17439 case "(($ac_try" in
17440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441 *) ac_try_echo=$ac_try;;
17443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17444 (eval "$ac_link") 2>&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17448 { (case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_try") 2>&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 ac_cv_huge_val_sanity=yes
17459 echo "$as_me: program exited with status $ac_status" >&5
17460 echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17463 ( exit $ac_status )
17464 ac_cv_huge_val_sanity=no
17466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17470 CXXFLAGS=$ac_save_CXXFLAGS
17472 ac_cpp='$CPP $CPPFLAGS'
17473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17479 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17480 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17481 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17484 { echo "$as_me:$LINENO: checking for pid_t" >&5
17485 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17486 if test "${ac_cv_type_pid_t+set}" = set; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17489 cat >conftest.$ac_ext <<_ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17495 $ac_includes_default
17496 typedef pid_t ac__type_new_;
17500 if ((ac__type_new_ *) 0)
17502 if (sizeof (ac__type_new_))
17508 rm -f conftest.$ac_objext
17509 if { (ac_try="$ac_compile"
17510 case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_compile") 2>conftest.er1
17517 grep -v '^ *+' conftest.er1 >conftest.err
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
17522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17523 { (case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_try") 2>&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest.$ac_objext'
17533 { (case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_try") 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 ac_cv_type_pid_t=yes
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17547 ac_cv_type_pid_t=no
17550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17552 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17553 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17554 if test $ac_cv_type_pid_t = yes; then
17558 cat >>confdefs.h <<_ACEOF
17564 { echo "$as_me:$LINENO: checking for size_t" >&5
17565 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17566 if test "${ac_cv_type_size_t+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17569 cat >conftest.$ac_ext <<_ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17575 $ac_includes_default
17576 typedef size_t ac__type_new_;
17580 if ((ac__type_new_ *) 0)
17582 if (sizeof (ac__type_new_))
17588 rm -f conftest.$ac_objext
17589 if { (ac_try="$ac_compile"
17590 case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_compile") 2>conftest.er1
17597 grep -v '^ *+' conftest.er1 >conftest.err
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17603 { (case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608 (eval "$ac_try") 2>&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } &&
17612 { ac_try='test -s conftest.$ac_objext'
17613 { (case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_try") 2>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_type_size_t=yes
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 ac_cv_type_size_t=no
17630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17632 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17633 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17634 if test $ac_cv_type_size_t = yes; then
17638 cat >>confdefs.h <<_ACEOF
17639 #define size_t unsigned int
17645 cat >>confdefs.h <<_ACEOF
17646 #define RETSIGTYPE void
17649 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17650 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17651 if test "${ac_cv_struct_tm+set}" = set; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17654 cat >conftest.$ac_ext <<_ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17660 #include <sys/types.h>
17666 struct tm *tp; tp->tm_sec;
17671 rm -f conftest.$ac_objext
17672 if { (ac_try="$ac_compile"
17673 case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_compile") 2>conftest.er1
17680 grep -v '^ *+' conftest.er1 >conftest.err
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686 { (case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_try") 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest.$ac_objext'
17696 { (case "(($ac_try" in
17697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698 *) ac_try_echo=$ac_try;;
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_try") 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 ac_cv_struct_tm=time.h
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_cv_struct_tm=sys/time.h
17713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17716 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17717 if test $ac_cv_struct_tm = sys/time.h; then
17719 cat >>confdefs.h <<\_ACEOF
17720 #define TM_IN_SYS_TIME 1
17725 { echo "$as_me:$LINENO: checking for int64_t" >&5
17726 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17727 if test "${ac_cv_type_int64_t+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 cat >conftest.$ac_ext <<_ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h. */
17736 $ac_includes_default
17737 typedef int64_t ac__type_new_;
17741 if ((ac__type_new_ *) 0)
17743 if (sizeof (ac__type_new_))
17749 rm -f conftest.$ac_objext
17750 if { (ac_try="$ac_compile"
17751 case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_compile") 2>conftest.er1
17758 grep -v '^ *+' conftest.er1 >conftest.err
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17764 { (case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769 (eval "$ac_try") 2>&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; } &&
17773 { ac_try='test -s conftest.$ac_objext'
17774 { (case "(($ac_try" in
17775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776 *) ac_try_echo=$ac_try;;
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779 (eval "$ac_try") 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 ac_cv_type_int64_t=yes
17785 echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17788 ac_cv_type_int64_t=no
17791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17794 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17795 if test $ac_cv_type_int64_t = yes; then
17797 cat >>confdefs.h <<_ACEOF
17798 #define HAVE_INT64_T 1
17803 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17804 echo "$as_me: error: Type int64_t required but not found" >&2;}
17805 { (exit 1); exit 1; }; }
17808 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17809 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17810 if test "${ac_cv_type_uint64_t+set}" = set; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17813 cat >conftest.$ac_ext <<_ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17819 $ac_includes_default
17820 typedef uint64_t ac__type_new_;
17824 if ((ac__type_new_ *) 0)
17826 if (sizeof (ac__type_new_))
17832 rm -f conftest.$ac_objext
17833 if { (ac_try="$ac_compile"
17834 case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_compile") 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
17846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17847 { (case "(($ac_try" in
17848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849 *) ac_try_echo=$ac_try;;
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852 (eval "$ac_try") 2>&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; } &&
17856 { ac_try='test -s conftest.$ac_objext'
17857 { (case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_try") 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17866 ac_cv_type_uint64_t=yes
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17871 ac_cv_type_uint64_t=no
17874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17876 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17877 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17878 if test $ac_cv_type_uint64_t = yes; then
17880 cat >>confdefs.h <<_ACEOF
17881 #define HAVE_UINT64_T 1
17886 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17887 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17888 if test "${ac_cv_type_u_int64_t+set}" = set; then
17889 echo $ECHO_N "(cached) $ECHO_C" >&6
17891 cat >conftest.$ac_ext <<_ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17897 $ac_includes_default
17898 typedef u_int64_t ac__type_new_;
17902 if ((ac__type_new_ *) 0)
17904 if (sizeof (ac__type_new_))
17910 rm -f conftest.$ac_objext
17911 if { (ac_try="$ac_compile"
17912 case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917 (eval "$ac_compile") 2>conftest.er1
17919 grep -v '^ *+' conftest.er1 >conftest.err
17921 cat conftest.err >&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17925 { (case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_try") 2>&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest.$ac_objext'
17935 { (case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_try") 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; }; then
17944 ac_cv_type_u_int64_t=yes
17946 echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17949 ac_cv_type_u_int64_t=no
17952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17954 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17955 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17956 if test $ac_cv_type_u_int64_t = yes; then
17958 cat >>confdefs.h <<_ACEOF
17959 #define HAVE_U_INT64_T 1
17964 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17965 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17966 { (exit 1); exit 1; }; }
17980 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17988 cat >conftest.$ac_ext <<_ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
17994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17996 #define $ac_func innocuous_$ac_func
17998 /* System header to define __stub macros and hopefully few prototypes,
17999 which can conflict with char $ac_func (); below.
18000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18001 <limits.h> exists even on freestanding compilers. */
18004 # include <limits.h>
18006 # include <assert.h>
18011 /* Override any GCC internal prototype to avoid an error.
18012 Use char because int might match the return type of a GCC
18013 builtin and then its argument prototype would still apply. */
18018 /* The GNU C library defines this for functions which it implements
18019 to always fail with ENOSYS. Some functions are actually named
18020 something starting with __ and the normal name is an alias. */
18021 #if defined __stub_$ac_func || defined __stub___$ac_func
18028 return $ac_func ();
18033 rm -f conftest.$ac_objext conftest$ac_exeext
18034 if { (ac_try="$ac_link"
18035 case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040 (eval "$ac_link") 2>conftest.er1
18042 grep -v '^ *+' conftest.er1 >conftest.err
18044 cat conftest.err >&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } &&
18047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18048 { (case "(($ac_try" in
18049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050 *) ac_try_echo=$ac_try;;
18052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053 (eval "$ac_try") 2>&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; } &&
18057 { ac_try='test -s conftest$ac_exeext'
18058 { (case "(($ac_try" in
18059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060 *) ac_try_echo=$ac_try;;
18062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063 (eval "$ac_try") 2>&5
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; }; then
18067 eval "$as_ac_var=yes"
18069 echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18072 eval "$as_ac_var=no"
18075 rm -f core conftest.err conftest.$ac_objext \
18076 conftest$ac_exeext conftest.$ac_ext
18078 ac_res=`eval echo '${'$as_ac_var'}'`
18079 { echo "$as_me:$LINENO: result: $ac_res" >&5
18080 echo "${ECHO_T}$ac_res" >&6; }
18081 if test `eval echo '${'$as_ac_var'}'` = yes; then
18082 cat >>confdefs.h <<_ACEOF
18083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18093 for ac_func in powf fmodf strtof round
18095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18099 echo $ECHO_N "(cached) $ECHO_C" >&6
18101 cat >conftest.$ac_ext <<_ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18109 #define $ac_func innocuous_$ac_func
18111 /* System header to define __stub macros and hopefully few prototypes,
18112 which can conflict with char $ac_func (); below.
18113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18114 <limits.h> exists even on freestanding compilers. */
18117 # include <limits.h>
18119 # include <assert.h>
18124 /* Override any GCC internal prototype to avoid an error.
18125 Use char because int might match the return type of a GCC
18126 builtin and then its argument prototype would still apply. */
18131 /* The GNU C library defines this for functions which it implements
18132 to always fail with ENOSYS. Some functions are actually named
18133 something starting with __ and the normal name is an alias. */
18134 #if defined __stub_$ac_func || defined __stub___$ac_func
18141 return $ac_func ();
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (ac_try="$ac_link"
18148 case "(($ac_try" in
18149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150 *) ac_try_echo=$ac_try;;
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153 (eval "$ac_link") 2>conftest.er1
18155 grep -v '^ *+' conftest.er1 >conftest.err
18157 cat conftest.err >&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18161 { (case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_try") 2>&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } &&
18170 { ac_try='test -s conftest$ac_exeext'
18171 { (case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176 (eval "$ac_try") 2>&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; }; then
18180 eval "$as_ac_var=yes"
18182 echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 eval "$as_ac_var=no"
18188 rm -f core conftest.err conftest.$ac_objext \
18189 conftest$ac_exeext conftest.$ac_ext
18191 ac_res=`eval echo '${'$as_ac_var'}'`
18192 { echo "$as_me:$LINENO: result: $ac_res" >&5
18193 echo "${ECHO_T}$ac_res" >&6; }
18194 if test `eval echo '${'$as_ac_var'}'` = yes; then
18195 cat >>confdefs.h <<_ACEOF
18196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18207 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18215 cat >conftest.$ac_ext <<_ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h. */
18221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18223 #define $ac_func innocuous_$ac_func
18225 /* System header to define __stub macros and hopefully few prototypes,
18226 which can conflict with char $ac_func (); below.
18227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18228 <limits.h> exists even on freestanding compilers. */
18231 # include <limits.h>
18233 # include <assert.h>
18238 /* Override any GCC internal prototype to avoid an error.
18239 Use char because int might match the return type of a GCC
18240 builtin and then its argument prototype would still apply. */
18245 /* The GNU C library defines this for functions which it implements
18246 to always fail with ENOSYS. Some functions are actually named
18247 something starting with __ and the normal name is an alias. */
18248 #if defined __stub_$ac_func || defined __stub___$ac_func
18255 return $ac_func ();
18260 rm -f conftest.$ac_objext conftest$ac_exeext
18261 if { (ac_try="$ac_link"
18262 case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_link") 2>conftest.er1
18269 grep -v '^ *+' conftest.er1 >conftest.err
18271 cat conftest.err >&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } &&
18274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18275 { (case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_try") 2>&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest$ac_exeext'
18285 { (case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_try") 2>&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
18294 eval "$as_ac_var=yes"
18296 echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18299 eval "$as_ac_var=no"
18302 rm -f core conftest.err conftest.$ac_objext \
18303 conftest$ac_exeext conftest.$ac_ext
18305 ac_res=`eval echo '${'$as_ac_var'}'`
18306 { echo "$as_me:$LINENO: result: $ac_res" >&5
18307 echo "${ECHO_T}$ac_res" >&6; }
18308 if test `eval echo '${'$as_ac_var'}'` = yes; then
18309 cat >>confdefs.h <<_ACEOF
18310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18319 for ac_func in isatty mkdtemp mkstemp
18321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
18327 cat >conftest.$ac_ext <<_ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18335 #define $ac_func innocuous_$ac_func
18337 /* System header to define __stub macros and hopefully few prototypes,
18338 which can conflict with char $ac_func (); below.
18339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18340 <limits.h> exists even on freestanding compilers. */
18343 # include <limits.h>
18345 # include <assert.h>
18350 /* Override any GCC internal prototype to avoid an error.
18351 Use char because int might match the return type of a GCC
18352 builtin and then its argument prototype would still apply. */
18357 /* The GNU C library defines this for functions which it implements
18358 to always fail with ENOSYS. Some functions are actually named
18359 something starting with __ and the normal name is an alias. */
18360 #if defined __stub_$ac_func || defined __stub___$ac_func
18367 return $ac_func ();
18372 rm -f conftest.$ac_objext conftest$ac_exeext
18373 if { (ac_try="$ac_link"
18374 case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_link") 2>conftest.er1
18381 grep -v '^ *+' conftest.er1 >conftest.err
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } &&
18386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18387 { (case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_try") 2>&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; } &&
18396 { ac_try='test -s conftest$ac_exeext'
18397 { (case "(($ac_try" in
18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399 *) ac_try_echo=$ac_try;;
18401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402 (eval "$ac_try") 2>&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; }; then
18406 eval "$as_ac_var=yes"
18408 echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18411 eval "$as_ac_var=no"
18414 rm -f core conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18417 ac_res=`eval echo '${'$as_ac_var'}'`
18418 { echo "$as_me:$LINENO: result: $ac_res" >&5
18419 echo "${ECHO_T}$ac_res" >&6; }
18420 if test `eval echo '${'$as_ac_var'}'` = yes; then
18421 cat >>confdefs.h <<_ACEOF
18422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18434 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18442 cat >conftest.$ac_ext <<_ACEOF
18445 cat confdefs.h >>conftest.$ac_ext
18446 cat >>conftest.$ac_ext <<_ACEOF
18447 /* end confdefs.h. */
18448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18450 #define $ac_func innocuous_$ac_func
18452 /* System header to define __stub macros and hopefully few prototypes,
18453 which can conflict with char $ac_func (); below.
18454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18455 <limits.h> exists even on freestanding compilers. */
18458 # include <limits.h>
18460 # include <assert.h>
18465 /* Override any GCC internal prototype to avoid an error.
18466 Use char because int might match the return type of a GCC
18467 builtin and then its argument prototype would still apply. */
18472 /* The GNU C library defines this for functions which it implements
18473 to always fail with ENOSYS. Some functions are actually named
18474 something starting with __ and the normal name is an alias. */
18475 #if defined __stub_$ac_func || defined __stub___$ac_func
18482 return $ac_func ();
18487 rm -f conftest.$ac_objext conftest$ac_exeext
18488 if { (ac_try="$ac_link"
18489 case "(($ac_try" in
18490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18491 *) ac_try_echo=$ac_try;;
18493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18494 (eval "$ac_link") 2>conftest.er1
18496 grep -v '^ *+' conftest.er1 >conftest.err
18498 cat conftest.err >&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); } &&
18501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18502 { (case "(($ac_try" in
18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504 *) ac_try_echo=$ac_try;;
18506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507 (eval "$ac_try") 2>&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; } &&
18511 { ac_try='test -s conftest$ac_exeext'
18512 { (case "(($ac_try" in
18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514 *) ac_try_echo=$ac_try;;
18516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517 (eval "$ac_try") 2>&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); }; }; then
18521 eval "$as_ac_var=yes"
18523 echo "$as_me: failed program was:" >&5
18524 sed 's/^/| /' conftest.$ac_ext >&5
18526 eval "$as_ac_var=no"
18529 rm -f core conftest.err conftest.$ac_objext \
18530 conftest$ac_exeext conftest.$ac_ext
18532 ac_res=`eval echo '${'$as_ac_var'}'`
18533 { echo "$as_me:$LINENO: result: $ac_res" >&5
18534 echo "${ECHO_T}$ac_res" >&6; }
18535 if test `eval echo '${'$as_ac_var'}'` = yes; then
18536 cat >>confdefs.h <<_ACEOF
18537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18547 for ac_func in strerror strerror_r strerror_s setenv
18549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18555 cat >conftest.$ac_ext <<_ACEOF
18558 cat confdefs.h >>conftest.$ac_ext
18559 cat >>conftest.$ac_ext <<_ACEOF
18560 /* end confdefs.h. */
18561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18563 #define $ac_func innocuous_$ac_func
18565 /* System header to define __stub macros and hopefully few prototypes,
18566 which can conflict with char $ac_func (); below.
18567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18568 <limits.h> exists even on freestanding compilers. */
18571 # include <limits.h>
18573 # include <assert.h>
18578 /* Override any GCC internal prototype to avoid an error.
18579 Use char because int might match the return type of a GCC
18580 builtin and then its argument prototype would still apply. */
18585 /* The GNU C library defines this for functions which it implements
18586 to always fail with ENOSYS. Some functions are actually named
18587 something starting with __ and the normal name is an alias. */
18588 #if defined __stub_$ac_func || defined __stub___$ac_func
18595 return $ac_func ();
18600 rm -f conftest.$ac_objext conftest$ac_exeext
18601 if { (ac_try="$ac_link"
18602 case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_link") 2>conftest.er1
18609 grep -v '^ *+' conftest.er1 >conftest.err
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } &&
18614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18615 { (case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_try") 2>&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; } &&
18624 { ac_try='test -s conftest$ac_exeext'
18625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
18634 eval "$as_ac_var=yes"
18636 echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18639 eval "$as_ac_var=no"
18642 rm -f core conftest.err conftest.$ac_objext \
18643 conftest$ac_exeext conftest.$ac_ext
18645 ac_res=`eval echo '${'$as_ac_var'}'`
18646 { echo "$as_me:$LINENO: result: $ac_res" >&5
18647 echo "${ECHO_T}$ac_res" >&6; }
18648 if test `eval echo '${'$as_ac_var'}'` = yes; then
18649 cat >>confdefs.h <<_ACEOF
18650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18660 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18668 cat >conftest.$ac_ext <<_ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18676 #define $ac_func innocuous_$ac_func
18678 /* System header to define __stub macros and hopefully few prototypes,
18679 which can conflict with char $ac_func (); below.
18680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18681 <limits.h> exists even on freestanding compilers. */
18684 # include <limits.h>
18686 # include <assert.h>
18691 /* Override any GCC internal prototype to avoid an error.
18692 Use char because int might match the return type of a GCC
18693 builtin and then its argument prototype would still apply. */
18698 /* The GNU C library defines this for functions which it implements
18699 to always fail with ENOSYS. Some functions are actually named
18700 something starting with __ and the normal name is an alias. */
18701 #if defined __stub_$ac_func || defined __stub___$ac_func
18708 return $ac_func ();
18713 rm -f conftest.$ac_objext conftest$ac_exeext
18714 if { (ac_try="$ac_link"
18715 case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_link") 2>conftest.er1
18722 grep -v '^ *+' conftest.er1 >conftest.err
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
18727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18728 { (case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_try") 2>&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; } &&
18737 { ac_try='test -s conftest$ac_exeext'
18738 { (case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_try") 2>&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; }; then
18747 eval "$as_ac_var=yes"
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18752 eval "$as_ac_var=no"
18755 rm -f core conftest.err conftest.$ac_objext \
18756 conftest$ac_exeext conftest.$ac_ext
18758 ac_res=`eval echo '${'$as_ac_var'}'`
18759 { echo "$as_me:$LINENO: result: $ac_res" >&5
18760 echo "${ECHO_T}$ac_res" >&6; }
18761 if test `eval echo '${'$as_ac_var'}'` = yes; then
18762 cat >>confdefs.h <<_ACEOF
18763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18773 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 cat >conftest.$ac_ext <<_ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h. */
18787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18789 #define $ac_func innocuous_$ac_func
18791 /* System header to define __stub macros and hopefully few prototypes,
18792 which can conflict with char $ac_func (); below.
18793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18794 <limits.h> exists even on freestanding compilers. */
18797 # include <limits.h>
18799 # include <assert.h>
18804 /* Override any GCC internal prototype to avoid an error.
18805 Use char because int might match the return type of a GCC
18806 builtin and then its argument prototype would still apply. */
18811 /* The GNU C library defines this for functions which it implements
18812 to always fail with ENOSYS. Some functions are actually named
18813 something starting with __ and the normal name is an alias. */
18814 #if defined __stub_$ac_func || defined __stub___$ac_func
18821 return $ac_func ();
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (ac_try="$ac_link"
18828 case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_link") 2>conftest.er1
18835 grep -v '^ *+' conftest.er1 >conftest.err
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841 { (case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_try") 2>&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest$ac_exeext'
18851 { (case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_try") 2>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 eval "$as_ac_var=yes"
18862 echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18865 eval "$as_ac_var=no"
18868 rm -f core conftest.err conftest.$ac_objext \
18869 conftest$ac_exeext conftest.$ac_ext
18871 ac_res=`eval echo '${'$as_ac_var'}'`
18872 { echo "$as_me:$LINENO: result: $ac_res" >&5
18873 echo "${ECHO_T}$ac_res" >&6; }
18874 if test `eval echo '${'$as_ac_var'}'` = yes; then
18875 cat >>confdefs.h <<_ACEOF
18876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18882 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18883 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18884 if test "${llvm_cv_c_printf_a+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 ac_cpp='$CPP $CPPFLAGS'
18889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18893 if test "$cross_compiling" = yes; then
18894 llvmac_cv_c_printf_a=no
18896 cat >conftest.$ac_ext <<_ACEOF
18900 cat confdefs.h >>conftest.$ac_ext
18901 cat >>conftest.$ac_ext <<_ACEOF
18902 /* end confdefs.h. */
18905 #include <stdlib.h>
18911 volatile double A, B;
18915 sprintf(Buffer, "%a", A);
18919 if (A != 0x1.999999999999ap-4)
18926 rm -f conftest$ac_exeext
18927 if { (ac_try="$ac_link"
18928 case "(($ac_try" in
18929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930 *) ac_try_echo=$ac_try;;
18932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933 (eval "$ac_link") 2>&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18937 { (case "(($ac_try" in
18938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939 *) ac_try_echo=$ac_try;;
18941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18942 (eval "$ac_try") 2>&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
18946 llvm_cv_c_printf_a=yes
18948 echo "$as_me: program exited with status $ac_status" >&5
18949 echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18952 ( exit $ac_status )
18953 llvmac_cv_c_printf_a=no
18955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18960 ac_cpp='$CPP $CPPFLAGS'
18961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18966 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18967 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18968 if test "$llvm_cv_c_printf_a" = "yes"; then
18970 cat >>confdefs.h <<\_ACEOF
18971 #define HAVE_PRINTF_A 1
18977 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18978 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18979 if test "${ac_cv_func_rand48+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18983 ac_cpp='$CXXCPP $CPPFLAGS'
18984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18988 cat >conftest.$ac_ext <<_ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 #include <stdlib.h>
18998 srand48(0);lrand48();drand48();
19003 rm -f conftest.$ac_objext
19004 if { (ac_try="$ac_compile"
19005 case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_compile") 2>conftest.er1
19012 grep -v '^ *+' conftest.er1 >conftest.err
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } &&
19017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19018 { (case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_try") 2>&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; } &&
19027 { ac_try='test -s conftest.$ac_objext'
19028 { (case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_try") 2>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
19037 ac_cv_func_rand48=yes
19039 echo "$as_me: failed program was:" >&5
19040 sed 's/^/| /' conftest.$ac_ext >&5
19042 ac_cv_func_rand48=no
19045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19047 ac_cpp='$CPP $CPPFLAGS'
19048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19053 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19054 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19056 if test "$ac_cv_func_rand48" = "yes" ; then
19058 cat >>confdefs.h <<\_ACEOF
19059 #define HAVE_RAND48 1
19066 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19067 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19068 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 ac_cpp='$CXXCPP $CPPFLAGS'
19073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19077 cat >conftest.$ac_ext <<_ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h. */
19092 rm -f conftest.$ac_objext
19093 if { (ac_try="$ac_compile"
19094 case "(($ac_try" in
19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096 *) ac_try_echo=$ac_try;;
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099 (eval "$ac_compile") 2>conftest.er1
19101 grep -v '^ *+' conftest.er1 >conftest.err
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } &&
19106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; } &&
19116 { ac_try='test -s conftest.$ac_objext'
19117 { (case "(($ac_try" in
19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119 *) ac_try_echo=$ac_try;;
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122 (eval "$ac_try") 2>&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 ac_cv_func_isnan_in_math_h=yes
19128 echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19131 ac_cv_func_isnan_in_math_h=no
19134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19136 ac_cpp='$CPP $CPPFLAGS'
19137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19142 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19143 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19146 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19148 cat >>confdefs.h <<\_ACEOF
19149 #define HAVE_ISNAN_IN_MATH_H 1
19154 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19155 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19156 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19160 ac_cpp='$CXXCPP $CPPFLAGS'
19161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19165 cat >conftest.$ac_ext <<_ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19180 rm -f conftest.$ac_objext
19181 if { (ac_try="$ac_compile"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_compile") 2>conftest.er1
19189 grep -v '^ *+' conftest.er1 >conftest.err
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest.$ac_objext'
19205 { (case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_try") 2>&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
19214 ac_cv_func_isnan_in_cmath=yes
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19219 ac_cv_func_isnan_in_cmath=no
19222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19224 ac_cpp='$CPP $CPPFLAGS'
19225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19230 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19231 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19233 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_ISNAN_IN_CMATH 1
19241 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19242 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19243 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19244 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 ac_cpp='$CXXCPP $CPPFLAGS'
19248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19252 cat >conftest.$ac_ext <<_ACEOF
19255 cat confdefs.h >>conftest.$ac_ext
19256 cat >>conftest.$ac_ext <<_ACEOF
19257 /* end confdefs.h. */
19262 float f; std::isnan(f);
19267 rm -f conftest.$ac_objext
19268 if { (ac_try="$ac_compile"
19269 case "(($ac_try" in
19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_compile") 2>conftest.er1
19276 grep -v '^ *+' conftest.er1 >conftest.err
19278 cat conftest.err >&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); } &&
19281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19282 { (case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287 (eval "$ac_try") 2>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; } &&
19291 { ac_try='test -s conftest.$ac_objext'
19292 { (case "(($ac_try" in
19293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294 *) ac_try_echo=$ac_try;;
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297 (eval "$ac_try") 2>&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; }; then
19301 ac_cv_func_std_isnan_in_cmath=yes
19303 echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19306 ac_cv_func_std_isnan_in_cmath=no
19309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19311 ac_cpp='$CPP $CPPFLAGS'
19312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19317 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19318 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19320 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19322 cat >>confdefs.h <<\_ACEOF
19323 #define HAVE_STD_ISNAN_IN_CMATH 1
19329 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19330 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19331 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 ac_cpp='$CXXCPP $CPPFLAGS'
19336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19340 cat >conftest.$ac_ext <<_ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19355 rm -f conftest.$ac_objext
19356 if { (ac_try="$ac_compile"
19357 case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_compile") 2>conftest.er1
19364 grep -v '^ *+' conftest.er1 >conftest.err
19366 cat conftest.err >&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); } &&
19369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19370 { (case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_try") 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; } &&
19379 { ac_try='test -s conftest.$ac_objext'
19380 { (case "(($ac_try" in
19381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19382 *) ac_try_echo=$ac_try;;
19384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19385 (eval "$ac_try") 2>&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; }; then
19389 ac_cv_func_isinf_in_math_h=yes
19391 echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19394 ac_cv_func_isinf_in_math_h=no
19397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19399 ac_cpp='$CPP $CPPFLAGS'
19400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19405 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19406 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19408 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19410 cat >>confdefs.h <<\_ACEOF
19411 #define HAVE_ISINF_IN_MATH_H 1
19416 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19417 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19418 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19419 echo $ECHO_N "(cached) $ECHO_C" >&6
19422 ac_cpp='$CXXCPP $CPPFLAGS'
19423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19427 cat >conftest.$ac_ext <<_ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h. */
19442 rm -f conftest.$ac_objext
19443 if { (ac_try="$ac_compile"
19444 case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449 (eval "$ac_compile") 2>conftest.er1
19451 grep -v '^ *+' conftest.er1 >conftest.err
19453 cat conftest.err >&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } &&
19456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19457 { (case "(($ac_try" in
19458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19459 *) ac_try_echo=$ac_try;;
19461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19462 (eval "$ac_try") 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; } &&
19466 { ac_try='test -s conftest.$ac_objext'
19467 { (case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_try") 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 ac_cv_func_isinf_in_cmath=yes
19478 echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19481 ac_cv_func_isinf_in_cmath=no
19484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19486 ac_cpp='$CPP $CPPFLAGS'
19487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19492 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19493 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19495 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19497 cat >>confdefs.h <<\_ACEOF
19498 #define HAVE_ISINF_IN_CMATH 1
19503 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19504 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19505 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19509 ac_cpp='$CXXCPP $CPPFLAGS'
19510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19514 cat >conftest.$ac_ext <<_ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h. */
19524 float f; std::isinf(f)}
19529 rm -f conftest.$ac_objext
19530 if { (ac_try="$ac_compile"
19531 case "(($ac_try" in
19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533 *) ac_try_echo=$ac_try;;
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536 (eval "$ac_compile") 2>conftest.er1
19538 grep -v '^ *+' conftest.er1 >conftest.err
19540 cat conftest.err >&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); } &&
19543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19544 { (case "(($ac_try" in
19545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546 *) ac_try_echo=$ac_try;;
19548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19549 (eval "$ac_try") 2>&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; } &&
19553 { ac_try='test -s conftest.$ac_objext'
19554 { (case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_try") 2>&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_cv_func_std_isinf_in_cmath=yes
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19568 ac_cv_func_std_isinf_in_cmath=no
19571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19573 ac_cpp='$CPP $CPPFLAGS'
19574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19579 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19580 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19582 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19584 cat >>confdefs.h <<\_ACEOF
19585 #define HAVE_STD_ISINF_IN_CMATH 1
19590 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19591 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19592 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 ac_cpp='$CXXCPP $CPPFLAGS'
19597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19601 cat >conftest.$ac_ext <<_ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19607 #include <ieeefp.h>
19611 float f; finite(f);
19616 rm -f conftest.$ac_objext
19617 if { (ac_try="$ac_compile"
19618 case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_compile") 2>conftest.er1
19625 grep -v '^ *+' conftest.er1 >conftest.err
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19631 { (case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_try") 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 ac_cv_func_finite_in_ieeefp_h=yes
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19655 ac_cv_func_finite_in_ieeefp_h=no
19658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19660 ac_cpp='$CPP $CPPFLAGS'
19661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19666 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19667 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19669 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19671 cat >>confdefs.h <<\_ACEOF
19672 #define HAVE_FINITE_IN_IEEEFP_H 1
19679 if test "$llvm_cv_platform_type" = "Unix" ; then
19682 for ac_header in stdlib.h unistd.h
19684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19691 ac_res=`eval echo '${'$as_ac_Header'}'`
19692 { echo "$as_me:$LINENO: result: $ac_res" >&5
19693 echo "${ECHO_T}$ac_res" >&6; }
19695 # Is the header compilable?
19696 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19698 cat >conftest.$ac_ext <<_ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19704 $ac_includes_default
19705 #include <$ac_header>
19707 rm -f conftest.$ac_objext
19708 if { (ac_try="$ac_compile"
19709 case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_compile") 2>conftest.er1
19716 grep -v '^ *+' conftest.er1 >conftest.err
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
19721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19722 { (case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_try") 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest.$ac_objext'
19732 { (case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_try") 2>&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; }; then
19741 ac_header_compiler=yes
19743 echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19746 ac_header_compiler=no
19749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19751 echo "${ECHO_T}$ac_header_compiler" >&6; }
19753 # Is the header present?
19754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19756 cat >conftest.$ac_ext <<_ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19762 #include <$ac_header>
19764 if { (ac_try="$ac_cpp conftest.$ac_ext"
19765 case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19772 grep -v '^ *+' conftest.er1 >conftest.err
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } >/dev/null; then
19777 if test -s conftest.err; then
19778 ac_cpp_err=$ac_c_preproc_warn_flag
19779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19786 if test -z "$ac_cpp_err"; then
19787 ac_header_preproc=yes
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19792 ac_header_preproc=no
19795 rm -f conftest.err conftest.$ac_ext
19796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19797 echo "${ECHO_T}$ac_header_preproc" >&6; }
19799 # So? What about this header?
19800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19806 ac_header_preproc=yes
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19822 ## ----------------------------------- ##
19823 ## Report this to llvmbugs@cs.uiuc.edu ##
19824 ## ----------------------------------- ##
19826 ) | sed "s/^/$as_me: WARNING: /" >&2
19829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 eval "$as_ac_Header=\$ac_header_preproc"
19836 ac_res=`eval echo '${'$as_ac_Header'}'`
19837 { echo "$as_me:$LINENO: result: $ac_res" >&5
19838 echo "${ECHO_T}$ac_res" >&6; }
19841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19842 cat >>confdefs.h <<_ACEOF
19843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19851 for ac_func in getpagesize
19853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19859 cat >conftest.$ac_ext <<_ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19867 #define $ac_func innocuous_$ac_func
19869 /* System header to define __stub macros and hopefully few prototypes,
19870 which can conflict with char $ac_func (); below.
19871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19872 <limits.h> exists even on freestanding compilers. */
19875 # include <limits.h>
19877 # include <assert.h>
19882 /* Override any GCC internal prototype to avoid an error.
19883 Use char because int might match the return type of a GCC
19884 builtin and then its argument prototype would still apply. */
19889 /* The GNU C library defines this for functions which it implements
19890 to always fail with ENOSYS. Some functions are actually named
19891 something starting with __ and the normal name is an alias. */
19892 #if defined __stub_$ac_func || defined __stub___$ac_func
19899 return $ac_func ();
19904 rm -f conftest.$ac_objext conftest$ac_exeext
19905 if { (ac_try="$ac_link"
19906 case "(($ac_try" in
19907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_link") 2>conftest.er1
19913 grep -v '^ *+' conftest.er1 >conftest.err
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } &&
19918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19919 { (case "(($ac_try" in
19920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19921 *) ac_try_echo=$ac_try;;
19923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19924 (eval "$ac_try") 2>&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; } &&
19928 { ac_try='test -s conftest$ac_exeext'
19929 { (case "(($ac_try" in
19930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19931 *) ac_try_echo=$ac_try;;
19933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19934 (eval "$ac_try") 2>&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; }; then
19938 eval "$as_ac_var=yes"
19940 echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19943 eval "$as_ac_var=no"
19946 rm -f core conftest.err conftest.$ac_objext \
19947 conftest$ac_exeext conftest.$ac_ext
19949 ac_res=`eval echo '${'$as_ac_var'}'`
19950 { echo "$as_me:$LINENO: result: $ac_res" >&5
19951 echo "${ECHO_T}$ac_res" >&6; }
19952 if test `eval echo '${'$as_ac_var'}'` = yes; then
19953 cat >>confdefs.h <<_ACEOF
19954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19960 { echo "$as_me:$LINENO: checking for working mmap" >&5
19961 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19962 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 if test "$cross_compiling" = yes; then
19966 ac_cv_func_mmap_fixed_mapped=no
19968 cat >conftest.$ac_ext <<_ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 $ac_includes_default
19975 /* malloc might have been renamed as rpl_malloc. */
19978 /* Thanks to Mike Haertel and Jim Avera for this test.
19979 Here is a matrix of mmap possibilities:
19980 mmap private not fixed
19981 mmap private fixed at somewhere currently unmapped
19982 mmap private fixed at somewhere already mapped
19983 mmap shared not fixed
19984 mmap shared fixed at somewhere currently unmapped
19985 mmap shared fixed at somewhere already mapped
19986 For private mappings, we should verify that changes cannot be read()
19987 back from the file, nor mmap's back from the file at a different
19988 address. (There have been systems where private was not correctly
19989 implemented like the infamous i386 svr4.0, and systems where the
19990 VM page cache was not coherent with the file system buffer cache
19991 like early versions of FreeBSD and possibly contemporary NetBSD.)
19992 For shared mappings, we should conversely verify that changes get
19993 propagated back to all the places they're supposed to be.
19995 Grep wants private fixed already mapped.
19996 The main things grep needs to know about mmap are:
19997 * does it exist and is it safe to write into the mmap'd area
19998 * how to use it (BSD variants) */
20001 #include <sys/mman.h>
20003 #if !STDC_HEADERS && !HAVE_STDLIB_H
20007 /* This mess was copied from the GNU getpagesize.h. */
20008 #if !HAVE_GETPAGESIZE
20009 /* Assume that all systems that can run configure have sys/param.h. */
20010 # if !HAVE_SYS_PARAM_H
20011 # define HAVE_SYS_PARAM_H 1
20014 # ifdef _SC_PAGESIZE
20015 # define getpagesize() sysconf(_SC_PAGESIZE)
20016 # else /* no _SC_PAGESIZE */
20017 # if HAVE_SYS_PARAM_H
20018 # include <sys/param.h>
20019 # ifdef EXEC_PAGESIZE
20020 # define getpagesize() EXEC_PAGESIZE
20021 # else /* no EXEC_PAGESIZE */
20023 # define getpagesize() NBPG * CLSIZE
20026 # endif /* no CLSIZE */
20027 # else /* no NBPG */
20029 # define getpagesize() NBPC
20030 # else /* no NBPC */
20032 # define getpagesize() PAGESIZE
20033 # endif /* PAGESIZE */
20034 # endif /* no NBPC */
20035 # endif /* no NBPG */
20036 # endif /* no EXEC_PAGESIZE */
20037 # else /* no HAVE_SYS_PARAM_H */
20038 # define getpagesize() 8192 /* punt totally */
20039 # endif /* no HAVE_SYS_PARAM_H */
20040 # endif /* no _SC_PAGESIZE */
20042 #endif /* no HAVE_GETPAGESIZE */
20047 char *data, *data2, *data3;
20051 pagesize = getpagesize ();
20053 /* First, make a file with some known garbage in it. */
20054 data = (char *) malloc (pagesize);
20057 for (i = 0; i < pagesize; ++i)
20058 *(data + i) = rand ();
20060 fd = creat ("conftest.mmap", 0600);
20063 if (write (fd, data, pagesize) != pagesize)
20067 /* Next, try to mmap the file at a fixed address which already has
20068 something else allocated at it. If we can, also make sure that
20069 we see the same garbage. */
20070 fd = open ("conftest.mmap", O_RDWR);
20073 data2 = (char *) malloc (2 * pagesize);
20076 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20077 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20078 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20080 for (i = 0; i < pagesize; ++i)
20081 if (*(data + i) != *(data2 + i))
20084 /* Finally, make sure that changes to the mapped area do not
20085 percolate back to the file as seen by read(). (This is a bug on
20086 some variants of i386 svr4.0.) */
20087 for (i = 0; i < pagesize; ++i)
20088 *(data2 + i) = *(data2 + i) + 1;
20089 data3 = (char *) malloc (pagesize);
20092 if (read (fd, data3, pagesize) != pagesize)
20094 for (i = 0; i < pagesize; ++i)
20095 if (*(data + i) != *(data3 + i))
20101 rm -f conftest$ac_exeext
20102 if { (ac_try="$ac_link"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_link") 2>&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20112 { (case "(($ac_try" in
20113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114 *) ac_try_echo=$ac_try;;
20116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117 (eval "$ac_try") 2>&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; }; then
20121 ac_cv_func_mmap_fixed_mapped=yes
20123 echo "$as_me: program exited with status $ac_status" >&5
20124 echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20127 ( exit $ac_status )
20128 ac_cv_func_mmap_fixed_mapped=no
20130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20135 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20136 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20137 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20139 cat >>confdefs.h <<\_ACEOF
20140 #define HAVE_MMAP 1
20144 rm -f conftest.mmap
20146 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20147 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20148 if test "${ac_cv_func_mmap_file+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20152 ac_cpp='$CPP $CPPFLAGS'
20153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20157 if test "$cross_compiling" = yes; then
20158 ac_cv_func_mmap_file=no
20160 cat >conftest.$ac_ext <<_ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20168 #include <sys/types.h>
20169 #include <sys/mman.h>
20177 fd = creat ("foo",0777);
20178 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20180 return (fd != (int) MAP_FAILED);
20185 rm -f conftest$ac_exeext
20186 if { (ac_try="$ac_link"
20187 case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_link") 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20196 { (case "(($ac_try" in
20197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198 *) ac_try_echo=$ac_try;;
20200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201 (eval "$ac_try") 2>&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205 ac_cv_func_mmap_file=yes
20207 echo "$as_me: program exited with status $ac_status" >&5
20208 echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20211 ( exit $ac_status )
20212 ac_cv_func_mmap_file=no
20214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20219 ac_cpp='$CPP $CPPFLAGS'
20220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20226 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20227 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20228 if test "$ac_cv_func_mmap_file" = yes; then
20230 cat >>confdefs.h <<\_ACEOF
20231 #define HAVE_MMAP_FILE
20238 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20239 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20240 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 if test "$llvm_cv_os_type" = "Interix" ; then
20244 ac_cv_need_dev_zero_for_mmap=yes
20246 ac_cv_need_dev_zero_for_mmap=no
20250 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20251 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20252 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20254 cat >>confdefs.h <<\_ACEOF
20255 #define NEED_DEV_ZERO_FOR_MMAP 1
20260 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20262 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20263 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20265 if test "$ac_cv_func_mmap_file" = "no"
20267 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20268 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20272 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20273 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20275 ac_cpp='$CXXCPP $CPPFLAGS'
20276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20280 cat >conftest.$ac_ext <<_ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20287 volatile unsigned long val = 1;
20288 __sync_synchronize();
20289 __sync_val_compare_and_swap(&val, 1, 0);
20290 __sync_add_and_fetch(&val, 1);
20291 __sync_sub_and_fetch(&val, 1);
20296 rm -f conftest.$ac_objext conftest$ac_exeext
20297 if { (ac_try="$ac_link"
20298 case "(($ac_try" in
20299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300 *) ac_try_echo=$ac_try;;
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_link") 2>conftest.er1
20305 grep -v '^ *+' conftest.er1 >conftest.err
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } &&
20310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20311 { (case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316 (eval "$ac_try") 2>&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; } &&
20320 { ac_try='test -s conftest$ac_exeext'
20321 { (case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_try") 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
20331 ac_cpp='$CPP $CPPFLAGS'
20332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20336 { echo "$as_me:$LINENO: result: yes" >&5
20337 echo "${ECHO_T}yes" >&6; }
20339 cat >>confdefs.h <<\_ACEOF
20340 #define LLVM_MULTITHREADED 1
20344 echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20347 { echo "$as_me:$LINENO: result: no" >&5
20348 echo "${ECHO_T}no" >&6; }
20350 cat >>confdefs.h <<\_ACEOF
20351 #define LLVM_MULTITHREADED 0
20354 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20355 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20358 rm -f core conftest.err conftest.$ac_objext \
20359 conftest$ac_exeext conftest.$ac_ext
20362 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20363 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20364 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20365 if test "${llvm_cv_linux_mixed+set}" = set; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20369 ac_cpp='$CPP $CPPFLAGS'
20370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20374 cat >conftest.$ac_ext <<_ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h. */
20381 error: Not x86-64 even if uname says so!
20392 rm -f conftest.$ac_objext
20393 if { (ac_try="$ac_compile"
20394 case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399 (eval "$ac_compile") 2>conftest.er1
20401 grep -v '^ *+' conftest.er1 >conftest.err
20403 cat conftest.err >&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } &&
20406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20407 { (case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_try") 2>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; } &&
20416 { ac_try='test -s conftest.$ac_objext'
20417 { (case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_try") 2>&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
20426 llvm_cv_linux_mixed=no
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20431 llvm_cv_linux_mixed=yes
20434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20436 ac_cpp='$CPP $CPPFLAGS'
20437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20443 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20444 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20446 if test "$llvm_cv_linux_mixed" = "yes"; then
20447 llvm_cv_target_arch="x86"
20453 for ac_func in __dso_handle
20455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20459 echo $ECHO_N "(cached) $ECHO_C" >&6
20461 cat >conftest.$ac_ext <<_ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20469 #define $ac_func innocuous_$ac_func
20471 /* System header to define __stub macros and hopefully few prototypes,
20472 which can conflict with char $ac_func (); below.
20473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20474 <limits.h> exists even on freestanding compilers. */
20477 # include <limits.h>
20479 # include <assert.h>
20484 /* Override any GCC internal prototype to avoid an error.
20485 Use char because int might match the return type of a GCC
20486 builtin and then its argument prototype would still apply. */
20491 /* The GNU C library defines this for functions which it implements
20492 to always fail with ENOSYS. Some functions are actually named
20493 something starting with __ and the normal name is an alias. */
20494 #if defined __stub_$ac_func || defined __stub___$ac_func
20501 return $ac_func ();
20506 rm -f conftest.$ac_objext conftest$ac_exeext
20507 if { (ac_try="$ac_link"
20508 case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_link") 2>conftest.er1
20515 grep -v '^ *+' conftest.er1 >conftest.err
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } &&
20520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20521 { (case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_try") 2>&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; } &&
20530 { ac_try='test -s conftest$ac_exeext'
20531 { (case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_try") 2>&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; }; then
20540 eval "$as_ac_var=yes"
20542 echo "$as_me: failed program was:" >&5
20543 sed 's/^/| /' conftest.$ac_ext >&5
20545 eval "$as_ac_var=no"
20548 rm -f core conftest.err conftest.$ac_objext \
20549 conftest$ac_exeext conftest.$ac_ext
20551 ac_res=`eval echo '${'$as_ac_var'}'`
20552 { echo "$as_me:$LINENO: result: $ac_res" >&5
20553 echo "${ECHO_T}$ac_res" >&6; }
20554 if test `eval echo '${'$as_ac_var'}'` = yes; then
20555 cat >>confdefs.h <<_ACEOF
20556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20563 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20564 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20565 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 llvm_cv_llvmgcc_sanity="no"
20569 if test -x "$LLVMGCC" ; then
20570 cp /dev/null conftest.c
20571 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20572 grep 'target datalayout =' > /dev/null 2>&1
20573 if test $? -eq 0 ; then
20574 llvm_cv_llvmgcc_sanity="yes"
20579 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20580 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20582 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20583 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20584 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20585 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20586 LLVMCC1=$llvmcc1path
20588 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20589 LLVMCC1PLUS=$llvmcc1pluspath
20591 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20592 LLVMGCCDIR=$llvmgccdir
20594 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20595 LLVMGCC_LANGS=$llvmgcclangs
20597 { echo "$as_me:$LINENO: result: ok" >&5
20598 echo "${ECHO_T}ok" >&6; }
20601 SHLIBEXT=$libltdl_cv_shlibext
20604 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20607 # Translate the various configuration directories and other basic
20608 # information into substitutions that will end up in Makefile.config.in
20609 # that these configured values can be used by the makefiles
20610 if test "${prefix}" = "NONE" ; then
20611 prefix="/usr/local"
20613 eval LLVM_PREFIX="${prefix}";
20614 eval LLVM_BINDIR="${prefix}/bin";
20615 eval LLVM_LIBDIR="${prefix}/lib";
20616 eval LLVM_DATADIR="${prefix}/share/llvm";
20617 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20618 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20619 eval LLVM_INCLUDEDIR="${prefix}/include";
20620 eval LLVM_INFODIR="${prefix}/info";
20621 eval LLVM_MANDIR="${prefix}/man";
20622 LLVM_CONFIGTIME=`date`
20634 # Place the various directores into the config.h file as #defines so that we
20635 # can know about the installation paths within LLVM.
20637 cat >>confdefs.h <<_ACEOF
20638 #define LLVM_PREFIX "$LLVM_PREFIX"
20642 cat >>confdefs.h <<_ACEOF
20643 #define LLVM_BINDIR "$LLVM_BINDIR"
20647 cat >>confdefs.h <<_ACEOF
20648 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20652 cat >>confdefs.h <<_ACEOF
20653 #define LLVM_DATADIR "$LLVM_DATADIR"
20657 cat >>confdefs.h <<_ACEOF
20658 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20662 cat >>confdefs.h <<_ACEOF
20663 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20667 cat >>confdefs.h <<_ACEOF
20668 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20672 cat >>confdefs.h <<_ACEOF
20673 #define LLVM_INFODIR "$LLVM_INFODIR"
20677 cat >>confdefs.h <<_ACEOF
20678 #define LLVM_MANDIR "$LLVM_MANDIR"
20682 cat >>confdefs.h <<_ACEOF
20683 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20687 cat >>confdefs.h <<_ACEOF
20688 #define LLVM_HOSTTRIPLE "$host"
20692 # Determine which bindings to build.
20693 if test "$BINDINGS_TO_BUILD" = auto ; then
20694 BINDINGS_TO_BUILD=""
20695 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20696 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20699 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20702 # This isn't really configurey, but it avoids having to repeat the list in
20707 # Do any work necessary to ensure that bindings have what they need.
20708 binding_prereqs_failed=0
20709 for a_binding in $BINDINGS_TO_BUILD ; do
20710 case "$a_binding" in
20712 if test "x$OCAMLC" = x ; then
20713 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20714 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20715 binding_prereqs_failed=1
20717 if test "x$OCAMLDEP" = x ; then
20718 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20719 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20720 binding_prereqs_failed=1
20722 if test "x$OCAMLOPT" = x ; then
20723 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20724 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20726 if test "x$with_ocaml_libdir" != xauto ; then
20727 OCAML_LIBDIR=$with_ocaml_libdir
20730 ocaml_stdlib="`"$OCAMLC" -where`"
20731 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20733 # ocaml stdlib is beneath our prefix; use stdlib
20734 OCAML_LIBDIR=$ocaml_stdlib
20737 # ocaml stdlib is outside our prefix; use libdir/ocaml
20738 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20745 if test "$binding_prereqs_failed" = 1 ; then
20746 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20747 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20748 { (exit 1); exit 1; }; }
20751 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20752 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20753 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20757 ac_cpp='$CXXCPP $CPPFLAGS'
20758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20762 oldcxxflags="$CXXFLAGS"
20763 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20764 cat >conftest.$ac_ext <<_ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20779 rm -f conftest.$ac_objext
20780 if { (ac_try="$ac_compile"
20781 case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786 (eval "$ac_compile") 2>conftest.er1
20788 grep -v '^ *+' conftest.er1 >conftest.err
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } &&
20793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20794 { (case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799 (eval "$ac_try") 2>&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } &&
20803 { ac_try='test -s conftest.$ac_objext'
20804 { (case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_try") 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; }; then
20813 llvm_cv_cxx_visibility_inlines_hidden=yes
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 llvm_cv_cxx_visibility_inlines_hidden=no
20821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20822 CXXFLAGS="$oldcxxflags"
20824 ac_cpp='$CPP $CPPFLAGS'
20825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20831 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20832 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20833 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20834 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20837 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20842 if test "$llvm_cv_link_use_r" = "yes" ; then
20849 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20850 RDYNAMIC="-Wl,-export-dynamic"
20857 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20864 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20866 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20868 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20870 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20872 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20875 ac_config_files="$ac_config_files Makefile.config"
20878 ac_config_files="$ac_config_files llvm.spec"
20881 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20884 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20887 ac_config_commands="$ac_config_commands setup"
20889 ac_config_commands="$ac_config_commands Makefile"
20892 ac_config_commands="$ac_config_commands Makefile.common"
20895 ac_config_commands="$ac_config_commands examples/Makefile"
20898 ac_config_commands="$ac_config_commands lib/Makefile"
20901 ac_config_commands="$ac_config_commands runtime/Makefile"
20904 ac_config_commands="$ac_config_commands test/Makefile"
20907 ac_config_commands="$ac_config_commands test/Makefile.tests"
20910 ac_config_commands="$ac_config_commands unittests/Makefile"
20913 ac_config_commands="$ac_config_commands tools/Makefile"
20916 ac_config_commands="$ac_config_commands utils/Makefile"
20919 ac_config_commands="$ac_config_commands projects/Makefile"
20922 ac_config_commands="$ac_config_commands bindings/Makefile"
20925 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20929 cat >confcache <<\_ACEOF
20930 # This file is a shell script that caches the results of configure
20931 # tests run on this system so they can be shared between configure
20932 # scripts and configure runs, see configure's option --config-cache.
20933 # It is not useful on other systems. If it contains results you don't
20934 # want to keep, you may remove or edit it.
20936 # config.status only pays attention to the cache file if you give it
20937 # the --recheck option to rerun configure.
20939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20941 # following values.
20945 # The following way of writing the cache mishandles newlines in values,
20946 # but we know of no workaround that is simple, portable, and efficient.
20947 # So, we kill variables containing newlines.
20948 # Ultrix sh set writes to stderr and can't be redirected directly,
20949 # and sets the high bit in the cache file unless we assign to the vars.
20951 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20952 eval ac_val=\$$ac_var
20956 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20957 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20960 _ | IFS | as_nl) ;; #(
20961 *) $as_unset $ac_var ;;
20967 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20968 *${as_nl}ac_space=\ *)
20969 # `set' does not quote correctly, so add quotes (double-quote
20970 # substitution turns \\\\ into \\, and sed turns \\ into \).
20973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20976 # `set' quotes correctly as required by POSIX, so do not add quotes.
20977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20986 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20988 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20990 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20991 if test -w "$cache_file"; then
20992 test "x$cache_file" != "x/dev/null" &&
20993 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20994 echo "$as_me: updating cache $cache_file" >&6;}
20995 cat confcache >$cache_file
20997 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20998 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21003 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21004 # Let make expand exec_prefix.
21005 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21007 DEFS=-DHAVE_CONFIG_H
21011 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21012 # 1. Remove the extension, and $U if already installed.
21013 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21014 ac_i=`echo "$ac_i" | sed "$ac_script"`
21015 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21016 # will be set to the directory where LIBOBJS objects are built.
21017 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21018 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21020 LIBOBJS=$ac_libobjs
21022 LTLIBOBJS=$ac_ltlibobjs
21025 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21026 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21027 Usually this means the macro was only invoked conditionally." >&5
21028 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21029 Usually this means the macro was only invoked conditionally." >&2;}
21030 { (exit 1); exit 1; }; }
21032 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21033 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21034 Usually this means the macro was only invoked conditionally." >&5
21035 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21036 Usually this means the macro was only invoked conditionally." >&2;}
21037 { (exit 1); exit 1; }; }
21040 : ${CONFIG_STATUS=./config.status}
21041 ac_clean_files_save=$ac_clean_files
21042 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21043 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21044 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21045 cat >$CONFIG_STATUS <<_ACEOF
21047 # Generated by $as_me.
21048 # Run this file to recreate the current configuration.
21049 # Compiler output produced by configure, useful for debugging
21050 # configure, is in config.log if it exists.
21053 ac_cs_recheck=false
21055 SHELL=\${CONFIG_SHELL-$SHELL}
21058 cat >>$CONFIG_STATUS <<\_ACEOF
21059 ## --------------------- ##
21060 ## M4sh Initialization. ##
21061 ## --------------------- ##
21063 # Be Bourne compatible
21064 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21067 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21068 # is contrary to our usage. Disable this feature.
21069 alias -g '${1+"$@"}'='"$@"'
21070 setopt NO_GLOB_SUBST
21072 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21074 BIN_SH=xpg4; export BIN_SH # for Tru64
21075 DUALCASE=1; export DUALCASE # for MKS sh
21079 # Avoid depending upon Character Ranges.
21080 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21081 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21082 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21083 as_cr_digits='0123456789'
21084 as_cr_alnum=$as_cr_Letters$as_cr_digits
21086 # The user is always right.
21087 if test "${PATH_SEPARATOR+set}" != set; then
21088 echo "#! /bin/sh" >conf$$.sh
21089 echo "exit 0" >>conf$$.sh
21091 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21099 # Support unset when possible.
21100 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21108 # We need space, tab and new line, in precisely that order. Quoting is
21109 # there to prevent editors from complaining about space-tab.
21110 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21111 # splitting by setting IFS to empty value.)
21116 # Find who we are. Look in the path if we contain no directory separator.
21118 *[\\/]* ) as_myself=$0 ;;
21119 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21120 for as_dir in $PATH
21123 test -z "$as_dir" && as_dir=.
21124 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21130 # We did not find ourselves, most probably we were run as `sh COMMAND'
21131 # in which case we are not to be found in the path.
21132 if test "x$as_myself" = x; then
21135 if test ! -f "$as_myself"; then
21136 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21137 { (exit 1); exit 1; }
21140 # Work around bugs in pre-3.0 UWIN ksh.
21141 for as_var in ENV MAIL MAILPATH
21142 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21150 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21151 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21152 LC_TELEPHONE LC_TIME
21154 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21155 eval $as_var=C; export $as_var
21157 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21161 # Required to use basename.
21162 if expr a : '\(a\)' >/dev/null 2>&1 &&
21163 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21169 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21170 as_basename=basename
21176 # Name of the executable.
21177 as_me=`$as_basename -- "$0" ||
21178 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21179 X"$0" : 'X\(//\)$' \| \
21180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21182 sed '/^.*\/\([^/][^/]*\)\/*$/{
21201 as_lineno_1=$LINENO
21202 as_lineno_2=$LINENO
21203 test "x$as_lineno_1" != "x$as_lineno_2" &&
21204 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21206 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21207 # uniformly replaced by the line number. The first 'sed' inserts a
21208 # line-number line after each line using $LINENO; the second 'sed'
21209 # does the real work. The second script uses 'N' to pair each
21210 # line-number line with the line containing $LINENO, and appends
21211 # trailing '-' during substitution so that $LINENO is not a special
21212 # case at line end.
21213 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21214 # scripts with optimization help from Paolo Bonzini. Blame Lee
21215 # E. McMahon (1931-1989) for sed's syntax. :-)
21227 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21230 ' >$as_me.lineno &&
21231 chmod +x "$as_me.lineno" ||
21232 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21233 { (exit 1); exit 1; }; }
21235 # Don't try to exec as it changes $[0], causing all sort of problems
21236 # (the dirname of $[0] is not the place where we might find the
21237 # original and so on. Autoconf is especially sensitive to this).
21238 . "./$as_me.lineno"
21239 # Exit status is that of the last command.
21244 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21250 ECHO_C= ECHO_N= ECHO_T=
21251 case `echo -n x` in
21253 case `echo 'x\c'` in
21254 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21261 if expr a : '\(a\)' >/dev/null 2>&1 &&
21262 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21268 rm -f conf$$ conf$$.exe conf$$.file
21269 if test -d conf$$.dir; then
21270 rm -f conf$$.dir/conf$$.file
21276 if ln -s conf$$.file conf$$ 2>/dev/null; then
21278 # ... but there are two gotchas:
21279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21281 # In both cases, we have to default to `cp -p'.
21282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21284 elif ln conf$$.file conf$$ 2>/dev/null; then
21289 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21290 rmdir conf$$.dir 2>/dev/null
21292 if mkdir -p . 2>/dev/null; then
21295 test -d ./-p && rmdir ./-p
21299 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21300 # systems may use methods other than mode bits to determine executability.
21301 cat >conf$$.file <<_ASEOF
21305 chmod +x conf$$.file
21306 if test -x conf$$.file >/dev/null 2>&1; then
21307 as_executable_p="test -x"
21313 # Sed expression to map a string onto a valid CPP name.
21314 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21316 # Sed expression to map a string onto a valid variable name.
21317 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21322 # Save the log message, to keep $[0] and so on meaningful, and to
21323 # report actual input values of CONFIG_FILES etc. instead of their
21324 # values after options handling.
21326 This file was extended by llvm $as_me 2.9svn, which was
21327 generated by GNU Autoconf 2.60. Invocation command line was
21329 CONFIG_FILES = $CONFIG_FILES
21330 CONFIG_HEADERS = $CONFIG_HEADERS
21331 CONFIG_LINKS = $CONFIG_LINKS
21332 CONFIG_COMMANDS = $CONFIG_COMMANDS
21335 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21340 cat >>$CONFIG_STATUS <<_ACEOF
21341 # Files that config.status was made for.
21342 config_files="$ac_config_files"
21343 config_headers="$ac_config_headers"
21344 config_commands="$ac_config_commands"
21348 cat >>$CONFIG_STATUS <<\_ACEOF
21350 \`$as_me' instantiates files from templates according to the
21351 current configuration.
21353 Usage: $0 [OPTIONS] [FILE]...
21355 -h, --help print this help, then exit
21356 -V, --version print version number, then exit
21357 -q, --quiet do not print progress messages
21358 -d, --debug don't remove temporary files
21359 --recheck update $as_me by reconfiguring in the same conditions
21360 --file=FILE[:TEMPLATE]
21361 instantiate the configuration file FILE
21362 --header=FILE[:TEMPLATE]
21363 instantiate the configuration header FILE
21365 Configuration files:
21368 Configuration headers:
21371 Configuration commands:
21374 Report bugs to <bug-autoconf@gnu.org>."
21377 cat >>$CONFIG_STATUS <<_ACEOF
21379 llvm config.status 2.9svn
21380 configured by $0, generated by GNU Autoconf 2.60,
21381 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21383 Copyright (C) 2006 Free Software Foundation, Inc.
21384 This config.status script is free software; the Free Software Foundation
21385 gives unlimited permission to copy, distribute and modify it."
21392 cat >>$CONFIG_STATUS <<\_ACEOF
21393 # If no file are specified by the user, then we need to provide default
21394 # value. By we need to know if files were specified by the user.
21400 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21401 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21412 # Handling of the options.
21413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21415 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21416 echo "$ac_cs_version"; exit ;;
21417 --debug | --debu | --deb | --de | --d | -d )
21419 --file | --fil | --fi | --f )
21421 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21422 ac_need_defaults=false;;
21423 --header | --heade | --head | --hea )
21425 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21426 ac_need_defaults=false;;
21428 # Conflict between --help and --header
21429 { echo "$as_me: error: ambiguous option: $1
21430 Try \`$0 --help' for more information." >&2
21431 { (exit 1); exit 1; }; };;
21432 --help | --hel | -h )
21433 echo "$ac_cs_usage"; exit ;;
21434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21435 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21438 # This is an error.
21439 -*) { echo "$as_me: error: unrecognized option: $1
21440 Try \`$0 --help' for more information." >&2
21441 { (exit 1); exit 1; }; } ;;
21443 *) ac_config_targets="$ac_config_targets $1"
21444 ac_need_defaults=false ;;
21450 ac_configure_extra_args=
21452 if $ac_cs_silent; then
21454 ac_configure_extra_args="$ac_configure_extra_args --silent"
21458 cat >>$CONFIG_STATUS <<_ACEOF
21459 if \$ac_cs_recheck; then
21460 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21461 CONFIG_SHELL=$SHELL
21462 export CONFIG_SHELL
21463 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21467 cat >>$CONFIG_STATUS <<\_ACEOF
21471 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21472 ## Running $as_me. ##
21478 cat >>$CONFIG_STATUS <<_ACEOF
21482 llvm_src="${srcdir}"
21486 cat >>$CONFIG_STATUS <<\_ACEOF
21488 # Handling of arguments.
21489 for ac_config_target in $ac_config_targets
21491 case $ac_config_target in
21492 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21493 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21494 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21495 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21496 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21497 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21498 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21499 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21500 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21501 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21502 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21503 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21504 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21505 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21506 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21507 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21508 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21509 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21510 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21511 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21512 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21513 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21514 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21515 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21516 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21518 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21519 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21520 { (exit 1); exit 1; }; };;
21525 # If the user did not use the arguments to specify the items to instantiate,
21526 # then the envvar interface is used. Set only those that are not.
21527 # We use the long form for the default assignment because of an extremely
21528 # bizarre bug on SunOS 4.1.3.
21529 if $ac_need_defaults; then
21530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21535 # Have a temporary directory for convenience. Make it in the build tree
21536 # simply because there is no reason against having it here, and in addition,
21537 # creating and moving files from /tmp can sometimes cause problems.
21538 # Hook for its removal unless debugging.
21539 # Note that there is a small window in which the directory will not be cleaned:
21540 # after its creation but before its name has been assigned to `$tmp'.
21544 trap 'exit_status=$?
21545 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21547 trap '{ (exit 1); exit 1; }' 1 2 13 15
21549 # Create a (secure) tmp directory for tmp files.
21552 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21553 test -n "$tmp" && test -d "$tmp"
21556 tmp=./conf$$-$RANDOM
21557 (umask 077 && mkdir "$tmp")
21560 echo "$me: cannot create a temporary directory in ." >&2
21561 { (exit 1); exit 1; }
21565 # Set up the sed scripts for CONFIG_FILES section.
21568 # No need to generate the scripts if there are no CONFIG_FILES.
21569 # This happens for instance when ./config.status config.h
21570 if test -n "$CONFIG_FILES"; then
21577 for ac_last_try in false false false false false :; do
21578 cat >conf$$subs.sed <<_ACEOF
21579 SHELL!$SHELL$ac_delim
21580 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21581 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21582 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21583 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21584 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21585 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21586 exec_prefix!$exec_prefix$ac_delim
21587 prefix!$prefix$ac_delim
21588 program_transform_name!$program_transform_name$ac_delim
21589 bindir!$bindir$ac_delim
21590 sbindir!$sbindir$ac_delim
21591 libexecdir!$libexecdir$ac_delim
21592 datarootdir!$datarootdir$ac_delim
21593 datadir!$datadir$ac_delim
21594 sysconfdir!$sysconfdir$ac_delim
21595 sharedstatedir!$sharedstatedir$ac_delim
21596 localstatedir!$localstatedir$ac_delim
21597 includedir!$includedir$ac_delim
21598 oldincludedir!$oldincludedir$ac_delim
21599 docdir!$docdir$ac_delim
21600 infodir!$infodir$ac_delim
21601 htmldir!$htmldir$ac_delim
21602 dvidir!$dvidir$ac_delim
21603 pdfdir!$pdfdir$ac_delim
21604 psdir!$psdir$ac_delim
21605 libdir!$libdir$ac_delim
21606 localedir!$localedir$ac_delim
21607 mandir!$mandir$ac_delim
21608 DEFS!$DEFS$ac_delim
21609 ECHO_C!$ECHO_C$ac_delim
21610 ECHO_N!$ECHO_N$ac_delim
21611 ECHO_T!$ECHO_T$ac_delim
21612 LIBS!$LIBS$ac_delim
21613 build_alias!$build_alias$ac_delim
21614 host_alias!$host_alias$ac_delim
21615 target_alias!$target_alias$ac_delim
21616 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21617 subdirs!$subdirs$ac_delim
21618 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21619 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21620 build!$build$ac_delim
21621 build_cpu!$build_cpu$ac_delim
21622 build_vendor!$build_vendor$ac_delim
21623 build_os!$build_os$ac_delim
21624 host!$host$ac_delim
21625 host_cpu!$host_cpu$ac_delim
21626 host_vendor!$host_vendor$ac_delim
21627 host_os!$host_os$ac_delim
21628 target!$target$ac_delim
21629 target_cpu!$target_cpu$ac_delim
21630 target_vendor!$target_vendor$ac_delim
21631 target_os!$target_os$ac_delim
21633 HOST_OS!$HOST_OS$ac_delim
21634 TARGET_OS!$TARGET_OS$ac_delim
21635 LINKALL!$LINKALL$ac_delim
21636 NOLINKALL!$NOLINKALL$ac_delim
21637 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21638 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21639 ARCH!$ARCH$ac_delim
21640 ENDIAN!$ENDIAN$ac_delim
21642 CFLAGS!$CFLAGS$ac_delim
21643 LDFLAGS!$LDFLAGS$ac_delim
21644 CPPFLAGS!$CPPFLAGS$ac_delim
21645 ac_ct_CC!$ac_ct_CC$ac_delim
21646 EXEEXT!$EXEEXT$ac_delim
21647 OBJEXT!$OBJEXT$ac_delim
21649 GREP!$GREP$ac_delim
21650 EGREP!$EGREP$ac_delim
21651 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21652 BUILD_CC!$BUILD_CC$ac_delim
21653 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21654 BUILD_CXX!$BUILD_CXX$ac_delim
21655 CVSBUILD!$CVSBUILD$ac_delim
21656 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21657 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21658 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21659 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21660 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21661 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21662 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21664 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21665 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21666 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21667 ENABLE_PIC!$ENABLE_PIC$ac_delim
21668 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21669 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21670 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21671 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21672 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21673 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21674 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21675 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21678 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21680 elif $ac_last_try; then
21681 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21682 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21683 { (exit 1); exit 1; }; }
21685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21689 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21690 if test -n "$ac_eof"; then
21691 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21692 ac_eof=`expr $ac_eof + 1`
21695 cat >>$CONFIG_STATUS <<_ACEOF
21696 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21700 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21701 s/^/s,@/; s/!/@,|#_!!_#|/
21704 s/'"$ac_delim"'$/,g/; t
21706 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21707 ' >>$CONFIG_STATUS <conf$$subs.sed
21708 rm -f conf$$subs.sed
21709 cat >>$CONFIG_STATUS <<_ACEOF
21715 for ac_last_try in false false false false false :; do
21716 cat >conf$$subs.sed <<_ACEOF
21717 CLANGPATH!$CLANGPATH$ac_delim
21718 CLANGXXPATH!$CLANGXXPATH$ac_delim
21719 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21720 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21721 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21722 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21724 CXXFLAGS!$CXXFLAGS$ac_delim
21725 ac_ct_CXX!$ac_ct_CXX$ac_delim
21727 ifGNUmake!$ifGNUmake$ac_delim
21728 LN_S!$LN_S$ac_delim
21731 DATE!$DATE$ac_delim
21732 FIND!$FIND$ac_delim
21733 MKDIR!$MKDIR$ac_delim
21735 RANLIB!$RANLIB$ac_delim
21740 BINPWD!$BINPWD$ac_delim
21741 GRAPHVIZ!$GRAPHVIZ$ac_delim
21744 NEATO!$NEATO$ac_delim
21745 TWOPI!$TWOPI$ac_delim
21746 CIRCO!$CIRCO$ac_delim
21748 DOTTY!$DOTTY$ac_delim
21749 XDOT_PY!$XDOT_PY$ac_delim
21750 PERL!$PERL$ac_delim
21751 HAVE_PERL!$HAVE_PERL$ac_delim
21752 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21753 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21754 INSTALL_DATA!$INSTALL_DATA$ac_delim
21755 BZIP2!$BZIP2$ac_delim
21757 DOXYGEN!$DOXYGEN$ac_delim
21758 GROFF!$GROFF$ac_delim
21759 GZIP!$GZIP$ac_delim
21760 POD2HTML!$POD2HTML$ac_delim
21761 POD2MAN!$POD2MAN$ac_delim
21762 PDFROFF!$PDFROFF$ac_delim
21763 RUNTEST!$RUNTEST$ac_delim
21764 TCLSH!$TCLSH$ac_delim
21766 OCAMLC!$OCAMLC$ac_delim
21767 OCAMLOPT!$OCAMLOPT$ac_delim
21768 OCAMLDEP!$OCAMLDEP$ac_delim
21769 OCAMLDOC!$OCAMLDOC$ac_delim
21771 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21772 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21773 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21774 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21775 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21776 LIBADD_DL!$LIBADD_DL$ac_delim
21777 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21778 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21779 LLVMGCC!$LLVMGCC$ac_delim
21780 LLVMGXX!$LLVMGXX$ac_delim
21781 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21782 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21783 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21784 USE_UDIS86!$USE_UDIS86$ac_delim
21785 USE_OPROFILE!$USE_OPROFILE$ac_delim
21786 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21787 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21788 MMAP_FILE!$MMAP_FILE$ac_delim
21789 LLVMCC1!$LLVMCC1$ac_delim
21790 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21791 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21792 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21793 SHLIBEXT!$SHLIBEXT$ac_delim
21794 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21795 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21796 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21797 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21798 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21799 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21800 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21801 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21802 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21803 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21804 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21805 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21806 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21807 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21808 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21809 RPATH!$RPATH$ac_delim
21810 RDYNAMIC!$RDYNAMIC$ac_delim
21811 LIBOBJS!$LIBOBJS$ac_delim
21812 LTLIBOBJS!$LTLIBOBJS$ac_delim
21815 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
21817 elif $ac_last_try; then
21818 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21819 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21820 { (exit 1); exit 1; }; }
21822 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21826 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21827 if test -n "$ac_eof"; then
21828 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21829 ac_eof=`expr $ac_eof + 1`
21832 cat >>$CONFIG_STATUS <<_ACEOF
21833 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21837 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21838 s/^/s,@/; s/!/@,|#_!!_#|/
21841 s/'"$ac_delim"'$/,g/; t
21843 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21844 ' >>$CONFIG_STATUS <conf$$subs.sed
21845 rm -f conf$$subs.sed
21846 cat >>$CONFIG_STATUS <<_ACEOF
21851 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21852 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21853 # trailing colons and then remove the whole line if VPATH becomes empty
21854 # (actually we leave an empty line to preserve line numbers).
21855 if test "x$srcdir" = x.; then
21856 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21857 s/:*\$(srcdir):*/:/
21858 s/:*\${srcdir}:*/:/
21860 s/^\([^=]*=[ ]*\):*/\1/
21866 cat >>$CONFIG_STATUS <<\_ACEOF
21867 fi # test -n "$CONFIG_FILES"
21870 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21873 :[FHLC]) ac_mode=$ac_tag; continue;;
21875 case $ac_mode$ac_tag in
21877 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21878 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21879 { (exit 1); exit 1; }; };;
21880 :[FH]-) ac_tag=-:-;;
21881 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21898 -) ac_f="$tmp/stdin";;
21899 *) # Look for the file first in the build tree, then in the source tree
21900 # (if the path is not absolute). The absolute path cannot be DOS-style,
21901 # because $ac_f cannot contain `:'.
21905 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21907 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21908 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21909 { (exit 1); exit 1; }; };;
21911 ac_file_inputs="$ac_file_inputs $ac_f"
21914 # Let's still pretend it is `configure' which instantiates (i.e., don't
21915 # use $as_me), people would be surprised to read:
21916 # /* config.h. Generated by config.status. */
21917 configure_input="Generated from "`IFS=:
21918 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21919 if test x"$ac_file" != x-; then
21920 configure_input="$ac_file. $configure_input"
21921 { echo "$as_me:$LINENO: creating $ac_file" >&5
21922 echo "$as_me: creating $ac_file" >&6;}
21926 *:-:* | *:-) cat >"$tmp/stdin";;
21931 ac_dir=`$as_dirname -- "$ac_file" ||
21932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21933 X"$ac_file" : 'X\(//\)[^/]' \| \
21934 X"$ac_file" : 'X\(//\)$' \| \
21935 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21941 /^X\(\/\/\)[^/].*/{
21956 -*) as_dir=./$as_dir;;
21958 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21962 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21963 *) as_qdir=$as_dir;;
21965 as_dirs="'$as_qdir' $as_dirs"
21966 as_dir=`$as_dirname -- "$as_dir" ||
21967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21968 X"$as_dir" : 'X\(//\)[^/]' \| \
21969 X"$as_dir" : 'X\(//\)$' \| \
21970 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21976 /^X\(\/\/\)[^/].*/{
21989 test -d "$as_dir" && break
21991 test -z "$as_dirs" || eval "mkdir $as_dirs"
21992 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21993 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21994 { (exit 1); exit 1; }; }; }
21998 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22000 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22001 # A ".." for each directory in $ac_dir_suffix.
22002 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22003 case $ac_top_builddir_sub in
22004 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22005 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22008 ac_abs_top_builddir=$ac_pwd
22009 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22010 # for backward compatibility:
22011 ac_top_builddir=$ac_top_build_prefix
22014 .) # We are building in place.
22016 ac_top_srcdir=$ac_top_builddir_sub
22017 ac_abs_top_srcdir=$ac_pwd ;;
22018 [\\/]* | ?:[\\/]* ) # Absolute name.
22019 ac_srcdir=$srcdir$ac_dir_suffix;
22020 ac_top_srcdir=$srcdir
22021 ac_abs_top_srcdir=$srcdir ;;
22022 *) # Relative name.
22023 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22024 ac_top_srcdir=$ac_top_build_prefix$srcdir
22025 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22027 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22037 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22038 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22042 cat >>$CONFIG_STATUS <<\_ACEOF
22043 # If the template does not know about datarootdir, expand it.
22044 # FIXME: This hack should be removed a few years after 2.60.
22045 ac_datarootdir_hack=; ac_datarootdir_seen=
22047 case `sed -n '/datarootdir/ {
22056 ' $ac_file_inputs` in
22057 *datarootdir*) ac_datarootdir_seen=yes;;
22058 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22059 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22060 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22062 cat >>$CONFIG_STATUS <<_ACEOF
22063 ac_datarootdir_hack='
22064 s&@datadir@&$datadir&g
22065 s&@docdir@&$docdir&g
22066 s&@infodir@&$infodir&g
22067 s&@localedir@&$localedir&g
22068 s&@mandir@&$mandir&g
22069 s&\\\${datarootdir}&$datarootdir&g' ;;
22073 # Neutralize VPATH when `$srcdir' = `.'.
22074 # Shell code in configure.ac might set extrasub.
22075 # FIXME: do we really want to maintain this feature?
22076 cat >>$CONFIG_STATUS <<_ACEOF
22080 cat >>$CONFIG_STATUS <<\_ACEOF
22082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22083 s&@configure_input@&$configure_input&;t t
22084 s&@top_builddir@&$ac_top_builddir_sub&;t t
22085 s&@srcdir@&$ac_srcdir&;t t
22086 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22087 s&@top_srcdir@&$ac_top_srcdir&;t t
22088 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22089 s&@builddir@&$ac_builddir&;t t
22090 s&@abs_builddir@&$ac_abs_builddir&;t t
22091 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22092 s&@INSTALL@&$ac_INSTALL&;t t
22093 $ac_datarootdir_hack
22094 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
22096 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22097 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22098 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22099 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22100 which seems to be undefined. Please make sure it is defined." >&5
22101 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22102 which seems to be undefined. Please make sure it is defined." >&2;}
22106 -) cat "$tmp/out"; rm -f "$tmp/out";;
22107 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22116 # Transform confdefs.h into a sed script `conftest.defines', that
22117 # substitutes the proper values into config.h.in to produce config.h.
22118 rm -f conftest.defines conftest.tail
22119 # First, append a space to every undef/define line, to ease matching.
22120 echo 's/$/ /' >conftest.defines
22121 # Then, protect against being on the right side of a sed subst, or in
22122 # an unquoted here document, in config.status. If some macros were
22123 # called several times there might be several #defines for the same
22124 # symbol, which is useless. But do not sort them, since the last
22125 # AC_DEFINE must be honored.
22126 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22127 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22128 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22129 # PARAMS is the parameter list in the macro definition--in most cases, it's
22130 # just an empty string.
22131 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22132 ac_dB='\\)[ (].*,\\1define\\2'
22140 s/^[ ]*#[ ]*define[ ][ ]*//
22145 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22146 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22147 ' >>conftest.defines
22149 # Remove the space that was appended to ease matching.
22150 # Then replace #undef with comments. This is necessary, for
22151 # example, in the case of _POSIX_SOURCE, which is predefined and required
22152 # on some systems where configure will not decide to define it.
22153 # (The regexp can be short, since the line contains either #define or #undef.)
22155 s,^[ #]*u.*,/* & */,' >>conftest.defines
22157 # Break up conftest.defines:
22158 ac_max_sed_lines=50
22160 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22161 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22162 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22164 ac_in='$ac_file_inputs'
22165 ac_out='"$tmp/out1"'
22166 ac_nxt='"$tmp/out2"'
22170 # Write a here document:
22171 cat >>$CONFIG_STATUS <<_ACEOF
22172 # First, check the format of the line:
22173 cat >"\$tmp/defines.sed" <<\\CEOF
22174 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22175 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22179 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22181 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22182 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22183 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22184 grep . conftest.tail >/dev/null || break
22185 rm -f conftest.defines
22186 mv conftest.tail conftest.defines
22188 rm -f conftest.defines conftest.tail
22190 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22191 cat >>$CONFIG_STATUS <<\_ACEOF
22192 if test x"$ac_file" != x-; then
22193 echo "/* $configure_input */" >"$tmp/config.h"
22194 cat "$ac_result" >>"$tmp/config.h"
22195 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22196 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22197 echo "$as_me: $ac_file is unchanged" >&6;}
22200 mv "$tmp/config.h" $ac_file
22203 echo "/* $configure_input */"
22209 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22210 echo "$as_me: executing $ac_file commands" >&6;}
22215 case $ac_file$ac_mode in
22216 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22217 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22218 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22219 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22220 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22221 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22222 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22223 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22224 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22225 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22226 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22227 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22228 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22229 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22230 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22231 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22232 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22233 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22234 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22235 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22236 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22237 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22238 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22239 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22240 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22241 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22247 { (exit 0); exit 0; }
22249 chmod +x $CONFIG_STATUS
22250 ac_clean_files=$ac_clean_files_save
22253 # configure is writing to config.log, and then calls config.status.
22254 # config.status does its own redirection, appending to config.log.
22255 # Unfortunately, on DOS this fails, as config.log is still kept open
22256 # by configure, so config.status won't be able to write to it; its
22257 # output is simply discarded. So we exec the FD to /dev/null,
22258 # effectively closing config.log, so it can be properly (re)opened and
22259 # appended to by config.status. When coming back to configure, we
22260 # need to make the FD available again.
22261 if test "$no_create" != yes; then
22263 ac_config_status_args=
22264 test "$silent" = yes &&
22265 ac_config_status_args="$ac_config_status_args --quiet"
22267 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22270 # would make configure fail if this is the last instruction.
22271 $ac_cs_success || { (exit 1); exit 1; }
22275 # CONFIG_SUBDIRS section.
22277 if test "$no_recursion" != yes; then
22279 # Remove --cache-file and --srcdir arguments so they do not pile up.
22280 ac_sub_configure_args=
22282 eval "set x $ac_configure_args"
22286 if test -n "$ac_prev"; then
22291 -cache-file | --cache-file | --cache-fil | --cache-fi \
22292 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22293 ac_prev=cache_file ;;
22294 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22295 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22298 --config-cache | -C)
22300 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22302 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22310 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22312 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22316 # Always prepend --prefix to ensure using the same prefix
22317 # in subdir configurations.
22318 ac_arg="--prefix=$prefix"
22320 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22322 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22325 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22327 # Do not complain, so a configure script can configure whichever
22328 # parts of a large source tree are present.
22329 test -d "$srcdir/$ac_dir" || continue
22331 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22332 echo "$as_me:$LINENO: $ac_msg" >&5
22336 -*) as_dir=./$as_dir;;
22338 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22342 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22343 *) as_qdir=$as_dir;;
22345 as_dirs="'$as_qdir' $as_dirs"
22346 as_dir=`$as_dirname -- "$as_dir" ||
22347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22348 X"$as_dir" : 'X\(//\)[^/]' \| \
22349 X"$as_dir" : 'X\(//\)$' \| \
22350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22356 /^X\(\/\/\)[^/].*/{
22369 test -d "$as_dir" && break
22371 test -z "$as_dirs" || eval "mkdir $as_dirs"
22372 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22373 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22374 { (exit 1); exit 1; }; }; }
22378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22381 # A ".." for each directory in $ac_dir_suffix.
22382 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22383 case $ac_top_builddir_sub in
22384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22388 ac_abs_top_builddir=$ac_pwd
22389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22390 # for backward compatibility:
22391 ac_top_builddir=$ac_top_build_prefix
22394 .) # We are building in place.
22396 ac_top_srcdir=$ac_top_builddir_sub
22397 ac_abs_top_srcdir=$ac_pwd ;;
22398 [\\/]* | ?:[\\/]* ) # Absolute name.
22399 ac_srcdir=$srcdir$ac_dir_suffix;
22400 ac_top_srcdir=$srcdir
22401 ac_abs_top_srcdir=$srcdir ;;
22402 *) # Relative name.
22403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22404 ac_top_srcdir=$ac_top_build_prefix$srcdir
22405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22412 # Check for guested configure; otherwise get Cygnus style configure.
22413 if test -f "$ac_srcdir/configure.gnu"; then
22414 ac_sub_configure=$ac_srcdir/configure.gnu
22415 elif test -f "$ac_srcdir/configure"; then
22416 ac_sub_configure=$ac_srcdir/configure
22417 elif test -f "$ac_srcdir/configure.in"; then
22418 # This should be Cygnus configure.
22419 ac_sub_configure=$ac_aux_dir/configure
22421 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22422 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22426 # The recursion is here.
22427 if test -n "$ac_sub_configure"; then
22428 # Make the cache file name correct relative to the subdirectory.
22429 case $cache_file in
22430 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22431 *) # Relative name.
22432 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22435 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22436 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22437 # The eval makes quoting arguments work.
22438 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22439 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22440 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22441 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22442 { (exit 1); exit 1; }; }