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
699 LLVM_ENUM_ASM_PRINTERS
700 LLVM_ENUM_ASM_PARSERS
701 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
769 NO_MISSING_FIELD_INITIALIZERS
781 LLVMGCC_DISABLEOPT_FLAGS
797 ENABLE_VISIBILITY_INLINES_HIDDEN
803 ac_precious_vars='build_alias
814 ac_subdirs_all='projects/llvm-gcc
818 projects/llvm-poolalloc
821 projects/llvm-stacker
829 # Initialize some variables set by options.
831 ac_init_version=false
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
841 program_transform_name=s,x,x,
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 # Accept the important Cygnus configure options, so we can diagnose typos.
893 case $ac_dashdash$ac_option in
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
915 cache_file=config.cache ;;
917 -datadir | --datadir | --datadi | --datad)
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
929 -disable-* | --disable-*)
930 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934 { (exit 1); exit 1; }; }
935 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936 eval enable_$ac_feature=no ;;
938 -docdir | --docdir | --docdi | --doc | --do)
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 -enable-* | --enable-*)
949 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953 { (exit 1); exit 1; }; }
954 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955 eval enable_$ac_feature=\$ac_optarg ;;
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
970 -help | --help | --hel | --he | -h)
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 htmldir=$ac_optarg ;;
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
1000 -libdir | --libdir | --libdi | --libd)
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1091 -psdir | --psdir | --psdi | --psd | --ps)
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1119 -site=* | --site=* | --sit=*)
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1146 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package| sed 's/-/_/g'`
1152 eval with_$ac_package=\$ac_optarg ;;
1154 -without-* | --without-*)
1155 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158 { echo "$as_me: error: invalid package name: $ac_package" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_package=`echo $ac_package | sed 's/-/_/g'`
1161 eval with_$ac_package=no ;;
1164 # Obsolete; use --with-x.
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1181 -*) { echo "$as_me: error: unrecognized option: $ac_option
1182 Try \`$0 --help' for more information." >&2
1183 { (exit 1); exit 1; }; }
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191 { (exit 1); exit 1; }; }
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1196 # FIXME: should be removed in autoconf 3.0.
1197 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 { echo "$as_me: error: missing argument to $ac_option" >&2
1209 { (exit 1); exit 1; }; }
1212 # Be sure to have absolute directory names.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1218 eval ac_val=\$$ac_var
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224 { (exit 1); exit 1; }; }
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248 test "$silent" = yes && exec 6>/dev/null
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 { echo "$as_me: error: Working directory cannot be determined" >&2
1255 { (exit 1); exit 1; }; }
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 { echo "$as_me: error: pwd does not report name of working directory" >&2
1258 { (exit 1); exit 1; }; }
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$0" ||
1266 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$0" : 'X\(//\)[^/]' \| \
1268 X"$0" : 'X\(//\)$' \| \
1269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1293 ac_srcdir_defaulted=no
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298 { (exit 1); exit 1; }; }
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303 { (exit 1); exit 1; }; }
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 # Report the --help message.
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1329 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1336 Defaults for the options are specified in brackets.
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1360 For better control, use the options below.
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of llvm 2.9svn:";;
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --enable-polly Use polly if available (default is YES)
1403 --enable-optimized Compile with optimizations enabled (default is NO)
1404 --enable-profiling Compile with profiling enabled (default is NO)
1405 --enable-assertions Compile with assertion checks enabled (default is
1407 --enable-expensive-checks
1408 Compile with expensive debug checks enabled (default
1410 --enable-debug-runtime Build runtime libs with debug symbols (default is
1412 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1413 optimization is on and YES if it's off)
1414 --enable-jit Enable Just In Time Compiling (default is YES)
1415 --enable-docs Build documents (default is YES)
1416 --enable-doxygen Build doxygen documentation (default is NO)
1417 --enable-threads Use threads if available (default is YES)
1418 --enable-pic Build LLVM with Position Independent Code (default
1420 --enable-shared Build a shared library and link tools against it
1422 --enable-timestamps Enable embedding timestamp information in build
1424 --enable-targets Build specific host targets: all or
1425 target1,target2,... Valid targets are: host, x86,
1426 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1427 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1429 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1431 --enable-bindings Build specific language bindings:
1432 all,auto,none,{binding-name} (default=auto)
1433 --enable-libffi Check for the presence of libffi (default is NO)
1434 --enable-ltdl-install install libltdl
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1441 --with-llvmgcc Specify location of llvm-gcc driver (default
1443 --with-llvmgxx Specify location of llvm-g++ driver (default
1445 --with-clang Specify location of clang compiler (default is
1447 --with-built-clang Use the compiled Clang as the LLVM compiler
1449 --with-optimize-option Select the compiler options to use for optimized
1451 --with-extra-options Specify additional options to compile LLVM with
1452 --with-ocaml-libdir Specify install location for ocaml bindings (default
1454 --with-clang-resource-dir
1455 Relative directory from the Clang binary for
1457 --with-c-include-dirs Colon separated list of directories clang will
1459 --with-cxx-include-root Directory with the libstdc++ headers.
1460 --with-cxx-include-arch Architecture of the libstdc++ headers.
1461 --with-cxx-include-32bit-dir
1462 32 bit multilib dir.
1463 --with-cxx-include-64bit-dir
1464 64 bit multilib directory.
1465 --with-binutils-include Specify path to binutils/include/ containing
1466 plugin-api.h file for gold plugin.
1467 --with-tclinclude directory where tcl headers are
1468 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1469 clang, or none; default=check)
1470 --with-udis86=<path> Use udis86 external x86 disassembler library
1471 --with-oprofile=<prefix>
1472 Tell OProfile >= 0.9.4 how to symbolize JIT output
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1480 you have headers in a nonstandard directory <include dir>
1482 CXX C++ compiler command
1483 CXXFLAGS C++ compiler flags
1485 Use these variables to override the choices made by `configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1488 Report bugs to <llvmbugs@cs.uiuc.edu>.
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" || continue
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1516 .) # We are building in place.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1540 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1549 llvm configure 2.9svn
1550 generated by GNU Autoconf 2.60
1552 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1553 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1557 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1561 cat >config.log <<_ACEOF
1562 This file contains any messages produced by compilers while
1563 running configure, to aid debugging if configure makes a mistake.
1565 It was created by llvm $as_me 2.9svn, which was
1566 generated by GNU Autoconf 2.60. Invocation command line was
1578 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1579 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1580 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1581 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1582 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1584 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1585 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1587 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1588 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1589 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1590 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1591 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1592 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1593 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 test -z "$as_dir" && as_dir=.
1602 echo "PATH: $as_dir"
1618 # Keep a trace of the command line.
1619 # Strip out --no-create and --no-recursion so they do not pile up.
1620 # Strip out --silent because we don't want to record it for future runs.
1621 # Also quote any args containing shell meta-characters.
1622 # Make two passes to allow for proper duplicate-argument suppression.
1626 ac_must_keep_next=false
1632 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1634 | -silent | --silent | --silen | --sile | --sil)
1637 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1640 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1642 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1643 if test $ac_must_keep_next = true; then
1644 ac_must_keep_next=false # Got value, back to normal.
1647 *=* | --config-cache | -C | -disable-* | --disable-* \
1648 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1649 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1650 | -with-* | --with-* | -without-* | --without-* | --x)
1651 case "$ac_configure_args0 " in
1652 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1655 -* ) ac_must_keep_next=true ;;
1658 ac_configure_args="$ac_configure_args '$ac_arg'"
1663 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1664 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1666 # When interrupted or exit'd, cleanup temporary files, and complete
1667 # config.log. We remove comments because anyway the quotes in there
1668 # would cause problems or look ugly.
1669 # WARNING: Use '\'' to represent an apostrophe within the trap.
1670 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1671 trap 'exit_status=$?
1672 # Save into config.log some information that might help in debugging.
1677 ## ---------------- ##
1678 ## Cache variables. ##
1679 ## ---------------- ##
1682 # The following way of writing the cache mishandles newlines in values,
1684 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1685 eval ac_val=\$$ac_var
1689 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1690 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1693 _ | IFS | as_nl) ;; #(
1694 *) $as_unset $ac_var ;;
1699 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1700 *${as_nl}ac_space=\ *)
1702 "s/'\''/'\''\\\\'\'''\''/g;
1703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1714 ## ----------------- ##
1715 ## Output variables. ##
1716 ## ----------------- ##
1719 for ac_var in $ac_subst_vars
1721 eval ac_val=\$$ac_var
1723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725 echo "$ac_var='\''$ac_val'\''"
1729 if test -n "$ac_subst_files"; then
1731 ## ------------------- ##
1732 ## File substitutions. ##
1733 ## ------------------- ##
1736 for ac_var in $ac_subst_files
1738 eval ac_val=\$$ac_var
1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 echo "$ac_var='\''$ac_val'\''"
1747 if test -s confdefs.h; then
1757 test "$ac_signal" != 0 &&
1758 echo "$as_me: caught signal $ac_signal"
1759 echo "$as_me: exit $exit_status"
1761 rm -f core *.core core.conftest.* &&
1762 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1765 for ac_signal in 1 2 13 15; do
1766 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1770 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1771 rm -f -r conftest* confdefs.h
1773 # Predefined preprocessor variables.
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_NAME "$PACKAGE_NAME"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_STRING "$PACKAGE_STRING"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1800 # Let the site file select an alternate cache file if it wants to.
1801 # Prefer explicitly selected file to automatically selected ones.
1802 if test -n "$CONFIG_SITE"; then
1803 set x "$CONFIG_SITE"
1804 elif test "x$prefix" != xNONE; then
1805 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1807 set x "$ac_default_prefix/share/config.site" \
1808 "$ac_default_prefix/etc/config.site"
1813 if test -r "$ac_site_file"; then
1814 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1815 echo "$as_me: loading site script $ac_site_file" >&6;}
1816 sed 's/^/| /' "$ac_site_file" >&5
1821 if test -r "$cache_file"; then
1822 # Some versions of bash will fail to source /dev/null (special
1823 # files actually), so we avoid doing that.
1824 if test -f "$cache_file"; then
1825 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1826 echo "$as_me: loading cache $cache_file" >&6;}
1828 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1829 *) . "./$cache_file";;
1833 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1834 echo "$as_me: creating cache $cache_file" >&6;}
1838 # Check that the precious variables saved in the cache have kept the same
1840 ac_cache_corrupted=false
1841 for ac_var in $ac_precious_vars; do
1842 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1843 eval ac_new_set=\$ac_env_${ac_var}_set
1844 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1845 eval ac_new_val=\$ac_env_${ac_var}_value
1846 case $ac_old_set,$ac_new_set in
1848 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1849 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1850 ac_cache_corrupted=: ;;
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1857 if test "x$ac_old_val" != "x$ac_new_val"; then
1858 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1859 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1860 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1861 echo "$as_me: former value: $ac_old_val" >&2;}
1862 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1863 echo "$as_me: current value: $ac_new_val" >&2;}
1864 ac_cache_corrupted=:
1867 # Pass precious variables to config.status.
1868 if test "$ac_new_set" = set; then
1870 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1871 *) ac_arg=$ac_var=$ac_new_val ;;
1873 case " $ac_configure_args " in
1874 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1875 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1879 if $ac_cache_corrupted; then
1880 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1881 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1882 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1883 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1884 { (exit 1); exit 1; }; }
1912 ac_cpp='$CPP $CPPFLAGS'
1913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1919 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1928 for ac_dir in autoconf "$srcdir"/autoconf; do
1929 if test -f "$ac_dir/install-sh"; then
1931 ac_install_sh="$ac_aux_dir/install-sh -c"
1933 elif test -f "$ac_dir/install.sh"; then
1935 ac_install_sh="$ac_aux_dir/install.sh -c"
1937 elif test -f "$ac_dir/shtool"; then
1939 ac_install_sh="$ac_aux_dir/shtool install -c"
1943 if test -z "$ac_aux_dir"; then
1944 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1945 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1946 { (exit 1); exit 1; }; }
1949 # These three variables are undocumented and unsupported,
1950 # and are intended to be withdrawn in a future Autoconf release.
1951 # They can cause serious problems if a builder's source tree is in a directory
1952 # whose full name contains unusual characters.
1953 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1954 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1955 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1959 if test ${srcdir} != "." ; then
1960 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1961 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1962 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1963 { (exit 1); exit 1; }; }
1969 if test -d ${srcdir}/projects/llvm-gcc ; then
1970 subdirs="$subdirs projects/llvm-gcc"
1974 if test -d ${srcdir}/projects/test-suite ; then
1975 subdirs="$subdirs projects/test-suite"
1979 if test -d ${srcdir}/projects/llvm-test ; then
1980 subdirs="$subdirs projects/llvm-test"
1984 if test -d ${srcdir}/projects/poolalloc ; then
1985 subdirs="$subdirs projects/poolalloc"
1989 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1990 subdirs="$subdirs projects/llvm-poolalloc"
1994 for i in `ls ${srcdir}/projects`
1996 if test -d ${srcdir}/projects/${i} ; then
1998 sample) subdirs="$subdirs projects/sample"
2000 privbracket) subdirs="$subdirs projects/privbracket"
2002 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2004 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2006 llvm-java) subdirs="$subdirs projects/llvm-java"
2008 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2010 safecode) subdirs="$subdirs projects/safecode"
2012 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2020 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2021 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2027 # Check whether --enable-polly was given.
2028 if test "${enable_polly+set}" = set; then
2029 enableval=$enable_polly;
2034 case "$enableval" in
2039 default) ENABLE_POLLY=1
2041 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2042 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2043 { (exit 1); exit 1; }; } ;;
2047 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2050 subdirs="$subdirs tools/polly"
2055 # Make sure we can run config.sub.
2056 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2057 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2058 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2059 { (exit 1); exit 1; }; }
2061 { echo "$as_me:$LINENO: checking build system type" >&5
2062 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_build+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 ac_build_alias=$build_alias
2067 test "x$ac_build_alias" = x &&
2068 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2069 test "x$ac_build_alias" = x &&
2070 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2071 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2072 { (exit 1); exit 1; }; }
2073 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2074 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2075 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2076 { (exit 1); exit 1; }; }
2079 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2080 echo "${ECHO_T}$ac_cv_build" >&6; }
2081 case $ac_cv_build in
2083 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2084 echo "$as_me: error: invalid value of canonical build" >&2;}
2085 { (exit 1); exit 1; }; };;
2088 ac_save_IFS=$IFS; IFS='-'
2094 # Remember, the first character of IFS is used to create $*,
2095 # except with old shells:
2098 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2101 { echo "$as_me:$LINENO: checking host system type" >&5
2102 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2103 if test "${ac_cv_host+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 if test "x$host_alias" = x; then
2107 ac_cv_host=$ac_cv_build
2109 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2110 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2111 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2112 { (exit 1); exit 1; }; }
2116 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2117 echo "${ECHO_T}$ac_cv_host" >&6; }
2120 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2121 echo "$as_me: error: invalid value of canonical host" >&2;}
2122 { (exit 1); exit 1; }; };;
2125 ac_save_IFS=$IFS; IFS='-'
2131 # Remember, the first character of IFS is used to create $*,
2132 # except with old shells:
2135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2138 { echo "$as_me:$LINENO: checking target system type" >&5
2139 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2140 if test "${ac_cv_target+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 if test "x$target_alias" = x; then
2144 ac_cv_target=$ac_cv_host
2146 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2147 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2148 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2149 { (exit 1); exit 1; }; }
2153 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2154 echo "${ECHO_T}$ac_cv_target" >&6; }
2155 case $ac_cv_target in
2157 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2158 echo "$as_me: error: invalid value of canonical target" >&2;}
2159 { (exit 1); exit 1; }; };;
2161 target=$ac_cv_target
2162 ac_save_IFS=$IFS; IFS='-'
2168 # Remember, the first character of IFS is used to create $*,
2169 # except with old shells:
2172 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2175 # The aliases save the names the user supplied, while $host etc.
2176 # will get canonicalized.
2177 test -n "$target_alias" &&
2178 test "$program_prefix$program_suffix$program_transform_name" = \
2180 program_prefix=${target_alias}-
2182 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2183 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2184 if test "${llvm_cv_os_type+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
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="AIX"
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="IRIX"
2197 llvm_cv_platform_type="Unix" ;;
2199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201 llvm_cv_os_type="Cygwin"
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="Darwin"
2207 llvm_cv_platform_type="Unix" ;;
2209 llvm_cv_link_all_option="-Wl,-all_load"
2210 llvm_cv_no_link_all_option="-Wl,-noall_load"
2211 llvm_cv_os_type="Minix"
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="FreeBSD"
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="OpenBSD"
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="NetBSD"
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="DragonFly"
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="HP-UX"
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="Interix"
2242 llvm_cv_platform_type="Unix" ;;
2244 llvm_cv_link_all_option="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2246 llvm_cv_os_type="Linux"
2247 llvm_cv_platform_type="Unix" ;;
2249 llvm_cv_link_all_option="-Wl,-z,allextract"
2250 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2251 llvm_cv_os_type="SunOS"
2252 llvm_cv_platform_type="Unix" ;;
2254 llvm_cv_link_all_option="-Wl,-z,allextract"
2255 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2256 llvm_cv_os_type="AuroraUX"
2257 llvm_cv_platform_type="Unix" ;;
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="Win32"
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="MingW"
2267 llvm_cv_platform_type="Win32" ;;
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="Haiku"
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="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="Freestanding"
2282 llvm_cv_platform_type="Unix" ;;
2284 llvm_cv_link_all_option=""
2285 llvm_cv_no_link_all_option=""
2286 llvm_cv_os_type="Unknown"
2287 llvm_cv_platform_type="Unknown" ;;
2290 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2291 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2293 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2294 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2295 if test "${llvm_cv_target_os_type+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 llvm_cv_target_os_type="AIX" ;;
2302 llvm_cv_target_os_type="IRIX" ;;
2304 llvm_cv_target_os_type="Cygwin" ;;
2306 llvm_cv_target_os_type="Darwin" ;;
2308 llvm_cv_target_os_type="Minix" ;;
2310 llvm_cv_target_os_type="FreeBSD" ;;
2312 llvm_cv_target_os_type="OpenBSD" ;;
2314 llvm_cv_target_os_type="NetBSD" ;;
2316 llvm_cv_target_os_type="DragonFly" ;;
2318 llvm_cv_target_os_type="HP-UX" ;;
2320 llvm_cv_target_os_type="Interix" ;;
2322 llvm_cv_target_os_type="Linux" ;;
2324 llvm_cv_target_os_type="SunOS" ;;
2326 llvm_cv_target_os_type="AuroraUX" ;;
2328 llvm_cv_target_os_type="Win32" ;;
2330 llvm_cv_target_os_type="MingW" ;;
2332 llvm_cv_target_os_type="Haiku" ;;
2334 llvm_cv_target_os_type="Freestanding" ;;
2336 llvm_cv_target_os_type="Unknown" ;;
2339 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2340 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2342 if test "$llvm_cv_os_type" = "Unknown" ; then
2343 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2344 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2345 { (exit 1); exit 1; }; }
2350 HOST_OS=$llvm_cv_os_type
2352 TARGET_OS=$llvm_cv_target_os_type
2355 LINKALL=$llvm_cv_link_all_option
2357 NOLINKALL=$llvm_cv_no_link_all_option
2360 case $llvm_cv_platform_type in
2363 cat >>confdefs.h <<\_ACEOF
2364 #define LLVM_ON_UNIX 1
2374 cat >>confdefs.h <<\_ACEOF
2375 #define LLVM_ON_WIN32 1
2385 { echo "$as_me:$LINENO: checking target architecture" >&5
2386 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2387 if test "${llvm_cv_target_arch+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 i?86-*) llvm_cv_target_arch="x86" ;;
2392 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2393 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2394 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2395 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2396 arm*-*) llvm_cv_target_arch="ARM" ;;
2397 mips-*) llvm_cv_target_arch="Mips" ;;
2398 xcore-*) llvm_cv_target_arch="XCore" ;;
2399 msp430-*) llvm_cv_target_arch="MSP430" ;;
2400 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2401 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2402 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2403 ptx-*) llvm_cv_target_arch="PTX" ;;
2404 *) llvm_cv_target_arch="Unknown" ;;
2407 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2408 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2410 if test "$llvm_cv_target_arch" = "Unknown" ; then
2411 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2412 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2415 # Determine the LLVM native architecture for the target
2416 case "$llvm_cv_target_arch" in
2417 x86) LLVM_NATIVE_ARCH="X86" ;;
2418 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2419 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2422 ARCH=$llvm_cv_target_arch
2426 ac_cpp='$CPP $CPPFLAGS'
2427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2430 if test -n "$ac_tool_prefix"; then
2431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 if test -n "$CC"; then
2439 ac_cv_prog_CC="$CC" # Let the user override the test.
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 if test -n "$CC"; then
2460 { echo "$as_me:$LINENO: result: $CC" >&5
2461 echo "${ECHO_T}$CC" >&6; }
2463 { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2469 if test -z "$ac_cv_prog_CC"; then
2471 # Extract the first word of "gcc", so it can be a program name with args.
2472 set dummy gcc; ac_word=$2
2473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 if test -n "$ac_ct_CC"; then
2479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2488 ac_cv_prog_ac_ct_CC="gcc"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2499 if test -n "$ac_ct_CC"; then
2500 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2501 echo "${ECHO_T}$ac_ct_CC" >&6; }
2503 { echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6; }
2507 if test "x$ac_ct_CC" = x; then
2510 case $cross_compiling:$ac_tool_warned in
2512 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2513 whose name does not start with the host triplet. If you think this
2514 configuration is useful to you, please write to autoconf@gnu.org." >&5
2515 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2516 whose name does not start with the host triplet. If you think this
2517 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2518 ac_tool_warned=yes ;;
2526 if test -z "$CC"; then
2527 if test -n "$ac_tool_prefix"; then
2528 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2529 set dummy ${ac_tool_prefix}cc; ac_word=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 ac_cv_prog_CC="${ac_tool_prefix}cc"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 if test -n "$CC"; then
2557 { echo "$as_me:$LINENO: result: $CC" >&5
2558 echo "${ECHO_T}$CC" >&6; }
2560 { echo "$as_me:$LINENO: result: no" >&5
2561 echo "${ECHO_T}no" >&6; }
2567 if test -z "$CC"; then
2568 # Extract the first word of "cc", so it can be a program name with args.
2569 set dummy cc; ac_word=$2
2570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2572 if test "${ac_cv_prog_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2587 ac_prog_rejected=yes
2591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 if test $ac_prog_rejected = yes; then
2599 # We found a bogon in the path, so make sure we never use it.
2600 set dummy $ac_cv_prog_CC
2602 if test $# != 0; then
2603 # We chose a different compiler from the bogus one.
2604 # However, it has the same basename, so the bogon will be chosen
2605 # first if we set CC to just the basename; use the full file name.
2607 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2613 if test -n "$CC"; then
2614 { echo "$as_me:$LINENO: result: $CC" >&5
2615 echo "${ECHO_T}$CC" >&6; }
2617 { echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6; }
2623 if test -z "$CC"; then
2624 if test -n "$ac_tool_prefix"; then
2625 for ac_prog in cl.exe
2627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_CC+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 if test -n "$CC"; then
2656 { echo "$as_me:$LINENO: result: $CC" >&5
2657 echo "${ECHO_T}$CC" >&6; }
2659 { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2664 test -n "$CC" && break
2667 if test -z "$CC"; then
2669 for ac_prog in cl.exe
2671 # Extract the first word of "$ac_prog", so it can be a program name with args.
2672 set dummy $ac_prog; ac_word=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 if test -n "$ac_ct_CC"; then
2679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_ac_ct_CC="$ac_prog"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2699 if test -n "$ac_ct_CC"; then
2700 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2701 echo "${ECHO_T}$ac_ct_CC" >&6; }
2703 { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2708 test -n "$ac_ct_CC" && break
2711 if test "x$ac_ct_CC" = x; then
2714 case $cross_compiling:$ac_tool_warned in
2716 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2717 whose name does not start with the host triplet. If you think this
2718 configuration is useful to you, please write to autoconf@gnu.org." >&5
2719 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2720 whose name does not start with the host triplet. If you think this
2721 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2722 ac_tool_warned=yes ;;
2731 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2732 See \`config.log' for more details." >&5
2733 echo "$as_me: error: no acceptable C compiler found in \$PATH
2734 See \`config.log' for more details." >&2;}
2735 { (exit 1); exit 1; }; }
2737 # Provide some information about the compiler.
2738 echo "$as_me:$LINENO: checking for C compiler version" >&5
2739 ac_compiler=`set X $ac_compile; echo $2`
2740 { (ac_try="$ac_compiler --version >&5"
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compiler --version >&5") 2>&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }
2750 { (ac_try="$ac_compiler -v >&5"
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compiler -v >&5") 2>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }
2760 { (ac_try="$ac_compiler -V >&5"
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compiler -V >&5") 2>&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }
2771 cat >conftest.$ac_ext <<_ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2786 ac_clean_files_save=$ac_clean_files
2787 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2788 # Try to create an executable without -o first, disregard a.out.
2789 # It will help us diagnose broken compilers, and finding out an intuition
2791 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2792 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2793 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2795 # List of possible output files, starting from the most likely.
2796 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2797 # only as a last resort. b.out is created by i960 compilers.
2798 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2800 # The IRIX 6 linker writes into existing files which may not be
2801 # executable, retaining their permissions. Remove them first so a
2802 # subsequent execution test works.
2804 for ac_file in $ac_files
2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2813 if { (ac_try="$ac_link_default"
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_link_default") 2>&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; then
2823 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2824 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2825 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2826 # so that the user can short-circuit this test for compilers unknown to
2828 for ac_file in $ac_files
2830 test -f "$ac_file" || continue
2832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2835 # We found the default executable, but exeext='' is most
2839 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2841 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2843 # We set ac_cv_exeext here because the later test for it is not
2844 # safe: cross compilers may not add the suffix if given an `-o'
2845 # argument, so we may need to know it at that point already.
2846 # Even if this section looks crufty: it has the advantage of
2853 test "$ac_cv_exeext" = no && ac_cv_exeext=
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2859 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: C compiler cannot create executables
2862 See \`config.log' for more details." >&2;}
2863 { (exit 77); exit 77; }; }
2866 ac_exeext=$ac_cv_exeext
2867 { echo "$as_me:$LINENO: result: $ac_file" >&5
2868 echo "${ECHO_T}$ac_file" >&6; }
2870 # Check that the compiler produces executables we can run. If not, either
2871 # the compiler is broken, or we cross compile.
2872 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2873 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2874 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2875 # If not cross compiling, check that we can run a simple program.
2876 if test "$cross_compiling" != yes; then
2877 if { ac_try='./$ac_file'
2878 { (case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_try") 2>&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2889 if test "$cross_compiling" = maybe; then
2892 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2893 If you meant to cross compile, use \`--host'.
2894 See \`config.log' for more details." >&5
2895 echo "$as_me: error: cannot run C compiled programs.
2896 If you meant to cross compile, use \`--host'.
2897 See \`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
2902 { echo "$as_me:$LINENO: result: yes" >&5
2903 echo "${ECHO_T}yes" >&6; }
2905 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2906 ac_clean_files=$ac_clean_files_save
2907 # Check that the compiler produces executables we can run. If not, either
2908 # the compiler is broken, or we cross compile.
2909 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2910 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2911 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2912 echo "${ECHO_T}$cross_compiling" >&6; }
2914 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2915 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2916 if { (ac_try="$ac_link"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_link") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; then
2926 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2927 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2928 # work properly (i.e., refer to `conftest.exe'), while it won't with
2930 for ac_file in conftest.exe conftest conftest.*; do
2931 test -f "$ac_file" || continue
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2934 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2943 See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
2947 rm -f conftest$ac_cv_exeext
2948 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2949 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2951 rm -f conftest.$ac_ext
2952 EXEEXT=$ac_cv_exeext
2954 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2955 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2956 if test "${ac_cv_objext+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2974 rm -f conftest.o conftest.obj
2975 if { (ac_try="$ac_compile"
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_compile") 2>&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; then
2985 for ac_file in conftest.o conftest.obj conftest.*; do
2986 test -f "$ac_file" || continue;
2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2989 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2997 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2998 See \`config.log' for more details." >&5
2999 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3000 See \`config.log' for more details." >&2;}
3001 { (exit 1); exit 1; }; }
3004 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3006 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3007 echo "${ECHO_T}$ac_cv_objext" >&6; }
3008 OBJEXT=$ac_cv_objext
3010 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3011 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3012 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 cat >conftest.$ac_ext <<_ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3033 rm -f conftest.$ac_objext
3034 if { (ac_try="$ac_compile"
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compile") 2>conftest.er1
3042 grep -v '^ *+' conftest.er1 >conftest.err
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3048 { (case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_try") 2>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_try") 2>&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; }; then
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3079 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3080 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3081 GCC=`test $ac_compiler_gnu = yes && echo yes`
3082 ac_test_CFLAGS=${CFLAGS+set}
3083 ac_save_CFLAGS=$CFLAGS
3084 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3085 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3086 if test "${ac_cv_prog_cc_g+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 ac_save_c_werror_flag=$ac_c_werror_flag
3090 ac_c_werror_flag=yes
3093 cat >conftest.$ac_ext <<_ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3108 rm -f conftest.$ac_objext
3109 if { (ac_try="$ac_compile"
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compile") 2>conftest.er1
3117 grep -v '^ *+' conftest.er1 >conftest.err
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3148 cat >conftest.$ac_ext <<_ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3163 rm -f conftest.$ac_objext
3164 if { (ac_try="$ac_compile"
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3172 grep -v '^ *+' conftest.er1 >conftest.err
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3178 { (case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_try") 2>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3202 ac_c_werror_flag=$ac_save_c_werror_flag
3204 cat >conftest.$ac_ext <<_ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3219 rm -f conftest.$ac_objext
3220 if { (ac_try="$ac_compile"
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_compile") 2>conftest.er1
3228 grep -v '^ *+' conftest.er1 >conftest.err
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3234 { (case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_try") 2>&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_try") 2>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 ac_c_werror_flag=$ac_save_c_werror_flag
3270 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3271 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3272 if test "$ac_test_CFLAGS" = set; then
3273 CFLAGS=$ac_save_CFLAGS
3274 elif test $ac_cv_prog_cc_g = yes; then
3275 if test "$GCC" = yes; then
3281 if test "$GCC" = yes; then
3287 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3288 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3289 if test "${ac_cv_prog_cc_c89+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 ac_cv_prog_cc_c89=no
3294 cat >conftest.$ac_ext <<_ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3302 #include <sys/types.h>
3303 #include <sys/stat.h>
3304 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3305 struct buf { int x; };
3306 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3307 static char *e (p, i)
3313 static char *f (char * (*g) (char **, int), char **p, ...)
3318 s = g (p, va_arg (v,int));
3323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3324 function prototypes and stuff, but not '\xHH' hex character constants.
3325 These don't provoke an error unfortunately, instead are silently treated
3326 as 'x'. The following induces an error, until -std is added to get
3327 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3328 array size at least. It's necessary to write '\x00'==0 to get something
3329 that's true only with -std. */
3330 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3332 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3333 inside strings and character constants. */
3335 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3337 int test (int i, double x);
3338 struct s1 {int (*f) (int a);};
3339 struct s2 {int (*f) (double a);};
3340 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3346 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3351 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3352 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3354 CC="$ac_save_CC $ac_arg"
3355 rm -f conftest.$ac_objext
3356 if { (ac_try="$ac_compile"
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_compile") 2>conftest.er1
3364 grep -v '^ *+' conftest.er1 >conftest.err
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3370 { (case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_try") 2>&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_try") 2>&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 ac_cv_prog_cc_c89=$ac_arg
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3397 rm -f core conftest.err conftest.$ac_objext
3398 test "x$ac_cv_prog_cc_c89" != "xno" && break
3400 rm -f conftest.$ac_ext
3405 case "x$ac_cv_prog_cc_c89" in
3407 { echo "$as_me:$LINENO: result: none needed" >&5
3408 echo "${ECHO_T}none needed" >&6; } ;;
3410 { echo "$as_me:$LINENO: result: unsupported" >&5
3411 echo "${ECHO_T}unsupported" >&6; } ;;
3413 CC="$CC $ac_cv_prog_cc_c89"
3414 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3415 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3432 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3433 # On Suns, sometimes $CPP names a directory.
3434 if test -n "$CPP" && test -d "$CPP"; then
3437 if test -z "$CPP"; then
3438 if test "${ac_cv_prog_CPP+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 # Double quotes because CPP needs to be expanded
3442 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3445 for ac_c_preproc_warn_flag in '' yes
3447 # Use a header file that comes with gcc, so configuring glibc
3448 # with a fresh cross-compiler works.
3449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3450 # <limits.h> exists even on freestanding compilers.
3451 # On the NeXT, cc -E runs the code through the compiler's parser,
3452 # not just through cpp. "Syntax error" is here to catch this case.
3453 cat >conftest.$ac_ext <<_ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3460 # include <limits.h>
3462 # include <assert.h>
3466 if { (ac_try="$ac_cpp conftest.$ac_ext"
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3474 grep -v '^ *+' conftest.er1 >conftest.err
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } >/dev/null; then
3479 if test -s conftest.err; then
3480 ac_cpp_err=$ac_c_preproc_warn_flag
3481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488 if test -z "$ac_cpp_err"; then
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 # Broken: fails on valid input.
3498 rm -f conftest.err conftest.$ac_ext
3500 # OK, works on sane cases. Now check whether nonexistent headers
3501 # can be detected and how.
3502 cat >conftest.$ac_ext <<_ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 #include <ac_nonexistent.h>
3510 if { (ac_try="$ac_cpp conftest.$ac_ext"
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3518 grep -v '^ *+' conftest.er1 >conftest.err
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } >/dev/null; then
3523 if test -s conftest.err; then
3524 ac_cpp_err=$ac_c_preproc_warn_flag
3525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3532 if test -z "$ac_cpp_err"; then
3533 # Broken: success on invalid input.
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 # Passes both tests.
3544 rm -f conftest.err conftest.$ac_ext
3547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3548 rm -f conftest.err conftest.$ac_ext
3549 if $ac_preproc_ok; then
3561 { echo "$as_me:$LINENO: result: $CPP" >&5
3562 echo "${ECHO_T}$CPP" >&6; }
3564 for ac_c_preproc_warn_flag in '' yes
3566 # Use a header file that comes with gcc, so configuring glibc
3567 # with a fresh cross-compiler works.
3568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3569 # <limits.h> exists even on freestanding compilers.
3570 # On the NeXT, cc -E runs the code through the compiler's parser,
3571 # not just through cpp. "Syntax error" is here to catch this case.
3572 cat >conftest.$ac_ext <<_ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3579 # include <limits.h>
3581 # include <assert.h>
3585 if { (ac_try="$ac_cpp conftest.$ac_ext"
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3593 grep -v '^ *+' conftest.er1 >conftest.err
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } >/dev/null; then
3598 if test -s conftest.err; then
3599 ac_cpp_err=$ac_c_preproc_warn_flag
3600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3607 if test -z "$ac_cpp_err"; then
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3613 # Broken: fails on valid input.
3617 rm -f conftest.err conftest.$ac_ext
3619 # OK, works on sane cases. Now check whether nonexistent headers
3620 # can be detected and how.
3621 cat >conftest.$ac_ext <<_ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3627 #include <ac_nonexistent.h>
3629 if { (ac_try="$ac_cpp conftest.$ac_ext"
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3637 grep -v '^ *+' conftest.er1 >conftest.err
3639 cat conftest.err >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } >/dev/null; then
3642 if test -s conftest.err; then
3643 ac_cpp_err=$ac_c_preproc_warn_flag
3644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3651 if test -z "$ac_cpp_err"; then
3652 # Broken: success on invalid input.
3655 echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658 # Passes both tests.
3663 rm -f conftest.err conftest.$ac_ext
3666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3667 rm -f conftest.err conftest.$ac_ext
3668 if $ac_preproc_ok; then
3671 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3672 See \`config.log' for more details." >&5
3673 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3674 See \`config.log' for more details." >&2;}
3675 { (exit 1); exit 1; }; }
3679 ac_cpp='$CPP $CPPFLAGS'
3680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3686 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3687 if test "${ac_cv_path_GREP+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 # Extract the first word of "grep ggrep" to use in msg output
3691 if test -z "$GREP"; then
3692 set dummy grep ggrep; ac_prog_name=$2
3693 if test "${ac_cv_path_GREP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 ac_path_GREP_found=false
3697 # Loop through the user's path and test for each of PROGNAME-LIST
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3702 test -z "$as_dir" && as_dir=.
3703 for ac_prog in grep ggrep; do
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3706 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3707 # Check for GNU ac_path_GREP and select it if it is found.
3708 # Check for GNU $ac_path_GREP
3709 case `"$ac_path_GREP" --version 2>&1` in
3711 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3714 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3717 cat "conftest.in" "conftest.in" >"conftest.tmp"
3718 mv "conftest.tmp" "conftest.in"
3719 cp "conftest.in" "conftest.nl"
3720 echo 'GREP' >> "conftest.nl"
3721 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3723 ac_count=`expr $ac_count + 1`
3724 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3725 # Best one so far, save it but keep looking for a better one
3726 ac_cv_path_GREP="$ac_path_GREP"
3727 ac_path_GREP_max=$ac_count
3729 # 10*(2^10) chars as input seems more than enough
3730 test $ac_count -gt 10 && break
3732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3736 $ac_path_GREP_found && break 3
3746 GREP="$ac_cv_path_GREP"
3747 if test -z "$GREP"; then
3748 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3749 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3750 { (exit 1); exit 1; }; }
3754 ac_cv_path_GREP=$GREP
3759 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3760 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3761 GREP="$ac_cv_path_GREP"
3764 { echo "$as_me:$LINENO: checking for egrep" >&5
3765 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3766 if test "${ac_cv_path_EGREP+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3770 then ac_cv_path_EGREP="$GREP -E"
3772 # Extract the first word of "egrep" to use in msg output
3773 if test -z "$EGREP"; then
3774 set dummy egrep; ac_prog_name=$2
3775 if test "${ac_cv_path_EGREP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 ac_path_EGREP_found=false
3779 # Loop through the user's path and test for each of PROGNAME-LIST
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3784 test -z "$as_dir" && as_dir=.
3785 for ac_prog in egrep; do
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3788 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3789 # Check for GNU ac_path_EGREP and select it if it is found.
3790 # Check for GNU $ac_path_EGREP
3791 case `"$ac_path_EGREP" --version 2>&1` in
3793 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3796 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3799 cat "conftest.in" "conftest.in" >"conftest.tmp"
3800 mv "conftest.tmp" "conftest.in"
3801 cp "conftest.in" "conftest.nl"
3802 echo 'EGREP' >> "conftest.nl"
3803 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3805 ac_count=`expr $ac_count + 1`
3806 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3807 # Best one so far, save it but keep looking for a better one
3808 ac_cv_path_EGREP="$ac_path_EGREP"
3809 ac_path_EGREP_max=$ac_count
3811 # 10*(2^10) chars as input seems more than enough
3812 test $ac_count -gt 10 && break
3814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3818 $ac_path_EGREP_found && break 3
3828 EGREP="$ac_cv_path_EGREP"
3829 if test -z "$EGREP"; then
3830 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3831 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3832 { (exit 1); exit 1; }; }
3836 ac_cv_path_EGREP=$EGREP
3842 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3843 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3844 EGREP="$ac_cv_path_EGREP"
3847 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3848 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3849 if test "${ac_cv_header_stdc+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 cat >conftest.$ac_ext <<_ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3871 rm -f conftest.$ac_objext
3872 if { (ac_try="$ac_compile"
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3878 (eval "$ac_compile") 2>conftest.er1
3880 grep -v '^ *+' conftest.er1 >conftest.err
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } &&
3885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3886 { (case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891 (eval "$ac_try") 2>&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; } &&
3895 { ac_try='test -s conftest.$ac_objext'
3896 { (case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_try") 2>&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; }; then
3905 ac_cv_header_stdc=yes
3907 echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 ac_cv_header_stdc=no
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 if test $ac_cv_header_stdc = yes; then
3916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3917 cat >conftest.$ac_ext <<_ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3927 $EGREP "memchr" >/dev/null 2>&1; then
3930 ac_cv_header_stdc=no
3936 if test $ac_cv_header_stdc = yes; then
3937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3938 cat >conftest.$ac_ext <<_ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3948 $EGREP "free" >/dev/null 2>&1; then
3951 ac_cv_header_stdc=no
3957 if test $ac_cv_header_stdc = yes; then
3958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3959 if test "$cross_compiling" = yes; then
3962 cat >conftest.$ac_ext <<_ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3970 #if ((' ' & 0x0FF) == 0x020)
3971 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3972 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3974 # define ISLOWER(c) \
3975 (('a' <= (c) && (c) <= 'i') \
3976 || ('j' <= (c) && (c) <= 'r') \
3977 || ('s' <= (c) && (c) <= 'z'))
3978 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3981 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3986 for (i = 0; i < 256; i++)
3987 if (XOR (islower (i), ISLOWER (i))
3988 || toupper (i) != TOUPPER (i))
3993 rm -f conftest$ac_exeext
3994 if { (ac_try="$ac_link"
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_link") 2>&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4004 { (case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_try") 2>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4015 echo "$as_me: program exited with status $ac_status" >&5
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4020 ac_cv_header_stdc=no
4022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4028 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4029 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4030 if test $ac_cv_header_stdc = yes; then
4032 cat >>confdefs.h <<\_ACEOF
4033 #define STDC_HEADERS 1
4038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4048 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4049 inttypes.h stdint.h unistd.h
4051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 cat >conftest.$ac_ext <<_ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 $ac_includes_default
4065 #include <$ac_header>
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4076 grep -v '^ *+' conftest.er1 >conftest.err
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4082 { (case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_try") 2>&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; } &&
4091 { ac_try='test -s conftest.$ac_objext'
4092 { (case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_try") 2>&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 eval "$as_ac_Header=yes"
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4106 eval "$as_ac_Header=no"
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 ac_res=`eval echo '${'$as_ac_Header'}'`
4112 { echo "$as_me:$LINENO: result: $ac_res" >&5
4113 echo "${ECHO_T}$ac_res" >&6; }
4114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4115 cat >>confdefs.h <<_ACEOF
4116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4124 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4125 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4126 if test "${ac_cv_c_bigendian+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 # See if sys/param.h defines the BYTE_ORDER macro.
4130 cat >conftest.$ac_ext <<_ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4136 #include <sys/types.h>
4137 #include <sys/param.h>
4142 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4159 grep -v '^ *+' conftest.er1 >conftest.err
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4165 { (case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_try") 2>&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest.$ac_objext'
4175 { (case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_try") 2>&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 # It does; now see whether it defined to BIG_ENDIAN or not.
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4191 #include <sys/types.h>
4192 #include <sys/param.h>
4197 #if BYTE_ORDER != BIG_ENDIAN
4205 rm -f conftest.$ac_objext
4206 if { (ac_try="$ac_compile"
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compile") 2>conftest.er1
4214 grep -v '^ *+' conftest.er1 >conftest.err
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } &&
4219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4220 { (case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_try") 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_try") 2>&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 ac_cv_c_bigendian=yes
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 ac_cv_c_bigendian=no
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4252 # It does not; compile a test program.
4253 if test "$cross_compiling" = yes; then
4254 # try to guess the endianness by grepping values into an object file
4255 ac_cv_c_bigendian=unknown
4256 cat >conftest.$ac_ext <<_ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4263 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4264 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4265 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4266 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4267 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4271 _ascii (); _ebcdic ();
4276 rm -f conftest.$ac_objext
4277 if { (ac_try="$ac_compile"
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_compile") 2>conftest.er1
4285 grep -v '^ *+' conftest.er1 >conftest.err
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4291 { (case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_try") 2>&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_try") 2>&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4311 ac_cv_c_bigendian=yes
4313 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4314 if test "$ac_cv_c_bigendian" = unknown; then
4315 ac_cv_c_bigendian=no
4317 # finding both strings is unlikely to happen, but who knows?
4318 ac_cv_c_bigendian=unknown
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 $ac_includes_default
4341 /* Are we little or big endian? From Harbison&Steele. */
4345 char c[sizeof (long int)];
4348 return u.c[sizeof (long int) - 1] == 1;
4354 rm -f conftest$ac_exeext
4355 if { (ac_try="$ac_link"
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_link") 2>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4365 { (case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_try") 2>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 ac_cv_c_bigendian=no
4376 echo "$as_me: program exited with status $ac_status" >&5
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4381 ac_cv_c_bigendian=yes
4383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4392 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4393 case $ac_cv_c_bigendian in
4401 { { echo "$as_me:$LINENO: error: unknown endianness
4402 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4403 echo "$as_me: error: unknown endianness
4404 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4405 { (exit 1); exit 1; }; } ;;
4409 if test "$cross_compiling" = yes; then
4410 LLVM_CROSS_COMPILING=1
4413 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4414 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4415 if test "${ac_cv_build_exeext+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4419 ac_cv_build_exeext=.exe
4421 ac_build_prefix=${build_alias}-
4423 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4424 set dummy ${ac_build_prefix}gcc; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 BUILD_CC=$ac_cv_prog_BUILD_CC
4451 if test -n "$BUILD_CC"; then
4452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453 echo "${ECHO_T}$BUILD_CC" >&6; }
4455 { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "gcc", so it can be a program name with args.
4462 set dummy gcc; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_prog_BUILD_CC="gcc"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 BUILD_CC=$ac_cv_prog_BUILD_CC
4489 if test -n "$BUILD_CC"; then
4490 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4491 echo "${ECHO_T}$BUILD_CC" >&6; }
4493 { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4498 if test -z "$BUILD_CC"; then
4499 # Extract the first word of "cc", so it can be a program name with args.
4500 set dummy cc; ac_word=$2
4501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4503 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 if test -n "$BUILD_CC"; then
4507 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4518 ac_prog_rejected=yes
4521 ac_cv_prog_BUILD_CC="cc"
4522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 if test $ac_prog_rejected = yes; then
4530 # We found a bogon in the path, so make sure we never use it.
4531 set dummy $ac_cv_prog_BUILD_CC
4533 if test $# != 0; then
4534 # We chose a different compiler from the bogus one.
4535 # However, it has the same basename, so the bogon will be chosen
4536 # first if we set BUILD_CC to just the basename; use the full file name.
4538 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4543 BUILD_CC=$ac_cv_prog_BUILD_CC
4544 if test -n "$BUILD_CC"; then
4545 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4546 echo "${ECHO_T}$BUILD_CC" >&6; }
4548 { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4555 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4556 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4557 { (exit 1); exit 1; }; }
4558 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4560 echo 'int main () { return 0; }' > conftest.$ac_ext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4563 (eval $ac_build_link) 2>&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; then
4567 for file in conftest.*; do
4569 *.c | *.o | *.obj | *.dSYM) ;;
4570 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4574 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4575 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4576 { (exit 1); exit 1; }; }
4579 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4584 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4585 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4586 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4587 ac_build_exeext=$BUILD_EXEEXT
4589 ac_build_prefix=${build_alias}-
4590 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4591 set dummy ${ac_build_prefix}g++; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if test -n "$BUILD_CXX"; then
4598 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618 if test -n "$BUILD_CXX"; then
4619 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620 echo "${ECHO_T}$BUILD_CXX" >&6; }
4622 { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4627 if test -z "$BUILD_CXX"; then
4628 # Extract the first word of "g++", so it can be a program name with args.
4629 set dummy g++; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -n "$BUILD_CXX"; then
4636 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_BUILD_CXX="g++"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4656 if test -n "$BUILD_CXX"; then
4657 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4658 echo "${ECHO_T}$BUILD_CXX" >&6; }
4660 { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4665 if test -z "$BUILD_CXX"; then
4666 # Extract the first word of "c++", so it can be a program name with args.
4667 set dummy c++; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 if test -n "$BUILD_CXX"; then
4674 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4685 ac_prog_rejected=yes
4688 ac_cv_prog_BUILD_CXX="c++"
4689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 if test $ac_prog_rejected = yes; then
4697 # We found a bogon in the path, so make sure we never use it.
4698 set dummy $ac_cv_prog_BUILD_CXX
4700 if test $# != 0; then
4701 # We chose a different compiler from the bogus one.
4702 # However, it has the same basename, so the bogon will be chosen
4703 # first if we set BUILD_CXX to just the basename; use the full file name.
4705 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4710 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4711 if test -n "$BUILD_CXX"; then
4712 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4713 echo "${ECHO_T}$BUILD_CXX" >&6; }
4715 { echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6; }
4723 LLVM_CROSS_COMPILING=0
4727 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4738 # Check whether --enable-optimized was given.
4739 if test "${enable_optimized+set}" = set; then
4740 enableval=$enable_optimized;
4745 if test ${enableval} = "no" ; then
4749 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4753 # Check whether --enable-profiling was given.
4754 if test "${enable_profiling+set}" = set; then
4755 enableval=$enable_profiling;
4760 if test ${enableval} = "no" ; then
4764 ENABLE_PROFILING=ENABLE_PROFILING=1
4768 # Check whether --enable-assertions was given.
4769 if test "${enable_assertions+set}" = set; then
4770 enableval=$enable_assertions;
4775 if test ${enableval} = "yes" ; then
4779 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4783 # Check whether --enable-expensive-checks was given.
4784 if test "${enable_expensive_checks+set}" = set; then
4785 enableval=$enable_expensive_checks;
4790 if test ${enableval} = "yes" ; then
4791 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4793 EXPENSIVE_CHECKS=yes
4796 ENABLE_EXPENSIVE_CHECKS=
4802 # Check whether --enable-debug-runtime was given.
4803 if test "${enable_debug_runtime+set}" = set; then
4804 enableval=$enable_debug_runtime;
4809 if test ${enableval} = "no" ; then
4813 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4817 # Check whether --enable-debug-symbols was given.
4818 if test "${enable_debug_symbols+set}" = set; then
4819 enableval=$enable_debug_symbols;
4824 if test ${enableval} = "no" ; then
4828 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4832 # Check whether --enable-jit was given.
4833 if test "${enable_jit+set}" = set; then
4834 enableval=$enable_jit;
4839 if test ${enableval} = "no"
4844 case "$llvm_cv_target_arch" in
4845 x86) TARGET_HAS_JIT=1
4847 Sparc) TARGET_HAS_JIT=0
4849 PowerPC) TARGET_HAS_JIT=1
4851 x86_64) TARGET_HAS_JIT=1
4853 Alpha) TARGET_HAS_JIT=1
4855 ARM) TARGET_HAS_JIT=1
4857 Mips) TARGET_HAS_JIT=0
4859 XCore) TARGET_HAS_JIT=0
4861 MSP430) TARGET_HAS_JIT=0
4863 SystemZ) TARGET_HAS_JIT=0
4865 Blackfin) TARGET_HAS_JIT=0
4867 MBlaze) TARGET_HAS_JIT=0
4869 PTX) TARGET_HAS_JIT=0
4876 # Check whether --enable-docs was given.
4877 if test "${enable_docs+set}" = set; then
4878 enableval=$enable_docs;
4883 case "$enableval" in
4888 default) ENABLE_DOCS=1
4890 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4891 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4892 { (exit 1); exit 1; }; } ;;
4895 # Check whether --enable-doxygen was given.
4896 if test "${enable_doxygen+set}" = set; then
4897 enableval=$enable_doxygen;
4902 case "$enableval" in
4903 yes) ENABLE_DOXYGEN=1
4905 no) ENABLE_DOXYGEN=0
4907 default) ENABLE_DOXYGEN=0
4909 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4910 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4911 { (exit 1); exit 1; }; } ;;
4914 # Check whether --enable-threads was given.
4915 if test "${enable_threads+set}" = set; then
4916 enableval=$enable_threads;
4921 case "$enableval" in
4922 yes) ENABLE_THREADS=1
4924 no) ENABLE_THREADS=0
4926 default) ENABLE_THREADS=1
4928 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4929 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4930 { (exit 1); exit 1; }; } ;;
4933 cat >>confdefs.h <<_ACEOF
4934 #define ENABLE_THREADS $ENABLE_THREADS
4938 # Check whether --enable-pic was given.
4939 if test "${enable_pic+set}" = set; then
4940 enableval=$enable_pic;
4945 case "$enableval" in
4950 default) ENABLE_PIC=1
4952 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4953 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4954 { (exit 1); exit 1; }; } ;;
4957 cat >>confdefs.h <<_ACEOF
4958 #define ENABLE_PIC $ENABLE_PIC
4962 # Check whether --enable-shared was given.
4963 if test "${enable_shared+set}" = set; then
4964 enableval=$enable_shared;
4969 case "$enableval" in
4970 yes) ENABLE_SHARED=1
4974 default) ENABLE_SHARED=0
4976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4977 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4978 { (exit 1); exit 1; }; } ;;
4981 # Check whether --enable-timestamps was given.
4982 if test "${enable_timestamps+set}" = set; then
4983 enableval=$enable_timestamps;
4988 case "$enableval" in
4989 yes) ENABLE_TIMESTAMPS=1
4991 no) ENABLE_TIMESTAMPS=0
4993 default) ENABLE_TIMESTAMPS=1
4995 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4996 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4997 { (exit 1); exit 1; }; } ;;
5000 cat >>confdefs.h <<_ACEOF
5001 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5006 # Check whether --enable-targets was given.
5007 if test "${enable_targets+set}" = set; then
5008 enableval=$enable_targets;
5013 if test "$enableval" = host-only ; then
5016 case "$enableval" in
5017 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5018 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5020 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5021 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5022 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5023 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5024 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5025 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5026 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5027 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5028 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5029 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5030 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5031 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5032 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5033 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5034 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5035 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5036 host) case "$llvm_cv_target_arch" in
5037 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5038 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5039 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5040 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5041 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5042 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5043 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5044 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5045 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5046 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5047 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5048 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5049 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5050 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5051 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5052 echo "$as_me: error: Can not set target to build" >&2;}
5053 { (exit 1); exit 1; }; } ;;
5055 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5056 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5057 { (exit 1); exit 1; }; } ;;
5062 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5065 # Determine whether we are building LLVM support for the native architecture.
5066 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5067 for a_target in $TARGETS_TO_BUILD; do
5068 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5070 cat >>confdefs.h <<_ACEOF
5071 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5074 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5075 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5076 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5078 cat >>confdefs.h <<_ACEOF
5079 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5083 cat >>confdefs.h <<_ACEOF
5084 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5088 cat >>confdefs.h <<_ACEOF
5089 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5095 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5096 # target feature def files.
5097 LLVM_ENUM_TARGETS=""
5098 LLVM_ENUM_ASM_PRINTERS=""
5099 LLVM_ENUM_ASM_PARSERS=""
5100 LLVM_ENUM_DISASSEMBLERS=""
5101 for target_to_build in $TARGETS_TO_BUILD; do
5102 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5103 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5104 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5106 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5107 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5108 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5110 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5111 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5113 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5114 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5122 # Check whether --enable-cbe-printf-a was given.
5123 if test "${enable_cbe_printf_a+set}" = set; then
5124 enableval=$enable_cbe_printf_a;
5129 case "$enableval" in
5130 yes) ENABLE_CBE_PRINTF_A=1
5132 no) ENABLE_CBE_PRINTF_A=0
5134 default) ENABLE_CBE_PRINTF_A=1
5136 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5137 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5138 { (exit 1); exit 1; }; } ;;
5141 cat >>confdefs.h <<_ACEOF
5142 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5147 # Check whether --with-llvmgccdir was given.
5148 if test "${with_llvmgccdir+set}" = set; then
5149 withval=$with_llvmgccdir;
5155 default) WITH_LLVMGCCDIR=default ;;
5156 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5157 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5158 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5159 { (exit 1); exit 1; }; } ;;
5163 # Check whether --with-llvmgcc was given.
5164 if test "${with_llvmgcc+set}" = set; then
5165 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5171 # Check whether --with-llvmgxx was given.
5172 if test "${with_llvmgxx+set}" = set; then
5173 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5178 if test -n "$LLVMGCC"; then
5179 LLVMGCCCOMMAND="$LLVMGCC"
5182 if test -n "$LLVMGXX"; then
5183 LLVMGXXCOMMAND="$LLVMGXX"
5186 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5187 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5188 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5189 { (exit 1); exit 1; }; };
5192 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5193 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5194 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5195 { (exit 1); exit 1; }; };
5199 # Check whether --with-clang was given.
5200 if test "${with_clang+set}" = set; then
5201 withval=$with_clang;
5208 # Check whether --with-built-clang was given.
5209 if test "${with_built_clang+set}" = set; then
5210 withval=$with_built_clang;
5212 with_built_clang=check
5216 { echo "$as_me:$LINENO: checking clang compiler" >&5
5217 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5220 if test "$with_clang" != "default"; then
5221 WITH_CLANGPATH="$with_clang"
5222 if ! test -x "$WITH_CLANGPATH"; then
5223 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5224 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5225 { (exit 1); exit 1; }; }
5227 elif test "$with_built_clang" = "yes"; then
5229 elif test "$with_built_clang" = "no"; then
5232 if test "$with_built_clang" != "check"; then
5233 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5234 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5235 { (exit 1); exit 1; }; }
5238 if test -f ${srcdir}/tools/clang/README.txt; then
5243 if ! test -z "$WITH_CLANGPATH"; then
5244 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5245 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5246 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5247 elif test "$WITH_BUILT_CLANG" = "1"; then
5248 { echo "$as_me:$LINENO: result: built" >&5
5249 echo "${ECHO_T}built" >&6; }
5251 { echo "$as_me:$LINENO: result: none" >&5
5252 echo "${ECHO_T}none" >&6; }
5254 CLANGPATH=$WITH_CLANGPATH
5256 CLANGXXPATH=$WITH_CLANGXXPATH
5258 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5262 # Check whether --with-optimize-option was given.
5263 if test "${with_optimize_option+set}" = set; then
5264 withval=$with_optimize_option;
5269 { echo "$as_me:$LINENO: checking optimization flags" >&5
5270 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5273 case "$llvm_cv_os_type" in
5274 FreeBSD) optimize_option=-O2 ;;
5275 MingW) optimize_option=-O2 ;;
5276 *) optimize_option=-O3 ;;
5278 *) optimize_option="$withval" ;;
5280 OPTIMIZE_OPTION=$optimize_option
5282 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5283 echo "${ECHO_T}$optimize_option" >&6; }
5286 # Check whether --with-extra-options was given.
5287 if test "${with_extra_options+set}" = set; then
5288 withval=$with_extra_options;
5294 default) EXTRA_OPTIONS= ;;
5295 *) EXTRA_OPTIONS=$withval ;;
5297 EXTRA_OPTIONS=$EXTRA_OPTIONS
5300 # Check whether --enable-bindings was given.
5301 if test "${enable_bindings+set}" = set; then
5302 enableval=$enable_bindings;
5307 BINDINGS_TO_BUILD=""
5308 case "$enableval" in
5309 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5310 all ) BINDINGS_TO_BUILD="ocaml" ;;
5311 none | no) BINDINGS_TO_BUILD="" ;;
5312 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5313 case "$a_binding" in
5314 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5315 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5316 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5317 { (exit 1); exit 1; }; } ;;
5324 # Check whether --with-ocaml-libdir was given.
5325 if test "${with_ocaml_libdir+set}" = set; then
5326 withval=$with_ocaml_libdir;
5332 auto) with_ocaml_libdir="$withval" ;;
5333 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5334 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5335 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5336 { (exit 1); exit 1; }; } ;;
5340 # Check whether --with-clang-resource-dir was given.
5341 if test "${with_clang_resource_dir+set}" = set; then
5342 withval=$with_clang_resource_dir;
5348 cat >>confdefs.h <<_ACEOF
5349 #define CLANG_RESOURCE_DIR "$withval"
5354 # Check whether --with-c-include-dirs was given.
5355 if test "${with_c_include_dirs+set}" = set; then
5356 withval=$with_c_include_dirs;
5362 cat >>confdefs.h <<_ACEOF
5363 #define C_INCLUDE_DIRS "$withval"
5368 # Check whether --with-cxx-include-root was given.
5369 if test "${with_cxx_include_root+set}" = set; then
5370 withval=$with_cxx_include_root;
5376 cat >>confdefs.h <<_ACEOF
5377 #define CXX_INCLUDE_ROOT "$withval"
5382 # Check whether --with-cxx-include-arch was given.
5383 if test "${with_cxx_include_arch+set}" = set; then
5384 withval=$with_cxx_include_arch;
5390 cat >>confdefs.h <<_ACEOF
5391 #define CXX_INCLUDE_ARCH "$withval"
5396 # Check whether --with-cxx-include-32bit-dir was given.
5397 if test "${with_cxx_include_32bit_dir+set}" = set; then
5398 withval=$with_cxx_include_32bit_dir;
5404 cat >>confdefs.h <<_ACEOF
5405 #define CXX_INCLUDE_32BIT_DIR "$withval"
5410 # Check whether --with-cxx-include-64bit-dir was given.
5411 if test "${with_cxx_include_64bit_dir+set}" = set; then
5412 withval=$with_cxx_include_64bit_dir;
5418 cat >>confdefs.h <<_ACEOF
5419 #define CXX_INCLUDE_64BIT_DIR "$withval"
5424 # Check whether --with-binutils-include was given.
5425 if test "${with_binutils_include+set}" = set; then
5426 withval=$with_binutils_include;
5432 default) WITH_BINUTILS_INCDIR=default ;;
5433 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5434 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5435 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5436 { (exit 1); exit 1; }; } ;;
5438 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5439 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5441 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5442 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5443 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5444 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5445 { (exit 1); exit 1; }; };
5449 # Check whether --enable-libffi was given.
5450 if test "${enable_libffi+set}" = set; then
5451 enableval=$enable_libffi; case "$enableval" in
5452 yes) llvm_cv_enable_libffi="yes" ;;
5453 no) llvm_cv_enable_libffi="no" ;;
5454 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5455 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5456 { (exit 1); exit 1; }; } ;;
5459 llvm_cv_enable_libffi=no
5465 ac_cpp='$CPP $CPPFLAGS'
5466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5469 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5470 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5471 # On Suns, sometimes $CPP names a directory.
5472 if test -n "$CPP" && test -d "$CPP"; then
5475 if test -z "$CPP"; then
5476 if test "${ac_cv_prog_CPP+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 # Double quotes because CPP needs to be expanded
5480 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5483 for ac_c_preproc_warn_flag in '' yes
5485 # Use a header file that comes with gcc, so configuring glibc
5486 # with a fresh cross-compiler works.
5487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5488 # <limits.h> exists even on freestanding compilers.
5489 # On the NeXT, cc -E runs the code through the compiler's parser,
5490 # not just through cpp. "Syntax error" is here to catch this case.
5491 cat >conftest.$ac_ext <<_ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5498 # include <limits.h>
5500 # include <assert.h>
5504 if { (ac_try="$ac_cpp conftest.$ac_ext"
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5512 grep -v '^ *+' conftest.er1 >conftest.err
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } >/dev/null; then
5517 if test -s conftest.err; then
5518 ac_cpp_err=$ac_c_preproc_warn_flag
5519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5526 if test -z "$ac_cpp_err"; then
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5532 # Broken: fails on valid input.
5536 rm -f conftest.err conftest.$ac_ext
5538 # OK, works on sane cases. Now check whether nonexistent headers
5539 # can be detected and how.
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 #include <ac_nonexistent.h>
5548 if { (ac_try="$ac_cpp conftest.$ac_ext"
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5556 grep -v '^ *+' conftest.er1 >conftest.err
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } >/dev/null; then
5561 if test -s conftest.err; then
5562 ac_cpp_err=$ac_c_preproc_warn_flag
5563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5570 if test -z "$ac_cpp_err"; then
5571 # Broken: success on invalid input.
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 # Passes both tests.
5582 rm -f conftest.err conftest.$ac_ext
5585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5586 rm -f conftest.err conftest.$ac_ext
5587 if $ac_preproc_ok; then
5599 { echo "$as_me:$LINENO: result: $CPP" >&5
5600 echo "${ECHO_T}$CPP" >&6; }
5602 for ac_c_preproc_warn_flag in '' yes
5604 # Use a header file that comes with gcc, so configuring glibc
5605 # with a fresh cross-compiler works.
5606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5607 # <limits.h> exists even on freestanding compilers.
5608 # On the NeXT, cc -E runs the code through the compiler's parser,
5609 # not just through cpp. "Syntax error" is here to catch this case.
5610 cat >conftest.$ac_ext <<_ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5617 # include <limits.h>
5619 # include <assert.h>
5623 if { (ac_try="$ac_cpp conftest.$ac_ext"
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5631 grep -v '^ *+' conftest.er1 >conftest.err
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } >/dev/null; then
5636 if test -s conftest.err; then
5637 ac_cpp_err=$ac_c_preproc_warn_flag
5638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5645 if test -z "$ac_cpp_err"; then
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5651 # Broken: fails on valid input.
5655 rm -f conftest.err conftest.$ac_ext
5657 # OK, works on sane cases. Now check whether nonexistent headers
5658 # can be detected and how.
5659 cat >conftest.$ac_ext <<_ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 #include <ac_nonexistent.h>
5667 if { (ac_try="$ac_cpp conftest.$ac_ext"
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5675 grep -v '^ *+' conftest.er1 >conftest.err
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } >/dev/null; then
5680 if test -s conftest.err; then
5681 ac_cpp_err=$ac_c_preproc_warn_flag
5682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5689 if test -z "$ac_cpp_err"; then
5690 # Broken: success on invalid input.
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5696 # Passes both tests.
5701 rm -f conftest.err conftest.$ac_ext
5704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5705 rm -f conftest.err conftest.$ac_ext
5706 if $ac_preproc_ok; then
5709 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5710 See \`config.log' for more details." >&5
5711 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5712 See \`config.log' for more details." >&2;}
5713 { (exit 1); exit 1; }; }
5717 ac_cpp='$CPP $CPPFLAGS'
5718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5723 ac_cpp='$CPP $CPPFLAGS'
5724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727 if test -n "$ac_tool_prefix"; then
5730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5734 if test "${ac_cv_prog_CC+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 if test -n "$CC"; then
5738 ac_cv_prog_CC="$CC" # Let the user override the test.
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 if test -n "$CC"; then
5759 { echo "$as_me:$LINENO: result: $CC" >&5
5760 echo "${ECHO_T}$CC" >&6; }
5762 { echo "$as_me:$LINENO: result: no" >&5
5763 echo "${ECHO_T}no" >&6; }
5767 test -n "$CC" && break
5770 if test -z "$CC"; then
5774 # Extract the first word of "$ac_prog", so it can be a program name with args.
5775 set dummy $ac_prog; ac_word=$2
5776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5778 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 if test -n "$ac_ct_CC"; then
5782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5791 ac_cv_prog_ac_ct_CC="$ac_prog"
5792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5802 if test -n "$ac_ct_CC"; then
5803 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5804 echo "${ECHO_T}$ac_ct_CC" >&6; }
5806 { echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6; }
5811 test -n "$ac_ct_CC" && break
5814 if test "x$ac_ct_CC" = x; then
5817 case $cross_compiling:$ac_tool_warned in
5819 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5820 whose name does not start with the host triplet. If you think this
5821 configuration is useful to you, please write to autoconf@gnu.org." >&5
5822 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5823 whose name does not start with the host triplet. If you think this
5824 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5825 ac_tool_warned=yes ;;
5832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5833 See \`config.log' for more details." >&5
5834 echo "$as_me: error: no acceptable C compiler found in \$PATH
5835 See \`config.log' for more details." >&2;}
5836 { (exit 1); exit 1; }; }
5838 # Provide some information about the compiler.
5839 echo "$as_me:$LINENO: checking for C compiler version" >&5
5840 ac_compiler=`set X $ac_compile; echo $2`
5841 { (ac_try="$ac_compiler --version >&5"
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compiler --version >&5") 2>&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }
5851 { (ac_try="$ac_compiler -v >&5"
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_compiler -v >&5") 2>&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }
5861 { (ac_try="$ac_compiler -V >&5"
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compiler -V >&5") 2>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }
5872 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5873 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5874 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5895 rm -f conftest.$ac_objext
5896 if { (ac_try="$ac_compile"
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_compile") 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5910 { (case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_try") 2>&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest.$ac_objext'
5920 { (case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_try") 2>&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5941 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5942 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5943 GCC=`test $ac_compiler_gnu = yes && echo yes`
5944 ac_test_CFLAGS=${CFLAGS+set}
5945 ac_save_CFLAGS=$CFLAGS
5946 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5947 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5948 if test "${ac_cv_prog_cc_g+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 ac_save_c_werror_flag=$ac_c_werror_flag
5952 ac_c_werror_flag=yes
5955 cat >conftest.$ac_ext <<_ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5979 grep -v '^ *+' conftest.er1 >conftest.err
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985 { (case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_try") 2>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6010 cat >conftest.$ac_ext <<_ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6025 rm -f conftest.$ac_objext
6026 if { (ac_try="$ac_compile"
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032 (eval "$ac_compile") 2>conftest.er1
6034 grep -v '^ *+' conftest.er1 >conftest.err
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6040 { (case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_try") 2>&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; } &&
6049 { ac_try='test -s conftest.$ac_objext'
6050 { (case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_try") 2>&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; }; then
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6064 ac_c_werror_flag=$ac_save_c_werror_flag
6066 cat >conftest.$ac_ext <<_ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6081 rm -f conftest.$ac_objext
6082 if { (ac_try="$ac_compile"
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6090 grep -v '^ *+' conftest.er1 >conftest.err
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6096 { (case "(($ac_try" in
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_try") 2>&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; } &&
6105 { ac_try='test -s conftest.$ac_objext'
6106 { (case "(($ac_try" in
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_try") 2>&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; }; then
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 ac_c_werror_flag=$ac_save_c_werror_flag
6132 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6133 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6134 if test "$ac_test_CFLAGS" = set; then
6135 CFLAGS=$ac_save_CFLAGS
6136 elif test $ac_cv_prog_cc_g = yes; then
6137 if test "$GCC" = yes; then
6143 if test "$GCC" = yes; then
6149 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6150 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6151 if test "${ac_cv_prog_cc_c89+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 ac_cv_prog_cc_c89=no
6156 cat >conftest.$ac_ext <<_ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6164 #include <sys/types.h>
6165 #include <sys/stat.h>
6166 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6167 struct buf { int x; };
6168 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6169 static char *e (p, i)
6175 static char *f (char * (*g) (char **, int), char **p, ...)
6180 s = g (p, va_arg (v,int));
6185 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6186 function prototypes and stuff, but not '\xHH' hex character constants.
6187 These don't provoke an error unfortunately, instead are silently treated
6188 as 'x'. The following induces an error, until -std is added to get
6189 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6190 array size at least. It's necessary to write '\x00'==0 to get something
6191 that's true only with -std. */
6192 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6194 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6195 inside strings and character constants. */
6197 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6199 int test (int i, double x);
6200 struct s1 {int (*f) (int a);};
6201 struct s2 {int (*f) (double a);};
6202 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6208 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6213 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6214 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6216 CC="$ac_save_CC $ac_arg"
6217 rm -f conftest.$ac_objext
6218 if { (ac_try="$ac_compile"
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_compile") 2>conftest.er1
6226 grep -v '^ *+' conftest.er1 >conftest.err
6228 cat conftest.err >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } &&
6231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6232 { (case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_try") 2>&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; } &&
6241 { ac_try='test -s conftest.$ac_objext'
6242 { (case "(($ac_try" in
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_try") 2>&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_prog_cc_c89=$ac_arg
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6259 rm -f core conftest.err conftest.$ac_objext
6260 test "x$ac_cv_prog_cc_c89" != "xno" && break
6262 rm -f conftest.$ac_ext
6267 case "x$ac_cv_prog_cc_c89" in
6269 { echo "$as_me:$LINENO: result: none needed" >&5
6270 echo "${ECHO_T}none needed" >&6; } ;;
6272 { echo "$as_me:$LINENO: result: unsupported" >&5
6273 echo "${ECHO_T}unsupported" >&6; } ;;
6275 CC="$CC $ac_cv_prog_cc_c89"
6276 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6277 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6282 ac_cpp='$CPP $CPPFLAGS'
6283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6288 ac_cpp='$CXXCPP $CPPFLAGS'
6289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6292 if test -z "$CXX"; then
6293 if test -n "$CCC"; then
6296 if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303 if test "${ac_cv_prog_CXX+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 if test -n "$CXX"; then
6307 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 if test -n "$CXX"; then
6328 { echo "$as_me:$LINENO: result: $CXX" >&5
6329 echo "${ECHO_T}$CXX" >&6; }
6331 { echo "$as_me:$LINENO: result: no" >&5
6332 echo "${ECHO_T}no" >&6; }
6336 test -n "$CXX" && break
6339 if test -z "$CXX"; then
6343 # Extract the first word of "$ac_prog", so it can be a program name with args.
6344 set dummy $ac_prog; ac_word=$2
6345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6347 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 if test -n "$ac_ct_CXX"; then
6351 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6360 ac_cv_prog_ac_ct_CXX="$ac_prog"
6361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6371 if test -n "$ac_ct_CXX"; then
6372 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6373 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6375 { echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6; }
6380 test -n "$ac_ct_CXX" && break
6383 if test "x$ac_ct_CXX" = x; then
6386 case $cross_compiling:$ac_tool_warned in
6388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6389 whose name does not start with the host triplet. If you think this
6390 configuration is useful to you, please write to autoconf@gnu.org." >&5
6391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6392 whose name does not start with the host triplet. If you think this
6393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6394 ac_tool_warned=yes ;;
6402 # Provide some information about the compiler.
6403 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6404 ac_compiler=`set X $ac_compile; echo $2`
6405 { (ac_try="$ac_compiler --version >&5"
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_compiler --version >&5") 2>&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }
6415 { (ac_try="$ac_compiler -v >&5"
6417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6418 *) ac_try_echo=$ac_try;;
6420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6421 (eval "$ac_compiler -v >&5") 2>&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }
6425 { (ac_try="$ac_compiler -V >&5"
6427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428 *) ac_try_echo=$ac_try;;
6430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6431 (eval "$ac_compiler -V >&5") 2>&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }
6436 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6437 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6438 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 cat >conftest.$ac_ext <<_ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6459 rm -f conftest.$ac_objext
6460 if { (ac_try="$ac_compile"
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_compile") 2>conftest.er1
6468 grep -v '^ *+' conftest.er1 >conftest.err
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6474 { (case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_try") 2>&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; } &&
6483 { ac_try='test -s conftest.$ac_objext'
6484 { (case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_try") 2>&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; }; then
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6505 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6506 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6507 GXX=`test $ac_compiler_gnu = yes && echo yes`
6508 ac_test_CXXFLAGS=${CXXFLAGS+set}
6509 ac_save_CXXFLAGS=$CXXFLAGS
6510 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6511 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6512 if test "${ac_cv_prog_cxx_g+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6516 ac_cxx_werror_flag=yes
6519 cat >conftest.$ac_ext <<_ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6534 rm -f conftest.$ac_objext
6535 if { (ac_try="$ac_compile"
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_compile") 2>conftest.er1
6543 grep -v '^ *+' conftest.er1 >conftest.err
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
6548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6549 { (case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_try") 2>&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_try") 2>&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6568 ac_cv_prog_cxx_g=yes
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6574 cat >conftest.$ac_ext <<_ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6589 rm -f conftest.$ac_objext
6590 if { (ac_try="$ac_compile"
6592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596 (eval "$ac_compile") 2>conftest.er1
6598 grep -v '^ *+' conftest.er1 >conftest.err
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6604 { (case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 (eval "$ac_try") 2>&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; } &&
6613 { ac_try='test -s conftest.$ac_objext'
6614 { (case "(($ac_try" in
6615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619 (eval "$ac_try") 2>&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6628 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6630 cat >conftest.$ac_ext <<_ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6645 rm -f conftest.$ac_objext
6646 if { (ac_try="$ac_compile"
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652 (eval "$ac_compile") 2>conftest.er1
6654 grep -v '^ *+' conftest.er1 >conftest.err
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6660 { (case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_try") 2>&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; } &&
6669 { ac_try='test -s conftest.$ac_objext'
6670 { (case "(($ac_try" in
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675 (eval "$ac_try") 2>&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 ac_cv_prog_cxx_g=yes
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6696 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6697 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6698 if test "$ac_test_CXXFLAGS" = set; then
6699 CXXFLAGS=$ac_save_CXXFLAGS
6700 elif test $ac_cv_prog_cxx_g = yes; then
6701 if test "$GXX" = yes; then
6707 if test "$GXX" = yes; then
6714 ac_cpp='$CPP $CPPFLAGS'
6715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6720 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6721 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6722 if test "${lt_cv_path_NM+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 if test -n "$NM"; then
6726 # Let the user override the test.
6729 lt_nm_to_check="${ac_tool_prefix}nm"
6730 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6731 lt_nm_to_check="$lt_nm_to_check nm"
6733 for lt_tmp_nm in $lt_nm_to_check; do
6734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6735 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6737 test -z "$ac_dir" && ac_dir=.
6738 tmp_nm="$ac_dir/$lt_tmp_nm"
6739 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6740 # Check to see if the nm accepts a BSD-compat flag.
6741 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6742 # nm: unknown option "B" ignored
6743 # Tru64's nm complains that /dev/null is an invalid object file
6744 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6745 */dev/null* | *'Invalid file or object type'*)
6746 lt_cv_path_NM="$tmp_nm -B"
6750 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6752 lt_cv_path_NM="$tmp_nm -p"
6756 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6757 continue # so that we can try to find one that supports BSD flags
6766 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6769 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6770 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6775 { echo "$as_me:$LINENO: checking for GNU make" >&5
6776 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6777 if test "${llvm_cv_gnu_make_command+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 llvm_cv_gnu_make_command=''
6781 for a in "$MAKE" make gmake gnumake ; do
6782 if test -z "$a" ; then continue ; fi ;
6783 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6785 llvm_cv_gnu_make_command=$a ;
6790 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6791 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6792 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6796 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6797 echo "${ECHO_T}\"Not found\"" >&6; };
6801 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6802 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6804 if test "$LN_S" = "ln -s"; then
6805 { echo "$as_me:$LINENO: result: yes" >&5
6806 echo "${ECHO_T}yes" >&6; }
6808 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6809 echo "${ECHO_T}no, using $LN_S" >&6; }
6812 # Extract the first word of "cmp", so it can be a program name with args.
6813 set dummy cmp; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_CMP+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6844 if test -n "$CMP"; then
6845 { echo "$as_me:$LINENO: result: $CMP" >&5
6846 echo "${ECHO_T}$CMP" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6853 # Extract the first word of "cp", so it can be a program name with args.
6854 set dummy cp; ac_word=$2
6855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857 if test "${ac_cv_path_CP+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6885 if test -n "$CP"; then
6886 { echo "$as_me:$LINENO: result: $CP" >&5
6887 echo "${ECHO_T}$CP" >&6; }
6889 { echo "$as_me:$LINENO: result: no" >&5
6890 echo "${ECHO_T}no" >&6; }
6894 # Extract the first word of "date", so it can be a program name with args.
6895 set dummy date; ac_word=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_path_DATE+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6925 DATE=$ac_cv_path_DATE
6926 if test -n "$DATE"; then
6927 { echo "$as_me:$LINENO: result: $DATE" >&5
6928 echo "${ECHO_T}$DATE" >&6; }
6930 { echo "$as_me:$LINENO: result: no" >&5
6931 echo "${ECHO_T}no" >&6; }
6935 # Extract the first word of "find", so it can be a program name with args.
6936 set dummy find; ac_word=$2
6937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939 if test "${ac_cv_path_FIND+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6966 FIND=$ac_cv_path_FIND
6967 if test -n "$FIND"; then
6968 { echo "$as_me:$LINENO: result: $FIND" >&5
6969 echo "${ECHO_T}$FIND" >&6; }
6971 { echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6; }
6976 # Extract the first word of "grep", so it can be a program name with args.
6977 set dummy grep; ac_word=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_GREP+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7007 GREP=$ac_cv_path_GREP
7008 if test -n "$GREP"; then
7009 { echo "$as_me:$LINENO: result: $GREP" >&5
7010 echo "${ECHO_T}$GREP" >&6; }
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7017 # Extract the first word of "mkdir", so it can be a program name with args.
7018 set dummy mkdir; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_MKDIR+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7048 MKDIR=$ac_cv_path_MKDIR
7049 if test -n "$MKDIR"; then
7050 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7051 echo "${ECHO_T}$MKDIR" >&6; }
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7058 # Extract the first word of "mv", so it can be a program name with args.
7059 set dummy mv; ac_word=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_path_MV+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7090 if test -n "$MV"; then
7091 { echo "$as_me:$LINENO: result: $MV" >&5
7092 echo "${ECHO_T}$MV" >&6; }
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7099 if test -n "$ac_tool_prefix"; then
7100 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7101 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104 if test "${ac_cv_prog_RANLIB+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 if test -n "$RANLIB"; then
7108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7117 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 RANLIB=$ac_cv_prog_RANLIB
7128 if test -n "$RANLIB"; then
7129 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7130 echo "${ECHO_T}$RANLIB" >&6; }
7132 { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7138 if test -z "$ac_cv_prog_RANLIB"; then
7139 ac_ct_RANLIB=$RANLIB
7140 # Extract the first word of "ranlib", so it can be a program name with args.
7141 set dummy ranlib; ac_word=$2
7142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 if test -n "$ac_ct_RANLIB"; then
7148 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_prog_ac_ct_RANLIB="ranlib"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7168 if test -n "$ac_ct_RANLIB"; then
7169 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7170 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7172 { echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6; }
7176 if test "x$ac_ct_RANLIB" = x; then
7179 case $cross_compiling:$ac_tool_warned in
7181 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7182 whose name does not start with the host triplet. If you think this
7183 configuration is useful to you, please write to autoconf@gnu.org." >&5
7184 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7185 whose name does not start with the host triplet. If you think this
7186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7187 ac_tool_warned=yes ;;
7189 RANLIB=$ac_ct_RANLIB
7192 RANLIB="$ac_cv_prog_RANLIB"
7195 if test -n "$ac_tool_prefix"; then
7196 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7197 set dummy ${ac_tool_prefix}ar; ac_word=$2
7198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7200 if test "${ac_cv_prog_AR+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 if test -n "$AR"; then
7204 ac_cv_prog_AR="$AR" # Let the user override the test.
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7213 ac_cv_prog_AR="${ac_tool_prefix}ar"
7214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 if test -n "$AR"; then
7225 { echo "$as_me:$LINENO: result: $AR" >&5
7226 echo "${ECHO_T}$AR" >&6; }
7228 { echo "$as_me:$LINENO: result: no" >&5
7229 echo "${ECHO_T}no" >&6; }
7234 if test -z "$ac_cv_prog_AR"; then
7236 # Extract the first word of "ar", so it can be a program name with args.
7237 set dummy ar; ac_word=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 if test -n "$ac_ct_AR"; then
7244 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7253 ac_cv_prog_ac_ct_AR="ar"
7254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7264 if test -n "$ac_ct_AR"; then
7265 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7266 echo "${ECHO_T}$ac_ct_AR" >&6; }
7268 { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7272 if test "x$ac_ct_AR" = x; then
7275 case $cross_compiling:$ac_tool_warned in
7277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7278 whose name does not start with the host triplet. If you think this
7279 configuration is useful to you, please write to autoconf@gnu.org." >&5
7280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7281 whose name does not start with the host triplet. If you think this
7282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7283 ac_tool_warned=yes ;;
7291 # Extract the first word of "rm", so it can be a program name with args.
7292 set dummy rm; ac_word=$2
7293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295 if test "${ac_cv_path_RM+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7323 if test -n "$RM"; then
7324 { echo "$as_me:$LINENO: result: $RM" >&5
7325 echo "${ECHO_T}$RM" >&6; }
7327 { echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6; }
7332 # Extract the first word of "sed", so it can be a program name with args.
7333 set dummy sed; ac_word=$2
7334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336 if test "${ac_cv_path_SED+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7364 if test -n "$SED"; then
7365 { echo "$as_me:$LINENO: result: $SED" >&5
7366 echo "${ECHO_T}$SED" >&6; }
7368 { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7373 # Extract the first word of "tar", so it can be a program name with args.
7374 set dummy tar; ac_word=$2
7375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7377 if test "${ac_cv_path_TAR+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7392 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7405 if test -n "$TAR"; then
7406 { echo "$as_me:$LINENO: result: $TAR" >&5
7407 echo "${ECHO_T}$TAR" >&6; }
7409 { echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6; }
7414 # Extract the first word of "pwd", so it can be a program name with args.
7415 set dummy pwd; ac_word=$2
7416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7418 if test "${ac_cv_path_BINPWD+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7433 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7445 BINPWD=$ac_cv_path_BINPWD
7446 if test -n "$BINPWD"; then
7447 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7448 echo "${ECHO_T}$BINPWD" >&6; }
7450 { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7456 # Extract the first word of "Graphviz", so it can be a program name with args.
7457 set dummy Graphviz; ac_word=$2
7458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7460 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7475 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7487 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7488 if test -n "$GRAPHVIZ"; then
7489 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7490 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7492 { echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6; }
7497 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7499 cat >>confdefs.h <<\_ACEOF
7500 #define HAVE_GRAPHVIZ 1
7503 if test "$llvm_cv_os_type" = "MingW" ; then
7504 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7507 cat >>confdefs.h <<_ACEOF
7508 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7512 # Extract the first word of "dot", so it can be a program name with args.
7513 set dummy dot; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_path_DOT+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7544 if test -n "$DOT"; then
7545 { echo "$as_me:$LINENO: result: $DOT" >&5
7546 echo "${ECHO_T}$DOT" >&6; }
7548 { echo "$as_me:$LINENO: result: no" >&5
7549 echo "${ECHO_T}no" >&6; }
7553 if test "$DOT" != "echo dot" ; then
7555 cat >>confdefs.h <<\_ACEOF
7559 if test "$llvm_cv_os_type" = "MingW" ; then
7560 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7563 cat >>confdefs.h <<_ACEOF
7564 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7568 # Extract the first word of "fdp", so it can be a program name with args.
7569 set dummy fdp; ac_word=$2
7570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572 if test "${ac_cv_path_FDP+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7587 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7600 if test -n "$FDP"; then
7601 { echo "$as_me:$LINENO: result: $FDP" >&5
7602 echo "${ECHO_T}$FDP" >&6; }
7604 { echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6; }
7609 if test "$FDP" != "echo fdp" ; then
7611 cat >>confdefs.h <<\_ACEOF
7615 if test "$llvm_cv_os_type" = "MingW" ; then
7616 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7619 cat >>confdefs.h <<_ACEOF
7620 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7624 # Extract the first word of "neato", so it can be a program name with args.
7625 set dummy neato; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_path_NEATO+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7655 NEATO=$ac_cv_path_NEATO
7656 if test -n "$NEATO"; then
7657 { echo "$as_me:$LINENO: result: $NEATO" >&5
7658 echo "${ECHO_T}$NEATO" >&6; }
7660 { echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6; }
7665 if test "$NEATO" != "echo neato" ; then
7667 cat >>confdefs.h <<\_ACEOF
7668 #define HAVE_NEATO 1
7671 if test "$llvm_cv_os_type" = "MingW" ; then
7672 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7675 cat >>confdefs.h <<_ACEOF
7676 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7680 # Extract the first word of "twopi", so it can be a program name with args.
7681 set dummy twopi; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_path_TWOPI+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 test -z "$as_dir" && as_dir=.
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7699 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7711 TWOPI=$ac_cv_path_TWOPI
7712 if test -n "$TWOPI"; then
7713 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7714 echo "${ECHO_T}$TWOPI" >&6; }
7716 { echo "$as_me:$LINENO: result: no" >&5
7717 echo "${ECHO_T}no" >&6; }
7721 if test "$TWOPI" != "echo twopi" ; then
7723 cat >>confdefs.h <<\_ACEOF
7724 #define HAVE_TWOPI 1
7727 if test "$llvm_cv_os_type" = "MingW" ; then
7728 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7731 cat >>confdefs.h <<_ACEOF
7732 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7736 # Extract the first word of "circo", so it can be a program name with args.
7737 set dummy circo; ac_word=$2
7738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740 if test "${ac_cv_path_CIRCO+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7755 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7767 CIRCO=$ac_cv_path_CIRCO
7768 if test -n "$CIRCO"; then
7769 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7770 echo "${ECHO_T}$CIRCO" >&6; }
7772 { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7777 if test "$CIRCO" != "echo circo" ; then
7779 cat >>confdefs.h <<\_ACEOF
7780 #define HAVE_CIRCO 1
7783 if test "$llvm_cv_os_type" = "MingW" ; then
7784 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7787 cat >>confdefs.h <<_ACEOF
7788 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7792 for ac_prog in gv gsview32
7794 # Extract the first word of "$ac_prog", so it can be a program name with args.
7795 set dummy $ac_prog; ac_word=$2
7796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798 if test "${ac_cv_path_GV+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 if test -n "$GV"; then
7826 { echo "$as_me:$LINENO: result: $GV" >&5
7827 echo "${ECHO_T}$GV" >&6; }
7829 { echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6; }
7834 test -n "$GV" && break
7836 test -n "$GV" || GV="echo gv"
7838 if test "$GV" != "echo gv" ; then
7840 cat >>confdefs.h <<\_ACEOF
7844 if test "$llvm_cv_os_type" = "MingW" ; then
7845 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7848 cat >>confdefs.h <<_ACEOF
7849 #define LLVM_PATH_GV "$GV${EXEEXT}"
7853 # Extract the first word of "dotty", so it can be a program name with args.
7854 set dummy dotty; ac_word=$2
7855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7857 if test "${ac_cv_path_DOTTY+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 test -z "$as_dir" && as_dir=.
7870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7872 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7884 DOTTY=$ac_cv_path_DOTTY
7885 if test -n "$DOTTY"; then
7886 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7887 echo "${ECHO_T}$DOTTY" >&6; }
7889 { echo "$as_me:$LINENO: result: no" >&5
7890 echo "${ECHO_T}no" >&6; }
7894 if test "$DOTTY" != "echo dotty" ; then
7896 cat >>confdefs.h <<\_ACEOF
7897 #define HAVE_DOTTY 1
7900 if test "$llvm_cv_os_type" = "MingW" ; then
7901 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7904 cat >>confdefs.h <<_ACEOF
7905 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7909 # Extract the first word of "xdot.py", so it can be a program name with args.
7910 set dummy xdot.py; ac_word=$2
7911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7913 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7928 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7940 XDOT_PY=$ac_cv_path_XDOT_PY
7941 if test -n "$XDOT_PY"; then
7942 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7943 echo "${ECHO_T}$XDOT_PY" >&6; }
7945 { echo "$as_me:$LINENO: result: no" >&5
7946 echo "${ECHO_T}no" >&6; }
7950 if test "$XDOT_PY" != "echo xdot.py" ; then
7952 cat >>confdefs.h <<\_ACEOF
7953 #define HAVE_XDOT_PY 1
7956 if test "$llvm_cv_os_type" = "MingW" ; then
7957 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7960 cat >>confdefs.h <<_ACEOF
7961 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7967 # Extract the first word of "perl", so it can be a program name with args.
7968 set dummy perl; ac_word=$2
7969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7971 if test "${ac_cv_path_PERL+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7986 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7998 PERL=$ac_cv_path_PERL
7999 if test -n "$PERL"; then
8000 { echo "$as_me:$LINENO: result: $PERL" >&5
8001 echo "${ECHO_T}$PERL" >&6; }
8003 { echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6; }
8008 if test "$PERL" != "none"; then
8009 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8010 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8011 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8012 { echo "$as_me:$LINENO: result: yes" >&5
8013 echo "${ECHO_T}yes" >&6; }
8016 { echo "$as_me:$LINENO: result: not found" >&5
8017 echo "${ECHO_T}not found" >&6; }
8022 if test x"$PERL" = xnone; then
8025 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8026 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8027 { (exit 1); exit 1; }; }
8033 # Find a good install program. We prefer a C program (faster),
8034 # so one script is as good as another. But avoid the broken or
8035 # incompatible versions:
8036 # SysV /etc/install, /usr/sbin/install
8037 # SunOS /usr/etc/install
8038 # IRIX /sbin/install
8040 # AmigaOS /C/install, which installs bootblocks on floppy discs
8041 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8044 # OS/2's system install, which has a completely different semantic
8045 # ./install, which can be erroneously created by make from ./install.sh.
8046 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8047 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8048 if test -z "$INSTALL"; then
8049 if test "${ac_cv_path_install+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056 test -z "$as_dir" && as_dir=.
8057 # Account for people who put trailing slashes in PATH elements.
8059 ./ | .// | /cC/* | \
8060 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8061 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8064 # OSF1 and SCO ODT 3.0 have their own names for install.
8065 # Don't use installbsd from OSF since it installs stuff as root
8067 for ac_prog in ginstall scoinst install; do
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8070 if test $ac_prog = install &&
8071 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8072 # AIX install. It has an incompatible calling convention.
8074 elif test $ac_prog = install &&
8075 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8076 # program-specific install script used by HP pwplus--don't use.
8079 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8092 if test "${ac_cv_path_install+set}" = set; then
8093 INSTALL=$ac_cv_path_install
8095 # As a last resort, use the slow shell script. Don't cache a
8096 # value for INSTALL within a source directory, because that will
8097 # break other packages using the cache if that directory is
8098 # removed, or if the value is a relative name.
8099 INSTALL=$ac_install_sh
8102 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8103 echo "${ECHO_T}$INSTALL" >&6; }
8105 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8106 # It thinks the first close brace ends the variable substitution.
8107 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8109 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8111 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8114 [\\/$]* | ?:[\\/]* ) ;;
8115 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8118 # Extract the first word of "bzip2", so it can be a program name with args.
8119 set dummy bzip2; ac_word=$2
8120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8122 if test "${ac_cv_path_BZIP2+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 test -z "$as_dir" && as_dir=.
8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8137 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 BZIP2=$ac_cv_path_BZIP2
8149 if test -n "$BZIP2"; then
8150 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8151 echo "${ECHO_T}$BZIP2" >&6; }
8153 { echo "$as_me:$LINENO: result: no" >&5
8154 echo "${ECHO_T}no" >&6; }
8158 # Extract the first word of "cat", so it can be a program name with args.
8159 set dummy cat; ac_word=$2
8160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8162 if test "${ac_cv_path_CAT+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 test -z "$as_dir" && as_dir=.
8175 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8177 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 if test -n "$CAT"; then
8190 { echo "$as_me:$LINENO: result: $CAT" >&5
8191 echo "${ECHO_T}$CAT" >&6; }
8193 { echo "$as_me:$LINENO: result: no" >&5
8194 echo "${ECHO_T}no" >&6; }
8198 # Extract the first word of "doxygen", so it can be a program name with args.
8199 set dummy doxygen; ac_word=$2
8200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8202 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8217 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 DOXYGEN=$ac_cv_path_DOXYGEN
8229 if test -n "$DOXYGEN"; then
8230 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8231 echo "${ECHO_T}$DOXYGEN" >&6; }
8233 { echo "$as_me:$LINENO: result: no" >&5
8234 echo "${ECHO_T}no" >&6; }
8238 # Extract the first word of "groff", so it can be a program name with args.
8239 set dummy groff; ac_word=$2
8240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8242 if test "${ac_cv_path_GROFF+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8257 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 GROFF=$ac_cv_path_GROFF
8269 if test -n "$GROFF"; then
8270 { echo "$as_me:$LINENO: result: $GROFF" >&5
8271 echo "${ECHO_T}$GROFF" >&6; }
8273 { echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6; }
8278 # Extract the first word of "gzip", so it can be a program name with args.
8279 set dummy gzip; ac_word=$2
8280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8282 if test "${ac_cv_path_GZIP+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8297 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 GZIP=$ac_cv_path_GZIP
8309 if test -n "$GZIP"; then
8310 { echo "$as_me:$LINENO: result: $GZIP" >&5
8311 echo "${ECHO_T}$GZIP" >&6; }
8313 { echo "$as_me:$LINENO: result: no" >&5
8314 echo "${ECHO_T}no" >&6; }
8318 # Extract the first word of "pod2html", so it can be a program name with args.
8319 set dummy pod2html; ac_word=$2
8320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8322 if test "${ac_cv_path_POD2HTML+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8337 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 POD2HTML=$ac_cv_path_POD2HTML
8349 if test -n "$POD2HTML"; then
8350 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8351 echo "${ECHO_T}$POD2HTML" >&6; }
8353 { echo "$as_me:$LINENO: result: no" >&5
8354 echo "${ECHO_T}no" >&6; }
8358 # Extract the first word of "pod2man", so it can be a program name with args.
8359 set dummy pod2man; ac_word=$2
8360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8362 if test "${ac_cv_path_POD2MAN+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8377 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 POD2MAN=$ac_cv_path_POD2MAN
8389 if test -n "$POD2MAN"; then
8390 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8391 echo "${ECHO_T}$POD2MAN" >&6; }
8393 { echo "$as_me:$LINENO: result: no" >&5
8394 echo "${ECHO_T}no" >&6; }
8398 # Extract the first word of "pdfroff", so it can be a program name with args.
8399 set dummy pdfroff; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_path_PDFROFF+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 PDFROFF=$ac_cv_path_PDFROFF
8429 if test -n "$PDFROFF"; then
8430 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8431 echo "${ECHO_T}$PDFROFF" >&6; }
8433 { echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6; }
8438 # Extract the first word of "runtest", so it can be a program name with args.
8439 set dummy runtest; ac_word=$2
8440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8442 if test "${ac_cv_path_RUNTEST+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 test -z "$as_dir" && as_dir=.
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8457 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 RUNTEST=$ac_cv_path_RUNTEST
8469 if test -n "$RUNTEST"; then
8470 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8471 echo "${ECHO_T}$RUNTEST" >&6; }
8473 { echo "$as_me:$LINENO: result: no" >&5
8474 echo "${ECHO_T}no" >&6; }
8480 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8481 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8483 # Check whether --with-tclinclude was given.
8484 if test "${with_tclinclude+set}" = set; then
8485 withval=$with_tclinclude; with_tclinclude=${withval}
8490 if test "${ac_cv_path_tclsh+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 if test x"${with_tclinclude}" != x ; then
8495 if test -f ${with_tclinclude}/tclsh ; then
8496 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8497 elif test -f ${with_tclinclude}/src/tclsh ; then
8498 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8500 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8501 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8502 { (exit 1); exit 1; }; }
8508 if test x"${ac_cv_path_tclsh}" = x ; then
8509 { echo "$as_me:$LINENO: result: none" >&5
8510 echo "${ECHO_T}none" >&6; }
8511 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
8513 # Extract the first word of "$ac_prog", so it can be a program name with args.
8514 set dummy $ac_prog; ac_word=$2
8515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8517 if test "${ac_cv_path_TCLSH+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8532 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8543 TCLSH=$ac_cv_path_TCLSH
8544 if test -n "$TCLSH"; then
8545 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8546 echo "${ECHO_T}$TCLSH" >&6; }
8548 { echo "$as_me:$LINENO: result: no" >&5
8549 echo "${ECHO_T}no" >&6; }
8553 test -n "$TCLSH" && break
8556 if test x"${TCLSH}" = x ; then
8557 ac_cv_path_tclsh='';
8559 ac_cv_path_tclsh="${TCLSH}";
8562 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8563 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8564 TCLSH="${ac_cv_path_tclsh}"
8568 # Extract the first word of "zip", so it can be a program name with args.
8569 set dummy zip; ac_word=$2
8570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8572 if test "${ac_cv_path_ZIP+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8587 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 if test -n "$ZIP"; then
8600 { echo "$as_me:$LINENO: result: $ZIP" >&5
8601 echo "${ECHO_T}$ZIP" >&6; }
8603 { echo "$as_me:$LINENO: result: no" >&5
8604 echo "${ECHO_T}no" >&6; }
8608 for ac_prog in ocamlc
8610 # Extract the first word of "$ac_prog", so it can be a program name with args.
8611 set dummy $ac_prog; ac_word=$2
8612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8614 if test "${ac_cv_path_OCAMLC+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 test -z "$as_dir" && as_dir=.
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8629 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8640 OCAMLC=$ac_cv_path_OCAMLC
8641 if test -n "$OCAMLC"; then
8642 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8643 echo "${ECHO_T}$OCAMLC" >&6; }
8645 { echo "$as_me:$LINENO: result: no" >&5
8646 echo "${ECHO_T}no" >&6; }
8650 test -n "$OCAMLC" && break
8653 for ac_prog in ocamlopt
8655 # Extract the first word of "$ac_prog", so it can be a program name with args.
8656 set dummy $ac_prog; ac_word=$2
8657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8659 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8674 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8685 OCAMLOPT=$ac_cv_path_OCAMLOPT
8686 if test -n "$OCAMLOPT"; then
8687 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8688 echo "${ECHO_T}$OCAMLOPT" >&6; }
8690 { echo "$as_me:$LINENO: result: no" >&5
8691 echo "${ECHO_T}no" >&6; }
8695 test -n "$OCAMLOPT" && break
8698 for ac_prog in ocamldep
8700 # Extract the first word of "$ac_prog", so it can be a program name with args.
8701 set dummy $ac_prog; ac_word=$2
8702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8704 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716 test -z "$as_dir" && as_dir=.
8717 for ac_exec_ext in '' $ac_executable_extensions; do
8718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8719 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8730 OCAMLDEP=$ac_cv_path_OCAMLDEP
8731 if test -n "$OCAMLDEP"; then
8732 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8733 echo "${ECHO_T}$OCAMLDEP" >&6; }
8735 { echo "$as_me:$LINENO: result: no" >&5
8736 echo "${ECHO_T}no" >&6; }
8740 test -n "$OCAMLDEP" && break
8743 for ac_prog in ocamldoc
8745 # Extract the first word of "$ac_prog", so it can be a program name with args.
8746 set dummy $ac_prog; ac_word=$2
8747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8749 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8764 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8775 OCAMLDOC=$ac_cv_path_OCAMLDOC
8776 if test -n "$OCAMLDOC"; then
8777 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8778 echo "${ECHO_T}$OCAMLDOC" >&6; }
8780 { echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6; }
8785 test -n "$OCAMLDOC" && break
8788 for ac_prog in gas as
8790 # Extract the first word of "$ac_prog", so it can be a program name with args.
8791 set dummy $ac_prog; ac_word=$2
8792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8794 if test "${ac_cv_path_GAS+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8809 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 if test -n "$GAS"; then
8822 { echo "$as_me:$LINENO: result: $GAS" >&5
8823 echo "${ECHO_T}$GAS" >&6; }
8825 { echo "$as_me:$LINENO: result: no" >&5
8826 echo "${ECHO_T}no" >&6; }
8830 test -n "$GAS" && break
8834 { echo "$as_me:$LINENO: checking for linker version" >&5
8835 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8836 if test "${llvm_cv_link_version+set}" = set; then
8837 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 version_string="$(ld -v 2>&1 | head -1)"
8843 if (echo "$version_string" | grep -q "ld64"); then
8844 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8846 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8850 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8851 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8853 cat >>confdefs.h <<_ACEOF
8854 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8859 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8860 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8861 if test "${llvm_cv_link_use_r+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8871 CFLAGS="$CFLAGS -Wl,-R."
8872 cat >conftest.$ac_ext <<_ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8887 rm -f conftest.$ac_objext conftest$ac_exeext
8888 if { (ac_try="$ac_link"
8890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8891 *) ac_try_echo=$ac_try;;
8893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8894 (eval "$ac_link") 2>conftest.er1
8896 grep -v '^ *+' conftest.er1 >conftest.err
8898 cat conftest.err >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } &&
8901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8902 { (case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_try") 2>&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; } &&
8911 { ac_try='test -s conftest$ac_exeext'
8912 { (case "(($ac_try" in
8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914 *) ac_try_echo=$ac_try;;
8916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917 (eval "$ac_try") 2>&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 llvm_cv_link_use_r=yes
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8926 llvm_cv_link_use_r=no
8929 rm -f core conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
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
8940 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8941 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8942 if test "$llvm_cv_link_use_r" = yes ; then
8944 cat >>confdefs.h <<\_ACEOF
8945 #define HAVE_LINK_R 1
8951 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8952 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8953 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 ac_cpp='$CPP $CPPFLAGS'
8958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8963 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8964 cat >conftest.$ac_ext <<_ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8979 rm -f conftest.$ac_objext conftest$ac_exeext
8980 if { (ac_try="$ac_link"
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_link") 2>conftest.er1
8988 grep -v '^ *+' conftest.er1 >conftest.err
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8994 { (case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_try") 2>&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest$ac_exeext'
9004 { (case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009 (eval "$ac_try") 2>&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 llvm_cv_link_use_export_dynamic=yes
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9018 llvm_cv_link_use_export_dynamic=no
9021 rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
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 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9033 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9034 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9036 cat >>confdefs.h <<\_ACEOF
9037 #define HAVE_LINK_EXPORT_DYNAMIC 1
9043 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9044 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9045 if test "${llvm_cv_link_use_version_script+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 ac_cpp='$CPP $CPPFLAGS'
9050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9056 # The following code is from the autoconf manual,
9057 # "11.13: Limitations of Usual Tools".
9058 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9059 # Use mktemp if possible; otherwise fall back on mkdir,
9060 # with $RANDOM to make collisions less likely.
9064 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9066 test -n "$tmp" && test -d "$tmp"
9068 tmp=$TMPDIR/foo$$-$RANDOM
9069 (umask 077 && mkdir "$tmp")
9072 echo "{" > "$tmp/export.map"
9073 echo " global: main;" >> "$tmp/export.map"
9074 echo " local: *;" >> "$tmp/export.map"
9075 echo "};" >> "$tmp/export.map"
9077 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9078 cat >conftest.$ac_ext <<_ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (ac_try="$ac_link"
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100 (eval "$ac_link") 2>conftest.er1
9102 grep -v '^ *+' conftest.er1 >conftest.err
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9108 { (case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_try") 2>&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; } &&
9117 { ac_try='test -s conftest$ac_exeext'
9118 { (case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_try") 2>&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 llvm_cv_link_use_version_script=yes
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 llvm_cv_link_use_version_script=no
9135 rm -f core conftest.err conftest.$ac_objext \
9136 conftest$ac_exeext conftest.$ac_ext
9137 rm "$tmp/export.map"
9141 ac_cpp='$CPP $CPPFLAGS'
9142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9148 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9149 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9150 if test "$llvm_cv_link_use_version_script" = yes ; then
9151 HAVE_LINK_VERSION_SCRIPT=1
9158 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9159 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9160 if test "${ac_cv_c_const+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 cat >conftest.$ac_ext <<_ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9173 /* FIXME: Include the comments suggested by Paul. */
9175 /* Ultrix mips cc rejects this. */
9176 typedef int charset[2];
9178 /* SunOS 4.1.1 cc rejects this. */
9179 char const *const *ccp;
9181 /* NEC SVR4.0.2 mips cc rejects this. */
9182 struct point {int x, y;};
9183 static struct point const zero = {0,0};
9184 /* AIX XL C 1.02.0.0 rejects this.
9185 It does not let you subtract one const X* pointer from another in
9186 an arm of an if-expression whose if-part is not a constant
9188 const char *g = "string";
9189 ccp = &g + (g ? g-g : 0);
9190 /* HPUX 7.0 cc rejects these. */
9193 ccp = (char const *const *) p;
9194 { /* SCO 3.2v4 cc rejects this. */
9196 char const *s = 0 ? (char *) 0 : (char const *) 0;
9201 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9203 const int *foo = &x[0];
9206 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9207 typedef const int *iptr;
9211 { /* AIX XL C 1.02.0.0 rejects this saying
9212 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9213 struct s { int j; const int *ap[3]; };
9214 struct s *b; b->j = 5;
9216 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9220 return !x[0] && !zero.x;
9227 rm -f conftest.$ac_objext
9228 if { (ac_try="$ac_compile"
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_compile") 2>conftest.er1
9236 grep -v '^ *+' conftest.er1 >conftest.err
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9242 { (case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_try") 2>&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; } &&
9251 { ac_try='test -s conftest.$ac_objext'
9252 { (case "(($ac_try" in
9253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9254 *) ac_try_echo=$ac_try;;
9256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257 (eval "$ac_try") 2>&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9271 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9272 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9273 if test $ac_cv_c_const = no; then
9275 cat >>confdefs.h <<\_ACEOF
9287 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9288 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9289 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9290 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 cat >conftest.$ac_ext <<_ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 #include <sys/types.h>
9312 rm -f conftest.$ac_objext
9313 if { (ac_try="$ac_compile"
9315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316 *) ac_try_echo=$ac_try;;
9318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319 (eval "$ac_compile") 2>conftest.er1
9321 grep -v '^ *+' conftest.er1 >conftest.err
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
9326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9327 { (case "(($ac_try" in
9328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329 *) ac_try_echo=$ac_try;;
9331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9332 (eval "$ac_try") 2>&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; } &&
9336 { ac_try='test -s conftest.$ac_objext'
9337 { (case "(($ac_try" in
9338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_try") 2>&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; }; then
9346 eval "$as_ac_Header=yes"
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9351 eval "$as_ac_Header=no"
9354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356 ac_res=`eval echo '${'$as_ac_Header'}'`
9357 { echo "$as_me:$LINENO: result: $ac_res" >&5
9358 echo "${ECHO_T}$ac_res" >&6; }
9359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9360 cat >>confdefs.h <<_ACEOF
9361 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9364 ac_header_dirent=$ac_hdr; break
9368 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9369 if test $ac_header_dirent = dirent.h; then
9370 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9371 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9372 if test "${ac_cv_search_opendir+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 ac_func_search_save_LIBS=$LIBS
9376 cat >conftest.$ac_ext <<_ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9383 /* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
9398 for ac_lib in '' dir; do
9399 if test -z "$ac_lib"; then
9400 ac_res="none required"
9403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (ac_try="$ac_link"
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_link") 2>conftest.er1
9414 grep -v '^ *+' conftest.er1 >conftest.err
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9420 { (case "(($ac_try" in
9421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422 *) ac_try_echo=$ac_try;;
9424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425 (eval "$ac_try") 2>&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; } &&
9429 { ac_try='test -s conftest$ac_exeext'
9430 { (case "(($ac_try" in
9431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9432 *) ac_try_echo=$ac_try;;
9434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435 (eval "$ac_try") 2>&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; }; then
9439 ac_cv_search_opendir=$ac_res
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9447 rm -f core conftest.err conftest.$ac_objext \
9449 if test "${ac_cv_search_opendir+set}" = set; then
9453 if test "${ac_cv_search_opendir+set}" = set; then
9456 ac_cv_search_opendir=no
9459 LIBS=$ac_func_search_save_LIBS
9461 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9462 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9463 ac_res=$ac_cv_search_opendir
9464 if test "$ac_res" != no; then
9465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9470 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9471 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9472 if test "${ac_cv_search_opendir+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 ac_func_search_save_LIBS=$LIBS
9476 cat >conftest.$ac_ext <<_ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9483 /* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
9498 for ac_lib in '' x; do
9499 if test -z "$ac_lib"; then
9500 ac_res="none required"
9503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9505 rm -f conftest.$ac_objext conftest$ac_exeext
9506 if { (ac_try="$ac_link"
9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512 (eval "$ac_link") 2>conftest.er1
9514 grep -v '^ *+' conftest.er1 >conftest.err
9516 cat conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } &&
9519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9520 { (case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_try") 2>&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; } &&
9529 { ac_try='test -s conftest$ac_exeext'
9530 { (case "(($ac_try" in
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_try") 2>&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_cv_search_opendir=$ac_res
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9547 rm -f core conftest.err conftest.$ac_objext \
9549 if test "${ac_cv_search_opendir+set}" = set; then
9553 if test "${ac_cv_search_opendir+set}" = set; then
9556 ac_cv_search_opendir=no
9559 LIBS=$ac_func_search_save_LIBS
9561 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9562 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9563 ac_res=$ac_cv_search_opendir
9564 if test "$ac_res" != no; then
9565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9572 for ac_header in dlfcn.h
9574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 ac_res=`eval echo '${'$as_ac_Header'}'`
9582 { echo "$as_me:$LINENO: result: $ac_res" >&5
9583 echo "${ECHO_T}$ac_res" >&6; }
9585 # Is the header compilable?
9586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9588 cat >conftest.$ac_ext <<_ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9594 $ac_includes_default
9595 #include <$ac_header>
9597 rm -f conftest.$ac_objext
9598 if { (ac_try="$ac_compile"
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_compile") 2>conftest.er1
9606 grep -v '^ *+' conftest.er1 >conftest.err
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } &&
9611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9612 { (case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_try") 2>&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; } &&
9621 { ac_try='test -s conftest.$ac_objext'
9622 { (case "(($ac_try" in
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_try") 2>&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_header_compiler=yes
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 ac_header_compiler=no
9639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9641 echo "${ECHO_T}$ac_header_compiler" >&6; }
9643 # Is the header present?
9644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9646 cat >conftest.$ac_ext <<_ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 #include <$ac_header>
9654 if { (ac_try="$ac_cpp conftest.$ac_ext"
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9662 grep -v '^ *+' conftest.er1 >conftest.err
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } >/dev/null; then
9667 if test -s conftest.err; then
9668 ac_cpp_err=$ac_c_preproc_warn_flag
9669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9676 if test -z "$ac_cpp_err"; then
9677 ac_header_preproc=yes
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9682 ac_header_preproc=no
9685 rm -f conftest.err conftest.$ac_ext
9686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9687 echo "${ECHO_T}$ac_header_preproc" >&6; }
9689 # So? What about this header?
9690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9696 ac_header_preproc=yes
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9712 ## ----------------------------------- ##
9713 ## Report this to llvmbugs@cs.uiuc.edu ##
9714 ## ----------------------------------- ##
9716 ) | sed "s/^/$as_me: WARNING: /" >&2
9719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 eval "$as_ac_Header=\$ac_header_preproc"
9726 ac_res=`eval echo '${'$as_ac_Header'}'`
9727 { echo "$as_me:$LINENO: result: $ac_res" >&5
9728 echo "${ECHO_T}$ac_res" >&6; }
9731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9732 cat >>confdefs.h <<_ACEOF
9733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9740 # Check whether --enable-ltdl-install was given.
9741 if test "${enable_ltdl_install+set}" = set; then
9742 enableval=$enable_ltdl_install;
9748 if test x"${enable_ltdl_install-no}" != xno; then
9750 INSTALL_LTDL_FALSE='#'
9752 INSTALL_LTDL_TRUE='#'
9758 if test x"${enable_ltdl_convenience-no}" != xno; then
9759 CONVENIENCE_LTDL_TRUE=
9760 CONVENIENCE_LTDL_FALSE='#'
9762 CONVENIENCE_LTDL_TRUE='#'
9763 CONVENIENCE_LTDL_FALSE=
9767 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9768 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9770 libname_spec='lib$name'
9778 shlibpath_overrides_runpath=unknown
9780 dynamic_linker="$host_os ld.so"
9781 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9782 if test "$GCC" = yes; then
9783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9784 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9785 # if the path contains ";" then we assume it to be the separator
9786 # otherwise default to the standard path separator (i.e. ":") - it is
9787 # assumed that no part of a normal pathname contains ";" but that should
9788 # okay in the real world where ";" in dirpaths is itself problematic.
9789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9796 need_lib_prefix=unknown
9797 hardcode_into_libs=no
9799 # when you set need_version to no, make sure it does not cause -set_version
9800 # flags to be left without arguments
9801 need_version=unknown
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9807 shlibpath_var=LIBPATH
9809 # AIX 3 has no versioning support, so we append a major version to the name.
9810 soname_spec='${libname}${release}${shared_ext}$major'
9817 hardcode_into_libs=yes
9818 if test "$host_cpu" = ia64; then
9819 # AIX 5 supports IA64
9820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9821 shlibpath_var=LD_LIBRARY_PATH
9823 # With GCC up to 2.95.x, collect2 would create an import file
9824 # for dependence libraries. The import file would start with
9825 # the line `#! .'. This would cause the generated library to
9826 # depend on `.', always an invalid library. This was fixed in
9827 # development snapshots of GCC prior to 3.0.
9829 aix4 | aix4.[01] | aix4.[01].*)
9830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9832 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9840 # soname into executable. Probably we can add versioning support to
9841 # collect2, so additional links can be useful in future.
9842 if test "$aix_use_runtimelinking" = yes; then
9843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9844 # instead of lib<name>.a to let people know that these are not
9845 # typical AIX shared libraries.
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9848 # We preserve .a as extension for shared libraries through AIX4.2
9849 # and later when we are not doing run time linking.
9850 library_names_spec='${libname}${release}.a $libname.a'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9853 shlibpath_var=LIBPATH
9858 library_names_spec='$libname.ixlibrary $libname.a'
9859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9860 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'
9864 library_names_spec='${libname}${shared_ext}'
9865 dynamic_linker="$host_os ld.so"
9866 shlibpath_var=LIBRARY_PATH
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873 soname_spec='${libname}${release}${shared_ext}$major'
9874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9875 shlibpath_var=LD_LIBRARY_PATH
9876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9878 # the default ld.so.conf also contains /usr/contrib/lib and
9879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9880 # libtool to hard-code these into programs
9883 cygwin* | mingw* | pw32*)
9884 version_type=windows
9889 case $GCC,$host_os in
9890 yes,cygwin* | yes,mingw* | yes,pw32*)
9891 library_names_spec='$libname.dll.a'
9892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9893 postinstall_cmds='base_file=`basename \${file}`~
9894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9895 dldir=$destdir/`dirname \$dlpath`~
9896 test -d \$dldir || mkdir -p \$dldir~
9897 $install_prog $dir/$dlname \$dldir/$dlname~
9898 chmod a+x \$dldir/$dlname'
9899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9900 dlpath=$dir/\$dldll~
9902 shlibpath_overrides_runpath=yes
9906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9908 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9911 # MinGW DLLs use traditional 'lib' prefix
9912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9914 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9915 # It is most probably a Windows format PATH printed by
9916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9917 # path with ; separators, and with drive letters. We can handle the
9918 # drive letters (cygwin fileutils understands them), so leave them,
9919 # especially as we might pass files found there to a mingw objdump,
9920 # which wouldn't understand a cygwinified path. Ahh.
9921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9927 # pw32 DLLs use 'pw' prefix rather than 'lib'
9928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9937 dynamic_linker='Win32 ld.exe'
9938 # FIXME: first we should search . and the directory the executable is in
9942 darwin* | rhapsody*)
9943 dynamic_linker="$host_os dyld"
9947 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9948 soname_spec='${libname}${release}${major}$shared_ext'
9949 shlibpath_overrides_runpath=yes
9950 shlibpath_var=DYLD_LIBRARY_PATH
9951 shrext_cmds='.dylib'
9952 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9953 if test "$GCC" = yes; then
9954 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"`
9956 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 shlibpath_var=LD_LIBRARY_PATH
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 shlibpath_overrides_runpath=no
9982 hardcode_into_libs=yes
9983 dynamic_linker='GNU ld.so'
9986 freebsd* | dragonfly*)
9987 # DragonFly does not have aout. When/if they implement a new
9988 # versioning mechanism, adjust this.
9989 if test -x /usr/bin/objformat; then
9990 objformat=`/usr/bin/objformat`
9993 freebsd[123]*) objformat=aout ;;
9997 version_type=freebsd-$objformat
9998 case $version_type in
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10009 shlibpath_var=LD_LIBRARY_PATH
10012 shlibpath_overrides_runpath=yes
10014 freebsd3.[01]* | freebsdelf3.[01]*)
10015 shlibpath_overrides_runpath=yes
10016 hardcode_into_libs=yes
10018 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10019 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10020 shlibpath_overrides_runpath=no
10021 hardcode_into_libs=yes
10023 freebsd*) # from 4.6 on
10024 shlibpath_overrides_runpath=yes
10025 hardcode_into_libs=yes
10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10035 soname_spec='${libname}${release}${shared_ext}$major'
10036 shlibpath_var=LD_LIBRARY_PATH
10037 hardcode_into_libs=yes
10040 hpux9* | hpux10* | hpux11*)
10041 # Give a soname corresponding to the major version so that dld.sl refuses to
10042 # link against other versions.
10049 hardcode_into_libs=yes
10050 dynamic_linker="$host_os dld.so"
10051 shlibpath_var=LD_LIBRARY_PATH
10052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 if test "X$HPUX_IA64_MODE" = X32; then
10056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10064 hardcode_into_libs=yes
10065 dynamic_linker="$host_os dld.sl"
10066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069 soname_spec='${libname}${release}${shared_ext}$major'
10070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10075 dynamic_linker="$host_os dld.sl"
10076 shlibpath_var=SHLIB_PATH
10077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079 soname_spec='${libname}${release}${shared_ext}$major'
10082 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10083 postinstall_cmds='chmod 555 $lib'
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 shlibpath_overrides_runpath=no
10095 hardcode_into_libs=yes
10098 irix5* | irix6* | nonstopux*)
10100 nonstopux*) version_type=nonstopux ;;
10102 if test "$lt_cv_prog_gnu_ld" = yes; then
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10113 irix5* | nonstopux*)
10114 libsuff= shlibsuff=
10117 case $LD in # libtool.m4 will add one of these switches to LD
10118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10119 libsuff= shlibsuff= libmagic=32-bit;;
10120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10121 libsuff=32 shlibsuff=N32 libmagic=N32;;
10122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10123 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10124 *) libsuff= shlibsuff= libmagic=never-match;;
10128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10129 shlibpath_overrides_runpath=no
10130 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10131 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10132 hardcode_into_libs=yes
10135 # No shared lib support for Linux oldld, aout, or coff.
10136 linux*oldld* | linux*aout* | linux*coff*)
10140 # This must be Linux ELF.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10148 shlibpath_var=LD_LIBRARY_PATH
10149 shlibpath_overrides_runpath=no
10150 # This implies no fast_install, which is unacceptable.
10151 # Some rework will be needed to allow for fast_install
10152 # before this can be enabled.
10153 hardcode_into_libs=yes
10155 # Append ld.so.conf contents to the search path
10156 if test -f /etc/ld.so.conf; then
10157 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' ' '`
10158 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10161 # We used to test for /lib/ld.so.1 and disable shared libraries on
10162 # powerpc, because MkLinux only supported shared libraries with the
10163 # GNU dynamic linker. Since this was broken with cross compilers,
10164 # most powerpc-linux boxes support dynamic linking these days and
10165 # people can always --disable-shared, the test was removed, and we
10166 # assume the GNU/Linux dynamic linker is in use.
10167 dynamic_linker='GNU/Linux ld.so'
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 shlibpath_var=LD_LIBRARY_PATH
10177 shlibpath_overrides_runpath=no
10178 hardcode_into_libs=yes
10179 dynamic_linker='GNU ld.so'
10186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10189 dynamic_linker='NetBSD (a.out) ld.so'
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10192 soname_spec='${libname}${release}${shared_ext}$major'
10193 dynamic_linker='NetBSD ld.elf_so'
10195 shlibpath_var=LD_LIBRARY_PATH
10196 shlibpath_overrides_runpath=yes
10197 hardcode_into_libs=yes
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath=yes
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 shlibpath_var=LD_LIBRARY_PATH
10214 shlibpath_overrides_runpath=yes
10219 sys_lib_dlsearch_path_spec="/usr/lib"
10221 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10223 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10224 *) need_version=no ;;
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10231 openbsd2.[89] | openbsd2.[89].*)
10232 shlibpath_overrides_runpath=no
10235 shlibpath_overrides_runpath=yes
10239 shlibpath_overrides_runpath=yes
10244 libname_spec='$name'
10247 library_names_spec='$libname${shared_ext} $libname.a'
10248 dynamic_linker='OS/2 ld.exe'
10249 shlibpath_var=LIBPATH
10252 osf3* | osf4* | osf5*)
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10260 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268 soname_spec='${libname}${release}${shared_ext}$major'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes
10271 hardcode_into_libs=yes
10272 # ldd complains unless libraries are executable
10273 postinstall_cmds='chmod +x $lib'
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10279 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10280 shlibpath_var=LD_LIBRARY_PATH
10281 shlibpath_overrides_runpath=yes
10282 if test "$with_gnu_ld" = yes; then
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 case $host_vendor in
10295 shlibpath_overrides_runpath=no
10297 export_dynamic_flag_spec='${wl}-Blargedynsym'
10298 runpath_var=LD_RUN_PATH
10306 shlibpath_overrides_runpath=no
10307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10313 if test -d /usr/nec ;then
10315 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10316 soname_spec='$libname${shared_ext}.$major'
10317 shlibpath_var=LD_LIBRARY_PATH
10321 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10322 version_type=freebsd-elf
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 hardcode_into_libs=yes
10329 if test "$with_gnu_ld" = yes; then
10330 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10331 shlibpath_overrides_runpath=no
10333 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10334 shlibpath_overrides_runpath=yes
10337 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10341 sys_lib_dlsearch_path_spec='/usr/lib'
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 shlibpath_var=LD_LIBRARY_PATH
10355 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10356 echo "${ECHO_T}$dynamic_linker" >&6; }
10357 test "$dynamic_linker" = no && can_build_shared=no
10359 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10360 if test "$GCC" = yes; then
10361 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10365 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10366 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10367 if test "${libltdl_cv_shlibext+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 eval libltdl_cv_shlibext=$shrext_cmds
10375 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10376 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10377 if test -n "$libltdl_cv_shlibext"; then
10379 cat >>confdefs.h <<_ACEOF
10380 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10386 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10387 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10388 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 libltdl_cv_shlibpath_var="$shlibpath_var"
10393 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10394 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10395 if test -n "$libltdl_cv_shlibpath_var"; then
10397 cat >>confdefs.h <<_ACEOF
10398 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10404 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10405 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10406 if test "${libltdl_cv_sys_search_path+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10411 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10412 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10413 if test -n "$libltdl_cv_sys_search_path"; then
10415 for dir in $libltdl_cv_sys_search_path; do
10416 if test -z "$sys_search_path"; then
10417 sys_search_path="$dir"
10419 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10423 cat >>confdefs.h <<_ACEOF
10424 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10429 { echo "$as_me:$LINENO: checking for objdir" >&5
10430 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10431 if test "${libltdl_cv_objdir+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 libltdl_cv_objdir="$objdir"
10435 if test -n "$objdir"; then
10438 rm -f .libs 2>/dev/null
10439 mkdir .libs 2>/dev/null
10440 if test -d .libs; then
10441 libltdl_cv_objdir=.libs
10443 # MS-DOS does not allow filenames that begin with a dot.
10444 libltdl_cv_objdir=_libs
10446 rmdir .libs 2>/dev/null
10450 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10451 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10453 cat >>confdefs.h <<_ACEOF
10454 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10462 # Check for command to grab the raw symbol name followed by C symbol from nm.
10463 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10464 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10465 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 # These are sane defaults that work on at least a few old systems.
10470 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10472 # Character class describing NM global symbol codes.
10473 symcode='[BCDEGRST]'
10475 # Regexp to match symbols that can be accessed directly from C.
10476 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10478 # Transform an extracted symbol line into a proper C declaration
10479 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10481 # Transform an extracted symbol line into symbol name and symbol address
10482 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'"
10484 # Define system-specific variables.
10489 cygwin* | mingw* | pw32*)
10490 symcode='[ABCDGISTW]'
10492 hpux*) # Its linker distinguishes data from code symbols
10493 if test "$host_cpu" = ia64; then
10494 symcode='[ABCDEGRST]'
10496 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10497 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'"
10500 if test "$host_cpu" = ia64; then
10501 symcode='[ABCDGIRSTW]'
10502 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10503 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'"
10506 irix* | nonstopux*)
10507 symcode='[BCDEGRST]'
10510 symcode='[BCDEGQRST]'
10521 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10529 # Handle CRLF in mingw tool chain
10533 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10537 # If we're using GNU nm, then use its standard symbol codes.
10538 case `$NM -V 2>&1` in
10539 *GNU* | *'with BFD'*)
10540 symcode='[ABCDGIRSTW]' ;;
10543 # Try without a prefix undercore, then with it.
10544 for ac_symprfx in "" "_"; do
10546 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10547 symxfrm="\\1 $ac_symprfx\\2 \\2"
10549 # Write the raw and C identifiers.
10550 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10552 # Check to see that the pipe works correctly.
10556 cat > conftest.$ac_ext <<EOF
10561 void nm_test_func(){}
10565 int main(){nm_test_var='a';nm_test_func();return(0);}
10568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10569 (eval $ac_compile) 2>&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; then
10573 # Now try to grab the symbols.
10575 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10576 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && test -s "$nlist"; then
10580 # Try sorting and uniquifying the output.
10581 if sort "$nlist" | uniq > "$nlist"T; then
10582 mv -f "$nlist"T "$nlist"
10587 # Make sure that we snagged all the symbols we need.
10588 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10589 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10590 cat <<EOF > conftest.$ac_ext
10596 # Now generate the symbol file.
10597 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10599 cat <<EOF >> conftest.$ac_ext
10600 #if defined (__STDC__) && __STDC__
10601 # define lt_ptr_t void *
10603 # define lt_ptr_t char *
10607 /* The mapping between symbol names and symbols. */
10612 lt_preloaded_symbols[] =
10615 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10616 cat <<\EOF >> conftest.$ac_ext
10624 # Now try linking the two files.
10625 mv conftest.$ac_objext conftstm.$ac_objext
10626 lt_save_LIBS="$LIBS"
10627 lt_save_CFLAGS="$CFLAGS"
10628 LIBS="conftstm.$ac_objext"
10629 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631 (eval $ac_link) 2>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10637 LIBS="$lt_save_LIBS"
10638 CFLAGS="$lt_save_CFLAGS"
10640 echo "cannot find nm_test_func in $nlist" >&5
10643 echo "cannot find nm_test_var in $nlist" >&5
10646 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10649 echo "$progname: failed program was:" >&5
10650 cat conftest.$ac_ext >&5
10652 rm -f conftest* conftst*
10654 # Do not use the global_symbol_pipe unless it works.
10655 if test "$pipe_works" = yes; then
10658 lt_cv_sys_global_symbol_pipe=
10664 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10665 lt_cv_sys_global_symbol_to_cdecl=
10667 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10668 { echo "$as_me:$LINENO: result: failed" >&5
10669 echo "${ECHO_T}failed" >&6; }
10671 { echo "$as_me:$LINENO: result: ok" >&5
10672 echo "${ECHO_T}ok" >&6; }
10676 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10677 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10678 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10682 libltdl_cv_preloaded_symbols=yes
10684 libltdl_cv_preloaded_symbols=no
10688 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10689 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10690 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10692 cat >>confdefs.h <<\_ACEOF
10693 #define HAVE_PRELOADED_SYMBOLS 1
10701 ac_cpp='$CPP $CPPFLAGS'
10702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10707 { echo "$as_me:$LINENO: checking for shl_load" >&5
10708 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10709 if test "${ac_cv_func_shl_load+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10720 #define shl_load innocuous_shl_load
10722 /* System header to define __stub macros and hopefully few prototypes,
10723 which can conflict with char shl_load (); below.
10724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10725 <limits.h> exists even on freestanding compilers. */
10728 # include <limits.h>
10730 # include <assert.h>
10735 /* Override any GCC internal prototype to avoid an error.
10736 Use char because int might match the return type of a GCC
10737 builtin and then its argument prototype would still apply. */
10742 /* The GNU C library defines this for functions which it implements
10743 to always fail with ENOSYS. Some functions are actually named
10744 something starting with __ and the normal name is an alias. */
10745 #if defined __stub_shl_load || defined __stub___shl_load
10752 return shl_load ();
10757 rm -f conftest.$ac_objext conftest$ac_exeext
10758 if { (ac_try="$ac_link"
10759 case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_link") 2>conftest.er1
10766 grep -v '^ *+' conftest.er1 >conftest.err
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
10771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10772 { (case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_try") 2>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; } &&
10781 { ac_try='test -s conftest$ac_exeext'
10782 { (case "(($ac_try" in
10783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787 (eval "$ac_try") 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 ac_cv_func_shl_load=yes
10793 echo "$as_me: failed program was:" >&5
10794 sed 's/^/| /' conftest.$ac_ext >&5
10796 ac_cv_func_shl_load=no
10799 rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10802 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10803 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10804 if test $ac_cv_func_shl_load = yes; then
10806 cat >>confdefs.h <<\_ACEOF
10807 #define HAVE_SHL_LOAD 1
10811 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10812 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10813 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 ac_check_lib_save_LIBS=$LIBS
10818 cat >conftest.$ac_ext <<_ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10825 /* Override any GCC internal prototype to avoid an error.
10826 Use char because int might match the return type of a GCC
10827 builtin and then its argument prototype would still apply. */
10835 return shl_load ();
10840 rm -f conftest.$ac_objext conftest$ac_exeext
10841 if { (ac_try="$ac_link"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_link") 2>conftest.er1
10849 grep -v '^ *+' conftest.er1 >conftest.err
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } &&
10854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10855 { (case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_try") 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; } &&
10864 { ac_try='test -s conftest$ac_exeext'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 ac_cv_lib_dld_shl_load=yes
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10879 ac_cv_lib_dld_shl_load=no
10882 rm -f core conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
10884 LIBS=$ac_check_lib_save_LIBS
10886 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10887 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10888 if test $ac_cv_lib_dld_shl_load = yes; then
10890 cat >>confdefs.h <<\_ACEOF
10891 #define HAVE_SHL_LOAD 1
10894 LIBADD_DL="$LIBADD_DL -ldld"
10896 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10897 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10898 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 ac_check_lib_save_LIBS=$LIBS
10903 cat >conftest.$ac_ext <<_ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h. */
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_link") 2>conftest.er1
10934 grep -v '^ *+' conftest.er1 >conftest.err
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10940 { (case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_try") 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; } &&
10949 { ac_try='test -s conftest$ac_exeext'
10950 { (case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_try") 2>&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 ac_cv_lib_dl_dlopen=yes
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_cv_lib_dl_dlopen=no
10967 rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10969 LIBS=$ac_check_lib_save_LIBS
10971 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10973 if test $ac_cv_lib_dl_dlopen = yes; then
10975 cat >>confdefs.h <<\_ACEOF
10976 #define HAVE_LIBDL 1
10979 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10981 cat >conftest.$ac_ext <<_ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10988 # include <dlfcn.h>
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (ac_try="$ac_link"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_link") 2>conftest.er1
11008 grep -v '^ *+' conftest.er1 >conftest.err
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014 { (case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_try") 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11034 cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_LIBDL 1
11037 libltdl_cv_func_dlopen="yes"
11039 echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11042 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11043 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11044 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 ac_check_lib_save_LIBS=$LIBS
11048 LIBS="-lsvld $LIBS"
11049 cat >conftest.$ac_ext <<_ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11056 /* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
11071 rm -f conftest.$ac_objext conftest$ac_exeext
11072 if { (ac_try="$ac_link"
11073 case "(($ac_try" in
11074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075 *) ac_try_echo=$ac_try;;
11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078 (eval "$ac_link") 2>conftest.er1
11080 grep -v '^ *+' conftest.er1 >conftest.err
11082 cat conftest.err >&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } &&
11085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11086 { (case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_try") 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; } &&
11095 { ac_try='test -s conftest$ac_exeext'
11096 { (case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101 (eval "$ac_try") 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; }; then
11105 ac_cv_lib_svld_dlopen=yes
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11110 ac_cv_lib_svld_dlopen=no
11113 rm -f core conftest.err conftest.$ac_objext \
11114 conftest$ac_exeext conftest.$ac_ext
11115 LIBS=$ac_check_lib_save_LIBS
11117 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11118 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11119 if test $ac_cv_lib_svld_dlopen = yes; then
11121 cat >>confdefs.h <<\_ACEOF
11122 #define HAVE_LIBDL 1
11125 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11127 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 ac_check_lib_save_LIBS=$LIBS
11134 cat >conftest.$ac_ext <<_ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11141 /* Override any GCC internal prototype to avoid an error.
11142 Use char because int might match the return type of a GCC
11143 builtin and then its argument prototype would still apply. */
11151 return dld_link ();
11156 rm -f conftest.$ac_objext conftest$ac_exeext
11157 if { (ac_try="$ac_link"
11158 case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163 (eval "$ac_link") 2>conftest.er1
11165 grep -v '^ *+' conftest.er1 >conftest.err
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11171 { (case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_try") 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; } &&
11180 { ac_try='test -s conftest$ac_exeext'
11181 { (case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_try") 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11190 ac_cv_lib_dld_dld_link=yes
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11195 ac_cv_lib_dld_dld_link=no
11198 rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11200 LIBS=$ac_check_lib_save_LIBS
11202 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11203 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11204 if test $ac_cv_lib_dld_dld_link = yes; then
11206 cat >>confdefs.h <<\_ACEOF
11210 LIBADD_DL="$LIBADD_DL -ldld"
11212 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11213 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11214 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 cat >conftest.$ac_ext <<_ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11223 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11225 #define _dyld_func_lookup innocuous__dyld_func_lookup
11227 /* System header to define __stub macros and hopefully few prototypes,
11228 which can conflict with char _dyld_func_lookup (); below.
11229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11230 <limits.h> exists even on freestanding compilers. */
11233 # include <limits.h>
11235 # include <assert.h>
11238 #undef _dyld_func_lookup
11240 /* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11246 char _dyld_func_lookup ();
11247 /* The GNU C library defines this for functions which it implements
11248 to always fail with ENOSYS. Some functions are actually named
11249 something starting with __ and the normal name is an alias. */
11250 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11257 return _dyld_func_lookup ();
11262 rm -f conftest.$ac_objext conftest$ac_exeext
11263 if { (ac_try="$ac_link"
11264 case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_link") 2>conftest.er1
11271 grep -v '^ *+' conftest.er1 >conftest.err
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } &&
11276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; } &&
11286 { ac_try='test -s conftest$ac_exeext'
11287 { (case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_try") 2>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 ac_cv_func__dyld_func_lookup=yes
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 ac_cv_func__dyld_func_lookup=no
11304 rm -f core conftest.err conftest.$ac_objext \
11305 conftest$ac_exeext conftest.$ac_ext
11307 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11308 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11309 if test $ac_cv_func__dyld_func_lookup = yes; then
11311 cat >>confdefs.h <<\_ACEOF
11312 #define HAVE_DYLD 1
11326 rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11338 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11340 lt_save_LIBS="$LIBS"
11341 LIBS="$LIBS $LIBADD_DL"
11343 for ac_func in dlerror
11345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 cat >conftest.$ac_ext <<_ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11359 #define $ac_func innocuous_$ac_func
11361 /* System header to define __stub macros and hopefully few prototypes,
11362 which can conflict with char $ac_func (); below.
11363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11364 <limits.h> exists even on freestanding compilers. */
11367 # include <limits.h>
11369 # include <assert.h>
11374 /* Override any GCC internal prototype to avoid an error.
11375 Use char because int might match the return type of a GCC
11376 builtin and then its argument prototype would still apply. */
11381 /* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384 #if defined __stub_$ac_func || defined __stub___$ac_func
11391 return $ac_func ();
11396 rm -f conftest.$ac_objext conftest$ac_exeext
11397 if { (ac_try="$ac_link"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_link") 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11411 { (case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416 (eval "$ac_try") 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try='test -s conftest$ac_exeext'
11421 { (case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_try") 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430 eval "$as_ac_var=yes"
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11435 eval "$as_ac_var=no"
11438 rm -f core conftest.err conftest.$ac_objext \
11439 conftest$ac_exeext conftest.$ac_ext
11441 ac_res=`eval echo '${'$as_ac_var'}'`
11442 { echo "$as_me:$LINENO: result: $ac_res" >&5
11443 echo "${ECHO_T}$ac_res" >&6; }
11444 if test `eval echo '${'$as_ac_var'}'` = yes; then
11445 cat >>confdefs.h <<_ACEOF
11446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11452 LIBS="$lt_save_LIBS"
11455 ac_cpp='$CPP $CPPFLAGS'
11456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11462 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11463 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11464 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11467 ac_cv_sys_symbol_underscore=no
11468 cat > conftest.$ac_ext <<EOF
11469 void nm_test_func(){}
11470 int main(){nm_test_func;return 0;}
11472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11473 (eval $ac_compile) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; then
11477 # Now try to grab the symbols.
11478 ac_nlist=conftest.nm
11479 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11480 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } && test -s "$ac_nlist"; then
11484 # See whether the symbols have a leading underscore.
11485 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11486 ac_cv_sys_symbol_underscore=yes
11488 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11491 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11495 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11498 echo "configure: failed program was:" >&5
11504 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11505 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11508 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11509 if test x"$libltdl_cv_func_dlopen" = xyes ||
11510 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11511 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11512 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11513 if test "${libltdl_cv_need_uscore+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 libltdl_cv_need_uscore=unknown
11518 LIBS="$LIBS $LIBADD_DL"
11519 if test "$cross_compiling" = yes; then :
11520 libltdl_cv_need_uscore=cross
11522 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11523 lt_status=$lt_dlunknown
11524 cat > conftest.$ac_ext <<EOF
11525 #line 11525 "configure"
11526 #include "confdefs.h"
11535 # define LT_DLGLOBAL RTLD_GLOBAL
11538 # define LT_DLGLOBAL DL_GLOBAL
11540 # define LT_DLGLOBAL 0
11544 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11545 find out it does not work in some platform. */
11546 #ifndef LT_DLLAZY_OR_NOW
11548 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11551 # define LT_DLLAZY_OR_NOW DL_LAZY
11554 # define LT_DLLAZY_OR_NOW RTLD_NOW
11557 # define LT_DLLAZY_OR_NOW DL_NOW
11559 # define LT_DLLAZY_OR_NOW 0
11567 extern "C" void exit (int);
11570 void fnord() { int i=42;}
11573 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11574 int status = $lt_dlunknown;
11578 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11579 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11580 /* dlclose (self); */
11588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11589 (eval $ac_link) 2>&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11593 (./conftest; exit; ) >&5 2>/dev/null
11595 case x$lt_status in
11596 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11597 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11598 x$lt_dlunknown|x*) ;;
11601 # compilation failed
11610 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11611 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11615 if test x"$libltdl_cv_need_uscore" = xyes; then
11617 cat >>confdefs.h <<\_ACEOF
11618 #define NEED_USCORE 1
11624 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11625 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11626 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 # PORTME does your system automatically load deplibs for dlopen?
11630 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11631 # For now, we just catch OSes we know something about -- in the
11632 # future, we'll try test this programmatically.
11633 libltdl_cv_sys_dlopen_deplibs=unknown
11635 aix3*|aix4.1.*|aix4.2.*)
11636 # Unknown whether this is true for these versions of AIX, but
11637 # we want this `case' here to explicitly catch those versions.
11638 libltdl_cv_sys_dlopen_deplibs=unknown
11641 libltdl_cv_sys_dlopen_deplibs=yes
11644 # Assuming the user has installed a libdl from somewhere, this is true
11645 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11646 libltdl_cv_sys_dlopen_deplibs=yes
11648 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11649 # GNU and its variants, using gnu ld.so (Glibc)
11650 libltdl_cv_sys_dlopen_deplibs=yes
11653 libltdl_cv_sys_dlopen_deplibs=yes
11656 libltdl_cv_sys_dlopen_deplibs=yes
11658 irix[12345]*|irix6.[01]*)
11659 # Catch all versions of IRIX before 6.2, and indicate that we don't
11660 # know how it worked for any of those versions.
11661 libltdl_cv_sys_dlopen_deplibs=unknown
11664 # The case above catches anything before 6.2, and it's known that
11665 # at 6.2 and later dlopen does load deplibs.
11666 libltdl_cv_sys_dlopen_deplibs=yes
11669 libltdl_cv_sys_dlopen_deplibs=yes
11672 libltdl_cv_sys_dlopen_deplibs=yes
11675 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11676 # it did *not* use an RPATH in a shared library to find objects the
11677 # library depends on, so we explictly say `no'.
11678 libltdl_cv_sys_dlopen_deplibs=no
11680 osf5.0|osf5.0a|osf5.1)
11681 # dlopen *does* load deplibs and with the right loader patch applied
11682 # it even uses RPATH in a shared library to search for shared objects
11683 # that the library depends on, but there's no easy way to know if that
11684 # patch is installed. Since this is the case, all we can really
11685 # say is unknown -- it depends on the patch being installed. If
11686 # it is, this changes to `yes'. Without it, it would be `no'.
11687 libltdl_cv_sys_dlopen_deplibs=unknown
11690 # the two cases above should catch all versions of osf <= 5.1. Read
11691 # the comments above for what we know about them.
11692 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11693 # is used to find them so we can finally say `yes'.
11694 libltdl_cv_sys_dlopen_deplibs=yes
11697 libltdl_cv_sys_dlopen_deplibs=yes
11699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11700 libltdl_cv_sys_dlopen_deplibs=yes
11705 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11706 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11707 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11709 cat >>confdefs.h <<\_ACEOF
11710 #define LTDL_DLOPEN_DEPLIBS 1
11716 for ac_header in argz.h
11718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11725 ac_res=`eval echo '${'$as_ac_Header'}'`
11726 { echo "$as_me:$LINENO: result: $ac_res" >&5
11727 echo "${ECHO_T}$ac_res" >&6; }
11729 # Is the header compilable?
11730 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11732 cat >conftest.$ac_ext <<_ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h. */
11738 $ac_includes_default
11739 #include <$ac_header>
11741 rm -f conftest.$ac_objext
11742 if { (ac_try="$ac_compile"
11743 case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_compile") 2>conftest.er1
11750 grep -v '^ *+' conftest.er1 >conftest.err
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11756 { (case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_try") 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_try") 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775 ac_header_compiler=yes
11777 echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11780 ac_header_compiler=no
11783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11785 echo "${ECHO_T}$ac_header_compiler" >&6; }
11787 # Is the header present?
11788 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11790 cat >conftest.$ac_ext <<_ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 #include <$ac_header>
11798 if { (ac_try="$ac_cpp conftest.$ac_ext"
11799 case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11806 grep -v '^ *+' conftest.er1 >conftest.err
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } >/dev/null; then
11811 if test -s conftest.err; then
11812 ac_cpp_err=$ac_c_preproc_warn_flag
11813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11820 if test -z "$ac_cpp_err"; then
11821 ac_header_preproc=yes
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11826 ac_header_preproc=no
11829 rm -f conftest.err conftest.$ac_ext
11830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11831 echo "${ECHO_T}$ac_header_preproc" >&6; }
11833 # So? What about this header?
11834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11840 ac_header_preproc=yes
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11856 ## ----------------------------------- ##
11857 ## Report this to llvmbugs@cs.uiuc.edu ##
11858 ## ----------------------------------- ##
11860 ) | sed "s/^/$as_me: WARNING: /" >&2
11863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 eval "$as_ac_Header=\$ac_header_preproc"
11870 ac_res=`eval echo '${'$as_ac_Header'}'`
11871 { echo "$as_me:$LINENO: result: $ac_res" >&5
11872 echo "${ECHO_T}$ac_res" >&6; }
11875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11876 cat >>confdefs.h <<_ACEOF
11877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11885 { echo "$as_me:$LINENO: checking for error_t" >&5
11886 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11887 if test "${ac_cv_type_error_t+set}" = set; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11890 cat >conftest.$ac_ext <<_ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11900 typedef error_t ac__type_new_;
11904 if ((ac__type_new_ *) 0)
11906 if (sizeof (ac__type_new_))
11912 rm -f conftest.$ac_objext
11913 if { (ac_try="$ac_compile"
11914 case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_compile") 2>conftest.er1
11921 grep -v '^ *+' conftest.er1 >conftest.err
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } &&
11926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11927 { (case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_try") 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; } &&
11936 { ac_try='test -s conftest.$ac_objext'
11937 { (case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_try") 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_type_error_t=yes
11948 echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11951 ac_cv_type_error_t=no
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11957 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11958 if test $ac_cv_type_error_t = yes; then
11960 cat >>confdefs.h <<_ACEOF
11961 #define HAVE_ERROR_T 1
11967 cat >>confdefs.h <<\_ACEOF
11968 #define error_t int
11979 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 cat >conftest.$ac_ext <<_ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11995 #define $ac_func innocuous_$ac_func
11997 /* System header to define __stub macros and hopefully few prototypes,
11998 which can conflict with char $ac_func (); below.
11999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12000 <limits.h> exists even on freestanding compilers. */
12003 # include <limits.h>
12005 # include <assert.h>
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12017 /* The GNU C library defines this for functions which it implements
12018 to always fail with ENOSYS. Some functions are actually named
12019 something starting with __ and the normal name is an alias. */
12020 #if defined __stub_$ac_func || defined __stub___$ac_func
12027 return $ac_func ();
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (ac_try="$ac_link"
12034 case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_link") 2>conftest.er1
12041 grep -v '^ *+' conftest.er1 >conftest.err
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12047 { (case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_try") 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; } &&
12056 { ac_try='test -s conftest$ac_exeext'
12057 { (case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_try") 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; }; then
12066 eval "$as_ac_var=yes"
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12071 eval "$as_ac_var=no"
12074 rm -f core conftest.err conftest.$ac_objext \
12075 conftest$ac_exeext conftest.$ac_ext
12077 ac_res=`eval echo '${'$as_ac_var'}'`
12078 { echo "$as_me:$LINENO: result: $ac_res" >&5
12079 echo "${ECHO_T}$ac_res" >&6; }
12080 if test `eval echo '${'$as_ac_var'}'` = yes; then
12081 cat >>confdefs.h <<_ACEOF
12082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12115 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 ac_res=`eval echo '${'$as_ac_Header'}'`
12126 { echo "$as_me:$LINENO: result: $ac_res" >&5
12127 echo "${ECHO_T}$ac_res" >&6; }
12129 # Is the header compilable?
12130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12132 cat >conftest.$ac_ext <<_ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 $ac_includes_default
12139 #include <$ac_header>
12141 rm -f conftest.$ac_objext
12142 if { (ac_try="$ac_compile"
12143 case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_compile") 2>conftest.er1
12150 grep -v '^ *+' conftest.er1 >conftest.err
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
12155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_try") 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_header_compiler=yes
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 ac_header_compiler=no
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185 echo "${ECHO_T}$ac_header_compiler" >&6; }
12187 # Is the header present?
12188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <$ac_header>
12198 if { (ac_try="$ac_cpp conftest.$ac_ext"
12199 case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12206 grep -v '^ *+' conftest.er1 >conftest.err
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } >/dev/null; then
12211 if test -s conftest.err; then
12212 ac_cpp_err=$ac_c_preproc_warn_flag
12213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12220 if test -z "$ac_cpp_err"; then
12221 ac_header_preproc=yes
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_header_preproc=no
12229 rm -f conftest.err conftest.$ac_ext
12230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 echo "${ECHO_T}$ac_header_preproc" >&6; }
12233 # So? What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12240 ac_header_preproc=yes
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12256 ## ----------------------------------- ##
12257 ## Report this to llvmbugs@cs.uiuc.edu ##
12258 ## ----------------------------------- ##
12260 ) | sed "s/^/$as_me: WARNING: /" >&2
12263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 eval "$as_ac_Header=\$ac_header_preproc"
12270 ac_res=`eval echo '${'$as_ac_Header'}'`
12271 { echo "$as_me:$LINENO: result: $ac_res" >&5
12272 echo "${ECHO_T}$ac_res" >&6; }
12275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12276 cat >>confdefs.h <<_ACEOF
12277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12288 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 ac_res=`eval echo '${'$as_ac_Header'}'`
12298 { echo "$as_me:$LINENO: result: $ac_res" >&5
12299 echo "${ECHO_T}$ac_res" >&6; }
12301 # Is the header compilable?
12302 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12304 cat >conftest.$ac_ext <<_ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 $ac_includes_default
12311 #include <$ac_header>
12313 rm -f conftest.$ac_objext
12314 if { (ac_try="$ac_compile"
12315 case "(($ac_try" in
12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317 *) ac_try_echo=$ac_try;;
12319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12320 (eval "$ac_compile") 2>conftest.er1
12322 grep -v '^ *+' conftest.er1 >conftest.err
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
12327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12328 { (case "(($ac_try" in
12329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330 *) ac_try_echo=$ac_try;;
12332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333 (eval "$ac_try") 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest.$ac_objext'
12338 { (case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_try") 2>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; }; then
12347 ac_header_compiler=yes
12349 echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12352 ac_header_compiler=no
12355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12357 echo "${ECHO_T}$ac_header_compiler" >&6; }
12359 # Is the header present?
12360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12362 cat >conftest.$ac_ext <<_ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12368 #include <$ac_header>
12370 if { (ac_try="$ac_cpp conftest.$ac_ext"
12371 case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12378 grep -v '^ *+' conftest.er1 >conftest.err
12380 cat conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } >/dev/null; then
12383 if test -s conftest.err; then
12384 ac_cpp_err=$ac_c_preproc_warn_flag
12385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12392 if test -z "$ac_cpp_err"; then
12393 ac_header_preproc=yes
12395 echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12398 ac_header_preproc=no
12401 rm -f conftest.err conftest.$ac_ext
12402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12403 echo "${ECHO_T}$ac_header_preproc" >&6; }
12405 # So? What about this header?
12406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12412 ac_header_preproc=yes
12415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12418 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12422 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12428 ## ----------------------------------- ##
12429 ## Report this to llvmbugs@cs.uiuc.edu ##
12430 ## ----------------------------------- ##
12432 ) | sed "s/^/$as_me: WARNING: /" >&2
12435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 eval "$as_ac_Header=\$ac_header_preproc"
12442 ac_res=`eval echo '${'$as_ac_Header'}'`
12443 { echo "$as_me:$LINENO: result: $ac_res" >&5
12444 echo "${ECHO_T}$ac_res" >&6; }
12447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12448 cat >>confdefs.h <<_ACEOF
12449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12458 for ac_header in string.h strings.h
12460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 ac_res=`eval echo '${'$as_ac_Header'}'`
12468 { echo "$as_me:$LINENO: result: $ac_res" >&5
12469 echo "${ECHO_T}$ac_res" >&6; }
12471 # Is the header compilable?
12472 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12474 cat >conftest.$ac_ext <<_ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 $ac_includes_default
12481 #include <$ac_header>
12483 rm -f conftest.$ac_objext
12484 if { (ac_try="$ac_compile"
12485 case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_compile") 2>conftest.er1
12492 grep -v '^ *+' conftest.er1 >conftest.err
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498 { (case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_try") 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; } &&
12507 { ac_try='test -s conftest.$ac_objext'
12508 { (case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_try") 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
12517 ac_header_compiler=yes
12519 echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 ac_header_compiler=no
12525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12527 echo "${ECHO_T}$ac_header_compiler" >&6; }
12529 # Is the header present?
12530 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 #include <$ac_header>
12540 if { (ac_try="$ac_cpp conftest.$ac_ext"
12541 case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12548 grep -v '^ *+' conftest.er1 >conftest.err
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } >/dev/null; then
12553 if test -s conftest.err; then
12554 ac_cpp_err=$ac_c_preproc_warn_flag
12555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12562 if test -z "$ac_cpp_err"; then
12563 ac_header_preproc=yes
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 ac_header_preproc=no
12571 rm -f conftest.err conftest.$ac_ext
12572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12573 echo "${ECHO_T}$ac_header_preproc" >&6; }
12575 # So? What about this header?
12576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12582 ac_header_preproc=yes
12585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12592 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12598 ## ----------------------------------- ##
12599 ## Report this to llvmbugs@cs.uiuc.edu ##
12600 ## ----------------------------------- ##
12602 ) | sed "s/^/$as_me: WARNING: /" >&2
12605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 eval "$as_ac_Header=\$ac_header_preproc"
12612 ac_res=`eval echo '${'$as_ac_Header'}'`
12613 { echo "$as_me:$LINENO: result: $ac_res" >&5
12614 echo "${ECHO_T}$ac_res" >&6; }
12617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12618 cat >>confdefs.h <<_ACEOF
12619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12629 for ac_func in strchr index
12631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12637 cat >conftest.$ac_ext <<_ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h. */
12643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12645 #define $ac_func innocuous_$ac_func
12647 /* System header to define __stub macros and hopefully few prototypes,
12648 which can conflict with char $ac_func (); below.
12649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12650 <limits.h> exists even on freestanding compilers. */
12653 # include <limits.h>
12655 # include <assert.h>
12660 /* Override any GCC internal prototype to avoid an error.
12661 Use char because int might match the return type of a GCC
12662 builtin and then its argument prototype would still apply. */
12667 /* The GNU C library defines this for functions which it implements
12668 to always fail with ENOSYS. Some functions are actually named
12669 something starting with __ and the normal name is an alias. */
12670 #if defined __stub_$ac_func || defined __stub___$ac_func
12677 return $ac_func ();
12682 rm -f conftest.$ac_objext conftest$ac_exeext
12683 if { (ac_try="$ac_link"
12684 case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_link") 2>conftest.er1
12691 grep -v '^ *+' conftest.er1 >conftest.err
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
12696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12697 { (case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_try") 2>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); }; } &&
12706 { ac_try='test -s conftest$ac_exeext'
12707 { (case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_try") 2>&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 eval "$as_ac_var=yes"
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12721 eval "$as_ac_var=no"
12724 rm -f core conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12727 ac_res=`eval echo '${'$as_ac_var'}'`
12728 { echo "$as_me:$LINENO: result: $ac_res" >&5
12729 echo "${ECHO_T}$ac_res" >&6; }
12730 if test `eval echo '${'$as_ac_var'}'` = yes; then
12731 cat >>confdefs.h <<_ACEOF
12732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12740 for ac_func in strrchr rindex
12742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 cat >conftest.$ac_ext <<_ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12756 #define $ac_func innocuous_$ac_func
12758 /* System header to define __stub macros and hopefully few prototypes,
12759 which can conflict with char $ac_func (); below.
12760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12761 <limits.h> exists even on freestanding compilers. */
12764 # include <limits.h>
12766 # include <assert.h>
12771 /* Override any GCC internal prototype to avoid an error.
12772 Use char because int might match the return type of a GCC
12773 builtin and then its argument prototype would still apply. */
12778 /* The GNU C library defines this for functions which it implements
12779 to always fail with ENOSYS. Some functions are actually named
12780 something starting with __ and the normal name is an alias. */
12781 #if defined __stub_$ac_func || defined __stub___$ac_func
12788 return $ac_func ();
12793 rm -f conftest.$ac_objext conftest$ac_exeext
12794 if { (ac_try="$ac_link"
12795 case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_link") 2>conftest.er1
12802 grep -v '^ *+' conftest.er1 >conftest.err
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } &&
12807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12808 { (case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_try") 2>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; } &&
12817 { ac_try='test -s conftest$ac_exeext'
12818 { (case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_try") 2>&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; }; then
12827 eval "$as_ac_var=yes"
12829 echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12832 eval "$as_ac_var=no"
12835 rm -f core conftest.err conftest.$ac_objext \
12836 conftest$ac_exeext conftest.$ac_ext
12838 ac_res=`eval echo '${'$as_ac_var'}'`
12839 { echo "$as_me:$LINENO: result: $ac_res" >&5
12840 echo "${ECHO_T}$ac_res" >&6; }
12841 if test `eval echo '${'$as_ac_var'}'` = yes; then
12842 cat >>confdefs.h <<_ACEOF
12843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12851 for ac_func in memcpy bcopy
12853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 cat >conftest.$ac_ext <<_ACEOF
12862 cat confdefs.h >>conftest.$ac_ext
12863 cat >>conftest.$ac_ext <<_ACEOF
12864 /* end confdefs.h. */
12865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12867 #define $ac_func innocuous_$ac_func
12869 /* System header to define __stub macros and hopefully few prototypes,
12870 which can conflict with char $ac_func (); below.
12871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12872 <limits.h> exists even on freestanding compilers. */
12875 # include <limits.h>
12877 # include <assert.h>
12882 /* Override any GCC internal prototype to avoid an error.
12883 Use char because int might match the return type of a GCC
12884 builtin and then its argument prototype would still apply. */
12889 /* The GNU C library defines this for functions which it implements
12890 to always fail with ENOSYS. Some functions are actually named
12891 something starting with __ and the normal name is an alias. */
12892 #if defined __stub_$ac_func || defined __stub___$ac_func
12899 return $ac_func ();
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (ac_try="$ac_link"
12906 case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_link") 2>conftest.er1
12913 grep -v '^ *+' conftest.er1 >conftest.err
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
12918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12919 { (case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_try") 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest$ac_exeext'
12929 { (case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_try") 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 eval "$as_ac_var=yes"
12940 echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12943 eval "$as_ac_var=no"
12946 rm -f core conftest.err conftest.$ac_objext \
12947 conftest$ac_exeext conftest.$ac_ext
12949 ac_res=`eval echo '${'$as_ac_var'}'`
12950 { echo "$as_me:$LINENO: result: $ac_res" >&5
12951 echo "${ECHO_T}$ac_res" >&6; }
12952 if test `eval echo '${'$as_ac_var'}'` = yes; then
12953 cat >>confdefs.h <<_ACEOF
12954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12962 for ac_func in memmove strcmp
12964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 cat >conftest.$ac_ext <<_ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12978 #define $ac_func innocuous_$ac_func
12980 /* System header to define __stub macros and hopefully few prototypes,
12981 which can conflict with char $ac_func (); below.
12982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12983 <limits.h> exists even on freestanding compilers. */
12986 # include <limits.h>
12988 # include <assert.h>
12993 /* Override any GCC internal prototype to avoid an error.
12994 Use char because int might match the return type of a GCC
12995 builtin and then its argument prototype would still apply. */
13000 /* The GNU C library defines this for functions which it implements
13001 to always fail with ENOSYS. Some functions are actually named
13002 something starting with __ and the normal name is an alias. */
13003 #if defined __stub_$ac_func || defined __stub___$ac_func
13010 return $ac_func ();
13015 rm -f conftest.$ac_objext conftest$ac_exeext
13016 if { (ac_try="$ac_link"
13017 case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_link") 2>conftest.er1
13024 grep -v '^ *+' conftest.er1 >conftest.err
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } &&
13029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13030 { (case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035 (eval "$ac_try") 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; } &&
13039 { ac_try='test -s conftest$ac_exeext'
13040 { (case "(($ac_try" in
13041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045 (eval "$ac_try") 2>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; }; then
13049 eval "$as_ac_var=yes"
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13054 eval "$as_ac_var=no"
13057 rm -f core conftest.err conftest.$ac_objext \
13058 conftest$ac_exeext conftest.$ac_ext
13060 ac_res=`eval echo '${'$as_ac_var'}'`
13061 { echo "$as_me:$LINENO: result: $ac_res" >&5
13062 echo "${ECHO_T}$ac_res" >&6; }
13063 if test `eval echo '${'$as_ac_var'}'` = yes; then
13064 cat >>confdefs.h <<_ACEOF
13065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13074 for ac_func in closedir opendir readdir
13076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 cat >conftest.$ac_ext <<_ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13090 #define $ac_func innocuous_$ac_func
13092 /* System header to define __stub macros and hopefully few prototypes,
13093 which can conflict with char $ac_func (); below.
13094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13095 <limits.h> exists even on freestanding compilers. */
13098 # include <limits.h>
13100 # include <assert.h>
13105 /* Override any GCC internal prototype to avoid an error.
13106 Use char because int might match the return type of a GCC
13107 builtin and then its argument prototype would still apply. */
13112 /* The GNU C library defines this for functions which it implements
13113 to always fail with ENOSYS. Some functions are actually named
13114 something starting with __ and the normal name is an alias. */
13115 #if defined __stub_$ac_func || defined __stub___$ac_func
13122 return $ac_func ();
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (ac_try="$ac_link"
13129 case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_link") 2>conftest.er1
13136 grep -v '^ *+' conftest.er1 >conftest.err
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13142 { (case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_try") 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_try") 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 eval "$as_ac_var=yes"
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 eval "$as_ac_var=no"
13169 rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13172 ac_res=`eval echo '${'$as_ac_var'}'`
13173 { echo "$as_me:$LINENO: result: $ac_res" >&5
13174 echo "${ECHO_T}$ac_res" >&6; }
13175 if test `eval echo '${'$as_ac_var'}'` = yes; then
13176 cat >>confdefs.h <<_ACEOF
13177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13185 if test "$WITH_LLVMGCCDIR" = "default" ; then
13186 LLVMGCC="llvm-gcc${EXEEXT}"
13187 LLVMGXX="llvm-g++${EXEEXT}"
13188 LLVMGCCCOMMAND="$LLVMGCC"
13189 LLVMGXXCOMMAND="$LLVMGXX"
13190 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13192 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13194 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13195 set dummy $LLVMGCC; ac_word=$2
13196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13198 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207 for as_dir in $PATH
13210 test -z "$as_dir" && as_dir=.
13211 for ac_exec_ext in '' $ac_executable_extensions; do
13212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13213 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13224 LLVMGCC=$ac_cv_path_LLVMGCC
13225 if test -n "$LLVMGCC"; then
13226 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13227 echo "${ECHO_T}$LLVMGCC" >&6; }
13229 { echo "$as_me:$LINENO: result: no" >&5
13230 echo "${ECHO_T}no" >&6; }
13234 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13235 set dummy $LLVMGXX; ac_word=$2
13236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13238 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13250 test -z "$as_dir" && as_dir=.
13251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13253 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 LLVMGXX=$ac_cv_path_LLVMGXX
13265 if test -n "$LLVMGXX"; then
13266 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13267 echo "${ECHO_T}$LLVMGXX" >&6; }
13269 { echo "$as_me:$LINENO: result: no" >&5
13270 echo "${ECHO_T}no" >&6; }
13275 if test -z "$LLVMGCC"; then
13276 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13277 LLVMGCCCOMMAND="$LLVMGCC"
13279 if test -z "$LLVMGXX"; then
13280 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13281 LLVMGXXCOMMAND="$LLVMGXX"
13288 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13290 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13295 # Check whether --with-llvmcc was given.
13296 if test "${with_llvmcc+set}" = set; then
13297 withval=$with_llvmcc;
13302 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13303 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13304 if test "$with_llvmcc" != "check"; then
13305 if (test "$with_llvmcc" != "llvm-gcc" &&
13306 test "$with_llvmcc" != "clang" &&
13307 test "$with_llvmcc" != "none"); then
13308 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13309 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13310 { (exit 1); exit 1; }; }
13312 WITH_LLVMCC="$with_llvmcc"
13313 elif test -n "$LLVMGCC"; then
13314 WITH_LLVMCC=llvm-gcc
13315 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13320 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13321 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13322 LLVMCC_OPTION=$WITH_LLVMCC
13325 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13326 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13339 if test "$GCC" != "yes" && test "$ICC" != "yes"
13341 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13342 echo "$as_me: error: gcc|icc required but not found" >&2;}
13343 { (exit 1); exit 1; }; }
13346 if test "$GXX" != "yes" && test "$IXX" != "yes"
13348 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13349 echo "$as_me: error: g++|icc required but not found" >&2;}
13350 { (exit 1); exit 1; }; }
13353 if test "$GCC" = "yes"
13355 cat >conftest.$ac_ext <<_ACEOF
13356 #if !defined(__GNUC__) || __GNUC__ < 3
13357 #error Unsupported GCC version
13361 rm -f conftest.$ac_objext
13362 if { (ac_try="$ac_compile"
13363 case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_compile") 2>conftest.er1
13370 grep -v '^ *+' conftest.er1 >conftest.err
13372 cat conftest.err >&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } &&
13375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13376 { (case "(($ac_try" in
13377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378 *) ac_try_echo=$ac_try;;
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381 (eval "$ac_try") 2>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; } &&
13385 { ac_try='test -s conftest.$ac_objext'
13386 { (case "(($ac_try" in
13387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391 (eval "$ac_try") 2>&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; }; then
13397 echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13400 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13401 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13402 { (exit 1); exit 1; }; }
13405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 if test -z "$llvm_cv_gnu_make_command"
13410 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13411 echo "$as_me: error: GNU Make required but not found" >&2;}
13412 { (exit 1); exit 1; }; }
13415 { echo "$as_me:$LINENO: result: ok" >&5
13416 echo "${ECHO_T}ok" >&6; }
13418 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13419 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13420 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13422 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13424 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13425 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13429 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13430 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13431 if test "${ac_cv_lib_m_sin+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 ac_check_lib_save_LIBS=$LIBS
13436 cat >conftest.$ac_ext <<_ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13443 /* Override any GCC internal prototype to avoid an error.
13444 Use char because int might match the return type of a GCC
13445 builtin and then its argument prototype would still apply. */
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (ac_try="$ac_link"
13460 case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_link") 2>conftest.er1
13467 grep -v '^ *+' conftest.er1 >conftest.err
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13473 { (case "(($ac_try" in
13474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478 (eval "$ac_try") 2>&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try='test -s conftest$ac_exeext'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492 ac_cv_lib_m_sin=yes
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13500 rm -f core conftest.err conftest.$ac_objext \
13501 conftest$ac_exeext conftest.$ac_ext
13502 LIBS=$ac_check_lib_save_LIBS
13504 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13505 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13506 if test $ac_cv_lib_m_sin = yes; then
13507 cat >>confdefs.h <<_ACEOF
13508 #define HAVE_LIBM 1
13515 if test "$llvm_cv_os_type" = "MingW" ; then
13517 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13518 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13519 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13522 ac_check_lib_save_LIBS=$LIBS
13523 LIBS="-limagehlp $LIBS"
13524 cat >conftest.$ac_ext <<_ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (ac_try="$ac_link"
13542 case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_link") 2>conftest.er1
13549 grep -v '^ *+' conftest.er1 >conftest.err
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
13554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13555 { (case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_try") 2>&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; } &&
13564 { ac_try='test -s conftest$ac_exeext'
13565 { (case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13574 ac_cv_lib_imagehlp_main=yes
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13579 ac_cv_lib_imagehlp_main=no
13582 rm -f core conftest.err conftest.$ac_objext \
13583 conftest$ac_exeext conftest.$ac_ext
13584 LIBS=$ac_check_lib_save_LIBS
13586 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13587 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13588 if test $ac_cv_lib_imagehlp_main = yes; then
13589 cat >>confdefs.h <<_ACEOF
13590 #define HAVE_LIBIMAGEHLP 1
13593 LIBS="-limagehlp $LIBS"
13598 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13599 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13600 if test "${ac_cv_lib_psapi_main+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 ac_check_lib_save_LIBS=$LIBS
13604 LIBS="-lpsapi $LIBS"
13605 cat >conftest.$ac_ext <<_ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13621 rm -f conftest.$ac_objext conftest$ac_exeext
13622 if { (ac_try="$ac_link"
13623 case "(($ac_try" in
13624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_link") 2>conftest.er1
13630 grep -v '^ *+' conftest.er1 >conftest.err
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
13635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13636 { (case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_try") 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; } &&
13645 { ac_try='test -s conftest$ac_exeext'
13646 { (case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_try") 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
13655 ac_cv_lib_psapi_main=yes
13657 echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13660 ac_cv_lib_psapi_main=no
13663 rm -f core conftest.err conftest.$ac_objext \
13664 conftest$ac_exeext conftest.$ac_ext
13665 LIBS=$ac_check_lib_save_LIBS
13667 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13668 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13669 if test $ac_cv_lib_psapi_main = yes; then
13670 cat >>confdefs.h <<_ACEOF
13671 #define HAVE_LIBPSAPI 1
13674 LIBS="-lpsapi $LIBS"
13680 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13681 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13682 if test "${ac_cv_search_dlopen+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 ac_func_search_save_LIBS=$LIBS
13686 cat >conftest.$ac_ext <<_ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13693 /* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
13708 for ac_lib in '' dl; do
13709 if test -z "$ac_lib"; then
13710 ac_res="none required"
13713 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13715 rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (ac_try="$ac_link"
13717 case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_link") 2>conftest.er1
13724 grep -v '^ *+' conftest.er1 >conftest.err
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13730 { (case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735 (eval "$ac_try") 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } &&
13739 { ac_try='test -s conftest$ac_exeext'
13740 { (case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_try") 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }; then
13749 ac_cv_search_dlopen=$ac_res
13751 echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.$ac_ext >&5
13757 rm -f core conftest.err conftest.$ac_objext \
13759 if test "${ac_cv_search_dlopen+set}" = set; then
13763 if test "${ac_cv_search_dlopen+set}" = set; then
13766 ac_cv_search_dlopen=no
13768 rm conftest.$ac_ext
13769 LIBS=$ac_func_search_save_LIBS
13771 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13772 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13773 ac_res=$ac_cv_search_dlopen
13774 if test "$ac_res" != no; then
13775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13777 cat >>confdefs.h <<\_ACEOF
13778 #define HAVE_DLOPEN 1
13782 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13783 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13787 if test "$llvm_cv_enable_libffi" = "yes" ; then
13788 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13789 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13790 if test "${ac_cv_search_ffi_call+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 ac_func_search_save_LIBS=$LIBS
13794 cat >conftest.$ac_ext <<_ACEOF
13797 cat confdefs.h >>conftest.$ac_ext
13798 cat >>conftest.$ac_ext <<_ACEOF
13799 /* end confdefs.h. */
13801 /* Override any GCC internal prototype to avoid an error.
13802 Use char because int might match the return type of a GCC
13803 builtin and then its argument prototype would still apply. */
13811 return ffi_call ();
13816 for ac_lib in '' ffi; do
13817 if test -z "$ac_lib"; then
13818 ac_res="none required"
13821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13823 rm -f conftest.$ac_objext conftest$ac_exeext
13824 if { (ac_try="$ac_link"
13825 case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_link") 2>conftest.er1
13832 grep -v '^ *+' conftest.er1 >conftest.err
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13838 { (case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_try") 2>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest$ac_exeext'
13848 { (case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_try") 2>&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
13857 ac_cv_search_ffi_call=$ac_res
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13865 rm -f core conftest.err conftest.$ac_objext \
13867 if test "${ac_cv_search_ffi_call+set}" = set; then
13871 if test "${ac_cv_search_ffi_call+set}" = set; then
13874 ac_cv_search_ffi_call=no
13876 rm conftest.$ac_ext
13877 LIBS=$ac_func_search_save_LIBS
13879 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13880 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13881 ac_res=$ac_cv_search_ffi_call
13882 if test "$ac_res" != no; then
13883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13885 cat >>confdefs.h <<\_ACEOF
13886 #define HAVE_FFI_CALL 1
13890 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13891 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13892 { (exit 1); exit 1; }; }
13897 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13898 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13899 if test "${ac_cv_search_mallinfo+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 ac_func_search_save_LIBS=$LIBS
13903 cat >conftest.$ac_ext <<_ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h. */
13910 /* Override any GCC internal prototype to avoid an error.
13911 Use char because int might match the return type of a GCC
13912 builtin and then its argument prototype would still apply. */
13920 return mallinfo ();
13925 for ac_lib in '' malloc; do
13926 if test -z "$ac_lib"; then
13927 ac_res="none required"
13930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13932 rm -f conftest.$ac_objext conftest$ac_exeext
13933 if { (ac_try="$ac_link"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_link") 2>conftest.er1
13941 grep -v '^ *+' conftest.er1 >conftest.err
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13947 { (case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_try") 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; } &&
13956 { ac_try='test -s conftest$ac_exeext'
13957 { (case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_try") 2>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 ac_cv_search_mallinfo=$ac_res
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13974 rm -f core conftest.err conftest.$ac_objext \
13976 if test "${ac_cv_search_mallinfo+set}" = set; then
13980 if test "${ac_cv_search_mallinfo+set}" = set; then
13983 ac_cv_search_mallinfo=no
13985 rm conftest.$ac_ext
13986 LIBS=$ac_func_search_save_LIBS
13988 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13989 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13990 ac_res=$ac_cv_search_mallinfo
13991 if test "$ac_res" != no; then
13992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13994 cat >>confdefs.h <<\_ACEOF
13995 #define HAVE_MALLINFO 1
14001 if test "$ENABLE_THREADS" -eq 1 ; then
14003 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14004 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14005 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 ac_check_lib_save_LIBS=$LIBS
14009 LIBS="-lpthread $LIBS"
14010 cat >conftest.$ac_ext <<_ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14017 /* Override any GCC internal prototype to avoid an error.
14018 Use char because int might match the return type of a GCC
14019 builtin and then its argument prototype would still apply. */
14023 char pthread_mutex_init ();
14027 return pthread_mutex_init ();
14032 rm -f conftest.$ac_objext conftest$ac_exeext
14033 if { (ac_try="$ac_link"
14034 case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_link") 2>conftest.er1
14041 grep -v '^ *+' conftest.er1 >conftest.err
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14047 { (case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_try") 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest$ac_exeext'
14057 { (case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 ac_cv_lib_pthread_pthread_mutex_init=yes
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14071 ac_cv_lib_pthread_pthread_mutex_init=no
14074 rm -f core conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
14076 LIBS=$ac_check_lib_save_LIBS
14078 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14079 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14080 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14081 cat >>confdefs.h <<_ACEOF
14082 #define HAVE_LIBPTHREAD 1
14085 LIBS="-lpthread $LIBS"
14089 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14090 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14091 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14092 echo $ECHO_N "(cached) $ECHO_C" >&6
14094 ac_func_search_save_LIBS=$LIBS
14095 cat >conftest.$ac_ext <<_ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h. */
14102 /* Override any GCC internal prototype to avoid an error.
14103 Use char because int might match the return type of a GCC
14104 builtin and then its argument prototype would still apply. */
14108 char pthread_mutex_lock ();
14112 return pthread_mutex_lock ();
14117 for ac_lib in '' pthread; do
14118 if test -z "$ac_lib"; then
14119 ac_res="none required"
14122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_link") 2>conftest.er1
14133 grep -v '^ *+' conftest.er1 >conftest.err
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
14138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14139 { (case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_try") 2>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try='test -s conftest$ac_exeext'
14149 { (case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_try") 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
14158 ac_cv_search_pthread_mutex_lock=$ac_res
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14166 rm -f core conftest.err conftest.$ac_objext \
14168 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14172 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14175 ac_cv_search_pthread_mutex_lock=no
14177 rm conftest.$ac_ext
14178 LIBS=$ac_func_search_save_LIBS
14180 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14181 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14182 ac_res=$ac_cv_search_pthread_mutex_lock
14183 if test "$ac_res" != no; then
14184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14186 cat >>confdefs.h <<\_ACEOF
14187 #define HAVE_PTHREAD_MUTEX_LOCK 1
14192 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14193 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14194 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 ac_func_search_save_LIBS=$LIBS
14198 cat >conftest.$ac_ext <<_ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14205 /* Override any GCC internal prototype to avoid an error.
14206 Use char because int might match the return type of a GCC
14207 builtin and then its argument prototype would still apply. */
14211 char pthread_rwlock_init ();
14215 return pthread_rwlock_init ();
14220 for ac_lib in '' pthread; do
14221 if test -z "$ac_lib"; then
14222 ac_res="none required"
14225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14227 rm -f conftest.$ac_objext conftest$ac_exeext
14228 if { (ac_try="$ac_link"
14229 case "(($ac_try" in
14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_link") 2>conftest.er1
14236 grep -v '^ *+' conftest.er1 >conftest.err
14238 cat conftest.err >&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
14241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14242 { (case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_try") 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; } &&
14251 { ac_try='test -s conftest$ac_exeext'
14252 { (case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_try") 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_cv_search_pthread_rwlock_init=$ac_res
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14269 rm -f core conftest.err conftest.$ac_objext \
14271 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14275 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14278 ac_cv_search_pthread_rwlock_init=no
14280 rm conftest.$ac_ext
14281 LIBS=$ac_func_search_save_LIBS
14283 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14284 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14285 ac_res=$ac_cv_search_pthread_rwlock_init
14286 if test "$ac_res" != no; then
14287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14289 cat >>confdefs.h <<\_ACEOF
14290 #define HAVE_PTHREAD_RWLOCK_INIT 1
14295 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14296 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14297 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 ac_func_search_save_LIBS=$LIBS
14301 cat >conftest.$ac_ext <<_ACEOF
14304 cat confdefs.h >>conftest.$ac_ext
14305 cat >>conftest.$ac_ext <<_ACEOF
14306 /* end confdefs.h. */
14308 /* Override any GCC internal prototype to avoid an error.
14309 Use char because int might match the return type of a GCC
14310 builtin and then its argument prototype would still apply. */
14314 char pthread_getspecific ();
14318 return pthread_getspecific ();
14323 for ac_lib in '' pthread; do
14324 if test -z "$ac_lib"; then
14325 ac_res="none required"
14328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14330 rm -f conftest.$ac_objext conftest$ac_exeext
14331 if { (ac_try="$ac_link"
14332 case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_link") 2>conftest.er1
14339 grep -v '^ *+' conftest.er1 >conftest.err
14341 cat conftest.err >&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } &&
14344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14345 { (case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_try") 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest$ac_exeext'
14355 { (case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360 (eval "$ac_try") 2>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; }; then
14364 ac_cv_search_pthread_getspecific=$ac_res
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14372 rm -f core conftest.err conftest.$ac_objext \
14374 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14378 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14381 ac_cv_search_pthread_getspecific=no
14383 rm conftest.$ac_ext
14384 LIBS=$ac_func_search_save_LIBS
14386 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14387 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14388 ac_res=$ac_cv_search_pthread_getspecific
14389 if test "$ac_res" != no; then
14390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14392 cat >>confdefs.h <<\_ACEOF
14393 #define HAVE_PTHREAD_GETSPECIFIC 1
14401 # Check whether --with-udis86 was given.
14402 if test "${with_udis86+set}" = set; then
14403 withval=$with_udis86;
14408 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14411 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14412 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14413 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14414 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 ac_check_lib_save_LIBS=$LIBS
14417 LIBS="-ludis86 $LIBS"
14418 cat >conftest.$ac_ext <<_ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14425 /* Override any GCC internal prototype to avoid an error.
14426 Use char because int might match the return type of a GCC
14427 builtin and then its argument prototype would still apply. */
14440 rm -f conftest.$ac_objext conftest$ac_exeext
14441 if { (ac_try="$ac_link"
14442 case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_link") 2>conftest.er1
14449 grep -v '^ *+' conftest.er1 >conftest.err
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
14454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14455 { (case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_try") 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; } &&
14464 { ac_try='test -s conftest$ac_exeext'
14465 { (case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_try") 2>&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; }; then
14474 ac_cv_lib_udis86_ud_init=yes
14476 echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14479 ac_cv_lib_udis86_ud_init=no
14482 rm -f core conftest.err conftest.$ac_objext \
14483 conftest$ac_exeext conftest.$ac_ext
14484 LIBS=$ac_check_lib_save_LIBS
14486 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14487 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14488 if test $ac_cv_lib_udis86_ud_init = yes; then
14489 cat >>confdefs.h <<_ACEOF
14490 #define HAVE_LIBUDIS86 1
14493 LIBS="-ludis86 $LIBS"
14497 echo "Error! You need to have libudis86 around."
14509 cat >>confdefs.h <<_ACEOF
14510 #define USE_UDIS86 $USE_UDIS86
14515 # Check whether --with-oprofile was given.
14516 if test "${with_oprofile+set}" = set; then
14517 withval=$with_oprofile;
14521 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14522 no) llvm_cv_oppath=
14525 *) llvm_cv_oppath="${withval}/lib/oprofile"
14526 CPPFLAGS="-I${withval}/include";;
14528 if test -n "$llvm_cv_oppath" ; then
14529 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14530 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14531 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14532 if test "${ac_cv_search_bfd_init+set}" = set; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14535 ac_func_search_save_LIBS=$LIBS
14536 cat >conftest.$ac_ext <<_ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h. */
14543 /* Override any GCC internal prototype to avoid an error.
14544 Use char because int might match the return type of a GCC
14545 builtin and then its argument prototype would still apply. */
14553 return bfd_init ();
14558 for ac_lib in '' bfd; do
14559 if test -z "$ac_lib"; then
14560 ac_res="none required"
14563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14565 rm -f conftest.$ac_objext conftest$ac_exeext
14566 if { (ac_try="$ac_link"
14567 case "(($ac_try" in
14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569 *) ac_try_echo=$ac_try;;
14571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572 (eval "$ac_link") 2>conftest.er1
14574 grep -v '^ *+' conftest.er1 >conftest.err
14576 cat conftest.err >&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } &&
14579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14580 { (case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_try") 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; } &&
14589 { ac_try='test -s conftest$ac_exeext'
14590 { (case "(($ac_try" in
14591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592 *) ac_try_echo=$ac_try;;
14594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595 (eval "$ac_try") 2>&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); }; }; then
14599 ac_cv_search_bfd_init=$ac_res
14601 echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14607 rm -f core conftest.err conftest.$ac_objext \
14609 if test "${ac_cv_search_bfd_init+set}" = set; then
14613 if test "${ac_cv_search_bfd_init+set}" = set; then
14616 ac_cv_search_bfd_init=no
14618 rm conftest.$ac_ext
14619 LIBS=$ac_func_search_save_LIBS
14621 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14622 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14623 ac_res=$ac_cv_search_bfd_init
14624 if test "$ac_res" != no; then
14625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14629 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14630 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14631 if test "${ac_cv_search_op_open_agent+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14634 ac_func_search_save_LIBS=$LIBS
14635 cat >conftest.$ac_ext <<_ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14642 /* Override any GCC internal prototype to avoid an error.
14643 Use char because int might match the return type of a GCC
14644 builtin and then its argument prototype would still apply. */
14648 char op_open_agent ();
14652 return op_open_agent ();
14657 for ac_lib in '' opagent; do
14658 if test -z "$ac_lib"; then
14659 ac_res="none required"
14662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14664 rm -f conftest.$ac_objext conftest$ac_exeext
14665 if { (ac_try="$ac_link"
14666 case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_link") 2>conftest.er1
14673 grep -v '^ *+' conftest.er1 >conftest.err
14675 cat conftest.err >&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } &&
14678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14679 { (case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_try") 2>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; } &&
14688 { ac_try='test -s conftest$ac_exeext'
14689 { (case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_try") 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14698 ac_cv_search_op_open_agent=$ac_res
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14706 rm -f core conftest.err conftest.$ac_objext \
14708 if test "${ac_cv_search_op_open_agent+set}" = set; then
14712 if test "${ac_cv_search_op_open_agent+set}" = set; then
14715 ac_cv_search_op_open_agent=no
14717 rm conftest.$ac_ext
14718 LIBS=$ac_func_search_save_LIBS
14720 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14721 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14722 ac_res=$ac_cv_search_op_open_agent
14723 if test "$ac_res" != no; then
14724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14728 echo "Error! You need to have libopagent around."
14733 if test "${ac_cv_header_opagent_h+set}" = set; then
14734 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14735 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14736 if test "${ac_cv_header_opagent_h+set}" = set; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14740 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14742 # Is the header compilable?
14743 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14744 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14745 cat >conftest.$ac_ext <<_ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14751 $ac_includes_default
14752 #include <opagent.h>
14754 rm -f conftest.$ac_objext
14755 if { (ac_try="$ac_compile"
14756 case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_compile") 2>conftest.er1
14763 grep -v '^ *+' conftest.er1 >conftest.err
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14769 { (case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_try") 2>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } &&
14778 { ac_try='test -s conftest.$ac_objext'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_header_compiler=yes
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14793 ac_header_compiler=no
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14798 echo "${ECHO_T}$ac_header_compiler" >&6; }
14800 # Is the header present?
14801 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14802 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14803 cat >conftest.$ac_ext <<_ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 #include <opagent.h>
14811 if { (ac_try="$ac_cpp conftest.$ac_ext"
14812 case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14819 grep -v '^ *+' conftest.er1 >conftest.err
14821 cat conftest.err >&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } >/dev/null; then
14824 if test -s conftest.err; then
14825 ac_cpp_err=$ac_c_preproc_warn_flag
14826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14833 if test -z "$ac_cpp_err"; then
14834 ac_header_preproc=yes
14836 echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14839 ac_header_preproc=no
14842 rm -f conftest.err conftest.$ac_ext
14843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14844 echo "${ECHO_T}$ac_header_preproc" >&6; }
14846 # So? What about this header?
14847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14849 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14850 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14852 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14853 ac_header_preproc=yes
14856 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14857 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14859 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14861 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14863 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14865 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14867 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14869 ## ----------------------------------- ##
14870 ## Report this to llvmbugs@cs.uiuc.edu ##
14871 ## ----------------------------------- ##
14873 ) | sed "s/^/$as_me: WARNING: /" >&2
14876 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14877 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14878 if test "${ac_cv_header_opagent_h+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14881 ac_cv_header_opagent_h=$ac_header_preproc
14883 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14884 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14887 if test $ac_cv_header_opagent_h = yes; then
14891 echo "Error! You need to have opagent.h around."
14907 cat >>confdefs.h <<_ACEOF
14908 #define USE_OPROFILE $USE_OPROFILE
14918 ac_header_dirent=no
14919 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14920 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14921 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14922 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 cat >conftest.$ac_ext <<_ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14932 #include <sys/types.h>
14944 rm -f conftest.$ac_objext
14945 if { (ac_try="$ac_compile"
14946 case "(($ac_try" in
14947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948 *) ac_try_echo=$ac_try;;
14950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951 (eval "$ac_compile") 2>conftest.er1
14953 grep -v '^ *+' conftest.er1 >conftest.err
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } &&
14958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14959 { (case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_try") 2>&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; } &&
14968 { ac_try='test -s conftest.$ac_objext'
14969 { (case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974 (eval "$ac_try") 2>&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }; then
14978 eval "$as_ac_Header=yes"
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 eval "$as_ac_Header=no"
14986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988 ac_res=`eval echo '${'$as_ac_Header'}'`
14989 { echo "$as_me:$LINENO: result: $ac_res" >&5
14990 echo "${ECHO_T}$ac_res" >&6; }
14991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14992 cat >>confdefs.h <<_ACEOF
14993 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14996 ac_header_dirent=$ac_hdr; break
15000 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15001 if test $ac_header_dirent = dirent.h; then
15002 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15003 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15004 if test "${ac_cv_search_opendir+set}" = set; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 ac_func_search_save_LIBS=$LIBS
15008 cat >conftest.$ac_ext <<_ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15015 /* Override any GCC internal prototype to avoid an error.
15016 Use char because int might match the return type of a GCC
15017 builtin and then its argument prototype would still apply. */
15030 for ac_lib in '' dir; do
15031 if test -z "$ac_lib"; then
15032 ac_res="none required"
15035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (ac_try="$ac_link"
15039 case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044 (eval "$ac_link") 2>conftest.er1
15046 grep -v '^ *+' conftest.er1 >conftest.err
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15052 { (case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_try") 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; } &&
15061 { ac_try='test -s conftest$ac_exeext'
15062 { (case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_try") 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
15071 ac_cv_search_opendir=$ac_res
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15079 rm -f core conftest.err conftest.$ac_objext \
15081 if test "${ac_cv_search_opendir+set}" = set; then
15085 if test "${ac_cv_search_opendir+set}" = set; then
15088 ac_cv_search_opendir=no
15090 rm conftest.$ac_ext
15091 LIBS=$ac_func_search_save_LIBS
15093 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15094 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15095 ac_res=$ac_cv_search_opendir
15096 if test "$ac_res" != no; then
15097 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15102 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15103 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15104 if test "${ac_cv_search_opendir+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 ac_func_search_save_LIBS=$LIBS
15108 cat >conftest.$ac_ext <<_ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15115 /* Override any GCC internal prototype to avoid an error.
15116 Use char because int might match the return type of a GCC
15117 builtin and then its argument prototype would still apply. */
15130 for ac_lib in '' x; do
15131 if test -z "$ac_lib"; then
15132 ac_res="none required"
15135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15137 rm -f conftest.$ac_objext conftest$ac_exeext
15138 if { (ac_try="$ac_link"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_link") 2>conftest.er1
15146 grep -v '^ *+' conftest.er1 >conftest.err
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15152 { (case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_try") 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try='test -s conftest$ac_exeext'
15162 { (case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_try") 2>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_cv_search_opendir=$ac_res
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15179 rm -f core conftest.err conftest.$ac_objext \
15181 if test "${ac_cv_search_opendir+set}" = set; then
15185 if test "${ac_cv_search_opendir+set}" = set; then
15188 ac_cv_search_opendir=no
15190 rm conftest.$ac_ext
15191 LIBS=$ac_func_search_save_LIBS
15193 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15194 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15195 ac_res=$ac_cv_search_opendir
15196 if test "$ac_res" != no; then
15197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15203 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15204 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15205 if test "${ac_cv_header_mmap_anon+set}" = set; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15209 ac_cpp='$CPP $CPPFLAGS'
15210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15214 cat >conftest.$ac_ext <<_ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15220 #include <sys/mman.h>
15221 #include <unistd.h>
15226 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15231 rm -f conftest.$ac_objext
15232 if { (ac_try="$ac_compile"
15233 case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_compile") 2>conftest.er1
15240 grep -v '^ *+' conftest.er1 >conftest.err
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } &&
15245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15246 { (case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251 (eval "$ac_try") 2>&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; } &&
15255 { ac_try='test -s conftest.$ac_objext'
15256 { (case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261 (eval "$ac_try") 2>&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; }; then
15265 ac_cv_header_mmap_anon=yes
15267 echo "$as_me: failed program was:" >&5
15268 sed 's/^/| /' conftest.$ac_ext >&5
15270 ac_cv_header_mmap_anon=no
15273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15275 ac_cpp='$CPP $CPPFLAGS'
15276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15282 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15283 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15284 if test "$ac_cv_header_mmap_anon" = yes; then
15286 cat >>confdefs.h <<\_ACEOF
15287 #define HAVE_MMAP_ANONYMOUS 1
15292 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15293 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15294 if test "${ac_cv_header_stat_broken+set}" = set; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 cat >conftest.$ac_ext <<_ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h. */
15303 #include <sys/types.h>
15304 #include <sys/stat.h>
15306 #if defined S_ISBLK && defined S_IFDIR
15307 # if S_ISBLK (S_IFDIR)
15312 #if defined S_ISBLK && defined S_IFCHR
15313 # if S_ISBLK (S_IFCHR)
15318 #if defined S_ISLNK && defined S_IFREG
15319 # if S_ISLNK (S_IFREG)
15324 #if defined S_ISSOCK && defined S_IFREG
15325 # if S_ISSOCK (S_IFREG)
15331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15332 $EGREP "You lose" >/dev/null 2>&1; then
15333 ac_cv_header_stat_broken=yes
15335 ac_cv_header_stat_broken=no
15340 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15341 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15342 if test $ac_cv_header_stat_broken = yes; then
15344 cat >>confdefs.h <<\_ACEOF
15345 #define STAT_MACROS_BROKEN 1
15350 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15351 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15352 if test "${ac_cv_header_stdc+set}" = set; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15355 cat >conftest.$ac_ext <<_ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 #include <stdlib.h>
15362 #include <stdarg.h>
15363 #include <string.h>
15374 rm -f conftest.$ac_objext
15375 if { (ac_try="$ac_compile"
15376 case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_compile") 2>conftest.er1
15383 grep -v '^ *+' conftest.er1 >conftest.err
15385 cat conftest.err >&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } &&
15388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15389 { (case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_try") 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; } &&
15398 { ac_try='test -s conftest.$ac_objext'
15399 { (case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_try") 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
15408 ac_cv_header_stdc=yes
15410 echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15413 ac_cv_header_stdc=no
15416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418 if test $ac_cv_header_stdc = yes; then
15419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15420 cat >conftest.$ac_ext <<_ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 #include <string.h>
15429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15430 $EGREP "memchr" >/dev/null 2>&1; then
15433 ac_cv_header_stdc=no
15439 if test $ac_cv_header_stdc = yes; then
15440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15441 cat >conftest.$ac_ext <<_ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 #include <stdlib.h>
15450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15451 $EGREP "free" >/dev/null 2>&1; then
15454 ac_cv_header_stdc=no
15460 if test $ac_cv_header_stdc = yes; then
15461 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15462 if test "$cross_compiling" = yes; then
15465 cat >conftest.$ac_ext <<_ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15472 #include <stdlib.h>
15473 #if ((' ' & 0x0FF) == 0x020)
15474 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15475 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15477 # define ISLOWER(c) \
15478 (('a' <= (c) && (c) <= 'i') \
15479 || ('j' <= (c) && (c) <= 'r') \
15480 || ('s' <= (c) && (c) <= 'z'))
15481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15489 for (i = 0; i < 256; i++)
15490 if (XOR (islower (i), ISLOWER (i))
15491 || toupper (i) != TOUPPER (i))
15496 rm -f conftest$ac_exeext
15497 if { (ac_try="$ac_link"
15498 case "(($ac_try" in
15499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500 *) ac_try_echo=$ac_try;;
15502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503 (eval "$ac_link") 2>&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15507 { (case "(($ac_try" in
15508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509 *) ac_try_echo=$ac_try;;
15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512 (eval "$ac_try") 2>&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15518 echo "$as_me: program exited with status $ac_status" >&5
15519 echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15522 ( exit $ac_status )
15523 ac_cv_header_stdc=no
15525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15531 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15532 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15533 if test $ac_cv_header_stdc = yes; then
15535 cat >>confdefs.h <<\_ACEOF
15536 #define STDC_HEADERS 1
15541 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15542 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15543 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 cat >conftest.$ac_ext <<_ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 #include <sys/types.h>
15553 #include <sys/wait.h>
15554 #ifndef WEXITSTATUS
15555 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15558 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15566 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15571 rm -f conftest.$ac_objext
15572 if { (ac_try="$ac_compile"
15573 case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578 (eval "$ac_compile") 2>conftest.er1
15580 grep -v '^ *+' conftest.er1 >conftest.err
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15586 { (case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_try") 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; } &&
15595 { ac_try='test -s conftest.$ac_objext'
15596 { (case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_try") 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; }; then
15605 ac_cv_header_sys_wait_h=yes
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ac_cv_header_sys_wait_h=no
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15615 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15616 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15617 if test $ac_cv_header_sys_wait_h = yes; then
15619 cat >>confdefs.h <<\_ACEOF
15620 #define HAVE_SYS_WAIT_H 1
15625 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15626 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15627 if test "${ac_cv_header_time+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 cat >conftest.$ac_ext <<_ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 #include <sys/types.h>
15637 #include <sys/time.h>
15643 if ((struct tm *) 0)
15649 rm -f conftest.$ac_objext
15650 if { (ac_try="$ac_compile"
15651 case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656 (eval "$ac_compile") 2>conftest.er1
15658 grep -v '^ *+' conftest.er1 >conftest.err
15660 cat conftest.err >&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } &&
15663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15664 { (case "(($ac_try" in
15665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666 *) ac_try_echo=$ac_try;;
15668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669 (eval "$ac_try") 2>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; } &&
15673 { ac_try='test -s conftest.$ac_objext'
15674 { (case "(($ac_try" in
15675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676 *) ac_try_echo=$ac_try;;
15678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15679 (eval "$ac_try") 2>&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 ac_cv_header_time=yes
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15688 ac_cv_header_time=no
15691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15693 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15694 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15695 if test $ac_cv_header_time = yes; then
15697 cat >>confdefs.h <<\_ACEOF
15698 #define TIME_WITH_SYS_TIME 1
15710 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 ac_res=`eval echo '${'$as_ac_Header'}'`
15720 { echo "$as_me:$LINENO: result: $ac_res" >&5
15721 echo "${ECHO_T}$ac_res" >&6; }
15723 # Is the header compilable?
15724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15726 cat >conftest.$ac_ext <<_ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15732 $ac_includes_default
15733 #include <$ac_header>
15735 rm -f conftest.$ac_objext
15736 if { (ac_try="$ac_compile"
15737 case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_compile") 2>conftest.er1
15744 grep -v '^ *+' conftest.er1 >conftest.err
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15750 { (case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_try") 2>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; } &&
15759 { ac_try='test -s conftest.$ac_objext'
15760 { (case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_try") 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 ac_header_compiler=yes
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_header_compiler=no
15777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15779 echo "${ECHO_T}$ac_header_compiler" >&6; }
15781 # Is the header present?
15782 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15784 cat >conftest.$ac_ext <<_ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 #include <$ac_header>
15792 if { (ac_try="$ac_cpp conftest.$ac_ext"
15793 case "(($ac_try" in
15794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15800 grep -v '^ *+' conftest.er1 >conftest.err
15802 cat conftest.err >&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } >/dev/null; then
15805 if test -s conftest.err; then
15806 ac_cpp_err=$ac_c_preproc_warn_flag
15807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15814 if test -z "$ac_cpp_err"; then
15815 ac_header_preproc=yes
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_header_preproc=no
15823 rm -f conftest.err conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825 echo "${ECHO_T}$ac_header_preproc" >&6; }
15827 # So? What about this header?
15828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15834 ac_header_preproc=yes
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15850 ## ----------------------------------- ##
15851 ## Report this to llvmbugs@cs.uiuc.edu ##
15852 ## ----------------------------------- ##
15854 ) | sed "s/^/$as_me: WARNING: /" >&2
15857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15862 eval "$as_ac_Header=\$ac_header_preproc"
15864 ac_res=`eval echo '${'$as_ac_Header'}'`
15865 { echo "$as_me:$LINENO: result: $ac_res" >&5
15866 echo "${ECHO_T}$ac_res" >&6; }
15869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15870 cat >>confdefs.h <<_ACEOF
15871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15884 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15891 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 ac_res=`eval echo '${'$as_ac_Header'}'`
15894 { echo "$as_me:$LINENO: result: $ac_res" >&5
15895 echo "${ECHO_T}$ac_res" >&6; }
15897 # Is the header compilable?
15898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15900 cat >conftest.$ac_ext <<_ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h. */
15906 $ac_includes_default
15907 #include <$ac_header>
15909 rm -f conftest.$ac_objext
15910 if { (ac_try="$ac_compile"
15911 case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_compile") 2>conftest.er1
15918 grep -v '^ *+' conftest.er1 >conftest.err
15920 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15924 { (case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929 (eval "$ac_try") 2>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; } &&
15933 { ac_try='test -s conftest.$ac_objext'
15934 { (case "(($ac_try" in
15935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936 *) ac_try_echo=$ac_try;;
15938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15939 (eval "$ac_try") 2>&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; }; then
15943 ac_header_compiler=yes
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 ac_header_compiler=no
15951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15953 echo "${ECHO_T}$ac_header_compiler" >&6; }
15955 # Is the header present?
15956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15958 cat >conftest.$ac_ext <<_ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h. */
15964 #include <$ac_header>
15966 if { (ac_try="$ac_cpp conftest.$ac_ext"
15967 case "(($ac_try" in
15968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969 *) ac_try_echo=$ac_try;;
15971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15974 grep -v '^ *+' conftest.er1 >conftest.err
15976 cat conftest.err >&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } >/dev/null; then
15979 if test -s conftest.err; then
15980 ac_cpp_err=$ac_c_preproc_warn_flag
15981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15988 if test -z "$ac_cpp_err"; then
15989 ac_header_preproc=yes
15991 echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15994 ac_header_preproc=no
15997 rm -f conftest.err conftest.$ac_ext
15998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15999 echo "${ECHO_T}$ac_header_preproc" >&6; }
16001 # So? What about this header?
16002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16008 ac_header_preproc=yes
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16014 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16018 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16024 ## ----------------------------------- ##
16025 ## Report this to llvmbugs@cs.uiuc.edu ##
16026 ## ----------------------------------- ##
16028 ) | sed "s/^/$as_me: WARNING: /" >&2
16031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 eval "$as_ac_Header=\$ac_header_preproc"
16038 ac_res=`eval echo '${'$as_ac_Header'}'`
16039 { echo "$as_me:$LINENO: result: $ac_res" >&5
16040 echo "${ECHO_T}$ac_res" >&6; }
16043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16044 cat >>confdefs.h <<_ACEOF
16045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16054 for ac_header in utime.h windows.h
16056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 ac_res=`eval echo '${'$as_ac_Header'}'`
16064 { echo "$as_me:$LINENO: result: $ac_res" >&5
16065 echo "${ECHO_T}$ac_res" >&6; }
16067 # Is the header compilable?
16068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16070 cat >conftest.$ac_ext <<_ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h. */
16076 $ac_includes_default
16077 #include <$ac_header>
16079 rm -f conftest.$ac_objext
16080 if { (ac_try="$ac_compile"
16081 case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_compile") 2>conftest.er1
16088 grep -v '^ *+' conftest.er1 >conftest.err
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
16093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16094 { (case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_try") 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_try") 2>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; }; then
16113 ac_header_compiler=yes
16115 echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16118 ac_header_compiler=no
16121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16123 echo "${ECHO_T}$ac_header_compiler" >&6; }
16125 # Is the header present?
16126 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16128 cat >conftest.$ac_ext <<_ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h. */
16134 #include <$ac_header>
16136 if { (ac_try="$ac_cpp conftest.$ac_ext"
16137 case "(($ac_try" in
16138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139 *) ac_try_echo=$ac_try;;
16141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16144 grep -v '^ *+' conftest.er1 >conftest.err
16146 cat conftest.err >&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } >/dev/null; then
16149 if test -s conftest.err; then
16150 ac_cpp_err=$ac_c_preproc_warn_flag
16151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16158 if test -z "$ac_cpp_err"; then
16159 ac_header_preproc=yes
16161 echo "$as_me: failed program was:" >&5
16162 sed 's/^/| /' conftest.$ac_ext >&5
16164 ac_header_preproc=no
16167 rm -f conftest.err conftest.$ac_ext
16168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16169 echo "${ECHO_T}$ac_header_preproc" >&6; }
16171 # So? What about this header?
16172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16178 ac_header_preproc=yes
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16194 ## ----------------------------------- ##
16195 ## Report this to llvmbugs@cs.uiuc.edu ##
16196 ## ----------------------------------- ##
16198 ) | sed "s/^/$as_me: WARNING: /" >&2
16201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 eval "$as_ac_Header=\$ac_header_preproc"
16208 ac_res=`eval echo '${'$as_ac_Header'}'`
16209 { echo "$as_me:$LINENO: result: $ac_res" >&5
16210 echo "${ECHO_T}$ac_res" >&6; }
16213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16214 cat >>confdefs.h <<_ACEOF
16215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16226 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16233 echo $ECHO_N "(cached) $ECHO_C" >&6
16235 ac_res=`eval echo '${'$as_ac_Header'}'`
16236 { echo "$as_me:$LINENO: result: $ac_res" >&5
16237 echo "${ECHO_T}$ac_res" >&6; }
16239 # Is the header compilable?
16240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16242 cat >conftest.$ac_ext <<_ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 $ac_includes_default
16249 #include <$ac_header>
16251 rm -f conftest.$ac_objext
16252 if { (ac_try="$ac_compile"
16253 case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258 (eval "$ac_compile") 2>conftest.er1
16260 grep -v '^ *+' conftest.er1 >conftest.err
16262 cat conftest.err >&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } &&
16265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16266 { (case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_try") 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; } &&
16275 { ac_try='test -s conftest.$ac_objext'
16276 { (case "(($ac_try" in
16277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278 *) ac_try_echo=$ac_try;;
16280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281 (eval "$ac_try") 2>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; }; then
16285 ac_header_compiler=yes
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16290 ac_header_compiler=no
16293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16295 echo "${ECHO_T}$ac_header_compiler" >&6; }
16297 # Is the header present?
16298 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16300 cat >conftest.$ac_ext <<_ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h. */
16306 #include <$ac_header>
16308 if { (ac_try="$ac_cpp conftest.$ac_ext"
16309 case "(($ac_try" in
16310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311 *) ac_try_echo=$ac_try;;
16313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16316 grep -v '^ *+' conftest.er1 >conftest.err
16318 cat conftest.err >&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } >/dev/null; then
16321 if test -s conftest.err; then
16322 ac_cpp_err=$ac_c_preproc_warn_flag
16323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16330 if test -z "$ac_cpp_err"; then
16331 ac_header_preproc=yes
16333 echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16336 ac_header_preproc=no
16339 rm -f conftest.err conftest.$ac_ext
16340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16341 echo "${ECHO_T}$ac_header_preproc" >&6; }
16343 # So? What about this header?
16344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16350 ac_header_preproc=yes
16353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16366 ## ----------------------------------- ##
16367 ## Report this to llvmbugs@cs.uiuc.edu ##
16368 ## ----------------------------------- ##
16370 ) | sed "s/^/$as_me: WARNING: /" >&2
16373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16378 eval "$as_ac_Header=\$ac_header_preproc"
16380 ac_res=`eval echo '${'$as_ac_Header'}'`
16381 { echo "$as_me:$LINENO: result: $ac_res" >&5
16382 echo "${ECHO_T}$ac_res" >&6; }
16385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16386 cat >>confdefs.h <<_ACEOF
16387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16398 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16407 ac_res=`eval echo '${'$as_ac_Header'}'`
16408 { echo "$as_me:$LINENO: result: $ac_res" >&5
16409 echo "${ECHO_T}$ac_res" >&6; }
16411 # Is the header compilable?
16412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16414 cat >conftest.$ac_ext <<_ACEOF
16417 cat confdefs.h >>conftest.$ac_ext
16418 cat >>conftest.$ac_ext <<_ACEOF
16419 /* end confdefs.h. */
16420 $ac_includes_default
16421 #include <$ac_header>
16423 rm -f conftest.$ac_objext
16424 if { (ac_try="$ac_compile"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_compile") 2>conftest.er1
16432 grep -v '^ *+' conftest.er1 >conftest.err
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
16437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16438 { (case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_try") 2>&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; } &&
16447 { ac_try='test -s conftest.$ac_objext'
16448 { (case "(($ac_try" in
16449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450 *) ac_try_echo=$ac_try;;
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453 (eval "$ac_try") 2>&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; }; then
16457 ac_header_compiler=yes
16459 echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16462 ac_header_compiler=no
16465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16467 echo "${ECHO_T}$ac_header_compiler" >&6; }
16469 # Is the header present?
16470 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16472 cat >conftest.$ac_ext <<_ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16478 #include <$ac_header>
16480 if { (ac_try="$ac_cpp conftest.$ac_ext"
16481 case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16488 grep -v '^ *+' conftest.er1 >conftest.err
16490 cat conftest.err >&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } >/dev/null; then
16493 if test -s conftest.err; then
16494 ac_cpp_err=$ac_c_preproc_warn_flag
16495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16502 if test -z "$ac_cpp_err"; then
16503 ac_header_preproc=yes
16505 echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16508 ac_header_preproc=no
16511 rm -f conftest.err conftest.$ac_ext
16512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16513 echo "${ECHO_T}$ac_header_preproc" >&6; }
16515 # So? What about this header?
16516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16522 ac_header_preproc=yes
16525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16538 ## ----------------------------------- ##
16539 ## Report this to llvmbugs@cs.uiuc.edu ##
16540 ## ----------------------------------- ##
16542 ) | sed "s/^/$as_me: WARNING: /" >&2
16545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 eval "$as_ac_Header=\$ac_header_preproc"
16552 ac_res=`eval echo '${'$as_ac_Header'}'`
16553 { echo "$as_me:$LINENO: result: $ac_res" >&5
16554 echo "${ECHO_T}$ac_res" >&6; }
16557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16558 cat >>confdefs.h <<_ACEOF
16559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16567 for ac_header in valgrind/valgrind.h
16569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16576 ac_res=`eval echo '${'$as_ac_Header'}'`
16577 { echo "$as_me:$LINENO: result: $ac_res" >&5
16578 echo "${ECHO_T}$ac_res" >&6; }
16580 # Is the header compilable?
16581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16583 cat >conftest.$ac_ext <<_ACEOF
16586 cat confdefs.h >>conftest.$ac_ext
16587 cat >>conftest.$ac_ext <<_ACEOF
16588 /* end confdefs.h. */
16589 $ac_includes_default
16590 #include <$ac_header>
16592 rm -f conftest.$ac_objext
16593 if { (ac_try="$ac_compile"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_compile") 2>conftest.er1
16601 grep -v '^ *+' conftest.er1 >conftest.err
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
16606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16607 { (case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_try") 2>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; } &&
16616 { ac_try='test -s conftest.$ac_objext'
16617 { (case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_try") 2>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_header_compiler=yes
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 ac_header_compiler=no
16634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16636 echo "${ECHO_T}$ac_header_compiler" >&6; }
16638 # Is the header present?
16639 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16641 cat >conftest.$ac_ext <<_ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 #include <$ac_header>
16649 if { (ac_try="$ac_cpp conftest.$ac_ext"
16650 case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16657 grep -v '^ *+' conftest.er1 >conftest.err
16659 cat conftest.err >&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); } >/dev/null; then
16662 if test -s conftest.err; then
16663 ac_cpp_err=$ac_c_preproc_warn_flag
16664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16671 if test -z "$ac_cpp_err"; then
16672 ac_header_preproc=yes
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 ac_header_preproc=no
16680 rm -f conftest.err conftest.$ac_ext
16681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16682 echo "${ECHO_T}$ac_header_preproc" >&6; }
16684 # So? What about this header?
16685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16691 ac_header_preproc=yes
16694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16707 ## ----------------------------------- ##
16708 ## Report this to llvmbugs@cs.uiuc.edu ##
16709 ## ----------------------------------- ##
16711 ) | sed "s/^/$as_me: WARNING: /" >&2
16714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16717 echo $ECHO_N "(cached) $ECHO_C" >&6
16719 eval "$as_ac_Header=\$ac_header_preproc"
16721 ac_res=`eval echo '${'$as_ac_Header'}'`
16722 { echo "$as_me:$LINENO: result: $ac_res" >&5
16723 echo "${ECHO_T}$ac_res" >&6; }
16726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16727 cat >>confdefs.h <<_ACEOF
16728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16736 for ac_header in fenv.h
16738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 ac_res=`eval echo '${'$as_ac_Header'}'`
16746 { echo "$as_me:$LINENO: result: $ac_res" >&5
16747 echo "${ECHO_T}$ac_res" >&6; }
16749 # Is the header compilable?
16750 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16752 cat >conftest.$ac_ext <<_ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16758 $ac_includes_default
16759 #include <$ac_header>
16761 rm -f conftest.$ac_objext
16762 if { (ac_try="$ac_compile"
16763 case "(($ac_try" in
16764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765 *) ac_try_echo=$ac_try;;
16767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768 (eval "$ac_compile") 2>conftest.er1
16770 grep -v '^ *+' conftest.er1 >conftest.err
16772 cat conftest.err >&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } &&
16775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16776 { (case "(($ac_try" in
16777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778 *) ac_try_echo=$ac_try;;
16780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781 (eval "$ac_try") 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; } &&
16785 { ac_try='test -s conftest.$ac_objext'
16786 { (case "(($ac_try" in
16787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_try") 2>&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; }; then
16795 ac_header_compiler=yes
16797 echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16800 ac_header_compiler=no
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16805 echo "${ECHO_T}$ac_header_compiler" >&6; }
16807 # Is the header present?
16808 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16810 cat >conftest.$ac_ext <<_ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816 #include <$ac_header>
16818 if { (ac_try="$ac_cpp conftest.$ac_ext"
16819 case "(($ac_try" in
16820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821 *) ac_try_echo=$ac_try;;
16823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16826 grep -v '^ *+' conftest.er1 >conftest.err
16828 cat conftest.err >&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } >/dev/null; then
16831 if test -s conftest.err; then
16832 ac_cpp_err=$ac_c_preproc_warn_flag
16833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16840 if test -z "$ac_cpp_err"; then
16841 ac_header_preproc=yes
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16846 ac_header_preproc=no
16849 rm -f conftest.err conftest.$ac_ext
16850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16851 echo "${ECHO_T}$ac_header_preproc" >&6; }
16853 # So? What about this header?
16854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16860 ac_header_preproc=yes
16863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16876 ## ----------------------------------- ##
16877 ## Report this to llvmbugs@cs.uiuc.edu ##
16878 ## ----------------------------------- ##
16880 ) | sed "s/^/$as_me: WARNING: /" >&2
16883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16888 eval "$as_ac_Header=\$ac_header_preproc"
16890 ac_res=`eval echo '${'$as_ac_Header'}'`
16891 { echo "$as_me:$LINENO: result: $ac_res" >&5
16892 echo "${ECHO_T}$ac_res" >&6; }
16895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16896 cat >>confdefs.h <<_ACEOF
16897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16904 if test "$ENABLE_THREADS" -eq 1 ; then
16906 for ac_header in pthread.h
16908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16915 ac_res=`eval echo '${'$as_ac_Header'}'`
16916 { echo "$as_me:$LINENO: result: $ac_res" >&5
16917 echo "${ECHO_T}$ac_res" >&6; }
16919 # Is the header compilable?
16920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16922 cat >conftest.$ac_ext <<_ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 $ac_includes_default
16929 #include <$ac_header>
16931 rm -f conftest.$ac_objext
16932 if { (ac_try="$ac_compile"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_compile") 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest.$ac_objext'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 ac_header_compiler=yes
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 ac_header_compiler=no
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16975 echo "${ECHO_T}$ac_header_compiler" >&6; }
16977 # Is the header present?
16978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16980 cat >conftest.$ac_ext <<_ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
16986 #include <$ac_header>
16988 if { (ac_try="$ac_cpp conftest.$ac_ext"
16989 case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16996 grep -v '^ *+' conftest.er1 >conftest.err
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } >/dev/null; then
17001 if test -s conftest.err; then
17002 ac_cpp_err=$ac_c_preproc_warn_flag
17003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17010 if test -z "$ac_cpp_err"; then
17011 ac_header_preproc=yes
17013 echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17016 ac_header_preproc=no
17019 rm -f conftest.err conftest.$ac_ext
17020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17021 echo "${ECHO_T}$ac_header_preproc" >&6; }
17023 # So? What about this header?
17024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17030 ac_header_preproc=yes
17033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17046 ## ----------------------------------- ##
17047 ## Report this to llvmbugs@cs.uiuc.edu ##
17048 ## ----------------------------------- ##
17050 ) | sed "s/^/$as_me: WARNING: /" >&2
17053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17056 echo $ECHO_N "(cached) $ECHO_C" >&6
17058 eval "$as_ac_Header=\$ac_header_preproc"
17060 ac_res=`eval echo '${'$as_ac_Header'}'`
17061 { echo "$as_me:$LINENO: result: $ac_res" >&5
17062 echo "${ECHO_T}$ac_res" >&6; }
17065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17066 cat >>confdefs.h <<_ACEOF
17067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17083 if test "$llvm_cv_enable_libffi" = "yes" ; then
17086 for ac_header in ffi.h ffi/ffi.h
17088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 ac_res=`eval echo '${'$as_ac_Header'}'`
17096 { echo "$as_me:$LINENO: result: $ac_res" >&5
17097 echo "${ECHO_T}$ac_res" >&6; }
17099 # Is the header compilable?
17100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17102 cat >conftest.$ac_ext <<_ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108 $ac_includes_default
17109 #include <$ac_header>
17111 rm -f conftest.$ac_objext
17112 if { (ac_try="$ac_compile"
17113 case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_compile") 2>conftest.er1
17120 grep -v '^ *+' conftest.er1 >conftest.err
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } &&
17125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17126 { (case "(($ac_try" in
17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128 *) ac_try_echo=$ac_try;;
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131 (eval "$ac_try") 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } &&
17135 { ac_try='test -s conftest.$ac_objext'
17136 { (case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_try") 2>&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 ac_header_compiler=yes
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17150 ac_header_compiler=no
17153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17155 echo "${ECHO_T}$ac_header_compiler" >&6; }
17157 # Is the header present?
17158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17160 cat >conftest.$ac_ext <<_ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166 #include <$ac_header>
17168 if { (ac_try="$ac_cpp conftest.$ac_ext"
17169 case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17176 grep -v '^ *+' conftest.er1 >conftest.err
17178 cat conftest.err >&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } >/dev/null; then
17181 if test -s conftest.err; then
17182 ac_cpp_err=$ac_c_preproc_warn_flag
17183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17190 if test -z "$ac_cpp_err"; then
17191 ac_header_preproc=yes
17193 echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17196 ac_header_preproc=no
17199 rm -f conftest.err conftest.$ac_ext
17200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17201 echo "${ECHO_T}$ac_header_preproc" >&6; }
17203 # So? What about this header?
17204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17210 ac_header_preproc=yes
17213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17226 ## ----------------------------------- ##
17227 ## Report this to llvmbugs@cs.uiuc.edu ##
17228 ## ----------------------------------- ##
17230 ) | sed "s/^/$as_me: WARNING: /" >&2
17233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 eval "$as_ac_Header=\$ac_header_preproc"
17240 ac_res=`eval echo '${'$as_ac_Header'}'`
17241 { echo "$as_me:$LINENO: result: $ac_res" >&5
17242 echo "${ECHO_T}$ac_res" >&6; }
17245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17246 cat >>confdefs.h <<_ACEOF
17247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17257 for ac_header in CrashReporterClient.h
17259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17264 echo $ECHO_N "(cached) $ECHO_C" >&6
17266 ac_res=`eval echo '${'$as_ac_Header'}'`
17267 { echo "$as_me:$LINENO: result: $ac_res" >&5
17268 echo "${ECHO_T}$ac_res" >&6; }
17270 # Is the header compilable?
17271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17273 cat >conftest.$ac_ext <<_ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h. */
17279 $ac_includes_default
17280 #include <$ac_header>
17282 rm -f conftest.$ac_objext
17283 if { (ac_try="$ac_compile"
17284 case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_compile") 2>conftest.er1
17291 grep -v '^ *+' conftest.er1 >conftest.err
17293 cat conftest.err >&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } &&
17296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17297 { (case "(($ac_try" in
17298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299 *) ac_try_echo=$ac_try;;
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302 (eval "$ac_try") 2>&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; } &&
17306 { ac_try='test -s conftest.$ac_objext'
17307 { (case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_try") 2>&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; }; then
17316 ac_header_compiler=yes
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17321 ac_header_compiler=no
17324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17326 echo "${ECHO_T}$ac_header_compiler" >&6; }
17328 # Is the header present?
17329 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17331 cat >conftest.$ac_ext <<_ACEOF
17334 cat confdefs.h >>conftest.$ac_ext
17335 cat >>conftest.$ac_ext <<_ACEOF
17336 /* end confdefs.h. */
17337 #include <$ac_header>
17339 if { (ac_try="$ac_cpp conftest.$ac_ext"
17340 case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17347 grep -v '^ *+' conftest.er1 >conftest.err
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } >/dev/null; then
17352 if test -s conftest.err; then
17353 ac_cpp_err=$ac_c_preproc_warn_flag
17354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17361 if test -z "$ac_cpp_err"; then
17362 ac_header_preproc=yes
17364 echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17367 ac_header_preproc=no
17370 rm -f conftest.err conftest.$ac_ext
17371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17372 echo "${ECHO_T}$ac_header_preproc" >&6; }
17374 # So? What about this header?
17375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17381 ac_header_preproc=yes
17384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17397 ## ----------------------------------- ##
17398 ## Report this to llvmbugs@cs.uiuc.edu ##
17399 ## ----------------------------------- ##
17401 ) | sed "s/^/$as_me: WARNING: /" >&2
17404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 eval "$as_ac_Header=\$ac_header_preproc"
17411 ac_res=`eval echo '${'$as_ac_Header'}'`
17412 { echo "$as_me:$LINENO: result: $ac_res" >&5
17413 echo "${ECHO_T}$ac_res" >&6; }
17416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17417 cat >>confdefs.h <<_ACEOF
17418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17429 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17430 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17431 if test "${ac_cv_huge_val_sanity+set}" = set; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
17436 ac_cpp='$CXXCPP $CPPFLAGS'
17437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17441 ac_save_CXXFLAGS=$CXXFLAGS
17443 if test "$cross_compiling" = yes; then
17444 ac_cv_huge_val_sanity=yes
17446 cat >conftest.$ac_ext <<_ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17456 double x = HUGE_VAL; return x != x;
17461 rm -f conftest$ac_exeext
17462 if { (ac_try="$ac_link"
17463 case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_link") 2>&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17472 { (case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_try") 2>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17481 ac_cv_huge_val_sanity=yes
17483 echo "$as_me: program exited with status $ac_status" >&5
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17487 ( exit $ac_status )
17488 ac_cv_huge_val_sanity=no
17490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17494 CXXFLAGS=$ac_save_CXXFLAGS
17496 ac_cpp='$CPP $CPPFLAGS'
17497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17503 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17504 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17505 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17508 { echo "$as_me:$LINENO: checking for pid_t" >&5
17509 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17510 if test "${ac_cv_type_pid_t+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 cat >conftest.$ac_ext <<_ACEOF
17516 cat confdefs.h >>conftest.$ac_ext
17517 cat >>conftest.$ac_ext <<_ACEOF
17518 /* end confdefs.h. */
17519 $ac_includes_default
17520 typedef pid_t ac__type_new_;
17524 if ((ac__type_new_ *) 0)
17526 if (sizeof (ac__type_new_))
17532 rm -f conftest.$ac_objext
17533 if { (ac_try="$ac_compile"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_compile") 2>conftest.er1
17541 grep -v '^ *+' conftest.er1 >conftest.err
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; } &&
17556 { ac_try='test -s conftest.$ac_objext'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 ac_cv_type_pid_t=yes
17568 echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17571 ac_cv_type_pid_t=no
17574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17576 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17577 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17578 if test $ac_cv_type_pid_t = yes; then
17582 cat >>confdefs.h <<_ACEOF
17588 { echo "$as_me:$LINENO: checking for size_t" >&5
17589 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17590 if test "${ac_cv_type_size_t+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 cat >conftest.$ac_ext <<_ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599 $ac_includes_default
17600 typedef size_t ac__type_new_;
17604 if ((ac__type_new_ *) 0)
17606 if (sizeof (ac__type_new_))
17612 rm -f conftest.$ac_objext
17613 if { (ac_try="$ac_compile"
17614 case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_compile") 2>conftest.er1
17621 grep -v '^ *+' conftest.er1 >conftest.err
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17627 { (case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_try") 2>&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; } &&
17636 { ac_try='test -s conftest.$ac_objext'
17637 { (case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_try") 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_type_size_t=yes
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17651 ac_cv_type_size_t=no
17654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17656 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17657 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17658 if test $ac_cv_type_size_t = yes; then
17662 cat >>confdefs.h <<_ACEOF
17663 #define size_t unsigned int
17669 cat >>confdefs.h <<_ACEOF
17670 #define RETSIGTYPE void
17673 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17674 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17675 if test "${ac_cv_struct_tm+set}" = set; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
17678 cat >conftest.$ac_ext <<_ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 #include <sys/types.h>
17690 struct tm *tp; tp->tm_sec;
17695 rm -f conftest.$ac_objext
17696 if { (ac_try="$ac_compile"
17697 case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_compile") 2>conftest.er1
17704 grep -v '^ *+' conftest.er1 >conftest.err
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
17709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17710 { (case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_try") 2>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest.$ac_objext'
17720 { (case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_try") 2>&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
17729 ac_cv_struct_tm=time.h
17731 echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17734 ac_cv_struct_tm=sys/time.h
17737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17740 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17741 if test $ac_cv_struct_tm = sys/time.h; then
17743 cat >>confdefs.h <<\_ACEOF
17744 #define TM_IN_SYS_TIME 1
17749 { echo "$as_me:$LINENO: checking for int64_t" >&5
17750 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17751 if test "${ac_cv_type_int64_t+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 cat >conftest.$ac_ext <<_ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17760 $ac_includes_default
17761 typedef int64_t ac__type_new_;
17765 if ((ac__type_new_ *) 0)
17767 if (sizeof (ac__type_new_))
17773 rm -f conftest.$ac_objext
17774 if { (ac_try="$ac_compile"
17775 case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_compile") 2>conftest.er1
17782 grep -v '^ *+' conftest.er1 >conftest.err
17784 cat conftest.err >&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
17787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17788 { (case "(($ac_try" in
17789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17790 *) ac_try_echo=$ac_try;;
17792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17793 (eval "$ac_try") 2>&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; } &&
17797 { ac_try='test -s conftest.$ac_objext'
17798 { (case "(($ac_try" in
17799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17800 *) ac_try_echo=$ac_try;;
17802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17803 (eval "$ac_try") 2>&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }; }; then
17807 ac_cv_type_int64_t=yes
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 ac_cv_type_int64_t=no
17815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17817 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17818 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17819 if test $ac_cv_type_int64_t = yes; then
17821 cat >>confdefs.h <<_ACEOF
17822 #define HAVE_INT64_T 1
17827 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17828 echo "$as_me: error: Type int64_t required but not found" >&2;}
17829 { (exit 1); exit 1; }; }
17832 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17833 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17834 if test "${ac_cv_type_uint64_t+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 cat >conftest.$ac_ext <<_ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17843 $ac_includes_default
17844 typedef uint64_t ac__type_new_;
17848 if ((ac__type_new_ *) 0)
17850 if (sizeof (ac__type_new_))
17856 rm -f conftest.$ac_objext
17857 if { (ac_try="$ac_compile"
17858 case "(($ac_try" in
17859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860 *) ac_try_echo=$ac_try;;
17862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863 (eval "$ac_compile") 2>conftest.er1
17865 grep -v '^ *+' conftest.er1 >conftest.err
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } &&
17870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17871 { (case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_try") 2>&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; } &&
17880 { ac_try='test -s conftest.$ac_objext'
17881 { (case "(($ac_try" in
17882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883 *) ac_try_echo=$ac_try;;
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886 (eval "$ac_try") 2>&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; }; then
17890 ac_cv_type_uint64_t=yes
17892 echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17895 ac_cv_type_uint64_t=no
17898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17900 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17901 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17902 if test $ac_cv_type_uint64_t = yes; then
17904 cat >>confdefs.h <<_ACEOF
17905 #define HAVE_UINT64_T 1
17910 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17911 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17912 if test "${ac_cv_type_u_int64_t+set}" = set; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 cat >conftest.$ac_ext <<_ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h. */
17921 $ac_includes_default
17922 typedef u_int64_t ac__type_new_;
17926 if ((ac__type_new_ *) 0)
17928 if (sizeof (ac__type_new_))
17934 rm -f conftest.$ac_objext
17935 if { (ac_try="$ac_compile"
17936 case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_compile") 2>conftest.er1
17943 grep -v '^ *+' conftest.er1 >conftest.err
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
17948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17949 { (case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_try") 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; } &&
17958 { ac_try='test -s conftest.$ac_objext'
17959 { (case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964 (eval "$ac_try") 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 ac_cv_type_u_int64_t=yes
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 ac_cv_type_u_int64_t=no
17976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17978 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17979 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17980 if test $ac_cv_type_u_int64_t = yes; then
17982 cat >>confdefs.h <<_ACEOF
17983 #define HAVE_U_INT64_T 1
17988 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17989 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17990 { (exit 1); exit 1; }; }
18004 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18010 echo $ECHO_N "(cached) $ECHO_C" >&6
18012 cat >conftest.$ac_ext <<_ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h. */
18018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18020 #define $ac_func innocuous_$ac_func
18022 /* System header to define __stub macros and hopefully few prototypes,
18023 which can conflict with char $ac_func (); below.
18024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18025 <limits.h> exists even on freestanding compilers. */
18028 # include <limits.h>
18030 # include <assert.h>
18035 /* Override any GCC internal prototype to avoid an error.
18036 Use char because int might match the return type of a GCC
18037 builtin and then its argument prototype would still apply. */
18042 /* The GNU C library defines this for functions which it implements
18043 to always fail with ENOSYS. Some functions are actually named
18044 something starting with __ and the normal name is an alias. */
18045 #if defined __stub_$ac_func || defined __stub___$ac_func
18052 return $ac_func ();
18057 rm -f conftest.$ac_objext conftest$ac_exeext
18058 if { (ac_try="$ac_link"
18059 case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_link") 2>conftest.er1
18066 grep -v '^ *+' conftest.er1 >conftest.err
18068 cat conftest.err >&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
18071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18072 { (case "(($ac_try" in
18073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077 (eval "$ac_try") 2>&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; } &&
18081 { ac_try='test -s conftest$ac_exeext'
18082 { (case "(($ac_try" in
18083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084 *) ac_try_echo=$ac_try;;
18086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087 (eval "$ac_try") 2>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091 eval "$as_ac_var=yes"
18093 echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18096 eval "$as_ac_var=no"
18099 rm -f core conftest.err conftest.$ac_objext \
18100 conftest$ac_exeext conftest.$ac_ext
18102 ac_res=`eval echo '${'$as_ac_var'}'`
18103 { echo "$as_me:$LINENO: result: $ac_res" >&5
18104 echo "${ECHO_T}$ac_res" >&6; }
18105 if test `eval echo '${'$as_ac_var'}'` = yes; then
18106 cat >>confdefs.h <<_ACEOF
18107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18117 for ac_func in powf fmodf strtof round
18119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18125 cat >conftest.$ac_ext <<_ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18133 #define $ac_func innocuous_$ac_func
18135 /* System header to define __stub macros and hopefully few prototypes,
18136 which can conflict with char $ac_func (); below.
18137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18138 <limits.h> exists even on freestanding compilers. */
18141 # include <limits.h>
18143 # include <assert.h>
18148 /* Override any GCC internal prototype to avoid an error.
18149 Use char because int might match the return type of a GCC
18150 builtin and then its argument prototype would still apply. */
18155 /* The GNU C library defines this for functions which it implements
18156 to always fail with ENOSYS. Some functions are actually named
18157 something starting with __ and the normal name is an alias. */
18158 #if defined __stub_$ac_func || defined __stub___$ac_func
18165 return $ac_func ();
18170 rm -f conftest.$ac_objext conftest$ac_exeext
18171 if { (ac_try="$ac_link"
18172 case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_link") 2>conftest.er1
18179 grep -v '^ *+' conftest.er1 >conftest.err
18181 cat conftest.err >&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
18184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18185 { (case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_try") 2>&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; } &&
18194 { ac_try='test -s conftest$ac_exeext'
18195 { (case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_try") 2>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; }; then
18204 eval "$as_ac_var=yes"
18206 echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18209 eval "$as_ac_var=no"
18212 rm -f core conftest.err conftest.$ac_objext \
18213 conftest$ac_exeext conftest.$ac_ext
18215 ac_res=`eval echo '${'$as_ac_var'}'`
18216 { echo "$as_me:$LINENO: result: $ac_res" >&5
18217 echo "${ECHO_T}$ac_res" >&6; }
18218 if test `eval echo '${'$as_ac_var'}'` = yes; then
18219 cat >>confdefs.h <<_ACEOF
18220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18231 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 cat >conftest.$ac_ext <<_ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h. */
18245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18247 #define $ac_func innocuous_$ac_func
18249 /* System header to define __stub macros and hopefully few prototypes,
18250 which can conflict with char $ac_func (); below.
18251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18252 <limits.h> exists even on freestanding compilers. */
18255 # include <limits.h>
18257 # include <assert.h>
18262 /* Override any GCC internal prototype to avoid an error.
18263 Use char because int might match the return type of a GCC
18264 builtin and then its argument prototype would still apply. */
18269 /* The GNU C library defines this for functions which it implements
18270 to always fail with ENOSYS. Some functions are actually named
18271 something starting with __ and the normal name is an alias. */
18272 #if defined __stub_$ac_func || defined __stub___$ac_func
18279 return $ac_func ();
18284 rm -f conftest.$ac_objext conftest$ac_exeext
18285 if { (ac_try="$ac_link"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_link") 2>conftest.er1
18293 grep -v '^ *+' conftest.er1 >conftest.err
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } &&
18298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18299 { (case "(($ac_try" in
18300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301 *) ac_try_echo=$ac_try;;
18303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18304 (eval "$ac_try") 2>&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; } &&
18308 { ac_try='test -s conftest$ac_exeext'
18309 { (case "(($ac_try" in
18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311 *) ac_try_echo=$ac_try;;
18313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314 (eval "$ac_try") 2>&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 eval "$as_ac_var=yes"
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18323 eval "$as_ac_var=no"
18326 rm -f core conftest.err conftest.$ac_objext \
18327 conftest$ac_exeext conftest.$ac_ext
18329 ac_res=`eval echo '${'$as_ac_var'}'`
18330 { echo "$as_me:$LINENO: result: $ac_res" >&5
18331 echo "${ECHO_T}$ac_res" >&6; }
18332 if test `eval echo '${'$as_ac_var'}'` = yes; then
18333 cat >>confdefs.h <<_ACEOF
18334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18343 for ac_func in isatty mkdtemp mkstemp
18345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18351 cat >conftest.$ac_ext <<_ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18359 #define $ac_func innocuous_$ac_func
18361 /* System header to define __stub macros and hopefully few prototypes,
18362 which can conflict with char $ac_func (); below.
18363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18364 <limits.h> exists even on freestanding compilers. */
18367 # include <limits.h>
18369 # include <assert.h>
18374 /* Override any GCC internal prototype to avoid an error.
18375 Use char because int might match the return type of a GCC
18376 builtin and then its argument prototype would still apply. */
18381 /* The GNU C library defines this for functions which it implements
18382 to always fail with ENOSYS. Some functions are actually named
18383 something starting with __ and the normal name is an alias. */
18384 #if defined __stub_$ac_func || defined __stub___$ac_func
18391 return $ac_func ();
18396 rm -f conftest.$ac_objext conftest$ac_exeext
18397 if { (ac_try="$ac_link"
18398 case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_link") 2>conftest.er1
18405 grep -v '^ *+' conftest.er1 >conftest.err
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18411 { (case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_try") 2>&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest$ac_exeext'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 eval "$as_ac_var=yes"
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 eval "$as_ac_var=no"
18438 rm -f core conftest.err conftest.$ac_objext \
18439 conftest$ac_exeext conftest.$ac_ext
18441 ac_res=`eval echo '${'$as_ac_var'}'`
18442 { echo "$as_me:$LINENO: result: $ac_res" >&5
18443 echo "${ECHO_T}$ac_res" >&6; }
18444 if test `eval echo '${'$as_ac_var'}'` = yes; then
18445 cat >>confdefs.h <<_ACEOF
18446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18458 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18464 echo $ECHO_N "(cached) $ECHO_C" >&6
18466 cat >conftest.$ac_ext <<_ACEOF
18469 cat confdefs.h >>conftest.$ac_ext
18470 cat >>conftest.$ac_ext <<_ACEOF
18471 /* end confdefs.h. */
18472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18474 #define $ac_func innocuous_$ac_func
18476 /* System header to define __stub macros and hopefully few prototypes,
18477 which can conflict with char $ac_func (); below.
18478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18479 <limits.h> exists even on freestanding compilers. */
18482 # include <limits.h>
18484 # include <assert.h>
18489 /* Override any GCC internal prototype to avoid an error.
18490 Use char because int might match the return type of a GCC
18491 builtin and then its argument prototype would still apply. */
18496 /* The GNU C library defines this for functions which it implements
18497 to always fail with ENOSYS. Some functions are actually named
18498 something starting with __ and the normal name is an alias. */
18499 #if defined __stub_$ac_func || defined __stub___$ac_func
18506 return $ac_func ();
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (ac_try="$ac_link"
18513 case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_link") 2>conftest.er1
18520 grep -v '^ *+' conftest.er1 >conftest.err
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
18525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18526 { (case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_try") 2>&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; } &&
18535 { ac_try='test -s conftest$ac_exeext'
18536 { (case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_try") 2>&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 eval "$as_ac_var=yes"
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18550 eval "$as_ac_var=no"
18553 rm -f core conftest.err conftest.$ac_objext \
18554 conftest$ac_exeext conftest.$ac_ext
18556 ac_res=`eval echo '${'$as_ac_var'}'`
18557 { echo "$as_me:$LINENO: result: $ac_res" >&5
18558 echo "${ECHO_T}$ac_res" >&6; }
18559 if test `eval echo '${'$as_ac_var'}'` = yes; then
18560 cat >>confdefs.h <<_ACEOF
18561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18571 for ac_func in strerror strerror_r strerror_s setenv
18573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18579 cat >conftest.$ac_ext <<_ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18587 #define $ac_func innocuous_$ac_func
18589 /* System header to define __stub macros and hopefully few prototypes,
18590 which can conflict with char $ac_func (); below.
18591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18592 <limits.h> exists even on freestanding compilers. */
18595 # include <limits.h>
18597 # include <assert.h>
18602 /* Override any GCC internal prototype to avoid an error.
18603 Use char because int might match the return type of a GCC
18604 builtin and then its argument prototype would still apply. */
18609 /* The GNU C library defines this for functions which it implements
18610 to always fail with ENOSYS. Some functions are actually named
18611 something starting with __ and the normal name is an alias. */
18612 #if defined __stub_$ac_func || defined __stub___$ac_func
18619 return $ac_func ();
18624 rm -f conftest.$ac_objext conftest$ac_exeext
18625 if { (ac_try="$ac_link"
18626 case "(($ac_try" in
18627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628 *) ac_try_echo=$ac_try;;
18630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631 (eval "$ac_link") 2>conftest.er1
18633 grep -v '^ *+' conftest.er1 >conftest.err
18635 cat conftest.err >&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } &&
18638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18639 { (case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_try") 2>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; } &&
18648 { ac_try='test -s conftest$ac_exeext'
18649 { (case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_try") 2>&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; }; then
18658 eval "$as_ac_var=yes"
18660 echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18663 eval "$as_ac_var=no"
18666 rm -f core conftest.err conftest.$ac_objext \
18667 conftest$ac_exeext conftest.$ac_ext
18669 ac_res=`eval echo '${'$as_ac_var'}'`
18670 { echo "$as_me:$LINENO: result: $ac_res" >&5
18671 echo "${ECHO_T}$ac_res" >&6; }
18672 if test `eval echo '${'$as_ac_var'}'` = yes; then
18673 cat >>confdefs.h <<_ACEOF
18674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18684 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18692 cat >conftest.$ac_ext <<_ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18700 #define $ac_func innocuous_$ac_func
18702 /* System header to define __stub macros and hopefully few prototypes,
18703 which can conflict with char $ac_func (); below.
18704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705 <limits.h> exists even on freestanding compilers. */
18708 # include <limits.h>
18710 # include <assert.h>
18715 /* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */
18722 /* The GNU C library defines this for functions which it implements
18723 to always fail with ENOSYS. Some functions are actually named
18724 something starting with __ and the normal name is an alias. */
18725 #if defined __stub_$ac_func || defined __stub___$ac_func
18732 return $ac_func ();
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (ac_try="$ac_link"
18739 case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_link") 2>conftest.er1
18746 grep -v '^ *+' conftest.er1 >conftest.err
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18752 { (case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_try") 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest$ac_exeext'
18762 { (case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_try") 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 eval "$as_ac_var=yes"
18773 echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18776 eval "$as_ac_var=no"
18779 rm -f core conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18782 ac_res=`eval echo '${'$as_ac_var'}'`
18783 { echo "$as_me:$LINENO: result: $ac_res" >&5
18784 echo "${ECHO_T}$ac_res" >&6; }
18785 if test `eval echo '${'$as_ac_var'}'` = yes; then
18786 cat >>confdefs.h <<_ACEOF
18787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18797 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 cat >conftest.$ac_ext <<_ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h. */
18811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18813 #define $ac_func innocuous_$ac_func
18815 /* System header to define __stub macros and hopefully few prototypes,
18816 which can conflict with char $ac_func (); below.
18817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18818 <limits.h> exists even on freestanding compilers. */
18821 # include <limits.h>
18823 # include <assert.h>
18828 /* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18835 /* The GNU C library defines this for functions which it implements
18836 to always fail with ENOSYS. Some functions are actually named
18837 something starting with __ and the normal name is an alias. */
18838 #if defined __stub_$ac_func || defined __stub___$ac_func
18845 return $ac_func ();
18850 rm -f conftest.$ac_objext conftest$ac_exeext
18851 if { (ac_try="$ac_link"
18852 case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18857 (eval "$ac_link") 2>conftest.er1
18859 grep -v '^ *+' conftest.er1 >conftest.err
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } &&
18864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18865 { (case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870 (eval "$ac_try") 2>&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; } &&
18874 { ac_try='test -s conftest$ac_exeext'
18875 { (case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_try") 2>&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); }; }; then
18884 eval "$as_ac_var=yes"
18886 echo "$as_me: failed program was:" >&5
18887 sed 's/^/| /' conftest.$ac_ext >&5
18889 eval "$as_ac_var=no"
18892 rm -f core conftest.err conftest.$ac_objext \
18893 conftest$ac_exeext conftest.$ac_ext
18895 ac_res=`eval echo '${'$as_ac_var'}'`
18896 { echo "$as_me:$LINENO: result: $ac_res" >&5
18897 echo "${ECHO_T}$ac_res" >&6; }
18898 if test `eval echo '${'$as_ac_var'}'` = yes; then
18899 cat >>confdefs.h <<_ACEOF
18900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18906 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18907 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18908 if test "${llvm_cv_c_printf_a+set}" = set; then
18909 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 ac_cpp='$CPP $CPPFLAGS'
18913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18917 if test "$cross_compiling" = yes; then
18918 llvmac_cv_c_printf_a=no
18920 cat >conftest.$ac_ext <<_ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h. */
18929 #include <stdlib.h>
18935 volatile double A, B;
18939 sprintf(Buffer, "%a", A);
18943 if (A != 0x1.999999999999ap-4)
18950 rm -f conftest$ac_exeext
18951 if { (ac_try="$ac_link"
18952 case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_link") 2>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18961 { (case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966 (eval "$ac_try") 2>&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; }; then
18970 llvm_cv_c_printf_a=yes
18972 echo "$as_me: program exited with status $ac_status" >&5
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18976 ( exit $ac_status )
18977 llvmac_cv_c_printf_a=no
18979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18984 ac_cpp='$CPP $CPPFLAGS'
18985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18990 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18991 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18992 if test "$llvm_cv_c_printf_a" = "yes"; then
18994 cat >>confdefs.h <<\_ACEOF
18995 #define HAVE_PRINTF_A 1
19001 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19002 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19003 if test "${ac_cv_func_rand48+set}" = set; then
19004 echo $ECHO_N "(cached) $ECHO_C" >&6
19007 ac_cpp='$CXXCPP $CPPFLAGS'
19008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19012 cat >conftest.$ac_ext <<_ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h. */
19018 #include <stdlib.h>
19022 srand48(0);lrand48();drand48();
19027 rm -f conftest.$ac_objext
19028 if { (ac_try="$ac_compile"
19029 case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_compile") 2>conftest.er1
19036 grep -v '^ *+' conftest.er1 >conftest.err
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
19041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19042 { (case "(($ac_try" in
19043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_try") 2>&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; } &&
19051 { ac_try='test -s conftest.$ac_objext'
19052 { (case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_try") 2>&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; }; then
19061 ac_cv_func_rand48=yes
19063 echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19066 ac_cv_func_rand48=no
19069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19071 ac_cpp='$CPP $CPPFLAGS'
19072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19077 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19078 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19080 if test "$ac_cv_func_rand48" = "yes" ; then
19082 cat >>confdefs.h <<\_ACEOF
19083 #define HAVE_RAND48 1
19090 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19091 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19092 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19096 ac_cpp='$CXXCPP $CPPFLAGS'
19097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19101 cat >conftest.$ac_ext <<_ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19116 rm -f conftest.$ac_objext
19117 if { (ac_try="$ac_compile"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_compile") 2>conftest.er1
19125 grep -v '^ *+' conftest.er1 >conftest.err
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
19130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19131 { (case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_try") 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; } &&
19140 { ac_try='test -s conftest.$ac_objext'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
19150 ac_cv_func_isnan_in_math_h=yes
19152 echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19155 ac_cv_func_isnan_in_math_h=no
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19160 ac_cpp='$CPP $CPPFLAGS'
19161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19166 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19167 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19170 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19172 cat >>confdefs.h <<\_ACEOF
19173 #define HAVE_ISNAN_IN_MATH_H 1
19178 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19179 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19180 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19181 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 ac_cpp='$CXXCPP $CPPFLAGS'
19185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19189 cat >conftest.$ac_ext <<_ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h. */
19204 rm -f conftest.$ac_objext
19205 if { (ac_try="$ac_compile"
19206 case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211 (eval "$ac_compile") 2>conftest.er1
19213 grep -v '^ *+' conftest.er1 >conftest.err
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19219 { (case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_try") 2>&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; } &&
19228 { ac_try='test -s conftest.$ac_objext'
19229 { (case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_try") 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_func_isnan_in_cmath=yes
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19243 ac_cv_func_isnan_in_cmath=no
19246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19248 ac_cpp='$CPP $CPPFLAGS'
19249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19254 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19255 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19257 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19259 cat >>confdefs.h <<\_ACEOF
19260 #define HAVE_ISNAN_IN_CMATH 1
19265 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19266 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19267 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19268 echo $ECHO_N "(cached) $ECHO_C" >&6
19271 ac_cpp='$CXXCPP $CPPFLAGS'
19272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19276 cat >conftest.$ac_ext <<_ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h. */
19286 float f; std::isnan(f);
19291 rm -f conftest.$ac_objext
19292 if { (ac_try="$ac_compile"
19293 case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_compile") 2>conftest.er1
19300 grep -v '^ *+' conftest.er1 >conftest.err
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
19305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19306 { (case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_try") 2>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; } &&
19315 { ac_try='test -s conftest.$ac_objext'
19316 { (case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_try") 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 ac_cv_func_std_isnan_in_cmath=yes
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19330 ac_cv_func_std_isnan_in_cmath=no
19333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19335 ac_cpp='$CPP $CPPFLAGS'
19336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19341 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19342 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19344 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19346 cat >>confdefs.h <<\_ACEOF
19347 #define HAVE_STD_ISNAN_IN_CMATH 1
19353 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19354 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19355 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19359 ac_cpp='$CXXCPP $CPPFLAGS'
19360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19364 cat >conftest.$ac_ext <<_ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h. */
19379 rm -f conftest.$ac_objext
19380 if { (ac_try="$ac_compile"
19381 case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_compile") 2>conftest.er1
19388 grep -v '^ *+' conftest.er1 >conftest.err
19390 cat conftest.err >&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } &&
19393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19394 { (case "(($ac_try" in
19395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396 *) ac_try_echo=$ac_try;;
19398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19399 (eval "$ac_try") 2>&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; } &&
19403 { ac_try='test -s conftest.$ac_objext'
19404 { (case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409 (eval "$ac_try") 2>&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
19413 ac_cv_func_isinf_in_math_h=yes
19415 echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19418 ac_cv_func_isinf_in_math_h=no
19421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19423 ac_cpp='$CPP $CPPFLAGS'
19424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19429 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19430 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19432 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19434 cat >>confdefs.h <<\_ACEOF
19435 #define HAVE_ISINF_IN_MATH_H 1
19440 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19441 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19442 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19446 ac_cpp='$CXXCPP $CPPFLAGS'
19447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19451 cat >conftest.$ac_ext <<_ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19466 rm -f conftest.$ac_objext
19467 if { (ac_try="$ac_compile"
19468 case "(($ac_try" in
19469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470 *) ac_try_echo=$ac_try;;
19472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19473 (eval "$ac_compile") 2>conftest.er1
19475 grep -v '^ *+' conftest.er1 >conftest.err
19477 cat conftest.err >&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } &&
19480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19481 { (case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_try") 2>&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest.$ac_objext'
19491 { (case "(($ac_try" in
19492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493 *) ac_try_echo=$ac_try;;
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496 (eval "$ac_try") 2>&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 ac_cv_func_isinf_in_cmath=yes
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 ac_cv_func_isinf_in_cmath=no
19508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19510 ac_cpp='$CPP $CPPFLAGS'
19511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19516 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19517 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19519 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19521 cat >>confdefs.h <<\_ACEOF
19522 #define HAVE_ISINF_IN_CMATH 1
19527 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19528 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19529 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 ac_cpp='$CXXCPP $CPPFLAGS'
19534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19538 cat >conftest.$ac_ext <<_ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h. */
19548 float f; std::isinf(f)}
19553 rm -f conftest.$ac_objext
19554 if { (ac_try="$ac_compile"
19555 case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560 (eval "$ac_compile") 2>conftest.er1
19562 grep -v '^ *+' conftest.er1 >conftest.err
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } &&
19567 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19568 { (case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_try") 2>&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; } &&
19577 { ac_try='test -s conftest.$ac_objext'
19578 { (case "(($ac_try" in
19579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580 *) ac_try_echo=$ac_try;;
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583 (eval "$ac_try") 2>&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; }; then
19587 ac_cv_func_std_isinf_in_cmath=yes
19589 echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19592 ac_cv_func_std_isinf_in_cmath=no
19595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19597 ac_cpp='$CPP $CPPFLAGS'
19598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19603 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19604 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19606 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19608 cat >>confdefs.h <<\_ACEOF
19609 #define HAVE_STD_ISINF_IN_CMATH 1
19614 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19615 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19616 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19617 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 ac_cpp='$CXXCPP $CPPFLAGS'
19621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19625 cat >conftest.$ac_ext <<_ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h. */
19631 #include <ieeefp.h>
19635 float f; finite(f);
19640 rm -f conftest.$ac_objext
19641 if { (ac_try="$ac_compile"
19642 case "(($ac_try" in
19643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644 *) ac_try_echo=$ac_try;;
19646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647 (eval "$ac_compile") 2>conftest.er1
19649 grep -v '^ *+' conftest.er1 >conftest.err
19651 cat conftest.err >&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } &&
19654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19655 { (case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_try") 2>&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; } &&
19664 { ac_try='test -s conftest.$ac_objext'
19665 { (case "(($ac_try" in
19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670 (eval "$ac_try") 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
19674 ac_cv_func_finite_in_ieeefp_h=yes
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19679 ac_cv_func_finite_in_ieeefp_h=no
19682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19684 ac_cpp='$CPP $CPPFLAGS'
19685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19690 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19691 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19693 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19695 cat >>confdefs.h <<\_ACEOF
19696 #define HAVE_FINITE_IN_IEEEFP_H 1
19703 if test "$llvm_cv_platform_type" = "Unix" ; then
19706 for ac_header in stdlib.h unistd.h
19708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19713 echo $ECHO_N "(cached) $ECHO_C" >&6
19715 ac_res=`eval echo '${'$as_ac_Header'}'`
19716 { echo "$as_me:$LINENO: result: $ac_res" >&5
19717 echo "${ECHO_T}$ac_res" >&6; }
19719 # Is the header compilable?
19720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19722 cat >conftest.$ac_ext <<_ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h. */
19728 $ac_includes_default
19729 #include <$ac_header>
19731 rm -f conftest.$ac_objext
19732 if { (ac_try="$ac_compile"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_compile") 2>conftest.er1
19740 grep -v '^ *+' conftest.er1 >conftest.err
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } &&
19745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19746 { (case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_try") 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; } &&
19755 { ac_try='test -s conftest.$ac_objext'
19756 { (case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_try") 2>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
19765 ac_header_compiler=yes
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19770 ac_header_compiler=no
19773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19775 echo "${ECHO_T}$ac_header_compiler" >&6; }
19777 # Is the header present?
19778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19780 cat >conftest.$ac_ext <<_ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19786 #include <$ac_header>
19788 if { (ac_try="$ac_cpp conftest.$ac_ext"
19789 case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19796 grep -v '^ *+' conftest.er1 >conftest.err
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } >/dev/null; then
19801 if test -s conftest.err; then
19802 ac_cpp_err=$ac_c_preproc_warn_flag
19803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19810 if test -z "$ac_cpp_err"; then
19811 ac_header_preproc=yes
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19816 ac_header_preproc=no
19819 rm -f conftest.err conftest.$ac_ext
19820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19821 echo "${ECHO_T}$ac_header_preproc" >&6; }
19823 # So? What about this header?
19824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19830 ac_header_preproc=yes
19833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19846 ## ----------------------------------- ##
19847 ## Report this to llvmbugs@cs.uiuc.edu ##
19848 ## ----------------------------------- ##
19850 ) | sed "s/^/$as_me: WARNING: /" >&2
19853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 eval "$as_ac_Header=\$ac_header_preproc"
19860 ac_res=`eval echo '${'$as_ac_Header'}'`
19861 { echo "$as_me:$LINENO: result: $ac_res" >&5
19862 echo "${ECHO_T}$ac_res" >&6; }
19865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19866 cat >>confdefs.h <<_ACEOF
19867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19875 for ac_func in getpagesize
19877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 cat >conftest.$ac_ext <<_ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19891 #define $ac_func innocuous_$ac_func
19893 /* System header to define __stub macros and hopefully few prototypes,
19894 which can conflict with char $ac_func (); below.
19895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19896 <limits.h> exists even on freestanding compilers. */
19899 # include <limits.h>
19901 # include <assert.h>
19906 /* Override any GCC internal prototype to avoid an error.
19907 Use char because int might match the return type of a GCC
19908 builtin and then its argument prototype would still apply. */
19913 /* The GNU C library defines this for functions which it implements
19914 to always fail with ENOSYS. Some functions are actually named
19915 something starting with __ and the normal name is an alias. */
19916 #if defined __stub_$ac_func || defined __stub___$ac_func
19923 return $ac_func ();
19928 rm -f conftest.$ac_objext conftest$ac_exeext
19929 if { (ac_try="$ac_link"
19930 case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_link") 2>conftest.er1
19937 grep -v '^ *+' conftest.er1 >conftest.err
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } &&
19942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19943 { (case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_try") 2>&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; } &&
19952 { ac_try='test -s conftest$ac_exeext'
19953 { (case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_try") 2>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; }; then
19962 eval "$as_ac_var=yes"
19964 echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19967 eval "$as_ac_var=no"
19970 rm -f core conftest.err conftest.$ac_objext \
19971 conftest$ac_exeext conftest.$ac_ext
19973 ac_res=`eval echo '${'$as_ac_var'}'`
19974 { echo "$as_me:$LINENO: result: $ac_res" >&5
19975 echo "${ECHO_T}$ac_res" >&6; }
19976 if test `eval echo '${'$as_ac_var'}'` = yes; then
19977 cat >>confdefs.h <<_ACEOF
19978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19984 { echo "$as_me:$LINENO: checking for working mmap" >&5
19985 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19986 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
19989 if test "$cross_compiling" = yes; then
19990 ac_cv_func_mmap_fixed_mapped=no
19992 cat >conftest.$ac_ext <<_ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 $ac_includes_default
19999 /* malloc might have been renamed as rpl_malloc. */
20002 /* Thanks to Mike Haertel and Jim Avera for this test.
20003 Here is a matrix of mmap possibilities:
20004 mmap private not fixed
20005 mmap private fixed at somewhere currently unmapped
20006 mmap private fixed at somewhere already mapped
20007 mmap shared not fixed
20008 mmap shared fixed at somewhere currently unmapped
20009 mmap shared fixed at somewhere already mapped
20010 For private mappings, we should verify that changes cannot be read()
20011 back from the file, nor mmap's back from the file at a different
20012 address. (There have been systems where private was not correctly
20013 implemented like the infamous i386 svr4.0, and systems where the
20014 VM page cache was not coherent with the file system buffer cache
20015 like early versions of FreeBSD and possibly contemporary NetBSD.)
20016 For shared mappings, we should conversely verify that changes get
20017 propagated back to all the places they're supposed to be.
20019 Grep wants private fixed already mapped.
20020 The main things grep needs to know about mmap are:
20021 * does it exist and is it safe to write into the mmap'd area
20022 * how to use it (BSD variants) */
20025 #include <sys/mman.h>
20027 #if !STDC_HEADERS && !HAVE_STDLIB_H
20031 /* This mess was copied from the GNU getpagesize.h. */
20032 #if !HAVE_GETPAGESIZE
20033 /* Assume that all systems that can run configure have sys/param.h. */
20034 # if !HAVE_SYS_PARAM_H
20035 # define HAVE_SYS_PARAM_H 1
20038 # ifdef _SC_PAGESIZE
20039 # define getpagesize() sysconf(_SC_PAGESIZE)
20040 # else /* no _SC_PAGESIZE */
20041 # if HAVE_SYS_PARAM_H
20042 # include <sys/param.h>
20043 # ifdef EXEC_PAGESIZE
20044 # define getpagesize() EXEC_PAGESIZE
20045 # else /* no EXEC_PAGESIZE */
20047 # define getpagesize() NBPG * CLSIZE
20050 # endif /* no CLSIZE */
20051 # else /* no NBPG */
20053 # define getpagesize() NBPC
20054 # else /* no NBPC */
20056 # define getpagesize() PAGESIZE
20057 # endif /* PAGESIZE */
20058 # endif /* no NBPC */
20059 # endif /* no NBPG */
20060 # endif /* no EXEC_PAGESIZE */
20061 # else /* no HAVE_SYS_PARAM_H */
20062 # define getpagesize() 8192 /* punt totally */
20063 # endif /* no HAVE_SYS_PARAM_H */
20064 # endif /* no _SC_PAGESIZE */
20066 #endif /* no HAVE_GETPAGESIZE */
20071 char *data, *data2, *data3;
20075 pagesize = getpagesize ();
20077 /* First, make a file with some known garbage in it. */
20078 data = (char *) malloc (pagesize);
20081 for (i = 0; i < pagesize; ++i)
20082 *(data + i) = rand ();
20084 fd = creat ("conftest.mmap", 0600);
20087 if (write (fd, data, pagesize) != pagesize)
20091 /* Next, try to mmap the file at a fixed address which already has
20092 something else allocated at it. If we can, also make sure that
20093 we see the same garbage. */
20094 fd = open ("conftest.mmap", O_RDWR);
20097 data2 = (char *) malloc (2 * pagesize);
20100 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20101 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20102 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20104 for (i = 0; i < pagesize; ++i)
20105 if (*(data + i) != *(data2 + i))
20108 /* Finally, make sure that changes to the mapped area do not
20109 percolate back to the file as seen by read(). (This is a bug on
20110 some variants of i386 svr4.0.) */
20111 for (i = 0; i < pagesize; ++i)
20112 *(data2 + i) = *(data2 + i) + 1;
20113 data3 = (char *) malloc (pagesize);
20116 if (read (fd, data3, pagesize) != pagesize)
20118 for (i = 0; i < pagesize; ++i)
20119 if (*(data + i) != *(data3 + i))
20125 rm -f conftest$ac_exeext
20126 if { (ac_try="$ac_link"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_link") 2>&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20136 { (case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_try") 2>&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; }; then
20145 ac_cv_func_mmap_fixed_mapped=yes
20147 echo "$as_me: program exited with status $ac_status" >&5
20148 echo "$as_me: failed program was:" >&5
20149 sed 's/^/| /' conftest.$ac_ext >&5
20151 ( exit $ac_status )
20152 ac_cv_func_mmap_fixed_mapped=no
20154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20159 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20160 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20161 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20163 cat >>confdefs.h <<\_ACEOF
20164 #define HAVE_MMAP 1
20168 rm -f conftest.mmap
20170 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20171 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20172 if test "${ac_cv_func_mmap_file+set}" = set; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 ac_cpp='$CPP $CPPFLAGS'
20177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20181 if test "$cross_compiling" = yes; then
20182 ac_cv_func_mmap_file=no
20184 cat >conftest.$ac_ext <<_ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20192 #include <sys/types.h>
20193 #include <sys/mman.h>
20201 fd = creat ("foo",0777);
20202 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20204 return (fd != (int) MAP_FAILED);
20209 rm -f conftest$ac_exeext
20210 if { (ac_try="$ac_link"
20211 case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_link") 2>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20220 { (case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_try") 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; }; then
20229 ac_cv_func_mmap_file=yes
20231 echo "$as_me: program exited with status $ac_status" >&5
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20235 ( exit $ac_status )
20236 ac_cv_func_mmap_file=no
20238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20243 ac_cpp='$CPP $CPPFLAGS'
20244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20250 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20251 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20252 if test "$ac_cv_func_mmap_file" = yes; then
20254 cat >>confdefs.h <<\_ACEOF
20255 #define HAVE_MMAP_FILE
20262 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20263 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20264 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
20267 if test "$llvm_cv_os_type" = "Interix" ; then
20268 ac_cv_need_dev_zero_for_mmap=yes
20270 ac_cv_need_dev_zero_for_mmap=no
20274 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20275 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20276 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20278 cat >>confdefs.h <<\_ACEOF
20279 #define NEED_DEV_ZERO_FOR_MMAP 1
20284 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20286 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20287 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20289 if test "$ac_cv_func_mmap_file" = "no"
20291 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20292 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20296 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20297 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20299 ac_cpp='$CXXCPP $CPPFLAGS'
20300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20304 cat >conftest.$ac_ext <<_ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20311 volatile unsigned long val = 1;
20312 __sync_synchronize();
20313 __sync_val_compare_and_swap(&val, 1, 0);
20314 __sync_add_and_fetch(&val, 1);
20315 __sync_sub_and_fetch(&val, 1);
20320 rm -f conftest.$ac_objext conftest$ac_exeext
20321 if { (ac_try="$ac_link"
20322 case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_link") 2>conftest.er1
20329 grep -v '^ *+' conftest.er1 >conftest.err
20331 cat conftest.err >&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } &&
20334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20335 { (case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_try") 2>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; } &&
20344 { ac_try='test -s conftest$ac_exeext'
20345 { (case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_try") 2>&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; }; then
20355 ac_cpp='$CPP $CPPFLAGS'
20356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20360 { echo "$as_me:$LINENO: result: yes" >&5
20361 echo "${ECHO_T}yes" >&6; }
20363 cat >>confdefs.h <<\_ACEOF
20364 #define LLVM_MULTITHREADED 1
20368 echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20371 { echo "$as_me:$LINENO: result: no" >&5
20372 echo "${ECHO_T}no" >&6; }
20374 cat >>confdefs.h <<\_ACEOF
20375 #define LLVM_MULTITHREADED 0
20378 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20379 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20382 rm -f core conftest.err conftest.$ac_objext \
20383 conftest$ac_exeext conftest.$ac_ext
20386 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20387 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20388 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20389 if test "${llvm_cv_linux_mixed+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20393 ac_cpp='$CPP $CPPFLAGS'
20394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20398 cat >conftest.$ac_ext <<_ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20405 error: Not x86-64 even if uname says so!
20416 rm -f conftest.$ac_objext
20417 if { (ac_try="$ac_compile"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_compile") 2>conftest.er1
20425 grep -v '^ *+' conftest.er1 >conftest.err
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } &&
20430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20431 { (case "(($ac_try" in
20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433 *) ac_try_echo=$ac_try;;
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436 (eval "$ac_try") 2>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; } &&
20440 { ac_try='test -s conftest.$ac_objext'
20441 { (case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_try") 2>&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20450 llvm_cv_linux_mixed=no
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 llvm_cv_linux_mixed=yes
20458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20460 ac_cpp='$CPP $CPPFLAGS'
20461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20467 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20468 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20470 if test "$llvm_cv_linux_mixed" = "yes"; then
20471 llvm_cv_target_arch="x86"
20477 for ac_func in __dso_handle
20479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20480 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20485 cat >conftest.$ac_ext <<_ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20493 #define $ac_func innocuous_$ac_func
20495 /* System header to define __stub macros and hopefully few prototypes,
20496 which can conflict with char $ac_func (); below.
20497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20498 <limits.h> exists even on freestanding compilers. */
20501 # include <limits.h>
20503 # include <assert.h>
20508 /* Override any GCC internal prototype to avoid an error.
20509 Use char because int might match the return type of a GCC
20510 builtin and then its argument prototype would still apply. */
20515 /* The GNU C library defines this for functions which it implements
20516 to always fail with ENOSYS. Some functions are actually named
20517 something starting with __ and the normal name is an alias. */
20518 #if defined __stub_$ac_func || defined __stub___$ac_func
20525 return $ac_func ();
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (ac_try="$ac_link"
20532 case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_link") 2>conftest.er1
20539 grep -v '^ *+' conftest.er1 >conftest.err
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
20544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20545 { (case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_try") 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; } &&
20554 { ac_try='test -s conftest$ac_exeext'
20555 { (case "(($ac_try" in
20556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557 *) ac_try_echo=$ac_try;;
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560 (eval "$ac_try") 2>&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
20564 eval "$as_ac_var=yes"
20566 echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20569 eval "$as_ac_var=no"
20572 rm -f core conftest.err conftest.$ac_objext \
20573 conftest$ac_exeext conftest.$ac_ext
20575 ac_res=`eval echo '${'$as_ac_var'}'`
20576 { echo "$as_me:$LINENO: result: $ac_res" >&5
20577 echo "${ECHO_T}$ac_res" >&6; }
20578 if test `eval echo '${'$as_ac_var'}'` = yes; then
20579 cat >>confdefs.h <<_ACEOF
20580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20587 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
20588 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
20589 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 llvm_cv_llvmgcc_dragonegg="no"
20593 if test -x "$LLVMGCC" ; then
20594 cp /dev/null conftest.c
20595 "$LLVMGCC" -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c | \
20596 grep 'target datalayout =' > /dev/null 2>&1
20597 if test $? -eq 0 ; then
20598 llvm_cv_llvmgcc_dragonegg="yes"
20603 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
20604 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
20606 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
20607 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
20608 LLVMGCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
20610 LLVMCC_EMITIR_FLAG="-emit-llvm"
20611 LLVMGCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
20616 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20617 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20618 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20621 llvm_cv_llvmgcc_sanity="no"
20622 if test -x "$LLVMGCC" ; then
20623 cp /dev/null conftest.c
20624 "$LLVMGCC" "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
20625 grep 'target datalayout =' > /dev/null 2>&1
20626 if test $? -eq 0 ; then
20627 llvm_cv_llvmgcc_sanity="yes"
20632 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20633 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20635 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20636 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20637 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20638 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20639 LLVMCC1=$llvmcc1path
20641 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20642 LLVMCC1PLUS=$llvmcc1pluspath
20644 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20645 LLVMGCCDIR=$llvmgccdir
20647 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20648 LLVMGCC_LANGS=$llvmgcclangs
20650 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
20653 { echo "$as_me:$LINENO: result: ok" >&5
20654 echo "${ECHO_T}ok" >&6; }
20657 SHLIBEXT=$libltdl_cv_shlibext
20660 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20663 # Translate the various configuration directories and other basic
20664 # information into substitutions that will end up in Makefile.config.in
20665 # that these configured values can be used by the makefiles
20666 if test "${prefix}" = "NONE" ; then
20667 prefix="/usr/local"
20669 eval LLVM_PREFIX="${prefix}";
20670 eval LLVM_BINDIR="${prefix}/bin";
20671 eval LLVM_LIBDIR="${prefix}/lib";
20672 eval LLVM_DATADIR="${prefix}/share/llvm";
20673 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20674 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20675 eval LLVM_INCLUDEDIR="${prefix}/include";
20676 eval LLVM_INFODIR="${prefix}/info";
20677 eval LLVM_MANDIR="${prefix}/man";
20678 LLVM_CONFIGTIME=`date`
20690 # Place the various directores into the config.h file as #defines so that we
20691 # can know about the installation paths within LLVM.
20693 cat >>confdefs.h <<_ACEOF
20694 #define LLVM_PREFIX "$LLVM_PREFIX"
20698 cat >>confdefs.h <<_ACEOF
20699 #define LLVM_BINDIR "$LLVM_BINDIR"
20703 cat >>confdefs.h <<_ACEOF
20704 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20708 cat >>confdefs.h <<_ACEOF
20709 #define LLVM_DATADIR "$LLVM_DATADIR"
20713 cat >>confdefs.h <<_ACEOF
20714 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20718 cat >>confdefs.h <<_ACEOF
20719 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20723 cat >>confdefs.h <<_ACEOF
20724 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20728 cat >>confdefs.h <<_ACEOF
20729 #define LLVM_INFODIR "$LLVM_INFODIR"
20733 cat >>confdefs.h <<_ACEOF
20734 #define LLVM_MANDIR "$LLVM_MANDIR"
20738 cat >>confdefs.h <<_ACEOF
20739 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20743 cat >>confdefs.h <<_ACEOF
20744 #define LLVM_HOSTTRIPLE "$host"
20748 # Determine which bindings to build.
20749 if test "$BINDINGS_TO_BUILD" = auto ; then
20750 BINDINGS_TO_BUILD=""
20751 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20752 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20755 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20758 # This isn't really configurey, but it avoids having to repeat the list in
20763 # Do any work necessary to ensure that bindings have what they need.
20764 binding_prereqs_failed=0
20765 for a_binding in $BINDINGS_TO_BUILD ; do
20766 case "$a_binding" in
20768 if test "x$OCAMLC" = x ; then
20769 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20770 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20771 binding_prereqs_failed=1
20773 if test "x$OCAMLDEP" = x ; then
20774 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20775 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20776 binding_prereqs_failed=1
20778 if test "x$OCAMLOPT" = x ; then
20779 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20780 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20782 if test "x$with_ocaml_libdir" != xauto ; then
20783 OCAML_LIBDIR=$with_ocaml_libdir
20786 ocaml_stdlib="`"$OCAMLC" -where`"
20787 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20789 # ocaml stdlib is beneath our prefix; use stdlib
20790 OCAML_LIBDIR=$ocaml_stdlib
20793 # ocaml stdlib is outside our prefix; use libdir/ocaml
20794 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20801 if test "$binding_prereqs_failed" = 1 ; then
20802 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20803 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20804 { (exit 1); exit 1; }; }
20807 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20808 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20809 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
20813 ac_cpp='$CXXCPP $CPPFLAGS'
20814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20818 oldcxxflags="$CXXFLAGS"
20819 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20820 cat >conftest.$ac_ext <<_ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20835 rm -f conftest.$ac_objext
20836 if { (ac_try="$ac_compile"
20837 case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842 (eval "$ac_compile") 2>conftest.er1
20844 grep -v '^ *+' conftest.er1 >conftest.err
20846 cat conftest.err >&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); } &&
20849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20850 { (case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855 (eval "$ac_try") 2>&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); }; } &&
20859 { ac_try='test -s conftest.$ac_objext'
20860 { (case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865 (eval "$ac_try") 2>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; }; then
20869 llvm_cv_cxx_visibility_inlines_hidden=yes
20871 echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20874 llvm_cv_cxx_visibility_inlines_hidden=no
20877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20878 CXXFLAGS="$oldcxxflags"
20880 ac_cpp='$CPP $CPPFLAGS'
20881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20887 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20888 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20889 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20890 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20893 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20898 if test "$llvm_cv_link_use_r" = "yes" ; then
20905 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20906 RDYNAMIC="-Wl,-export-dynamic"
20913 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20920 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20922 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20924 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20926 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20928 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20931 ac_config_files="$ac_config_files Makefile.config"
20934 ac_config_files="$ac_config_files llvm.spec"
20937 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20940 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20943 ac_config_commands="$ac_config_commands setup"
20945 ac_config_commands="$ac_config_commands Makefile"
20948 ac_config_commands="$ac_config_commands Makefile.common"
20951 ac_config_commands="$ac_config_commands examples/Makefile"
20954 ac_config_commands="$ac_config_commands lib/Makefile"
20957 ac_config_commands="$ac_config_commands runtime/Makefile"
20960 ac_config_commands="$ac_config_commands test/Makefile"
20963 ac_config_commands="$ac_config_commands test/Makefile.tests"
20966 ac_config_commands="$ac_config_commands unittests/Makefile"
20969 ac_config_commands="$ac_config_commands tools/Makefile"
20972 ac_config_commands="$ac_config_commands utils/Makefile"
20975 ac_config_commands="$ac_config_commands projects/Makefile"
20978 ac_config_commands="$ac_config_commands bindings/Makefile"
20981 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20985 cat >confcache <<\_ACEOF
20986 # This file is a shell script that caches the results of configure
20987 # tests run on this system so they can be shared between configure
20988 # scripts and configure runs, see configure's option --config-cache.
20989 # It is not useful on other systems. If it contains results you don't
20990 # want to keep, you may remove or edit it.
20992 # config.status only pays attention to the cache file if you give it
20993 # the --recheck option to rerun configure.
20995 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20996 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20997 # following values.
21001 # The following way of writing the cache mishandles newlines in values,
21002 # but we know of no workaround that is simple, portable, and efficient.
21003 # So, we kill variables containing newlines.
21004 # Ultrix sh set writes to stderr and can't be redirected directly,
21005 # and sets the high bit in the cache file unless we assign to the vars.
21007 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21008 eval ac_val=\$$ac_var
21012 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21013 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21016 _ | IFS | as_nl) ;; #(
21017 *) $as_unset $ac_var ;;
21023 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21024 *${as_nl}ac_space=\ *)
21025 # `set' does not quote correctly, so add quotes (double-quote
21026 # substitution turns \\\\ into \\, and sed turns \\ into \).
21029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21032 # `set' quotes correctly as required by POSIX, so do not add quotes.
21033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21042 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21044 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21046 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21047 if test -w "$cache_file"; then
21048 test "x$cache_file" != "x/dev/null" &&
21049 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21050 echo "$as_me: updating cache $cache_file" >&6;}
21051 cat confcache >$cache_file
21053 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21054 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21060 # Let make expand exec_prefix.
21061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21063 DEFS=-DHAVE_CONFIG_H
21067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21068 # 1. Remove the extension, and $U if already installed.
21069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21070 ac_i=`echo "$ac_i" | sed "$ac_script"`
21071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21072 # will be set to the directory where LIBOBJS objects are built.
21073 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21074 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21076 LIBOBJS=$ac_libobjs
21078 LTLIBOBJS=$ac_ltlibobjs
21081 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21082 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21083 Usually this means the macro was only invoked conditionally." >&5
21084 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21085 Usually this means the macro was only invoked conditionally." >&2;}
21086 { (exit 1); exit 1; }; }
21088 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21089 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21090 Usually this means the macro was only invoked conditionally." >&5
21091 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21092 Usually this means the macro was only invoked conditionally." >&2;}
21093 { (exit 1); exit 1; }; }
21096 : ${CONFIG_STATUS=./config.status}
21097 ac_clean_files_save=$ac_clean_files
21098 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21099 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21100 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21101 cat >$CONFIG_STATUS <<_ACEOF
21103 # Generated by $as_me.
21104 # Run this file to recreate the current configuration.
21105 # Compiler output produced by configure, useful for debugging
21106 # configure, is in config.log if it exists.
21109 ac_cs_recheck=false
21111 SHELL=\${CONFIG_SHELL-$SHELL}
21114 cat >>$CONFIG_STATUS <<\_ACEOF
21115 ## --------------------- ##
21116 ## M4sh Initialization. ##
21117 ## --------------------- ##
21119 # Be Bourne compatible
21120 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21123 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21124 # is contrary to our usage. Disable this feature.
21125 alias -g '${1+"$@"}'='"$@"'
21126 setopt NO_GLOB_SUBST
21128 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21130 BIN_SH=xpg4; export BIN_SH # for Tru64
21131 DUALCASE=1; export DUALCASE # for MKS sh
21135 # Avoid depending upon Character Ranges.
21136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21139 as_cr_digits='0123456789'
21140 as_cr_alnum=$as_cr_Letters$as_cr_digits
21142 # The user is always right.
21143 if test "${PATH_SEPARATOR+set}" != set; then
21144 echo "#! /bin/sh" >conf$$.sh
21145 echo "exit 0" >>conf$$.sh
21147 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21155 # Support unset when possible.
21156 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21164 # We need space, tab and new line, in precisely that order. Quoting is
21165 # there to prevent editors from complaining about space-tab.
21166 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21167 # splitting by setting IFS to empty value.)
21172 # Find who we are. Look in the path if we contain no directory separator.
21174 *[\\/]* ) as_myself=$0 ;;
21175 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21176 for as_dir in $PATH
21179 test -z "$as_dir" && as_dir=.
21180 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21186 # We did not find ourselves, most probably we were run as `sh COMMAND'
21187 # in which case we are not to be found in the path.
21188 if test "x$as_myself" = x; then
21191 if test ! -f "$as_myself"; then
21192 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21193 { (exit 1); exit 1; }
21196 # Work around bugs in pre-3.0 UWIN ksh.
21197 for as_var in ENV MAIL MAILPATH
21198 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21206 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21207 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21208 LC_TELEPHONE LC_TIME
21210 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21211 eval $as_var=C; export $as_var
21213 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21217 # Required to use basename.
21218 if expr a : '\(a\)' >/dev/null 2>&1 &&
21219 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21225 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21226 as_basename=basename
21232 # Name of the executable.
21233 as_me=`$as_basename -- "$0" ||
21234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21235 X"$0" : 'X\(//\)$' \| \
21236 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21238 sed '/^.*\/\([^/][^/]*\)\/*$/{
21257 as_lineno_1=$LINENO
21258 as_lineno_2=$LINENO
21259 test "x$as_lineno_1" != "x$as_lineno_2" &&
21260 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21262 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21263 # uniformly replaced by the line number. The first 'sed' inserts a
21264 # line-number line after each line using $LINENO; the second 'sed'
21265 # does the real work. The second script uses 'N' to pair each
21266 # line-number line with the line containing $LINENO, and appends
21267 # trailing '-' during substitution so that $LINENO is not a special
21268 # case at line end.
21269 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21270 # scripts with optimization help from Paolo Bonzini. Blame Lee
21271 # E. McMahon (1931-1989) for sed's syntax. :-)
21283 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21286 ' >$as_me.lineno &&
21287 chmod +x "$as_me.lineno" ||
21288 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21289 { (exit 1); exit 1; }; }
21291 # Don't try to exec as it changes $[0], causing all sort of problems
21292 # (the dirname of $[0] is not the place where we might find the
21293 # original and so on. Autoconf is especially sensitive to this).
21294 . "./$as_me.lineno"
21295 # Exit status is that of the last command.
21300 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21306 ECHO_C= ECHO_N= ECHO_T=
21307 case `echo -n x` in
21309 case `echo 'x\c'` in
21310 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21317 if expr a : '\(a\)' >/dev/null 2>&1 &&
21318 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21324 rm -f conf$$ conf$$.exe conf$$.file
21325 if test -d conf$$.dir; then
21326 rm -f conf$$.dir/conf$$.file
21332 if ln -s conf$$.file conf$$ 2>/dev/null; then
21334 # ... but there are two gotchas:
21335 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21336 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21337 # In both cases, we have to default to `cp -p'.
21338 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21340 elif ln conf$$.file conf$$ 2>/dev/null; then
21345 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21346 rmdir conf$$.dir 2>/dev/null
21348 if mkdir -p . 2>/dev/null; then
21351 test -d ./-p && rmdir ./-p
21355 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21356 # systems may use methods other than mode bits to determine executability.
21357 cat >conf$$.file <<_ASEOF
21361 chmod +x conf$$.file
21362 if test -x conf$$.file >/dev/null 2>&1; then
21363 as_executable_p="test -x"
21369 # Sed expression to map a string onto a valid CPP name.
21370 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21372 # Sed expression to map a string onto a valid variable name.
21373 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21378 # Save the log message, to keep $[0] and so on meaningful, and to
21379 # report actual input values of CONFIG_FILES etc. instead of their
21380 # values after options handling.
21382 This file was extended by llvm $as_me 2.9svn, which was
21383 generated by GNU Autoconf 2.60. Invocation command line was
21385 CONFIG_FILES = $CONFIG_FILES
21386 CONFIG_HEADERS = $CONFIG_HEADERS
21387 CONFIG_LINKS = $CONFIG_LINKS
21388 CONFIG_COMMANDS = $CONFIG_COMMANDS
21391 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21396 cat >>$CONFIG_STATUS <<_ACEOF
21397 # Files that config.status was made for.
21398 config_files="$ac_config_files"
21399 config_headers="$ac_config_headers"
21400 config_commands="$ac_config_commands"
21404 cat >>$CONFIG_STATUS <<\_ACEOF
21406 \`$as_me' instantiates files from templates according to the
21407 current configuration.
21409 Usage: $0 [OPTIONS] [FILE]...
21411 -h, --help print this help, then exit
21412 -V, --version print version number, then exit
21413 -q, --quiet do not print progress messages
21414 -d, --debug don't remove temporary files
21415 --recheck update $as_me by reconfiguring in the same conditions
21416 --file=FILE[:TEMPLATE]
21417 instantiate the configuration file FILE
21418 --header=FILE[:TEMPLATE]
21419 instantiate the configuration header FILE
21421 Configuration files:
21424 Configuration headers:
21427 Configuration commands:
21430 Report bugs to <bug-autoconf@gnu.org>."
21433 cat >>$CONFIG_STATUS <<_ACEOF
21435 llvm config.status 2.9svn
21436 configured by $0, generated by GNU Autoconf 2.60,
21437 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21439 Copyright (C) 2006 Free Software Foundation, Inc.
21440 This config.status script is free software; the Free Software Foundation
21441 gives unlimited permission to copy, distribute and modify it."
21448 cat >>$CONFIG_STATUS <<\_ACEOF
21449 # If no file are specified by the user, then we need to provide default
21450 # value. By we need to know if files were specified by the user.
21456 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21457 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21468 # Handling of the options.
21469 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21471 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21472 echo "$ac_cs_version"; exit ;;
21473 --debug | --debu | --deb | --de | --d | -d )
21475 --file | --fil | --fi | --f )
21477 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21478 ac_need_defaults=false;;
21479 --header | --heade | --head | --hea )
21481 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21482 ac_need_defaults=false;;
21484 # Conflict between --help and --header
21485 { echo "$as_me: error: ambiguous option: $1
21486 Try \`$0 --help' for more information." >&2
21487 { (exit 1); exit 1; }; };;
21488 --help | --hel | -h )
21489 echo "$ac_cs_usage"; exit ;;
21490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21491 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21494 # This is an error.
21495 -*) { echo "$as_me: error: unrecognized option: $1
21496 Try \`$0 --help' for more information." >&2
21497 { (exit 1); exit 1; }; } ;;
21499 *) ac_config_targets="$ac_config_targets $1"
21500 ac_need_defaults=false ;;
21506 ac_configure_extra_args=
21508 if $ac_cs_silent; then
21510 ac_configure_extra_args="$ac_configure_extra_args --silent"
21514 cat >>$CONFIG_STATUS <<_ACEOF
21515 if \$ac_cs_recheck; then
21516 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21517 CONFIG_SHELL=$SHELL
21518 export CONFIG_SHELL
21519 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21523 cat >>$CONFIG_STATUS <<\_ACEOF
21527 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21528 ## Running $as_me. ##
21534 cat >>$CONFIG_STATUS <<_ACEOF
21538 llvm_src="${srcdir}"
21542 cat >>$CONFIG_STATUS <<\_ACEOF
21544 # Handling of arguments.
21545 for ac_config_target in $ac_config_targets
21547 case $ac_config_target in
21548 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21549 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21550 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21551 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21552 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21553 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21554 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21555 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21556 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21557 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21558 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21559 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21560 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21561 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21562 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21563 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21564 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21565 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21566 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21567 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21568 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21569 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21570 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21571 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21572 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21574 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21575 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21576 { (exit 1); exit 1; }; };;
21581 # If the user did not use the arguments to specify the items to instantiate,
21582 # then the envvar interface is used. Set only those that are not.
21583 # We use the long form for the default assignment because of an extremely
21584 # bizarre bug on SunOS 4.1.3.
21585 if $ac_need_defaults; then
21586 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21587 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21588 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21591 # Have a temporary directory for convenience. Make it in the build tree
21592 # simply because there is no reason against having it here, and in addition,
21593 # creating and moving files from /tmp can sometimes cause problems.
21594 # Hook for its removal unless debugging.
21595 # Note that there is a small window in which the directory will not be cleaned:
21596 # after its creation but before its name has been assigned to `$tmp'.
21600 trap 'exit_status=$?
21601 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21603 trap '{ (exit 1); exit 1; }' 1 2 13 15
21605 # Create a (secure) tmp directory for tmp files.
21608 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21609 test -n "$tmp" && test -d "$tmp"
21612 tmp=./conf$$-$RANDOM
21613 (umask 077 && mkdir "$tmp")
21616 echo "$me: cannot create a temporary directory in ." >&2
21617 { (exit 1); exit 1; }
21621 # Set up the sed scripts for CONFIG_FILES section.
21624 # No need to generate the scripts if there are no CONFIG_FILES.
21625 # This happens for instance when ./config.status config.h
21626 if test -n "$CONFIG_FILES"; then
21633 for ac_last_try in false false false false false :; do
21634 cat >conf$$subs.sed <<_ACEOF
21635 SHELL!$SHELL$ac_delim
21636 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21637 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21638 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21639 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21640 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21641 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21642 exec_prefix!$exec_prefix$ac_delim
21643 prefix!$prefix$ac_delim
21644 program_transform_name!$program_transform_name$ac_delim
21645 bindir!$bindir$ac_delim
21646 sbindir!$sbindir$ac_delim
21647 libexecdir!$libexecdir$ac_delim
21648 datarootdir!$datarootdir$ac_delim
21649 datadir!$datadir$ac_delim
21650 sysconfdir!$sysconfdir$ac_delim
21651 sharedstatedir!$sharedstatedir$ac_delim
21652 localstatedir!$localstatedir$ac_delim
21653 includedir!$includedir$ac_delim
21654 oldincludedir!$oldincludedir$ac_delim
21655 docdir!$docdir$ac_delim
21656 infodir!$infodir$ac_delim
21657 htmldir!$htmldir$ac_delim
21658 dvidir!$dvidir$ac_delim
21659 pdfdir!$pdfdir$ac_delim
21660 psdir!$psdir$ac_delim
21661 libdir!$libdir$ac_delim
21662 localedir!$localedir$ac_delim
21663 mandir!$mandir$ac_delim
21664 DEFS!$DEFS$ac_delim
21665 ECHO_C!$ECHO_C$ac_delim
21666 ECHO_N!$ECHO_N$ac_delim
21667 ECHO_T!$ECHO_T$ac_delim
21668 LIBS!$LIBS$ac_delim
21669 build_alias!$build_alias$ac_delim
21670 host_alias!$host_alias$ac_delim
21671 target_alias!$target_alias$ac_delim
21672 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21673 subdirs!$subdirs$ac_delim
21674 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21675 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21676 build!$build$ac_delim
21677 build_cpu!$build_cpu$ac_delim
21678 build_vendor!$build_vendor$ac_delim
21679 build_os!$build_os$ac_delim
21680 host!$host$ac_delim
21681 host_cpu!$host_cpu$ac_delim
21682 host_vendor!$host_vendor$ac_delim
21683 host_os!$host_os$ac_delim
21684 target!$target$ac_delim
21685 target_cpu!$target_cpu$ac_delim
21686 target_vendor!$target_vendor$ac_delim
21687 target_os!$target_os$ac_delim
21689 HOST_OS!$HOST_OS$ac_delim
21690 TARGET_OS!$TARGET_OS$ac_delim
21691 LINKALL!$LINKALL$ac_delim
21692 NOLINKALL!$NOLINKALL$ac_delim
21693 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21694 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21695 ARCH!$ARCH$ac_delim
21696 ENDIAN!$ENDIAN$ac_delim
21698 CFLAGS!$CFLAGS$ac_delim
21699 LDFLAGS!$LDFLAGS$ac_delim
21700 CPPFLAGS!$CPPFLAGS$ac_delim
21701 ac_ct_CC!$ac_ct_CC$ac_delim
21702 EXEEXT!$EXEEXT$ac_delim
21703 OBJEXT!$OBJEXT$ac_delim
21705 GREP!$GREP$ac_delim
21706 EGREP!$EGREP$ac_delim
21707 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21708 BUILD_CC!$BUILD_CC$ac_delim
21709 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21710 BUILD_CXX!$BUILD_CXX$ac_delim
21711 CVSBUILD!$CVSBUILD$ac_delim
21712 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21713 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21714 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21715 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21716 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21717 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21718 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21720 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21721 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21722 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21723 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21724 ENABLE_PIC!$ENABLE_PIC$ac_delim
21725 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21726 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21727 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21728 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21729 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21730 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21731 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21734 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21736 elif $ac_last_try; then
21737 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21738 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21739 { (exit 1); exit 1; }; }
21741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21745 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21746 if test -n "$ac_eof"; then
21747 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21748 ac_eof=`expr $ac_eof + 1`
21751 cat >>$CONFIG_STATUS <<_ACEOF
21752 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21756 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21757 s/^/s,@/; s/!/@,|#_!!_#|/
21760 s/'"$ac_delim"'$/,g/; t
21762 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21763 ' >>$CONFIG_STATUS <conf$$subs.sed
21764 rm -f conf$$subs.sed
21765 cat >>$CONFIG_STATUS <<_ACEOF
21771 for ac_last_try in false false false false false :; do
21772 cat >conf$$subs.sed <<_ACEOF
21773 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21774 CLANGPATH!$CLANGPATH$ac_delim
21775 CLANGXXPATH!$CLANGXXPATH$ac_delim
21776 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21777 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21778 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21779 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21781 CXXFLAGS!$CXXFLAGS$ac_delim
21782 ac_ct_CXX!$ac_ct_CXX$ac_delim
21784 ifGNUmake!$ifGNUmake$ac_delim
21785 LN_S!$LN_S$ac_delim
21788 DATE!$DATE$ac_delim
21789 FIND!$FIND$ac_delim
21790 MKDIR!$MKDIR$ac_delim
21792 RANLIB!$RANLIB$ac_delim
21797 BINPWD!$BINPWD$ac_delim
21798 GRAPHVIZ!$GRAPHVIZ$ac_delim
21801 NEATO!$NEATO$ac_delim
21802 TWOPI!$TWOPI$ac_delim
21803 CIRCO!$CIRCO$ac_delim
21805 DOTTY!$DOTTY$ac_delim
21806 XDOT_PY!$XDOT_PY$ac_delim
21807 PERL!$PERL$ac_delim
21808 HAVE_PERL!$HAVE_PERL$ac_delim
21809 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21810 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21811 INSTALL_DATA!$INSTALL_DATA$ac_delim
21812 BZIP2!$BZIP2$ac_delim
21814 DOXYGEN!$DOXYGEN$ac_delim
21815 GROFF!$GROFF$ac_delim
21816 GZIP!$GZIP$ac_delim
21817 POD2HTML!$POD2HTML$ac_delim
21818 POD2MAN!$POD2MAN$ac_delim
21819 PDFROFF!$PDFROFF$ac_delim
21820 RUNTEST!$RUNTEST$ac_delim
21821 TCLSH!$TCLSH$ac_delim
21823 OCAMLC!$OCAMLC$ac_delim
21824 OCAMLOPT!$OCAMLOPT$ac_delim
21825 OCAMLDEP!$OCAMLDEP$ac_delim
21826 OCAMLDOC!$OCAMLDOC$ac_delim
21828 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21829 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21830 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21831 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21832 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21833 LIBADD_DL!$LIBADD_DL$ac_delim
21834 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21835 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21836 LLVMGCC!$LLVMGCC$ac_delim
21837 LLVMGXX!$LLVMGXX$ac_delim
21838 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21839 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21840 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21841 USE_UDIS86!$USE_UDIS86$ac_delim
21842 USE_OPROFILE!$USE_OPROFILE$ac_delim
21843 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21844 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21845 MMAP_FILE!$MMAP_FILE$ac_delim
21846 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
21847 LLVMCC1!$LLVMCC1$ac_delim
21848 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21849 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21850 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21851 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
21852 LLVMGCC_DISABLEOPT_FLAGS!$LLVMGCC_DISABLEOPT_FLAGS$ac_delim
21853 SHLIBEXT!$SHLIBEXT$ac_delim
21854 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21855 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21856 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21857 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21858 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21859 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21860 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21861 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21862 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21863 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21864 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21865 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21866 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21867 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21868 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21869 RPATH!$RPATH$ac_delim
21872 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21874 elif $ac_last_try; then
21875 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21876 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21877 { (exit 1); exit 1; }; }
21879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21883 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21884 if test -n "$ac_eof"; then
21885 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21886 ac_eof=`expr $ac_eof + 1`
21889 cat >>$CONFIG_STATUS <<_ACEOF
21890 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21894 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21895 s/^/s,@/; s/!/@,|#_!!_#|/
21898 s/'"$ac_delim"'$/,g/; t
21900 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21901 ' >>$CONFIG_STATUS <conf$$subs.sed
21902 rm -f conf$$subs.sed
21903 cat >>$CONFIG_STATUS <<_ACEOF
21909 for ac_last_try in false false false false false :; do
21910 cat >conf$$subs.sed <<_ACEOF
21911 RDYNAMIC!$RDYNAMIC$ac_delim
21912 LIBOBJS!$LIBOBJS$ac_delim
21913 LTLIBOBJS!$LTLIBOBJS$ac_delim
21916 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
21918 elif $ac_last_try; then
21919 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21920 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21921 { (exit 1); exit 1; }; }
21923 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21927 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21928 if test -n "$ac_eof"; then
21929 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21930 ac_eof=`expr $ac_eof + 1`
21933 cat >>$CONFIG_STATUS <<_ACEOF
21934 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
21935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21938 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21939 s/^/s,@/; s/!/@,|#_!!_#|/
21942 s/'"$ac_delim"'$/,g/; t
21944 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21945 ' >>$CONFIG_STATUS <conf$$subs.sed
21946 rm -f conf$$subs.sed
21947 cat >>$CONFIG_STATUS <<_ACEOF
21954 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21955 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21956 # trailing colons and then remove the whole line if VPATH becomes empty
21957 # (actually we leave an empty line to preserve line numbers).
21958 if test "x$srcdir" = x.; then
21959 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21960 s/:*\$(srcdir):*/:/
21961 s/:*\${srcdir}:*/:/
21963 s/^\([^=]*=[ ]*\):*/\1/
21969 cat >>$CONFIG_STATUS <<\_ACEOF
21970 fi # test -n "$CONFIG_FILES"
21973 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21976 :[FHLC]) ac_mode=$ac_tag; continue;;
21978 case $ac_mode$ac_tag in
21980 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21981 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21982 { (exit 1); exit 1; }; };;
21983 :[FH]-) ac_tag=-:-;;
21984 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22001 -) ac_f="$tmp/stdin";;
22002 *) # Look for the file first in the build tree, then in the source tree
22003 # (if the path is not absolute). The absolute path cannot be DOS-style,
22004 # because $ac_f cannot contain `:'.
22008 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22010 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22011 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22012 { (exit 1); exit 1; }; };;
22014 ac_file_inputs="$ac_file_inputs $ac_f"
22017 # Let's still pretend it is `configure' which instantiates (i.e., don't
22018 # use $as_me), people would be surprised to read:
22019 # /* config.h. Generated by config.status. */
22020 configure_input="Generated from "`IFS=:
22021 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22022 if test x"$ac_file" != x-; then
22023 configure_input="$ac_file. $configure_input"
22024 { echo "$as_me:$LINENO: creating $ac_file" >&5
22025 echo "$as_me: creating $ac_file" >&6;}
22029 *:-:* | *:-) cat >"$tmp/stdin";;
22034 ac_dir=`$as_dirname -- "$ac_file" ||
22035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22036 X"$ac_file" : 'X\(//\)[^/]' \| \
22037 X"$ac_file" : 'X\(//\)$' \| \
22038 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22044 /^X\(\/\/\)[^/].*/{
22059 -*) as_dir=./$as_dir;;
22061 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22065 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22066 *) as_qdir=$as_dir;;
22068 as_dirs="'$as_qdir' $as_dirs"
22069 as_dir=`$as_dirname -- "$as_dir" ||
22070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22071 X"$as_dir" : 'X\(//\)[^/]' \| \
22072 X"$as_dir" : 'X\(//\)$' \| \
22073 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22079 /^X\(\/\/\)[^/].*/{
22092 test -d "$as_dir" && break
22094 test -z "$as_dirs" || eval "mkdir $as_dirs"
22095 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22096 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22097 { (exit 1); exit 1; }; }; }
22101 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22104 # A ".." for each directory in $ac_dir_suffix.
22105 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22106 case $ac_top_builddir_sub in
22107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22111 ac_abs_top_builddir=$ac_pwd
22112 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22113 # for backward compatibility:
22114 ac_top_builddir=$ac_top_build_prefix
22117 .) # We are building in place.
22119 ac_top_srcdir=$ac_top_builddir_sub
22120 ac_abs_top_srcdir=$ac_pwd ;;
22121 [\\/]* | ?:[\\/]* ) # Absolute name.
22122 ac_srcdir=$srcdir$ac_dir_suffix;
22123 ac_top_srcdir=$srcdir
22124 ac_abs_top_srcdir=$srcdir ;;
22125 *) # Relative name.
22126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22127 ac_top_srcdir=$ac_top_build_prefix$srcdir
22128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22130 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22140 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22141 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22145 cat >>$CONFIG_STATUS <<\_ACEOF
22146 # If the template does not know about datarootdir, expand it.
22147 # FIXME: This hack should be removed a few years after 2.60.
22148 ac_datarootdir_hack=; ac_datarootdir_seen=
22150 case `sed -n '/datarootdir/ {
22159 ' $ac_file_inputs` in
22160 *datarootdir*) ac_datarootdir_seen=yes;;
22161 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22162 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22163 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22165 cat >>$CONFIG_STATUS <<_ACEOF
22166 ac_datarootdir_hack='
22167 s&@datadir@&$datadir&g
22168 s&@docdir@&$docdir&g
22169 s&@infodir@&$infodir&g
22170 s&@localedir@&$localedir&g
22171 s&@mandir@&$mandir&g
22172 s&\\\${datarootdir}&$datarootdir&g' ;;
22176 # Neutralize VPATH when `$srcdir' = `.'.
22177 # Shell code in configure.ac might set extrasub.
22178 # FIXME: do we really want to maintain this feature?
22179 cat >>$CONFIG_STATUS <<_ACEOF
22183 cat >>$CONFIG_STATUS <<\_ACEOF
22185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22186 s&@configure_input@&$configure_input&;t t
22187 s&@top_builddir@&$ac_top_builddir_sub&;t t
22188 s&@srcdir@&$ac_srcdir&;t t
22189 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22190 s&@top_srcdir@&$ac_top_srcdir&;t t
22191 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22192 s&@builddir@&$ac_builddir&;t t
22193 s&@abs_builddir@&$ac_abs_builddir&;t t
22194 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22195 s&@INSTALL@&$ac_INSTALL&;t t
22196 $ac_datarootdir_hack
22197 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22199 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22200 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22201 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22202 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22203 which seems to be undefined. Please make sure it is defined." >&5
22204 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22205 which seems to be undefined. Please make sure it is defined." >&2;}
22209 -) cat "$tmp/out"; rm -f "$tmp/out";;
22210 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22219 # Transform confdefs.h into a sed script `conftest.defines', that
22220 # substitutes the proper values into config.h.in to produce config.h.
22221 rm -f conftest.defines conftest.tail
22222 # First, append a space to every undef/define line, to ease matching.
22223 echo 's/$/ /' >conftest.defines
22224 # Then, protect against being on the right side of a sed subst, or in
22225 # an unquoted here document, in config.status. If some macros were
22226 # called several times there might be several #defines for the same
22227 # symbol, which is useless. But do not sort them, since the last
22228 # AC_DEFINE must be honored.
22229 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22230 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22231 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22232 # PARAMS is the parameter list in the macro definition--in most cases, it's
22233 # just an empty string.
22234 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22235 ac_dB='\\)[ (].*,\\1define\\2'
22243 s/^[ ]*#[ ]*define[ ][ ]*//
22248 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22249 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22250 ' >>conftest.defines
22252 # Remove the space that was appended to ease matching.
22253 # Then replace #undef with comments. This is necessary, for
22254 # example, in the case of _POSIX_SOURCE, which is predefined and required
22255 # on some systems where configure will not decide to define it.
22256 # (The regexp can be short, since the line contains either #define or #undef.)
22258 s,^[ #]*u.*,/* & */,' >>conftest.defines
22260 # Break up conftest.defines:
22261 ac_max_sed_lines=50
22263 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22264 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22265 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22267 ac_in='$ac_file_inputs'
22268 ac_out='"$tmp/out1"'
22269 ac_nxt='"$tmp/out2"'
22273 # Write a here document:
22274 cat >>$CONFIG_STATUS <<_ACEOF
22275 # First, check the format of the line:
22276 cat >"\$tmp/defines.sed" <<\\CEOF
22277 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22278 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22282 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22284 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22285 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22286 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22287 grep . conftest.tail >/dev/null || break
22288 rm -f conftest.defines
22289 mv conftest.tail conftest.defines
22291 rm -f conftest.defines conftest.tail
22293 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22294 cat >>$CONFIG_STATUS <<\_ACEOF
22295 if test x"$ac_file" != x-; then
22296 echo "/* $configure_input */" >"$tmp/config.h"
22297 cat "$ac_result" >>"$tmp/config.h"
22298 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22299 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22300 echo "$as_me: $ac_file is unchanged" >&6;}
22303 mv "$tmp/config.h" $ac_file
22306 echo "/* $configure_input */"
22312 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22313 echo "$as_me: executing $ac_file commands" >&6;}
22318 case $ac_file$ac_mode in
22319 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22320 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22321 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22322 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22323 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22324 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22325 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22326 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22327 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22328 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22329 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22330 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22331 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22332 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22333 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22334 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22335 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22336 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22337 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22338 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22339 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22340 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22341 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22342 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22343 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22344 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22350 { (exit 0); exit 0; }
22352 chmod +x $CONFIG_STATUS
22353 ac_clean_files=$ac_clean_files_save
22356 # configure is writing to config.log, and then calls config.status.
22357 # config.status does its own redirection, appending to config.log.
22358 # Unfortunately, on DOS this fails, as config.log is still kept open
22359 # by configure, so config.status won't be able to write to it; its
22360 # output is simply discarded. So we exec the FD to /dev/null,
22361 # effectively closing config.log, so it can be properly (re)opened and
22362 # appended to by config.status. When coming back to configure, we
22363 # need to make the FD available again.
22364 if test "$no_create" != yes; then
22366 ac_config_status_args=
22367 test "$silent" = yes &&
22368 ac_config_status_args="$ac_config_status_args --quiet"
22370 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22373 # would make configure fail if this is the last instruction.
22374 $ac_cs_success || { (exit 1); exit 1; }
22378 # CONFIG_SUBDIRS section.
22380 if test "$no_recursion" != yes; then
22382 # Remove --cache-file and --srcdir arguments so they do not pile up.
22383 ac_sub_configure_args=
22385 eval "set x $ac_configure_args"
22389 if test -n "$ac_prev"; then
22394 -cache-file | --cache-file | --cache-fil | --cache-fi \
22395 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22396 ac_prev=cache_file ;;
22397 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22398 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22401 --config-cache | -C)
22403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22407 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22409 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22413 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22415 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22419 # Always prepend --prefix to ensure using the same prefix
22420 # in subdir configurations.
22421 ac_arg="--prefix=$prefix"
22423 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22425 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22428 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22430 # Do not complain, so a configure script can configure whichever
22431 # parts of a large source tree are present.
22432 test -d "$srcdir/$ac_dir" || continue
22434 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22435 echo "$as_me:$LINENO: $ac_msg" >&5
22439 -*) as_dir=./$as_dir;;
22441 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22445 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22446 *) as_qdir=$as_dir;;
22448 as_dirs="'$as_qdir' $as_dirs"
22449 as_dir=`$as_dirname -- "$as_dir" ||
22450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22451 X"$as_dir" : 'X\(//\)[^/]' \| \
22452 X"$as_dir" : 'X\(//\)$' \| \
22453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22459 /^X\(\/\/\)[^/].*/{
22472 test -d "$as_dir" && break
22474 test -z "$as_dirs" || eval "mkdir $as_dirs"
22475 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22476 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22477 { (exit 1); exit 1; }; }; }
22481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22484 # A ".." for each directory in $ac_dir_suffix.
22485 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22486 case $ac_top_builddir_sub in
22487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22491 ac_abs_top_builddir=$ac_pwd
22492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22493 # for backward compatibility:
22494 ac_top_builddir=$ac_top_build_prefix
22497 .) # We are building in place.
22499 ac_top_srcdir=$ac_top_builddir_sub
22500 ac_abs_top_srcdir=$ac_pwd ;;
22501 [\\/]* | ?:[\\/]* ) # Absolute name.
22502 ac_srcdir=$srcdir$ac_dir_suffix;
22503 ac_top_srcdir=$srcdir
22504 ac_abs_top_srcdir=$srcdir ;;
22505 *) # Relative name.
22506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22507 ac_top_srcdir=$ac_top_build_prefix$srcdir
22508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22515 # Check for guested configure; otherwise get Cygnus style configure.
22516 if test -f "$ac_srcdir/configure.gnu"; then
22517 ac_sub_configure=$ac_srcdir/configure.gnu
22518 elif test -f "$ac_srcdir/configure"; then
22519 ac_sub_configure=$ac_srcdir/configure
22520 elif test -f "$ac_srcdir/configure.in"; then
22521 # This should be Cygnus configure.
22522 ac_sub_configure=$ac_aux_dir/configure
22524 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22529 # The recursion is here.
22530 if test -n "$ac_sub_configure"; then
22531 # Make the cache file name correct relative to the subdirectory.
22532 case $cache_file in
22533 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22534 *) # Relative name.
22535 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22538 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22539 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22540 # The eval makes quoting arguments work.
22541 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22542 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22543 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22544 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22545 { (exit 1); exit 1; }; }