2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
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='3.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
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
701 LLVM_ENUM_ASM_PRINTERS
702 LLVM_ENUM_ASM_PARSERS
703 LLVM_ENUM_DISASSEMBLERS
759 HAVE_LINK_VERSION_SCRIPT
762 CONVENIENCE_LTDL_TRUE
763 CONVENIENCE_LTDL_FALSE
771 NO_MISSING_FIELD_INITIALIZERS
783 LLVMCC_DISABLEOPT_FLAGS
799 ENABLE_VISIBILITY_INLINES_HIDDEN
805 ac_precious_vars='build_alias
816 ac_subdirs_all='projects/llvm-gcc
820 projects/llvm-poolalloc
823 projects/llvm-stacker
831 # Initialize some variables set by options.
833 ac_init_version=false
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
843 program_transform_name=s,x,x,
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
917 cache_file=config.cache ;;
919 -datadir | --datadir | --datadi | --datad)
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_$ac_feature=no ;;
940 -docdir | --docdir | --docdi | --doc | --do)
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 -enable-* | --enable-*)
951 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955 { (exit 1); exit 1; }; }
956 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
957 eval enable_$ac_feature=\$ac_optarg ;;
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
972 -help | --help | --hel | --he | -h)
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 htmldir=$ac_optarg ;;
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1002 -libdir | --libdir | --libdi | --libd)
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1093 -psdir | --psdir | --psdi | --psd | --ps)
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 sbindir=$ac_optarg ;;
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 sharedstatedir=$ac_optarg ;;
1119 -site | --site | --sit)
1121 -site=* | --site=* | --sit=*)
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1148 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package| sed 's/-/_/g'`
1154 eval with_$ac_package=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1160 { echo "$as_me: error: invalid package name: $ac_package" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_package=`echo $ac_package | sed 's/-/_/g'`
1163 eval with_$ac_package=no ;;
1166 # Obsolete; use --with-x.
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) { echo "$as_me: error: unrecognized option: $ac_option
1184 Try \`$0 --help' for more information." >&2
1185 { (exit 1); exit 1; }; }
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193 { (exit 1); exit 1; }; }
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 { echo "$as_me: error: missing argument to $ac_option" >&2
1211 { (exit 1); exit 1; }; }
1214 # Be sure to have absolute directory names.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val=\$$ac_var
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226 { (exit 1); exit 1; }; }
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1234 target=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250 test "$silent" = yes && exec 6>/dev/null
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 { echo "$as_me: error: Working directory cannot be determined" >&2
1257 { (exit 1); exit 1; }; }
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 { echo "$as_me: error: pwd does not report name of working directory" >&2
1260 { (exit 1); exit 1; }; }
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$0" ||
1268 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$0" : 'X\(//\)[^/]' \| \
1270 X"$0" : 'X\(//\)$' \| \
1271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1295 ac_srcdir_defaulted=no
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300 { (exit 1); exit 1; }; }
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305 { (exit 1); exit 1; }; }
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1331 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of llvm 3.0svn:";;
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-polly Use polly if available (default is YES)
1405 --enable-optimized Compile with optimizations enabled (default is NO)
1406 --enable-profiling Compile with profiling enabled (default is NO)
1407 --enable-assertions Compile with assertion checks enabled (default is
1409 --enable-expensive-checks
1410 Compile with expensive debug checks enabled (default
1412 --enable-debug-runtime Build runtime libs with debug symbols (default is
1414 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1415 optimization is on and YES if it's off)
1416 --enable-jit Enable Just In Time Compiling (default is YES)
1417 --enable-docs Build documents (default is YES)
1418 --enable-doxygen Build doxygen documentation (default is NO)
1419 --enable-threads Use threads if available (default is YES)
1420 --enable-pthreads Use pthreads if available (default is YES)
1421 --enable-pic Build LLVM with Position Independent Code (default
1423 --enable-shared Build a shared library and link tools against it
1425 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1426 Win32 DLL (default is YES)
1427 --enable-timestamps Enable embedding timestamp information in build
1429 --enable-targets Build specific host targets: all or
1430 target1,target2,... Valid targets are: host, x86,
1431 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1432 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1436 --enable-bindings Build specific language bindings:
1437 all,auto,none,{binding-name} (default=auto)
1438 --enable-libffi Check for the presence of libffi (default is NO)
1439 --enable-ltdl-install install libltdl
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1446 --with-llvmgcc Specify location of llvm-gcc driver (default
1448 --with-llvmgxx Specify location of llvm-g++ driver (default
1450 --with-clang Specify location of clang compiler (default is
1452 --with-built-clang Use the compiled Clang as the LLVM compiler
1454 --with-optimize-option Select the compiler options to use for optimized
1456 --with-extra-options Specify additional options to compile LLVM with
1457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1459 --with-clang-resource-dir
1460 Relative directory from the Clang binary for
1462 --with-c-include-dirs Colon separated list of directories clang will
1464 --with-cxx-include-root Directory with the libstdc++ headers.
1465 --with-cxx-include-arch Architecture of the libstdc++ headers.
1466 --with-cxx-include-32bit-dir
1467 32 bit multilib dir.
1468 --with-cxx-include-64bit-dir
1469 64 bit multilib directory.
1470 --with-binutils-include Specify path to binutils/include/ containing
1471 plugin-api.h file for gold plugin.
1472 --with-tclinclude directory where tcl headers are
1473 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1474 clang, or none; default=check)
1475 --with-udis86=<path> Use udis86 external x86 disassembler library
1476 --with-oprofile=<prefix>
1477 Tell OProfile >= 0.9.4 how to symbolize JIT output
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1485 you have headers in a nonstandard directory <include dir>
1487 CXX C++ compiler command
1488 CXXFLAGS C++ compiler flags
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1493 Report bugs to <llvmbugs@cs.uiuc.edu>.
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" || continue
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1521 .) # We are building in place.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1545 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1554 llvm configure 3.0svn
1555 generated by GNU Autoconf 2.60
1557 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1558 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1562 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1566 cat >config.log <<_ACEOF
1567 This file contains any messages produced by compilers while
1568 running configure, to aid debugging if configure makes a mistake.
1570 It was created by llvm $as_me 3.0svn, which was
1571 generated by GNU Autoconf 2.60. Invocation command line was
1583 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1584 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1585 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1586 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1587 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1589 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1590 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1592 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1593 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1594 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1595 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1596 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1597 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1598 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir=.
1607 echo "PATH: $as_dir"
1623 # Keep a trace of the command line.
1624 # Strip out --no-create and --no-recursion so they do not pile up.
1625 # Strip out --silent because we don't want to record it for future runs.
1626 # Also quote any args containing shell meta-characters.
1627 # Make two passes to allow for proper duplicate-argument suppression.
1631 ac_must_keep_next=false
1637 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639 | -silent | --silent | --silen | --sile | --sil)
1642 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1645 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1647 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1648 if test $ac_must_keep_next = true; then
1649 ac_must_keep_next=false # Got value, back to normal.
1652 *=* | --config-cache | -C | -disable-* | --disable-* \
1653 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1654 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1655 | -with-* | --with-* | -without-* | --without-* | --x)
1656 case "$ac_configure_args0 " in
1657 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660 -* ) ac_must_keep_next=true ;;
1663 ac_configure_args="$ac_configure_args '$ac_arg'"
1668 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1669 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1671 # When interrupted or exit'd, cleanup temporary files, and complete
1672 # config.log. We remove comments because anyway the quotes in there
1673 # would cause problems or look ugly.
1674 # WARNING: Use '\'' to represent an apostrophe within the trap.
1675 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1676 trap 'exit_status=$?
1677 # Save into config.log some information that might help in debugging.
1682 ## ---------------- ##
1683 ## Cache variables. ##
1684 ## ---------------- ##
1687 # The following way of writing the cache mishandles newlines in values,
1689 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1690 eval ac_val=\$$ac_var
1694 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1695 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1698 _ | IFS | as_nl) ;; #(
1699 *) $as_unset $ac_var ;;
1704 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1705 *${as_nl}ac_space=\ *)
1707 "s/'\''/'\''\\\\'\'''\''/g;
1708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1719 ## ----------------- ##
1720 ## Output variables. ##
1721 ## ----------------- ##
1724 for ac_var in $ac_subst_vars
1726 eval ac_val=\$$ac_var
1728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730 echo "$ac_var='\''$ac_val'\''"
1734 if test -n "$ac_subst_files"; then
1736 ## ------------------- ##
1737 ## File substitutions. ##
1738 ## ------------------- ##
1741 for ac_var in $ac_subst_files
1743 eval ac_val=\$$ac_var
1745 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747 echo "$ac_var='\''$ac_val'\''"
1752 if test -s confdefs.h; then
1762 test "$ac_signal" != 0 &&
1763 echo "$as_me: caught signal $ac_signal"
1764 echo "$as_me: exit $exit_status"
1766 rm -f core *.core core.conftest.* &&
1767 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1770 for ac_signal in 1 2 13 15; do
1771 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1775 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1776 rm -f -r conftest* confdefs.h
1778 # Predefined preprocessor variables.
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_NAME "$PACKAGE_NAME"
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_STRING "$PACKAGE_STRING"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1805 # Let the site file select an alternate cache file if it wants to.
1806 # Prefer explicitly selected file to automatically selected ones.
1807 if test -n "$CONFIG_SITE"; then
1808 set x "$CONFIG_SITE"
1809 elif test "x$prefix" != xNONE; then
1810 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1812 set x "$ac_default_prefix/share/config.site" \
1813 "$ac_default_prefix/etc/config.site"
1818 if test -r "$ac_site_file"; then
1819 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1820 echo "$as_me: loading site script $ac_site_file" >&6;}
1821 sed 's/^/| /' "$ac_site_file" >&5
1826 if test -r "$cache_file"; then
1827 # Some versions of bash will fail to source /dev/null (special
1828 # files actually), so we avoid doing that.
1829 if test -f "$cache_file"; then
1830 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1831 echo "$as_me: loading cache $cache_file" >&6;}
1833 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1834 *) . "./$cache_file";;
1838 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1839 echo "$as_me: creating cache $cache_file" >&6;}
1843 # Check that the precious variables saved in the cache have kept the same
1845 ac_cache_corrupted=false
1846 for ac_var in $ac_precious_vars; do
1847 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1848 eval ac_new_set=\$ac_env_${ac_var}_set
1849 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1850 eval ac_new_val=\$ac_env_${ac_var}_value
1851 case $ac_old_set,$ac_new_set in
1853 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1854 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1855 ac_cache_corrupted=: ;;
1857 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1859 ac_cache_corrupted=: ;;
1862 if test "x$ac_old_val" != "x$ac_new_val"; then
1863 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1864 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1865 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1866 echo "$as_me: former value: $ac_old_val" >&2;}
1867 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1868 echo "$as_me: current value: $ac_new_val" >&2;}
1869 ac_cache_corrupted=:
1872 # Pass precious variables to config.status.
1873 if test "$ac_new_set" = set; then
1875 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1876 *) ac_arg=$ac_var=$ac_new_val ;;
1878 case " $ac_configure_args " in
1879 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1880 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1884 if $ac_cache_corrupted; then
1885 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1886 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1887 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1888 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1889 { (exit 1); exit 1; }; }
1917 ac_cpp='$CPP $CPPFLAGS'
1918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1933 for ac_dir in autoconf "$srcdir"/autoconf; do
1934 if test -f "$ac_dir/install-sh"; then
1936 ac_install_sh="$ac_aux_dir/install-sh -c"
1938 elif test -f "$ac_dir/install.sh"; then
1940 ac_install_sh="$ac_aux_dir/install.sh -c"
1942 elif test -f "$ac_dir/shtool"; then
1944 ac_install_sh="$ac_aux_dir/shtool install -c"
1948 if test -z "$ac_aux_dir"; then
1949 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1950 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1951 { (exit 1); exit 1; }; }
1954 # These three variables are undocumented and unsupported,
1955 # and are intended to be withdrawn in a future Autoconf release.
1956 # They can cause serious problems if a builder's source tree is in a directory
1957 # whose full name contains unusual characters.
1958 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1959 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1960 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1964 if test ${srcdir} != "." ; then
1965 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1966 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1967 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1968 { (exit 1); exit 1; }; }
1974 if test -d ${srcdir}/projects/llvm-gcc ; then
1975 subdirs="$subdirs projects/llvm-gcc"
1979 if test -d ${srcdir}/projects/test-suite ; then
1980 subdirs="$subdirs projects/test-suite"
1984 if test -d ${srcdir}/projects/llvm-test ; then
1985 subdirs="$subdirs projects/llvm-test"
1989 if test -d ${srcdir}/projects/poolalloc ; then
1990 subdirs="$subdirs projects/poolalloc"
1994 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1995 subdirs="$subdirs projects/llvm-poolalloc"
1999 for i in `ls ${srcdir}/projects`
2001 if test -d ${srcdir}/projects/${i} ; then
2003 sample) subdirs="$subdirs projects/sample"
2005 privbracket) subdirs="$subdirs projects/privbracket"
2007 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2009 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2011 llvm-java) subdirs="$subdirs projects/llvm-java"
2013 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2015 safecode) subdirs="$subdirs projects/safecode"
2017 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2025 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2026 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2032 # Check whether --enable-polly was given.
2033 if test "${enable_polly+set}" = set; then
2034 enableval=$enable_polly;
2039 case "$enableval" in
2044 default) ENABLE_POLLY=1
2046 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2047 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2048 { (exit 1); exit 1; }; } ;;
2052 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2055 subdirs="$subdirs tools/polly"
2060 # Make sure we can run config.sub.
2061 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2062 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2063 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2064 { (exit 1); exit 1; }; }
2066 { echo "$as_me:$LINENO: checking build system type" >&5
2067 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2068 if test "${ac_cv_build+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 ac_build_alias=$build_alias
2072 test "x$ac_build_alias" = x &&
2073 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2074 test "x$ac_build_alias" = x &&
2075 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2076 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2077 { (exit 1); exit 1; }; }
2078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2079 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2080 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2081 { (exit 1); exit 1; }; }
2084 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2085 echo "${ECHO_T}$ac_cv_build" >&6; }
2086 case $ac_cv_build in
2088 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2089 echo "$as_me: error: invalid value of canonical build" >&2;}
2090 { (exit 1); exit 1; }; };;
2093 ac_save_IFS=$IFS; IFS='-'
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2103 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2106 { echo "$as_me:$LINENO: checking host system type" >&5
2107 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2108 if test "${ac_cv_host+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 if test "x$host_alias" = x; then
2112 ac_cv_host=$ac_cv_build
2114 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2121 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2122 echo "${ECHO_T}$ac_cv_host" >&6; }
2125 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2126 echo "$as_me: error: invalid value of canonical host" >&2;}
2127 { (exit 1); exit 1; }; };;
2130 ac_save_IFS=$IFS; IFS='-'
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2140 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2143 { echo "$as_me:$LINENO: checking target system type" >&5
2144 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2145 if test "${ac_cv_target+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 if test "x$target_alias" = x; then
2149 ac_cv_target=$ac_cv_host
2151 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2152 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2153 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2154 { (exit 1); exit 1; }; }
2158 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2159 echo "${ECHO_T}$ac_cv_target" >&6; }
2160 case $ac_cv_target in
2162 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2163 echo "$as_me: error: invalid value of canonical target" >&2;}
2164 { (exit 1); exit 1; }; };;
2166 target=$ac_cv_target
2167 ac_save_IFS=$IFS; IFS='-'
2173 # Remember, the first character of IFS is used to create $*,
2174 # except with old shells:
2177 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2180 # The aliases save the names the user supplied, while $host etc.
2181 # will get canonicalized.
2182 test -n "$target_alias" &&
2183 test "$program_prefix$program_suffix$program_transform_name" = \
2185 program_prefix=${target_alias}-
2187 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2188 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2189 if test "${llvm_cv_os_type+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
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="AIX"
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="IRIX"
2202 llvm_cv_platform_type="Unix" ;;
2204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2206 llvm_cv_os_type="Cygwin"
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="Darwin"
2212 llvm_cv_platform_type="Unix" ;;
2214 llvm_cv_link_all_option="-Wl,-all_load"
2215 llvm_cv_no_link_all_option="-Wl,-noall_load"
2216 llvm_cv_os_type="Minix"
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="FreeBSD"
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="OpenBSD"
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="NetBSD"
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="DragonFly"
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="HP-UX"
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="Interix"
2247 llvm_cv_platform_type="Unix" ;;
2249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2251 llvm_cv_os_type="Linux"
2252 llvm_cv_platform_type="Unix" ;;
2254 llvm_cv_link_all_option="-Wl,-z,allextract"
2255 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2256 llvm_cv_os_type="SunOS"
2257 llvm_cv_platform_type="Unix" ;;
2259 llvm_cv_link_all_option="-Wl,-z,allextract"
2260 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2261 llvm_cv_os_type="AuroraUX"
2262 llvm_cv_platform_type="Unix" ;;
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="Win32"
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="MingW"
2272 llvm_cv_platform_type="Win32" ;;
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="Haiku"
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="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="Freestanding"
2287 llvm_cv_platform_type="Unix" ;;
2289 llvm_cv_link_all_option=""
2290 llvm_cv_no_link_all_option=""
2291 llvm_cv_os_type="Unknown"
2292 llvm_cv_platform_type="Unknown" ;;
2295 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2296 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2298 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2299 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2300 if test "${llvm_cv_target_os_type+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 llvm_cv_target_os_type="AIX" ;;
2307 llvm_cv_target_os_type="IRIX" ;;
2309 llvm_cv_target_os_type="Cygwin" ;;
2311 llvm_cv_target_os_type="Darwin" ;;
2313 llvm_cv_target_os_type="Minix" ;;
2315 llvm_cv_target_os_type="FreeBSD" ;;
2317 llvm_cv_target_os_type="OpenBSD" ;;
2319 llvm_cv_target_os_type="NetBSD" ;;
2321 llvm_cv_target_os_type="DragonFly" ;;
2323 llvm_cv_target_os_type="HP-UX" ;;
2325 llvm_cv_target_os_type="Interix" ;;
2327 llvm_cv_target_os_type="Linux" ;;
2329 llvm_cv_target_os_type="SunOS" ;;
2331 llvm_cv_target_os_type="AuroraUX" ;;
2333 llvm_cv_target_os_type="Win32" ;;
2335 llvm_cv_target_os_type="MingW" ;;
2337 llvm_cv_target_os_type="Haiku" ;;
2339 llvm_cv_target_os_type="Freestanding" ;;
2341 llvm_cv_target_os_type="Unknown" ;;
2344 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2345 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2347 if test "$llvm_cv_os_type" = "Unknown" ; then
2348 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2349 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2350 { (exit 1); exit 1; }; }
2355 HOST_OS=$llvm_cv_os_type
2357 TARGET_OS=$llvm_cv_target_os_type
2360 LINKALL=$llvm_cv_link_all_option
2362 NOLINKALL=$llvm_cv_no_link_all_option
2365 case $llvm_cv_platform_type in
2368 cat >>confdefs.h <<\_ACEOF
2369 #define LLVM_ON_UNIX 1
2379 cat >>confdefs.h <<\_ACEOF
2380 #define LLVM_ON_WIN32 1
2390 { echo "$as_me:$LINENO: checking target architecture" >&5
2391 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2392 if test "${llvm_cv_target_arch+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 i?86-*) llvm_cv_target_arch="x86" ;;
2397 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2398 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2399 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2400 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2401 arm*-*) llvm_cv_target_arch="ARM" ;;
2402 mips-*) llvm_cv_target_arch="Mips" ;;
2403 xcore-*) llvm_cv_target_arch="XCore" ;;
2404 msp430-*) llvm_cv_target_arch="MSP430" ;;
2405 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2406 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2407 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2408 ptx-*) llvm_cv_target_arch="PTX" ;;
2409 *) llvm_cv_target_arch="Unknown" ;;
2412 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2415 if test "$llvm_cv_target_arch" = "Unknown" ; then
2416 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2420 # Determine the LLVM native architecture for the target
2421 case "$llvm_cv_target_arch" in
2422 x86) LLVM_NATIVE_ARCH="X86" ;;
2423 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2424 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2427 ARCH=$llvm_cv_target_arch
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2474 if test -z "$ac_cv_prog_CC"; then
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC="gcc"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2512 if test "x$ac_ct_CC" = x; then
2515 case $cross_compiling:$ac_tool_warned in
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}cc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="${ac_tool_prefix}cc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2572 if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574 set dummy cc; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected=yes
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy $ac_cv_prog_CC
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2618 if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2628 if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 if test -n "$CC"; then
2661 { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$CC" && break
2672 if test -z "$CC"; then
2674 for ac_prog in cl.exe
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_ac_ct_CC="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706 echo "${ECHO_T}$ac_ct_CC" >&6; }
2708 { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2713 test -n "$ac_ct_CC" && break
2716 if test "x$ac_ct_CC" = x; then
2719 case $cross_compiling:$ac_tool_warned in
2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727 ac_tool_warned=yes ;;
2736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO: checking for C compiler version" >&5
2744 ac_compiler=`set X $ac_compile; echo $2`
2745 { (ac_try="$ac_compiler --version >&5"
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler --version >&5") 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755 { (ac_try="$ac_compiler -v >&5"
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -v >&5") 2>&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }
2765 { (ac_try="$ac_compiler -V >&5"
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compiler -V >&5") 2>&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }
2776 cat >conftest.$ac_ext <<_ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2791 ac_clean_files_save=$ac_clean_files
2792 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2793 # Try to create an executable without -o first, disregard a.out.
2794 # It will help us diagnose broken compilers, and finding out an intuition
2796 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2797 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2800 # List of possible output files, starting from the most likely.
2801 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802 # only as a last resort. b.out is created by i960 compilers.
2803 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2805 # The IRIX 6 linker writes into existing files which may not be
2806 # executable, retaining their permissions. Remove them first so a
2807 # subsequent execution test works.
2809 for ac_file in $ac_files
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818 if { (ac_try="$ac_link_default"
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_link_default") 2>&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2833 for ac_file in $ac_files
2835 test -f "$ac_file" || continue
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2840 # We found the default executable, but exeext='' is most
2844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&2;}
2868 { (exit 77); exit 77; }; }
2871 ac_exeext=$ac_cv_exeext
2872 { echo "$as_me:$LINENO: result: $ac_file" >&5
2873 echo "${ECHO_T}$ac_file" >&6; }
2875 # Check that the compiler produces executables we can run. If not, either
2876 # the compiler is broken, or we cross compile.
2877 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2880 # If not cross compiling, check that we can run a simple program.
2881 if test "$cross_compiling" != yes; then
2882 if { ac_try='./$ac_file'
2883 { (case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_try") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2894 if test "$cross_compiling" = maybe; then
2897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \`config.log' for more details." >&5
2900 echo "$as_me: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details." >&2;}
2903 { (exit 1); exit 1; }; }
2907 { echo "$as_me:$LINENO: result: yes" >&5
2908 echo "${ECHO_T}yes" >&6; }
2910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2911 ac_clean_files=$ac_clean_files_save
2912 # Check that the compiler produces executables we can run. If not, either
2913 # the compiler is broken, or we cross compile.
2914 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2916 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2917 echo "${ECHO_T}$cross_compiling" >&6; }
2919 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2921 if { (ac_try="$ac_link"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_link") 2>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; then
2931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2932 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2933 # work properly (i.e., refer to `conftest.exe'), while it won't with
2935 for ac_file in conftest.exe conftest conftest.*; do
2936 test -f "$ac_file" || continue
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details." >&5
2947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2948 See \`config.log' for more details." >&2;}
2949 { (exit 1); exit 1; }; }
2952 rm -f conftest$ac_cv_exeext
2953 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2954 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2956 rm -f conftest.$ac_ext
2957 EXEEXT=$ac_cv_exeext
2959 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2961 if test "${ac_cv_objext+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2979 rm -f conftest.o conftest.obj
2980 if { (ac_try="$ac_compile"
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 for ac_file in conftest.o conftest.obj conftest.*; do
2991 test -f "$ac_file" || continue;
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3002 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3005 See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
3009 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3011 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3012 echo "${ECHO_T}$ac_cv_objext" >&6; }
3013 OBJEXT=$ac_cv_objext
3015 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3016 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3047 grep -v '^ *+' conftest.er1 >conftest.err
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3084 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3085 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3086 GCC=`test $ac_compiler_gnu = yes && echo yes`
3087 ac_test_CFLAGS=${CFLAGS+set}
3088 ac_save_CFLAGS=$CFLAGS
3089 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3090 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_cc_g+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 ac_save_c_werror_flag=$ac_c_werror_flag
3095 ac_c_werror_flag=yes
3098 cat >conftest.$ac_ext <<_ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3122 grep -v '^ *+' conftest.er1 >conftest.err
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3177 grep -v '^ *+' conftest.er1 >conftest.err
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 ac_c_werror_flag=$ac_save_c_werror_flag
3209 cat >conftest.$ac_ext <<_ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3239 { (case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_try") 2>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_try") 2>&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3275 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3277 if test "$ac_test_CFLAGS" = set; then
3278 CFLAGS=$ac_save_CFLAGS
3279 elif test $ac_cv_prog_cc_g = yes; then
3280 if test "$GCC" = yes; then
3286 if test "$GCC" = yes; then
3292 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3293 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_cc_c89+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 ac_cv_prog_cc_c89=no
3299 cat >conftest.$ac_ext <<_ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3307 #include <sys/types.h>
3308 #include <sys/stat.h>
3309 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3310 struct buf { int x; };
3311 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3312 static char *e (p, i)
3318 static char *f (char * (*g) (char **, int), char **p, ...)
3323 s = g (p, va_arg (v,int));
3328 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3329 function prototypes and stuff, but not '\xHH' hex character constants.
3330 These don't provoke an error unfortunately, instead are silently treated
3331 as 'x'. The following induces an error, until -std is added to get
3332 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3333 array size at least. It's necessary to write '\x00'==0 to get something
3334 that's true only with -std. */
3335 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3337 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3338 inside strings and character constants. */
3340 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3342 int test (int i, double x);
3343 struct s1 {int (*f) (int a);};
3344 struct s2 {int (*f) (double a);};
3345 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3351 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3356 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3357 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3359 CC="$ac_save_CC $ac_arg"
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1 >conftest.err
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3375 { (case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_try") 2>&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_prog_cc_c89=$ac_arg
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3402 rm -f core conftest.err conftest.$ac_objext
3403 test "x$ac_cv_prog_cc_c89" != "xno" && break
3405 rm -f conftest.$ac_ext
3410 case "x$ac_cv_prog_cc_c89" in
3412 { echo "$as_me:$LINENO: result: none needed" >&5
3413 echo "${ECHO_T}none needed" >&6; } ;;
3415 { echo "$as_me:$LINENO: result: unsupported" >&5
3416 echo "${ECHO_T}unsupported" >&6; } ;;
3418 CC="$CC $ac_cv_prog_cc_c89"
3419 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3420 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3437 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3438 # On Suns, sometimes $CPP names a directory.
3439 if test -n "$CPP" && test -d "$CPP"; then
3442 if test -z "$CPP"; then
3443 if test "${ac_cv_prog_CPP+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 # Double quotes because CPP needs to be expanded
3447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3450 for ac_c_preproc_warn_flag in '' yes
3452 # Use a header file that comes with gcc, so configuring glibc
3453 # with a fresh cross-compiler works.
3454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455 # <limits.h> exists even on freestanding compilers.
3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error" is here to catch this case.
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3465 # include <limits.h>
3467 # include <assert.h>
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 grep -v '^ *+' conftest.er1 >conftest.err
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 if test -z "$ac_cpp_err"; then
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Broken: fails on valid input.
3503 rm -f conftest.err conftest.$ac_ext
3505 # OK, works on sane cases. Now check whether nonexistent headers
3506 # can be detected and how.
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <ac_nonexistent.h>
3515 if { (ac_try="$ac_cpp conftest.$ac_ext"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3523 grep -v '^ *+' conftest.er1 >conftest.err
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } >/dev/null; then
3528 if test -s conftest.err; then
3529 ac_cpp_err=$ac_c_preproc_warn_flag
3530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3537 if test -z "$ac_cpp_err"; then
3538 # Broken: success on invalid input.
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 # Passes both tests.
3549 rm -f conftest.err conftest.$ac_ext
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then
3566 { echo "$as_me:$LINENO: result: $CPP" >&5
3567 echo "${ECHO_T}$CPP" >&6; }
3569 for ac_c_preproc_warn_flag in '' yes
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
3577 cat >conftest.$ac_ext <<_ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3584 # include <limits.h>
3586 # include <assert.h>
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 if test -z "$ac_cpp_err"; then
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 # Broken: fails on valid input.
3622 rm -f conftest.err conftest.$ac_ext
3624 # OK, works on sane cases. Now check whether nonexistent headers
3625 # can be detected and how.
3626 cat >conftest.$ac_ext <<_ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 #include <ac_nonexistent.h>
3634 if { (ac_try="$ac_cpp conftest.$ac_ext"
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3642 grep -v '^ *+' conftest.er1 >conftest.err
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } >/dev/null; then
3647 if test -s conftest.err; then
3648 ac_cpp_err=$ac_c_preproc_warn_flag
3649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3656 if test -z "$ac_cpp_err"; then
3657 # Broken: success on invalid input.
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3663 # Passes both tests.
3668 rm -f conftest.err conftest.$ac_ext
3671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672 rm -f conftest.err conftest.$ac_ext
3673 if $ac_preproc_ok; then
3676 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3677 See \`config.log' for more details." >&5
3678 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log' for more details." >&2;}
3680 { (exit 1); exit 1; }; }
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3691 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_GREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 # Extract the first word of "grep ggrep" to use in msg output
3696 if test -z "$GREP"; then
3697 set dummy grep ggrep; ac_prog_name=$2
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 ac_path_GREP_found=false
3702 # Loop through the user's path and test for each of PROGNAME-LIST
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3707 test -z "$as_dir" && as_dir=.
3708 for ac_prog in grep ggrep; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3712 # Check for GNU ac_path_GREP and select it if it is found.
3713 # Check for GNU $ac_path_GREP
3714 case `"$ac_path_GREP" --version 2>&1` in
3716 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
3725 echo 'GREP' >> "conftest.nl"
3726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3728 ac_count=`expr $ac_count + 1`
3729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_GREP="$ac_path_GREP"
3732 ac_path_GREP_max=$ac_count
3734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3741 $ac_path_GREP_found && break 3
3751 GREP="$ac_cv_path_GREP"
3752 if test -z "$GREP"; then
3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755 { (exit 1); exit 1; }; }
3759 ac_cv_path_GREP=$GREP
3764 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3765 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3766 GREP="$ac_cv_path_GREP"
3769 { echo "$as_me:$LINENO: checking for egrep" >&5
3770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3771 if test "${ac_cv_path_EGREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3775 then ac_cv_path_EGREP="$GREP -E"
3777 # Extract the first word of "egrep" to use in msg output
3778 if test -z "$EGREP"; then
3779 set dummy egrep; ac_prog_name=$2
3780 if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 ac_path_EGREP_found=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3789 test -z "$as_dir" && as_dir=.
3790 for ac_prog in egrep; do
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3794 # Check for GNU ac_path_EGREP and select it if it is found.
3795 # Check for GNU $ac_path_EGREP
3796 case `"$ac_path_EGREP" --version 2>&1` in
3798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
3807 echo 'EGREP' >> "conftest.nl"
3808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810 ac_count=`expr $ac_count + 1`
3811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP="$ac_path_EGREP"
3814 ac_path_EGREP_max=$ac_count
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3823 $ac_path_EGREP_found && break 3
3833 EGREP="$ac_cv_path_EGREP"
3834 if test -z "$EGREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3841 ac_cv_path_EGREP=$EGREP
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3849 EGREP="$ac_cv_path_EGREP"
3852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3854 if test "${ac_cv_header_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 cat >conftest.$ac_ext <<_ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_try") 2>&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_cv_header_stdc=yes
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_cv_header_stdc=no
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3932 $EGREP "memchr" >/dev/null 2>&1; then
3935 ac_cv_header_stdc=no
3941 if test $ac_cv_header_stdc = yes; then
3942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953 $EGREP "free" >/dev/null 2>&1; then
3956 ac_cv_header_stdc=no
3962 if test $ac_cv_header_stdc = yes; then
3963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3964 if test "$cross_compiling" = yes; then
3967 cat >conftest.$ac_ext <<_ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3975 #if ((' ' & 0x0FF) == 0x020)
3976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3979 # define ISLOWER(c) \
3980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
3983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
3993 || toupper (i) != TOUPPER (i))
3998 rm -f conftest$ac_exeext
3999 if { (ac_try="$ac_link"
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_link") 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4009 { (case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4025 ac_cv_header_stdc=no
4027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4033 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4034 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4035 if test $ac_cv_header_stdc = yes; then
4037 cat >>confdefs.h <<\_ACEOF
4038 #define STDC_HEADERS 1
4043 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4053 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4054 inttypes.h stdint.h unistd.h
4056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4070 #include <$ac_header>
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1 >conftest.err
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087 { (case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 eval "$as_ac_Header=yes"
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 eval "$as_ac_Header=no"
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 ac_res=`eval echo '${'$as_ac_Header'}'`
4117 { echo "$as_me:$LINENO: result: $ac_res" >&5
4118 echo "${ECHO_T}$ac_res" >&6; }
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h <<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4129 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4130 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4131 if test "${ac_cv_c_bigendian+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 # See if sys/param.h defines the BYTE_ORDER macro.
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <sys/types.h>
4142 #include <sys/param.h>
4147 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4155 rm -f conftest.$ac_objext
4156 if { (ac_try="$ac_compile"
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_compile") 2>conftest.er1
4164 grep -v '^ *+' conftest.er1 >conftest.err
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; } &&
4179 { ac_try='test -s conftest.$ac_objext'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 # It does; now see whether it defined to BIG_ENDIAN or not.
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <sys/types.h>
4197 #include <sys/param.h>
4202 #if BYTE_ORDER != BIG_ENDIAN
4210 rm -f conftest.$ac_objext
4211 if { (ac_try="$ac_compile"
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_compile") 2>conftest.er1
4219 grep -v '^ *+' conftest.er1 >conftest.err
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225 { (case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_cv_c_bigendian=yes
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 ac_cv_c_bigendian=no
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4257 # It does not; compile a test program.
4258 if test "$cross_compiling" = yes; then
4259 # try to guess the endianness by grepping values into an object file
4260 ac_cv_c_bigendian=unknown
4261 cat >conftest.$ac_ext <<_ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4268 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4269 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4270 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4271 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4272 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4276 _ascii (); _ebcdic ();
4281 rm -f conftest.$ac_objext
4282 if { (ac_try="$ac_compile"
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_compile") 2>conftest.er1
4290 grep -v '^ *+' conftest.er1 >conftest.err
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_try") 2>&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4316 ac_cv_c_bigendian=yes
4318 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4319 if test "$ac_cv_c_bigendian" = unknown; then
4320 ac_cv_c_bigendian=no
4322 # finding both strings is unlikely to happen, but who knows?
4323 ac_cv_c_bigendian=unknown
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 $ac_includes_default
4346 /* Are we little or big endian? From Harbison&Steele. */
4350 char c[sizeof (long int)];
4353 return u.c[sizeof (long int) - 1] == 1;
4359 rm -f conftest$ac_exeext
4360 if { (ac_try="$ac_link"
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link") 2>&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4370 { (case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_try") 2>&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_c_bigendian=no
4381 echo "$as_me: program exited with status $ac_status" >&5
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_cv_c_bigendian=yes
4388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4397 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4398 case $ac_cv_c_bigendian in
4406 { { echo "$as_me:$LINENO: error: unknown endianness
4407 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4408 echo "$as_me: error: unknown endianness
4409 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4410 { (exit 1); exit 1; }; } ;;
4414 if test "$cross_compiling" = yes; then
4415 LLVM_CROSS_COMPILING=1
4418 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4419 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4420 if test "${ac_cv_build_exeext+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4424 ac_cv_build_exeext=.exe
4426 ac_build_prefix=${build_alias}-
4428 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4429 set dummy ${ac_build_prefix}gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "gcc", so it can be a program name with args.
4467 set dummy gcc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 ac_cv_prog_BUILD_CC="gcc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 BUILD_CC=$ac_cv_prog_BUILD_CC
4494 if test -n "$BUILD_CC"; then
4495 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4496 echo "${ECHO_T}$BUILD_CC" >&6; }
4498 { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4503 if test -z "$BUILD_CC"; then
4504 # Extract the first word of "cc", so it can be a program name with args.
4505 set dummy cc; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 if test -n "$BUILD_CC"; then
4512 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4523 ac_prog_rejected=yes
4526 ac_cv_prog_BUILD_CC="cc"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 if test $ac_prog_rejected = yes; then
4535 # We found a bogon in the path, so make sure we never use it.
4536 set dummy $ac_cv_prog_BUILD_CC
4538 if test $# != 0; then
4539 # We chose a different compiler from the bogus one.
4540 # However, it has the same basename, so the bogon will be chosen
4541 # first if we set BUILD_CC to just the basename; use the full file name.
4543 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4548 BUILD_CC=$ac_cv_prog_BUILD_CC
4549 if test -n "$BUILD_CC"; then
4550 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4551 echo "${ECHO_T}$BUILD_CC" >&6; }
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4560 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4561 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4562 { (exit 1); exit 1; }; }
4563 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4565 echo 'int main () { return 0; }' > conftest.$ac_ext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4568 (eval $ac_build_link) 2>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; then
4572 for file in conftest.*; do
4574 *.c | *.o | *.obj | *.dSYM) ;;
4575 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4579 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4580 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4581 { (exit 1); exit 1; }; }
4584 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4589 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4590 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4591 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4592 ac_build_exeext=$BUILD_EXEEXT
4594 ac_build_prefix=${build_alias}-
4595 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4596 set dummy ${ac_build_prefix}g++; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623 if test -n "$BUILD_CXX"; then
4624 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625 echo "${ECHO_T}$BUILD_CXX" >&6; }
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4632 if test -z "$BUILD_CXX"; then
4633 # Extract the first word of "g++", so it can be a program name with args.
4634 set dummy g++; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 if test -n "$BUILD_CXX"; then
4641 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_prog_BUILD_CXX="g++"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4661 if test -n "$BUILD_CXX"; then
4662 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4663 echo "${ECHO_T}$BUILD_CXX" >&6; }
4665 { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4670 if test -z "$BUILD_CXX"; then
4671 # Extract the first word of "c++", so it can be a program name with args.
4672 set dummy c++; ac_word=$2
4673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 if test -n "$BUILD_CXX"; then
4679 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4690 ac_prog_rejected=yes
4693 ac_cv_prog_BUILD_CXX="c++"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 if test $ac_prog_rejected = yes; then
4702 # We found a bogon in the path, so make sure we never use it.
4703 set dummy $ac_cv_prog_BUILD_CXX
4705 if test $# != 0; then
4706 # We chose a different compiler from the bogus one.
4707 # However, it has the same basename, so the bogon will be chosen
4708 # first if we set BUILD_CXX to just the basename; use the full file name.
4710 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4715 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4716 if test -n "$BUILD_CXX"; then
4717 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4718 echo "${ECHO_T}$BUILD_CXX" >&6; }
4720 { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4728 LLVM_CROSS_COMPILING=0
4732 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4743 # Check whether --enable-optimized was given.
4744 if test "${enable_optimized+set}" = set; then
4745 enableval=$enable_optimized;
4750 if test ${enableval} = "no" ; then
4754 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4758 # Check whether --enable-profiling was given.
4759 if test "${enable_profiling+set}" = set; then
4760 enableval=$enable_profiling;
4765 if test ${enableval} = "no" ; then
4769 ENABLE_PROFILING=ENABLE_PROFILING=1
4773 # Check whether --enable-assertions was given.
4774 if test "${enable_assertions+set}" = set; then
4775 enableval=$enable_assertions;
4780 if test ${enableval} = "yes" ; then
4784 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4788 # Check whether --enable-expensive-checks was given.
4789 if test "${enable_expensive_checks+set}" = set; then
4790 enableval=$enable_expensive_checks;
4795 if test ${enableval} = "yes" ; then
4796 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4798 EXPENSIVE_CHECKS=yes
4801 ENABLE_EXPENSIVE_CHECKS=
4807 # Check whether --enable-debug-runtime was given.
4808 if test "${enable_debug_runtime+set}" = set; then
4809 enableval=$enable_debug_runtime;
4814 if test ${enableval} = "no" ; then
4818 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4822 # Check whether --enable-debug-symbols was given.
4823 if test "${enable_debug_symbols+set}" = set; then
4824 enableval=$enable_debug_symbols;
4829 if test ${enableval} = "no" ; then
4833 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4837 # Check whether --enable-jit was given.
4838 if test "${enable_jit+set}" = set; then
4839 enableval=$enable_jit;
4844 if test ${enableval} = "no"
4849 case "$llvm_cv_target_arch" in
4850 x86) TARGET_HAS_JIT=1
4852 Sparc) TARGET_HAS_JIT=0
4854 PowerPC) TARGET_HAS_JIT=1
4856 x86_64) TARGET_HAS_JIT=1
4858 Alpha) TARGET_HAS_JIT=0
4860 ARM) TARGET_HAS_JIT=1
4862 Mips) TARGET_HAS_JIT=0
4864 XCore) TARGET_HAS_JIT=0
4866 MSP430) TARGET_HAS_JIT=0
4868 SystemZ) TARGET_HAS_JIT=0
4870 Blackfin) TARGET_HAS_JIT=0
4872 MBlaze) TARGET_HAS_JIT=0
4874 PTX) TARGET_HAS_JIT=0
4881 # Check whether --enable-docs was given.
4882 if test "${enable_docs+set}" = set; then
4883 enableval=$enable_docs;
4888 case "$enableval" in
4893 default) ENABLE_DOCS=1
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4896 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4900 # Check whether --enable-doxygen was given.
4901 if test "${enable_doxygen+set}" = set; then
4902 enableval=$enable_doxygen;
4907 case "$enableval" in
4908 yes) ENABLE_DOXYGEN=1
4910 no) ENABLE_DOXYGEN=0
4912 default) ENABLE_DOXYGEN=0
4914 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4915 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4916 { (exit 1); exit 1; }; } ;;
4919 # Check whether --enable-threads was given.
4920 if test "${enable_threads+set}" = set; then
4921 enableval=$enable_threads;
4926 case "$enableval" in
4927 yes) ENABLE_THREADS=1
4929 no) ENABLE_THREADS=0
4931 default) ENABLE_THREADS=1
4933 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4934 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4935 { (exit 1); exit 1; }; } ;;
4938 cat >>confdefs.h <<_ACEOF
4939 #define ENABLE_THREADS $ENABLE_THREADS
4943 # Check whether --enable-pthreads was given.
4944 if test "${enable_pthreads+set}" = set; then
4945 enableval=$enable_pthreads;
4950 case "$enableval" in
4951 yes) ENABLE_PTHREADS=1
4953 no) ENABLE_PTHREADS=0
4955 default) ENABLE_PTHREADS=1
4957 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4958 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4962 # Check whether --enable-pic was given.
4963 if test "${enable_pic+set}" = set; then
4964 enableval=$enable_pic;
4969 case "$enableval" in
4974 default) ENABLE_PIC=1
4976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4977 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4978 { (exit 1); exit 1; }; } ;;
4981 cat >>confdefs.h <<_ACEOF
4982 #define ENABLE_PIC $ENABLE_PIC
4986 # Check whether --enable-shared was given.
4987 if test "${enable_shared+set}" = set; then
4988 enableval=$enable_shared;
4993 case "$enableval" in
4994 yes) ENABLE_SHARED=1
4998 default) ENABLE_SHARED=0
5000 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5001 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5002 { (exit 1); exit 1; }; } ;;
5005 # Check whether --enable-embed-stdcxx was given.
5006 if test "${enable_embed_stdcxx+set}" = set; then
5007 enableval=$enable_embed_stdcxx;
5012 case "$enableval" in
5013 yes) ENABLE_EMBED_STDCXX=1
5015 no) ENABLE_EMBED_STDCXX=0
5017 default) ENABLE_EMBED_STDCXX=1
5019 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5020 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5021 { (exit 1); exit 1; }; } ;;
5024 # Check whether --enable-timestamps was given.
5025 if test "${enable_timestamps+set}" = set; then
5026 enableval=$enable_timestamps;
5031 case "$enableval" in
5032 yes) ENABLE_TIMESTAMPS=1
5034 no) ENABLE_TIMESTAMPS=0
5036 default) ENABLE_TIMESTAMPS=1
5038 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5039 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5043 cat >>confdefs.h <<_ACEOF
5044 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5049 # Check whether --enable-targets was given.
5050 if test "${enable_targets+set}" = set; then
5051 enableval=$enable_targets;
5056 if test "$enableval" = host-only ; then
5059 case "$enableval" in
5060 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5061 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5063 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5064 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5065 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5066 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5067 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5068 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5069 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5070 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5071 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5072 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5073 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5074 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5075 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5076 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5077 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5078 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5079 host) case "$llvm_cv_target_arch" in
5080 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5081 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5082 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5083 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5084 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5085 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5086 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5087 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5088 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5089 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5090 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5091 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5092 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5093 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5094 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5095 echo "$as_me: error: Can not set target to build" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5098 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5099 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5100 { (exit 1); exit 1; }; } ;;
5105 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5108 # Determine whether we are building LLVM support for the native architecture.
5109 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5110 for a_target in $TARGETS_TO_BUILD; do
5111 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5113 cat >>confdefs.h <<_ACEOF
5114 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5117 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5118 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5119 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5120 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5122 cat >>confdefs.h <<_ACEOF
5123 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5127 cat >>confdefs.h <<_ACEOF
5128 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5132 cat >>confdefs.h <<_ACEOF
5133 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5137 cat >>confdefs.h <<_ACEOF
5138 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5144 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5145 # target feature def files.
5146 LLVM_ENUM_TARGETS=""
5147 LLVM_ENUM_ASM_PRINTERS=""
5148 LLVM_ENUM_ASM_PARSERS=""
5149 LLVM_ENUM_DISASSEMBLERS=""
5150 for target_to_build in $TARGETS_TO_BUILD; do
5151 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5152 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5153 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5155 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5156 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5158 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5159 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5167 # Check whether --enable-cbe-printf-a was given.
5168 if test "${enable_cbe_printf_a+set}" = set; then
5169 enableval=$enable_cbe_printf_a;
5174 case "$enableval" in
5175 yes) ENABLE_CBE_PRINTF_A=1
5177 no) ENABLE_CBE_PRINTF_A=0
5179 default) ENABLE_CBE_PRINTF_A=1
5181 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5182 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5183 { (exit 1); exit 1; }; } ;;
5186 cat >>confdefs.h <<_ACEOF
5187 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5192 # Check whether --with-llvmgccdir was given.
5193 if test "${with_llvmgccdir+set}" = set; then
5194 withval=$with_llvmgccdir;
5200 default) WITH_LLVMGCCDIR=default ;;
5201 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5202 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5203 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5204 { (exit 1); exit 1; }; } ;;
5208 # Check whether --with-llvmgcc was given.
5209 if test "${with_llvmgcc+set}" = set; then
5210 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5216 # Check whether --with-llvmgxx was given.
5217 if test "${with_llvmgxx+set}" = set; then
5218 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5223 if test -n "$LLVMGCC"; then
5224 LLVMGCCCOMMAND="$LLVMGCC"
5227 if test -n "$LLVMGXX"; then
5228 LLVMGXXCOMMAND="$LLVMGXX"
5231 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5232 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5233 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5234 { (exit 1); exit 1; }; };
5237 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5238 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5239 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5240 { (exit 1); exit 1; }; };
5244 # Check whether --with-clang was given.
5245 if test "${with_clang+set}" = set; then
5246 withval=$with_clang;
5253 # Check whether --with-built-clang was given.
5254 if test "${with_built_clang+set}" = set; then
5255 withval=$with_built_clang;
5257 with_built_clang=check
5261 { echo "$as_me:$LINENO: checking clang compiler" >&5
5262 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5265 if test "$with_clang" != "default"; then
5266 WITH_CLANGPATH="$with_clang"
5267 if ! test -x "$WITH_CLANGPATH"; then
5268 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5269 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5270 { (exit 1); exit 1; }; }
5272 elif test "$with_built_clang" = "yes"; then
5274 elif test "$with_built_clang" = "no"; then
5277 if test "$with_built_clang" != "check"; then
5278 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5279 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5280 { (exit 1); exit 1; }; }
5283 if test -f ${srcdir}/tools/clang/README.txt; then
5288 if ! test -z "$WITH_CLANGPATH"; then
5289 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5290 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5291 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5292 elif test "$WITH_BUILT_CLANG" = "1"; then
5293 { echo "$as_me:$LINENO: result: built" >&5
5294 echo "${ECHO_T}built" >&6; }
5296 { echo "$as_me:$LINENO: result: none" >&5
5297 echo "${ECHO_T}none" >&6; }
5299 CLANGPATH=$WITH_CLANGPATH
5301 CLANGXXPATH=$WITH_CLANGXXPATH
5303 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5307 # Check whether --with-optimize-option was given.
5308 if test "${with_optimize_option+set}" = set; then
5309 withval=$with_optimize_option;
5314 { echo "$as_me:$LINENO: checking optimization flags" >&5
5315 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5318 case "$llvm_cv_os_type" in
5319 FreeBSD) optimize_option=-O2 ;;
5320 MingW) optimize_option=-O2 ;;
5321 *) optimize_option=-O3 ;;
5323 *) optimize_option="$withval" ;;
5325 OPTIMIZE_OPTION=$optimize_option
5327 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5328 echo "${ECHO_T}$optimize_option" >&6; }
5331 # Check whether --with-extra-options was given.
5332 if test "${with_extra_options+set}" = set; then
5333 withval=$with_extra_options;
5339 default) EXTRA_OPTIONS= ;;
5340 *) EXTRA_OPTIONS=$withval ;;
5342 EXTRA_OPTIONS=$EXTRA_OPTIONS
5345 # Check whether --enable-bindings was given.
5346 if test "${enable_bindings+set}" = set; then
5347 enableval=$enable_bindings;
5352 BINDINGS_TO_BUILD=""
5353 case "$enableval" in
5354 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5355 all ) BINDINGS_TO_BUILD="ocaml" ;;
5356 none | no) BINDINGS_TO_BUILD="" ;;
5357 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5358 case "$a_binding" in
5359 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5360 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5361 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5362 { (exit 1); exit 1; }; } ;;
5369 # Check whether --with-ocaml-libdir was given.
5370 if test "${with_ocaml_libdir+set}" = set; then
5371 withval=$with_ocaml_libdir;
5377 auto) with_ocaml_libdir="$withval" ;;
5378 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5379 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5380 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5381 { (exit 1); exit 1; }; } ;;
5385 # Check whether --with-clang-resource-dir was given.
5386 if test "${with_clang_resource_dir+set}" = set; then
5387 withval=$with_clang_resource_dir;
5393 cat >>confdefs.h <<_ACEOF
5394 #define CLANG_RESOURCE_DIR "$withval"
5399 # Check whether --with-c-include-dirs was given.
5400 if test "${with_c_include_dirs+set}" = set; then
5401 withval=$with_c_include_dirs;
5407 cat >>confdefs.h <<_ACEOF
5408 #define C_INCLUDE_DIRS "$withval"
5413 # Check whether --with-cxx-include-root was given.
5414 if test "${with_cxx_include_root+set}" = set; then
5415 withval=$with_cxx_include_root;
5421 cat >>confdefs.h <<_ACEOF
5422 #define CXX_INCLUDE_ROOT "$withval"
5427 # Check whether --with-cxx-include-arch was given.
5428 if test "${with_cxx_include_arch+set}" = set; then
5429 withval=$with_cxx_include_arch;
5435 cat >>confdefs.h <<_ACEOF
5436 #define CXX_INCLUDE_ARCH "$withval"
5441 # Check whether --with-cxx-include-32bit-dir was given.
5442 if test "${with_cxx_include_32bit_dir+set}" = set; then
5443 withval=$with_cxx_include_32bit_dir;
5449 cat >>confdefs.h <<_ACEOF
5450 #define CXX_INCLUDE_32BIT_DIR "$withval"
5455 # Check whether --with-cxx-include-64bit-dir was given.
5456 if test "${with_cxx_include_64bit_dir+set}" = set; then
5457 withval=$with_cxx_include_64bit_dir;
5463 cat >>confdefs.h <<_ACEOF
5464 #define CXX_INCLUDE_64BIT_DIR "$withval"
5469 # Check whether --with-binutils-include was given.
5470 if test "${with_binutils_include+set}" = set; then
5471 withval=$with_binutils_include;
5477 default) WITH_BINUTILS_INCDIR=default ;;
5478 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5479 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5480 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5481 { (exit 1); exit 1; }; } ;;
5483 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5484 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5486 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5487 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5488 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5489 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5490 { (exit 1); exit 1; }; };
5494 # Check whether --enable-libffi was given.
5495 if test "${enable_libffi+set}" = set; then
5496 enableval=$enable_libffi; case "$enableval" in
5497 yes) llvm_cv_enable_libffi="yes" ;;
5498 no) llvm_cv_enable_libffi="no" ;;
5499 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5500 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5501 { (exit 1); exit 1; }; } ;;
5504 llvm_cv_enable_libffi=no
5510 ac_cpp='$CPP $CPPFLAGS'
5511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5514 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5515 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5516 # On Suns, sometimes $CPP names a directory.
5517 if test -n "$CPP" && test -d "$CPP"; then
5520 if test -z "$CPP"; then
5521 if test "${ac_cv_prog_CPP+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 # Double quotes because CPP needs to be expanded
5525 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5528 for ac_c_preproc_warn_flag in '' yes
5530 # Use a header file that comes with gcc, so configuring glibc
5531 # with a fresh cross-compiler works.
5532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5533 # <limits.h> exists even on freestanding compilers.
5534 # On the NeXT, cc -E runs the code through the compiler's parser,
5535 # not just through cpp. "Syntax error" is here to catch this case.
5536 cat >conftest.$ac_ext <<_ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5543 # include <limits.h>
5545 # include <assert.h>
5549 if { (ac_try="$ac_cpp conftest.$ac_ext"
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5557 grep -v '^ *+' conftest.er1 >conftest.err
5559 cat conftest.err >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } >/dev/null; then
5562 if test -s conftest.err; then
5563 ac_cpp_err=$ac_c_preproc_warn_flag
5564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5571 if test -z "$ac_cpp_err"; then
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 # Broken: fails on valid input.
5581 rm -f conftest.err conftest.$ac_ext
5583 # OK, works on sane cases. Now check whether nonexistent headers
5584 # can be detected and how.
5585 cat >conftest.$ac_ext <<_ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 #include <ac_nonexistent.h>
5593 if { (ac_try="$ac_cpp conftest.$ac_ext"
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5601 grep -v '^ *+' conftest.er1 >conftest.err
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } >/dev/null; then
5606 if test -s conftest.err; then
5607 ac_cpp_err=$ac_c_preproc_warn_flag
5608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5615 if test -z "$ac_cpp_err"; then
5616 # Broken: success on invalid input.
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5622 # Passes both tests.
5627 rm -f conftest.err conftest.$ac_ext
5630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5631 rm -f conftest.err conftest.$ac_ext
5632 if $ac_preproc_ok; then
5644 { echo "$as_me:$LINENO: result: $CPP" >&5
5645 echo "${ECHO_T}$CPP" >&6; }
5647 for ac_c_preproc_warn_flag in '' yes
5649 # Use a header file that comes with gcc, so configuring glibc
5650 # with a fresh cross-compiler works.
5651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5652 # <limits.h> exists even on freestanding compilers.
5653 # On the NeXT, cc -E runs the code through the compiler's parser,
5654 # not just through cpp. "Syntax error" is here to catch this case.
5655 cat >conftest.$ac_ext <<_ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5662 # include <limits.h>
5664 # include <assert.h>
5668 if { (ac_try="$ac_cpp conftest.$ac_ext"
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5676 grep -v '^ *+' conftest.er1 >conftest.err
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } >/dev/null; then
5681 if test -s conftest.err; then
5682 ac_cpp_err=$ac_c_preproc_warn_flag
5683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5690 if test -z "$ac_cpp_err"; then
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5696 # Broken: fails on valid input.
5700 rm -f conftest.err conftest.$ac_ext
5702 # OK, works on sane cases. Now check whether nonexistent headers
5703 # can be detected and how.
5704 cat >conftest.$ac_ext <<_ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <ac_nonexistent.h>
5712 if { (ac_try="$ac_cpp conftest.$ac_ext"
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5720 grep -v '^ *+' conftest.er1 >conftest.err
5722 cat conftest.err >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } >/dev/null; then
5725 if test -s conftest.err; then
5726 ac_cpp_err=$ac_c_preproc_warn_flag
5727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5734 if test -z "$ac_cpp_err"; then
5735 # Broken: success on invalid input.
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 # Passes both tests.
5746 rm -f conftest.err conftest.$ac_ext
5749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5750 rm -f conftest.err conftest.$ac_ext
5751 if $ac_preproc_ok; then
5754 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5755 See \`config.log' for more details." >&5
5756 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5757 See \`config.log' for more details." >&2;}
5758 { (exit 1); exit 1; }; }
5762 ac_cpp='$CPP $CPPFLAGS'
5763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5768 ac_cpp='$CPP $CPPFLAGS'
5769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5772 if test -n "$ac_tool_prefix"; then
5775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5779 if test "${ac_cv_prog_CC+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 if test -n "$CC"; then
5783 ac_cv_prog_CC="$CC" # Let the user override the test.
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 test -z "$as_dir" && as_dir=.
5790 for ac_exec_ext in '' $ac_executable_extensions; do
5791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5792 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 if test -n "$CC"; then
5804 { echo "$as_me:$LINENO: result: $CC" >&5
5805 echo "${ECHO_T}$CC" >&6; }
5807 { echo "$as_me:$LINENO: result: no" >&5
5808 echo "${ECHO_T}no" >&6; }
5812 test -n "$CC" && break
5815 if test -z "$CC"; then
5819 # Extract the first word of "$ac_prog", so it can be a program name with args.
5820 set dummy $ac_prog; ac_word=$2
5821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 if test -n "$ac_ct_CC"; then
5827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_prog_ac_ct_CC="$ac_prog"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5847 if test -n "$ac_ct_CC"; then
5848 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5849 echo "${ECHO_T}$ac_ct_CC" >&6; }
5851 { echo "$as_me:$LINENO: result: no" >&5
5852 echo "${ECHO_T}no" >&6; }
5856 test -n "$ac_ct_CC" && break
5859 if test "x$ac_ct_CC" = x; then
5862 case $cross_compiling:$ac_tool_warned in
5864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5865 whose name does not start with the host triplet. If you think this
5866 configuration is useful to you, please write to autoconf@gnu.org." >&5
5867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5868 whose name does not start with the host triplet. If you think this
5869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5870 ac_tool_warned=yes ;;
5877 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5878 See \`config.log' for more details." >&5
5879 echo "$as_me: error: no acceptable C compiler found in \$PATH
5880 See \`config.log' for more details." >&2;}
5881 { (exit 1); exit 1; }; }
5883 # Provide some information about the compiler.
5884 echo "$as_me:$LINENO: checking for C compiler version" >&5
5885 ac_compiler=`set X $ac_compile; echo $2`
5886 { (ac_try="$ac_compiler --version >&5"
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_compiler --version >&5") 2>&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }
5896 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }
5906 { (ac_try="$ac_compiler -V >&5"
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_compiler -V >&5") 2>&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }
5917 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5918 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5919 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 cat >conftest.$ac_ext <<_ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5940 rm -f conftest.$ac_objext
5941 if { (ac_try="$ac_compile"
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_compile") 2>conftest.er1
5949 grep -v '^ *+' conftest.er1 >conftest.err
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5955 { (case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_try") 2>&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; } &&
5964 { ac_try='test -s conftest.$ac_objext'
5965 { (case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_try") 2>&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5986 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5987 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5988 GCC=`test $ac_compiler_gnu = yes && echo yes`
5989 ac_test_CFLAGS=${CFLAGS+set}
5990 ac_save_CFLAGS=$CFLAGS
5991 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5992 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5993 if test "${ac_cv_prog_cc_g+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 ac_save_c_werror_flag=$ac_c_werror_flag
5997 ac_c_werror_flag=yes
6000 cat >conftest.$ac_ext <<_ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6015 rm -f conftest.$ac_objext
6016 if { (ac_try="$ac_compile"
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_compile") 2>conftest.er1
6024 grep -v '^ *+' conftest.er1 >conftest.err
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6030 { (case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_try") 2>&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; } &&
6039 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6055 cat >conftest.$ac_ext <<_ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6070 rm -f conftest.$ac_objext
6071 if { (ac_try="$ac_compile"
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_compile") 2>conftest.er1
6079 grep -v '^ *+' conftest.er1 >conftest.err
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6085 { (case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_try") 2>&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try='test -s conftest.$ac_objext'
6095 { (case "(($ac_try" in
6096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100 (eval "$ac_try") 2>&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6109 ac_c_werror_flag=$ac_save_c_werror_flag
6111 cat >conftest.$ac_ext <<_ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6126 rm -f conftest.$ac_objext
6127 if { (ac_try="$ac_compile"
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_compile") 2>conftest.er1
6135 grep -v '^ *+' conftest.er1 >conftest.err
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } &&
6140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6141 { (case "(($ac_try" in
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_try") 2>&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; } &&
6150 { ac_try='test -s conftest.$ac_objext'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6162 echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 ac_c_werror_flag=$ac_save_c_werror_flag
6177 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6178 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6179 if test "$ac_test_CFLAGS" = set; then
6180 CFLAGS=$ac_save_CFLAGS
6181 elif test $ac_cv_prog_cc_g = yes; then
6182 if test "$GCC" = yes; then
6188 if test "$GCC" = yes; then
6194 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6195 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6196 if test "${ac_cv_prog_cc_c89+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 ac_cv_prog_cc_c89=no
6201 cat >conftest.$ac_ext <<_ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6209 #include <sys/types.h>
6210 #include <sys/stat.h>
6211 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6212 struct buf { int x; };
6213 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6214 static char *e (p, i)
6220 static char *f (char * (*g) (char **, int), char **p, ...)
6225 s = g (p, va_arg (v,int));
6230 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6231 function prototypes and stuff, but not '\xHH' hex character constants.
6232 These don't provoke an error unfortunately, instead are silently treated
6233 as 'x'. The following induces an error, until -std is added to get
6234 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6235 array size at least. It's necessary to write '\x00'==0 to get something
6236 that's true only with -std. */
6237 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6239 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6240 inside strings and character constants. */
6242 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6244 int test (int i, double x);
6245 struct s1 {int (*f) (int a);};
6246 struct s2 {int (*f) (double a);};
6247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6253 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6258 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6259 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6261 CC="$ac_save_CC $ac_arg"
6262 rm -f conftest.$ac_objext
6263 if { (ac_try="$ac_compile"
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_compile") 2>conftest.er1
6271 grep -v '^ *+' conftest.er1 >conftest.err
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } &&
6276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6277 { (case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_try") 2>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; } &&
6286 { ac_try='test -s conftest.$ac_objext'
6287 { (case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_try") 2>&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_prog_cc_c89=$ac_arg
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6304 rm -f core conftest.err conftest.$ac_objext
6305 test "x$ac_cv_prog_cc_c89" != "xno" && break
6307 rm -f conftest.$ac_ext
6312 case "x$ac_cv_prog_cc_c89" in
6314 { echo "$as_me:$LINENO: result: none needed" >&5
6315 echo "${ECHO_T}none needed" >&6; } ;;
6317 { echo "$as_me:$LINENO: result: unsupported" >&5
6318 echo "${ECHO_T}unsupported" >&6; } ;;
6320 CC="$CC $ac_cv_prog_cc_c89"
6321 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6322 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6327 ac_cpp='$CPP $CPPFLAGS'
6328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6333 ac_cpp='$CXXCPP $CPPFLAGS'
6334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6337 if test -z "$CXX"; then
6338 if test -n "$CCC"; then
6341 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6348 if test "${ac_cv_prog_CXX+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 if test -n "$CXX"; then
6352 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 if test -n "$CXX"; then
6373 { echo "$as_me:$LINENO: result: $CXX" >&5
6374 echo "${ECHO_T}$CXX" >&6; }
6376 { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6381 test -n "$CXX" && break
6384 if test -z "$CXX"; then
6388 # Extract the first word of "$ac_prog", so it can be a program name with args.
6389 set dummy $ac_prog; ac_word=$2
6390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6392 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 if test -n "$ac_ct_CXX"; then
6396 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6405 ac_cv_prog_ac_ct_CXX="$ac_prog"
6406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6416 if test -n "$ac_ct_CXX"; then
6417 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6418 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6420 { echo "$as_me:$LINENO: result: no" >&5
6421 echo "${ECHO_T}no" >&6; }
6425 test -n "$ac_ct_CXX" && break
6428 if test "x$ac_ct_CXX" = x; then
6431 case $cross_compiling:$ac_tool_warned in
6433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6434 whose name does not start with the host triplet. If you think this
6435 configuration is useful to you, please write to autoconf@gnu.org." >&5
6436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6437 whose name does not start with the host triplet. If you think this
6438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6439 ac_tool_warned=yes ;;
6447 # Provide some information about the compiler.
6448 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6449 ac_compiler=`set X $ac_compile; echo $2`
6450 { (ac_try="$ac_compiler --version >&5"
6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453 *) ac_try_echo=$ac_try;;
6455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456 (eval "$ac_compiler --version >&5") 2>&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }
6460 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }
6470 { (ac_try="$ac_compiler -V >&5"
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_compiler -V >&5") 2>&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }
6481 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6482 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6483 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 cat >conftest.$ac_ext <<_ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6504 rm -f conftest.$ac_objext
6505 if { (ac_try="$ac_compile"
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_compile") 2>conftest.er1
6513 grep -v '^ *+' conftest.er1 >conftest.err
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6519 { (case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_try") 2>&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; } &&
6528 { ac_try='test -s conftest.$ac_objext'
6529 { (case "(($ac_try" in
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_try") 2>&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; }; then
6540 echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6550 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6551 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6552 GXX=`test $ac_compiler_gnu = yes && echo yes`
6553 ac_test_CXXFLAGS=${CXXFLAGS+set}
6554 ac_save_CXXFLAGS=$CXXFLAGS
6555 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6556 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6557 if test "${ac_cv_prog_cxx_g+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6561 ac_cxx_werror_flag=yes
6564 cat >conftest.$ac_ext <<_ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6579 rm -f conftest.$ac_objext
6580 if { (ac_try="$ac_compile"
6582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586 (eval "$ac_compile") 2>conftest.er1
6588 grep -v '^ *+' conftest.er1 >conftest.err
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } &&
6593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6594 { (case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_try") 2>&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6613 ac_cv_prog_cxx_g=yes
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6619 cat >conftest.$ac_ext <<_ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6634 rm -f conftest.$ac_objext
6635 if { (ac_try="$ac_compile"
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641 (eval "$ac_compile") 2>conftest.er1
6643 grep -v '^ *+' conftest.er1 >conftest.err
6645 cat conftest.err >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6649 { (case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_try") 2>&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; } &&
6658 { ac_try='test -s conftest.$ac_objext'
6659 { (case "(($ac_try" in
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_try") 2>&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6690 rm -f conftest.$ac_objext
6691 if { (ac_try="$ac_compile"
6693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694 *) ac_try_echo=$ac_try;;
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697 (eval "$ac_compile") 2>conftest.er1
6699 grep -v '^ *+' conftest.er1 >conftest.err
6701 cat conftest.err >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } &&
6704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6705 { (case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_try") 2>&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; } &&
6714 { ac_try='test -s conftest.$ac_objext'
6715 { (case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_try") 2>&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 ac_cv_prog_cxx_g=yes
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6741 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6742 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6743 if test "$ac_test_CXXFLAGS" = set; then
6744 CXXFLAGS=$ac_save_CXXFLAGS
6745 elif test $ac_cv_prog_cxx_g = yes; then
6746 if test "$GXX" = yes; then
6752 if test "$GXX" = yes; then
6759 ac_cpp='$CPP $CPPFLAGS'
6760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6766 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6767 if test "${lt_cv_path_NM+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6770 if test -n "$NM"; then
6771 # Let the user override the test.
6774 lt_nm_to_check="${ac_tool_prefix}nm"
6775 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6776 lt_nm_to_check="$lt_nm_to_check nm"
6778 for lt_tmp_nm in $lt_nm_to_check; do
6779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6780 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6782 test -z "$ac_dir" && ac_dir=.
6783 tmp_nm="$ac_dir/$lt_tmp_nm"
6784 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6785 # Check to see if the nm accepts a BSD-compat flag.
6786 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6787 # nm: unknown option "B" ignored
6788 # Tru64's nm complains that /dev/null is an invalid object file
6789 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6790 */dev/null* | *'Invalid file or object type'*)
6791 lt_cv_path_NM="$tmp_nm -B"
6795 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6797 lt_cv_path_NM="$tmp_nm -p"
6801 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6802 continue # so that we can try to find one that supports BSD flags
6811 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6814 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6815 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6820 { echo "$as_me:$LINENO: checking for GNU make" >&5
6821 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6822 if test "${llvm_cv_gnu_make_command+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 llvm_cv_gnu_make_command=''
6826 for a in "$MAKE" make gmake gnumake ; do
6827 if test -z "$a" ; then continue ; fi ;
6828 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6830 llvm_cv_gnu_make_command=$a ;
6835 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6836 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6837 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6841 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6842 echo "${ECHO_T}\"Not found\"" >&6; };
6846 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6847 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6849 if test "$LN_S" = "ln -s"; then
6850 { echo "$as_me:$LINENO: result: yes" >&5
6851 echo "${ECHO_T}yes" >&6; }
6853 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6854 echo "${ECHO_T}no, using $LN_S" >&6; }
6857 # Extract the first word of "cmp", so it can be a program name with args.
6858 set dummy cmp; ac_word=$2
6859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6861 if test "${ac_cv_path_CMP+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6889 if test -n "$CMP"; then
6890 { echo "$as_me:$LINENO: result: $CMP" >&5
6891 echo "${ECHO_T}$CMP" >&6; }
6893 { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6898 # Extract the first word of "cp", so it can be a program name with args.
6899 set dummy cp; ac_word=$2
6900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902 if test "${ac_cv_path_CP+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6930 if test -n "$CP"; then
6931 { echo "$as_me:$LINENO: result: $CP" >&5
6932 echo "${ECHO_T}$CP" >&6; }
6934 { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6939 # Extract the first word of "date", so it can be a program name with args.
6940 set dummy date; ac_word=$2
6941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6943 if test "${ac_cv_path_DATE+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6970 DATE=$ac_cv_path_DATE
6971 if test -n "$DATE"; then
6972 { echo "$as_me:$LINENO: result: $DATE" >&5
6973 echo "${ECHO_T}$DATE" >&6; }
6975 { echo "$as_me:$LINENO: result: no" >&5
6976 echo "${ECHO_T}no" >&6; }
6980 # Extract the first word of "find", so it can be a program name with args.
6981 set dummy find; ac_word=$2
6982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984 if test "${ac_cv_path_FIND+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7011 FIND=$ac_cv_path_FIND
7012 if test -n "$FIND"; then
7013 { echo "$as_me:$LINENO: result: $FIND" >&5
7014 echo "${ECHO_T}$FIND" >&6; }
7016 { echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6; }
7021 # Extract the first word of "grep", so it can be a program name with args.
7022 set dummy grep; ac_word=$2
7023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7025 if test "${ac_cv_path_GREP+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7040 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7052 GREP=$ac_cv_path_GREP
7053 if test -n "$GREP"; then
7054 { echo "$as_me:$LINENO: result: $GREP" >&5
7055 echo "${ECHO_T}$GREP" >&6; }
7057 { echo "$as_me:$LINENO: result: no" >&5
7058 echo "${ECHO_T}no" >&6; }
7062 # Extract the first word of "mkdir", so it can be a program name with args.
7063 set dummy mkdir; ac_word=$2
7064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066 if test "${ac_cv_path_MKDIR+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7081 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7093 MKDIR=$ac_cv_path_MKDIR
7094 if test -n "$MKDIR"; then
7095 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7096 echo "${ECHO_T}$MKDIR" >&6; }
7098 { echo "$as_me:$LINENO: result: no" >&5
7099 echo "${ECHO_T}no" >&6; }
7103 # Extract the first word of "mv", so it can be a program name with args.
7104 set dummy mv; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_path_MV+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7122 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7135 if test -n "$MV"; then
7136 { echo "$as_me:$LINENO: result: $MV" >&5
7137 echo "${ECHO_T}$MV" >&6; }
7139 { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7144 if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149 if test "${ac_cv_prog_RANLIB+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 if test -n "$RANLIB"; then
7153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 RANLIB=$ac_cv_prog_RANLIB
7173 if test -n "$RANLIB"; then
7174 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7175 echo "${ECHO_T}$RANLIB" >&6; }
7177 { echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6; }
7183 if test -z "$ac_cv_prog_RANLIB"; then
7184 ac_ct_RANLIB=$RANLIB
7185 # Extract the first word of "ranlib", so it can be a program name with args.
7186 set dummy ranlib; ac_word=$2
7187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 if test -n "$ac_ct_RANLIB"; then
7193 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7202 ac_cv_prog_ac_ct_RANLIB="ranlib"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7213 if test -n "$ac_ct_RANLIB"; then
7214 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7215 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7217 { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7221 if test "x$ac_ct_RANLIB" = x; then
7224 case $cross_compiling:$ac_tool_warned in
7226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7227 whose name does not start with the host triplet. If you think this
7228 configuration is useful to you, please write to autoconf@gnu.org." >&5
7229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7230 whose name does not start with the host triplet. If you think this
7231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7232 ac_tool_warned=yes ;;
7234 RANLIB=$ac_ct_RANLIB
7237 RANLIB="$ac_cv_prog_RANLIB"
7240 if test -n "$ac_tool_prefix"; then
7241 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7242 set dummy ${ac_tool_prefix}ar; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_prog_AR+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 if test -n "$AR"; then
7249 ac_cv_prog_AR="$AR" # Let the user override the test.
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7258 ac_cv_prog_AR="${ac_tool_prefix}ar"
7259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 if test -n "$AR"; then
7270 { echo "$as_me:$LINENO: result: $AR" >&5
7271 echo "${ECHO_T}$AR" >&6; }
7273 { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7279 if test -z "$ac_cv_prog_AR"; then
7281 # Extract the first word of "ar", so it can be a program name with args.
7282 set dummy ar; ac_word=$2
7283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 if test -n "$ac_ct_AR"; then
7289 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7298 ac_cv_prog_ac_ct_AR="ar"
7299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7309 if test -n "$ac_ct_AR"; then
7310 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7311 echo "${ECHO_T}$ac_ct_AR" >&6; }
7313 { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7317 if test "x$ac_ct_AR" = x; then
7320 case $cross_compiling:$ac_tool_warned in
7322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7323 whose name does not start with the host triplet. If you think this
7324 configuration is useful to you, please write to autoconf@gnu.org." >&5
7325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7326 whose name does not start with the host triplet. If you think this
7327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7328 ac_tool_warned=yes ;;
7336 # Extract the first word of "rm", so it can be a program name with args.
7337 set dummy rm; ac_word=$2
7338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7340 if test "${ac_cv_path_RM+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7355 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7368 if test -n "$RM"; then
7369 { echo "$as_me:$LINENO: result: $RM" >&5
7370 echo "${ECHO_T}$RM" >&6; }
7372 { echo "$as_me:$LINENO: result: no" >&5
7373 echo "${ECHO_T}no" >&6; }
7377 # Extract the first word of "sed", so it can be a program name with args.
7378 set dummy sed; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_path_SED+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7396 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7409 if test -n "$SED"; then
7410 { echo "$as_me:$LINENO: result: $SED" >&5
7411 echo "${ECHO_T}$SED" >&6; }
7413 { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7418 # Extract the first word of "tar", so it can be a program name with args.
7419 set dummy tar; ac_word=$2
7420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7422 if test "${ac_cv_path_TAR+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7437 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7450 if test -n "$TAR"; then
7451 { echo "$as_me:$LINENO: result: $TAR" >&5
7452 echo "${ECHO_T}$TAR" >&6; }
7454 { echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6; }
7459 # Extract the first word of "pwd", so it can be a program name with args.
7460 set dummy pwd; ac_word=$2
7461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463 if test "${ac_cv_path_BINPWD+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7478 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7490 BINPWD=$ac_cv_path_BINPWD
7491 if test -n "$BINPWD"; then
7492 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7493 echo "${ECHO_T}$BINPWD" >&6; }
7495 { echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6; }
7501 # Extract the first word of "Graphviz", so it can be a program name with args.
7502 set dummy Graphviz; ac_word=$2
7503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7505 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7520 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7532 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7533 if test -n "$GRAPHVIZ"; then
7534 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7535 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7537 { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7542 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7544 cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_GRAPHVIZ 1
7548 if test "$llvm_cv_os_type" = "MingW" ; then
7549 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7552 cat >>confdefs.h <<_ACEOF
7553 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7557 # Extract the first word of "dot", so it can be a program name with args.
7558 set dummy dot; ac_word=$2
7559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7561 if test "${ac_cv_path_DOT+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7589 if test -n "$DOT"; then
7590 { echo "$as_me:$LINENO: result: $DOT" >&5
7591 echo "${ECHO_T}$DOT" >&6; }
7593 { echo "$as_me:$LINENO: result: no" >&5
7594 echo "${ECHO_T}no" >&6; }
7598 if test "$DOT" != "echo dot" ; then
7600 cat >>confdefs.h <<\_ACEOF
7604 if test "$llvm_cv_os_type" = "MingW" ; then
7605 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7608 cat >>confdefs.h <<_ACEOF
7609 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7613 # Extract the first word of "fdp", so it can be a program name with args.
7614 set dummy fdp; ac_word=$2
7615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7617 if test "${ac_cv_path_FDP+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7632 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7645 if test -n "$FDP"; then
7646 { echo "$as_me:$LINENO: result: $FDP" >&5
7647 echo "${ECHO_T}$FDP" >&6; }
7649 { echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6; }
7654 if test "$FDP" != "echo fdp" ; then
7656 cat >>confdefs.h <<\_ACEOF
7660 if test "$llvm_cv_os_type" = "MingW" ; then
7661 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7664 cat >>confdefs.h <<_ACEOF
7665 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7669 # Extract the first word of "neato", so it can be a program name with args.
7670 set dummy neato; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_path_NEATO+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7700 NEATO=$ac_cv_path_NEATO
7701 if test -n "$NEATO"; then
7702 { echo "$as_me:$LINENO: result: $NEATO" >&5
7703 echo "${ECHO_T}$NEATO" >&6; }
7705 { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7710 if test "$NEATO" != "echo neato" ; then
7712 cat >>confdefs.h <<\_ACEOF
7713 #define HAVE_NEATO 1
7716 if test "$llvm_cv_os_type" = "MingW" ; then
7717 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7720 cat >>confdefs.h <<_ACEOF
7721 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7725 # Extract the first word of "twopi", so it can be a program name with args.
7726 set dummy twopi; ac_word=$2
7727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7729 if test "${ac_cv_path_TWOPI+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7756 TWOPI=$ac_cv_path_TWOPI
7757 if test -n "$TWOPI"; then
7758 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7759 echo "${ECHO_T}$TWOPI" >&6; }
7761 { echo "$as_me:$LINENO: result: no" >&5
7762 echo "${ECHO_T}no" >&6; }
7766 if test "$TWOPI" != "echo twopi" ; then
7768 cat >>confdefs.h <<\_ACEOF
7769 #define HAVE_TWOPI 1
7772 if test "$llvm_cv_os_type" = "MingW" ; then
7773 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7776 cat >>confdefs.h <<_ACEOF
7777 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7781 # Extract the first word of "circo", so it can be a program name with args.
7782 set dummy circo; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_path_CIRCO+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7812 CIRCO=$ac_cv_path_CIRCO
7813 if test -n "$CIRCO"; then
7814 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7815 echo "${ECHO_T}$CIRCO" >&6; }
7817 { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7822 if test "$CIRCO" != "echo circo" ; then
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_CIRCO 1
7828 if test "$llvm_cv_os_type" = "MingW" ; then
7829 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7832 cat >>confdefs.h <<_ACEOF
7833 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7837 for ac_prog in gv gsview32
7839 # Extract the first word of "$ac_prog", so it can be a program name with args.
7840 set dummy $ac_prog; ac_word=$2
7841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7843 if test "${ac_cv_path_GV+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 if test -n "$GV"; then
7871 { echo "$as_me:$LINENO: result: $GV" >&5
7872 echo "${ECHO_T}$GV" >&6; }
7874 { echo "$as_me:$LINENO: result: no" >&5
7875 echo "${ECHO_T}no" >&6; }
7879 test -n "$GV" && break
7881 test -n "$GV" || GV="echo gv"
7883 if test "$GV" != "echo gv" ; then
7885 cat >>confdefs.h <<\_ACEOF
7889 if test "$llvm_cv_os_type" = "MingW" ; then
7890 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7893 cat >>confdefs.h <<_ACEOF
7894 #define LLVM_PATH_GV "$GV${EXEEXT}"
7898 # Extract the first word of "dotty", so it can be a program name with args.
7899 set dummy dotty; ac_word=$2
7900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7902 if test "${ac_cv_path_DOTTY+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7929 DOTTY=$ac_cv_path_DOTTY
7930 if test -n "$DOTTY"; then
7931 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7932 echo "${ECHO_T}$DOTTY" >&6; }
7934 { echo "$as_me:$LINENO: result: no" >&5
7935 echo "${ECHO_T}no" >&6; }
7939 if test "$DOTTY" != "echo dotty" ; then
7941 cat >>confdefs.h <<\_ACEOF
7942 #define HAVE_DOTTY 1
7945 if test "$llvm_cv_os_type" = "MingW" ; then
7946 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7949 cat >>confdefs.h <<_ACEOF
7950 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7954 # Extract the first word of "xdot.py", so it can be a program name with args.
7955 set dummy xdot.py; ac_word=$2
7956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7958 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7985 XDOT_PY=$ac_cv_path_XDOT_PY
7986 if test -n "$XDOT_PY"; then
7987 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7988 echo "${ECHO_T}$XDOT_PY" >&6; }
7990 { echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6; }
7995 if test "$XDOT_PY" != "echo xdot.py" ; then
7997 cat >>confdefs.h <<\_ACEOF
7998 #define HAVE_XDOT_PY 1
8001 if test "$llvm_cv_os_type" = "MingW" ; then
8002 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8005 cat >>confdefs.h <<_ACEOF
8006 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8012 # Extract the first word of "perl", so it can be a program name with args.
8013 set dummy perl; ac_word=$2
8014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8016 if test "${ac_cv_path_PERL+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8043 PERL=$ac_cv_path_PERL
8044 if test -n "$PERL"; then
8045 { echo "$as_me:$LINENO: result: $PERL" >&5
8046 echo "${ECHO_T}$PERL" >&6; }
8048 { echo "$as_me:$LINENO: result: no" >&5
8049 echo "${ECHO_T}no" >&6; }
8053 if test "$PERL" != "none"; then
8054 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8055 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8056 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8057 { echo "$as_me:$LINENO: result: yes" >&5
8058 echo "${ECHO_T}yes" >&6; }
8061 { echo "$as_me:$LINENO: result: not found" >&5
8062 echo "${ECHO_T}not found" >&6; }
8067 if test x"$PERL" = xnone; then
8070 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8071 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8072 { (exit 1); exit 1; }; }
8078 # Find a good install program. We prefer a C program (faster),
8079 # so one script is as good as another. But avoid the broken or
8080 # incompatible versions:
8081 # SysV /etc/install, /usr/sbin/install
8082 # SunOS /usr/etc/install
8083 # IRIX /sbin/install
8085 # AmigaOS /C/install, which installs bootblocks on floppy discs
8086 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8087 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8088 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8089 # OS/2's system install, which has a completely different semantic
8090 # ./install, which can be erroneously created by make from ./install.sh.
8091 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8092 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8093 if test -z "$INSTALL"; then
8094 if test "${ac_cv_path_install+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 test -z "$as_dir" && as_dir=.
8102 # Account for people who put trailing slashes in PATH elements.
8104 ./ | .// | /cC/* | \
8105 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8106 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8109 # OSF1 and SCO ODT 3.0 have their own names for install.
8110 # Don't use installbsd from OSF since it installs stuff as root
8112 for ac_prog in ginstall scoinst install; do
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8115 if test $ac_prog = install &&
8116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8117 # AIX install. It has an incompatible calling convention.
8119 elif test $ac_prog = install &&
8120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8121 # program-specific install script used by HP pwplus--don't use.
8124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8137 if test "${ac_cv_path_install+set}" = set; then
8138 INSTALL=$ac_cv_path_install
8140 # As a last resort, use the slow shell script. Don't cache a
8141 # value for INSTALL within a source directory, because that will
8142 # break other packages using the cache if that directory is
8143 # removed, or if the value is a relative name.
8144 INSTALL=$ac_install_sh
8147 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8148 echo "${ECHO_T}$INSTALL" >&6; }
8150 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8151 # It thinks the first close brace ends the variable substitution.
8152 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8154 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8156 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8159 [\\/$]* | ?:[\\/]* ) ;;
8160 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8163 # Extract the first word of "bzip2", so it can be a program name with args.
8164 set dummy bzip2; ac_word=$2
8165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8167 if test "${ac_cv_path_BZIP2+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8182 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 BZIP2=$ac_cv_path_BZIP2
8194 if test -n "$BZIP2"; then
8195 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8196 echo "${ECHO_T}$BZIP2" >&6; }
8198 { echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6; }
8203 # Extract the first word of "cat", so it can be a program name with args.
8204 set dummy cat; ac_word=$2
8205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8207 if test "${ac_cv_path_CAT+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8222 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 if test -n "$CAT"; then
8235 { echo "$as_me:$LINENO: result: $CAT" >&5
8236 echo "${ECHO_T}$CAT" >&6; }
8238 { echo "$as_me:$LINENO: result: no" >&5
8239 echo "${ECHO_T}no" >&6; }
8243 # Extract the first word of "doxygen", so it can be a program name with args.
8244 set dummy doxygen; ac_word=$2
8245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8247 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8262 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 DOXYGEN=$ac_cv_path_DOXYGEN
8274 if test -n "$DOXYGEN"; then
8275 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8276 echo "${ECHO_T}$DOXYGEN" >&6; }
8278 { echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6; }
8283 # Extract the first word of "groff", so it can be a program name with args.
8284 set dummy groff; ac_word=$2
8285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8287 if test "${ac_cv_path_GROFF+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 GROFF=$ac_cv_path_GROFF
8314 if test -n "$GROFF"; then
8315 { echo "$as_me:$LINENO: result: $GROFF" >&5
8316 echo "${ECHO_T}$GROFF" >&6; }
8318 { echo "$as_me:$LINENO: result: no" >&5
8319 echo "${ECHO_T}no" >&6; }
8323 # Extract the first word of "gzip", so it can be a program name with args.
8324 set dummy gzip; ac_word=$2
8325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8327 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8342 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8353 GZIPBIN=$ac_cv_path_GZIPBIN
8354 if test -n "$GZIPBIN"; then
8355 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8356 echo "${ECHO_T}$GZIPBIN" >&6; }
8358 { echo "$as_me:$LINENO: result: no" >&5
8359 echo "${ECHO_T}no" >&6; }
8363 # Extract the first word of "pod2html", so it can be a program name with args.
8364 set dummy pod2html; ac_word=$2
8365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8367 if test "${ac_cv_path_POD2HTML+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 test -z "$as_dir" && as_dir=.
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8382 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 POD2HTML=$ac_cv_path_POD2HTML
8394 if test -n "$POD2HTML"; then
8395 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8396 echo "${ECHO_T}$POD2HTML" >&6; }
8398 { echo "$as_me:$LINENO: result: no" >&5
8399 echo "${ECHO_T}no" >&6; }
8403 # Extract the first word of "pod2man", so it can be a program name with args.
8404 set dummy pod2man; ac_word=$2
8405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8407 if test "${ac_cv_path_POD2MAN+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8422 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 POD2MAN=$ac_cv_path_POD2MAN
8434 if test -n "$POD2MAN"; then
8435 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8436 echo "${ECHO_T}$POD2MAN" >&6; }
8438 { echo "$as_me:$LINENO: result: no" >&5
8439 echo "${ECHO_T}no" >&6; }
8443 # Extract the first word of "pdfroff", so it can be a program name with args.
8444 set dummy pdfroff; ac_word=$2
8445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8447 if test "${ac_cv_path_PDFROFF+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8462 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8473 PDFROFF=$ac_cv_path_PDFROFF
8474 if test -n "$PDFROFF"; then
8475 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8476 echo "${ECHO_T}$PDFROFF" >&6; }
8478 { echo "$as_me:$LINENO: result: no" >&5
8479 echo "${ECHO_T}no" >&6; }
8483 # Extract the first word of "runtest", so it can be a program name with args.
8484 set dummy runtest; ac_word=$2
8485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8487 if test "${ac_cv_path_RUNTEST+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 test -z "$as_dir" && as_dir=.
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8502 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 RUNTEST=$ac_cv_path_RUNTEST
8514 if test -n "$RUNTEST"; then
8515 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8516 echo "${ECHO_T}$RUNTEST" >&6; }
8518 { echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6; }
8525 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8526 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8528 # Check whether --with-tclinclude was given.
8529 if test "${with_tclinclude+set}" = set; then
8530 withval=$with_tclinclude; with_tclinclude=${withval}
8535 if test "${ac_cv_path_tclsh+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 if test x"${with_tclinclude}" != x ; then
8540 if test -f ${with_tclinclude}/tclsh ; then
8541 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8542 elif test -f ${with_tclinclude}/src/tclsh ; then
8543 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8545 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8546 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8547 { (exit 1); exit 1; }; }
8553 if test x"${ac_cv_path_tclsh}" = x ; then
8554 { echo "$as_me:$LINENO: result: none" >&5
8555 echo "${ECHO_T}none" >&6; }
8556 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
8558 # Extract the first word of "$ac_prog", so it can be a program name with args.
8559 set dummy $ac_prog; ac_word=$2
8560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8562 if test "${ac_cv_path_TCLSH+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8577 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8588 TCLSH=$ac_cv_path_TCLSH
8589 if test -n "$TCLSH"; then
8590 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8591 echo "${ECHO_T}$TCLSH" >&6; }
8593 { echo "$as_me:$LINENO: result: no" >&5
8594 echo "${ECHO_T}no" >&6; }
8598 test -n "$TCLSH" && break
8601 if test x"${TCLSH}" = x ; then
8602 ac_cv_path_tclsh='';
8604 ac_cv_path_tclsh="${TCLSH}";
8607 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8608 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8609 TCLSH="${ac_cv_path_tclsh}"
8613 # Extract the first word of "zip", so it can be a program name with args.
8614 set dummy zip; ac_word=$2
8615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8617 if test "${ac_cv_path_ZIP+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8632 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 if test -n "$ZIP"; then
8645 { echo "$as_me:$LINENO: result: $ZIP" >&5
8646 echo "${ECHO_T}$ZIP" >&6; }
8648 { echo "$as_me:$LINENO: result: no" >&5
8649 echo "${ECHO_T}no" >&6; }
8653 for ac_prog in ocamlc
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_OCAMLC+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 ac_cv_path_OCAMLC="$OCAMLC" # 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_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8685 OCAMLC=$ac_cv_path_OCAMLC
8686 if test -n "$OCAMLC"; then
8687 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8688 echo "${ECHO_T}$OCAMLC" >&6; }
8690 { echo "$as_me:$LINENO: result: no" >&5
8691 echo "${ECHO_T}no" >&6; }
8695 test -n "$OCAMLC" && break
8698 for ac_prog in ocamlopt
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_OCAMLOPT+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 ac_cv_path_OCAMLOPT="$OCAMLOPT" # 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_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8730 OCAMLOPT=$ac_cv_path_OCAMLOPT
8731 if test -n "$OCAMLOPT"; then
8732 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8733 echo "${ECHO_T}$OCAMLOPT" >&6; }
8735 { echo "$as_me:$LINENO: result: no" >&5
8736 echo "${ECHO_T}no" >&6; }
8740 test -n "$OCAMLOPT" && break
8743 for ac_prog in ocamldep
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_OCAMLDEP+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 ac_cv_path_OCAMLDEP="$OCAMLDEP" # 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_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8775 OCAMLDEP=$ac_cv_path_OCAMLDEP
8776 if test -n "$OCAMLDEP"; then
8777 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8778 echo "${ECHO_T}$OCAMLDEP" >&6; }
8780 { echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6; }
8785 test -n "$OCAMLDEP" && break
8788 for ac_prog in ocamldoc
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_OCAMLDOC+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 ac_cv_path_OCAMLDOC="$OCAMLDOC" # 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_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8820 OCAMLDOC=$ac_cv_path_OCAMLDOC
8821 if test -n "$OCAMLDOC"; then
8822 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8823 echo "${ECHO_T}$OCAMLDOC" >&6; }
8825 { echo "$as_me:$LINENO: result: no" >&5
8826 echo "${ECHO_T}no" >&6; }
8830 test -n "$OCAMLDOC" && break
8833 for ac_prog in gas as
8835 # Extract the first word of "$ac_prog", so it can be a program name with args.
8836 set dummy $ac_prog; ac_word=$2
8837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8839 if test "${ac_cv_path_GAS+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851 test -z "$as_dir" && as_dir=.
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8854 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8866 if test -n "$GAS"; then
8867 { echo "$as_me:$LINENO: result: $GAS" >&5
8868 echo "${ECHO_T}$GAS" >&6; }
8870 { echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6; }
8875 test -n "$GAS" && break
8879 { echo "$as_me:$LINENO: checking for linker version" >&5
8880 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8881 if test "${llvm_cv_link_version+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8885 version_string="$(ld -v 2>&1 | head -1)"
8888 if (echo "$version_string" | grep -q "ld64"); then
8889 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8891 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8895 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8896 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8898 cat >>confdefs.h <<_ACEOF
8899 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8904 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8905 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8906 if test "${llvm_cv_link_use_r+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 ac_cpp='$CPP $CPPFLAGS'
8911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8916 CFLAGS="$CFLAGS -Wl,-R."
8917 cat >conftest.$ac_ext <<_ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (ac_try="$ac_link"
8935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936 *) ac_try_echo=$ac_try;;
8938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939 (eval "$ac_link") 2>conftest.er1
8941 grep -v '^ *+' conftest.er1 >conftest.err
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8947 { (case "(($ac_try" in
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_try") 2>&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest$ac_exeext'
8957 { (case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_try") 2>&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 llvm_cv_link_use_r=yes
8968 echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8971 llvm_cv_link_use_r=no
8974 rm -f core conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8978 ac_cpp='$CPP $CPPFLAGS'
8979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8985 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8986 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8987 if test "$llvm_cv_link_use_r" = yes ; then
8989 cat >>confdefs.h <<\_ACEOF
8990 #define HAVE_LINK_R 1
8996 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8997 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8998 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9002 ac_cpp='$CPP $CPPFLAGS'
9003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008 CFLAGS="$CFLAGS -Wl,-export-dynamic"
9009 cat >conftest.$ac_ext <<_ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9024 rm -f conftest.$ac_objext conftest$ac_exeext
9025 if { (ac_try="$ac_link"
9027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028 *) ac_try_echo=$ac_try;;
9030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9031 (eval "$ac_link") 2>conftest.er1
9033 grep -v '^ *+' conftest.er1 >conftest.err
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9039 { (case "(($ac_try" in
9040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9041 *) ac_try_echo=$ac_try;;
9043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9044 (eval "$ac_try") 2>&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest$ac_exeext'
9049 { (case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_try") 2>&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 llvm_cv_link_use_export_dynamic=yes
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 llvm_cv_link_use_export_dynamic=no
9066 rm -f core conftest.err conftest.$ac_objext \
9067 conftest$ac_exeext conftest.$ac_ext
9070 ac_cpp='$CPP $CPPFLAGS'
9071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9077 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9078 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9079 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9081 cat >>confdefs.h <<\_ACEOF
9082 #define HAVE_LINK_EXPORT_DYNAMIC 1
9088 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9089 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9090 if test "${llvm_cv_link_use_version_script+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 ac_cpp='$CPP $CPPFLAGS'
9095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9101 # The following code is from the autoconf manual,
9102 # "11.13: Limitations of Usual Tools".
9103 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9104 # Use mktemp if possible; otherwise fall back on mkdir,
9105 # with $RANDOM to make collisions less likely.
9109 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9111 test -n "$tmp" && test -d "$tmp"
9113 tmp=$TMPDIR/foo$$-$RANDOM
9114 (umask 077 && mkdir "$tmp")
9117 echo "{" > "$tmp/export.map"
9118 echo " global: main;" >> "$tmp/export.map"
9119 echo " local: *;" >> "$tmp/export.map"
9120 echo "};" >> "$tmp/export.map"
9122 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9123 cat >conftest.$ac_ext <<_ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9138 rm -f conftest.$ac_objext conftest$ac_exeext
9139 if { (ac_try="$ac_link"
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_link") 2>conftest.er1
9147 grep -v '^ *+' conftest.er1 >conftest.err
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9153 { (case "(($ac_try" in
9154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155 *) ac_try_echo=$ac_try;;
9157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158 (eval "$ac_try") 2>&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; } &&
9162 { ac_try='test -s conftest$ac_exeext'
9163 { (case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_try") 2>&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; }; then
9172 llvm_cv_link_use_version_script=yes
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9177 llvm_cv_link_use_version_script=no
9180 rm -f core conftest.err conftest.$ac_objext \
9181 conftest$ac_exeext conftest.$ac_ext
9182 rm "$tmp/export.map"
9186 ac_cpp='$CPP $CPPFLAGS'
9187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9193 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9194 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9195 if test "$llvm_cv_link_use_version_script" = yes ; then
9196 HAVE_LINK_VERSION_SCRIPT=1
9203 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9204 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9205 if test "${ac_cv_c_const+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 cat >conftest.$ac_ext <<_ACEOF
9211 cat confdefs.h >>conftest.$ac_ext
9212 cat >>conftest.$ac_ext <<_ACEOF
9213 /* end confdefs.h. */
9218 /* FIXME: Include the comments suggested by Paul. */
9220 /* Ultrix mips cc rejects this. */
9221 typedef int charset[2];
9223 /* SunOS 4.1.1 cc rejects this. */
9224 char const *const *ccp;
9226 /* NEC SVR4.0.2 mips cc rejects this. */
9227 struct point {int x, y;};
9228 static struct point const zero = {0,0};
9229 /* AIX XL C 1.02.0.0 rejects this.
9230 It does not let you subtract one const X* pointer from another in
9231 an arm of an if-expression whose if-part is not a constant
9233 const char *g = "string";
9234 ccp = &g + (g ? g-g : 0);
9235 /* HPUX 7.0 cc rejects these. */
9238 ccp = (char const *const *) p;
9239 { /* SCO 3.2v4 cc rejects this. */
9241 char const *s = 0 ? (char *) 0 : (char const *) 0;
9246 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9248 const int *foo = &x[0];
9251 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9252 typedef const int *iptr;
9256 { /* AIX XL C 1.02.0.0 rejects this saying
9257 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9258 struct s { int j; const int *ap[3]; };
9259 struct s *b; b->j = 5;
9261 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9265 return !x[0] && !zero.x;
9272 rm -f conftest.$ac_objext
9273 if { (ac_try="$ac_compile"
9275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279 (eval "$ac_compile") 2>conftest.er1
9281 grep -v '^ *+' conftest.er1 >conftest.err
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9287 { (case "(($ac_try" in
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_try") 2>&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest.$ac_objext'
9297 { (case "(($ac_try" in
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_try") 2>&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9317 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9318 if test $ac_cv_c_const = no; then
9320 cat >>confdefs.h <<\_ACEOF
9332 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9333 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9334 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9335 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 cat >conftest.$ac_ext <<_ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 #include <sys/types.h>
9357 rm -f conftest.$ac_objext
9358 if { (ac_try="$ac_compile"
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_compile") 2>conftest.er1
9366 grep -v '^ *+' conftest.er1 >conftest.err
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9372 { (case "(($ac_try" in
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_try") 2>&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } &&
9381 { ac_try='test -s conftest.$ac_objext'
9382 { (case "(($ac_try" in
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_try") 2>&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; }; then
9391 eval "$as_ac_Header=yes"
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 eval "$as_ac_Header=no"
9399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401 ac_res=`eval echo '${'$as_ac_Header'}'`
9402 { echo "$as_me:$LINENO: result: $ac_res" >&5
9403 echo "${ECHO_T}$ac_res" >&6; }
9404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9405 cat >>confdefs.h <<_ACEOF
9406 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9409 ac_header_dirent=$ac_hdr; break
9413 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9414 if test $ac_header_dirent = dirent.h; then
9415 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9416 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9417 if test "${ac_cv_search_opendir+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 ac_func_search_save_LIBS=$LIBS
9421 cat >conftest.$ac_ext <<_ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9428 /* Override any GCC internal prototype to avoid an error.
9429 Use char because int might match the return type of a GCC
9430 builtin and then its argument prototype would still apply. */
9443 for ac_lib in '' dir; do
9444 if test -z "$ac_lib"; then
9445 ac_res="none required"
9448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9450 rm -f conftest.$ac_objext conftest$ac_exeext
9451 if { (ac_try="$ac_link"
9453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454 *) ac_try_echo=$ac_try;;
9456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457 (eval "$ac_link") 2>conftest.er1
9459 grep -v '^ *+' conftest.er1 >conftest.err
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9465 { (case "(($ac_try" in
9466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467 *) ac_try_echo=$ac_try;;
9469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470 (eval "$ac_try") 2>&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; } &&
9474 { ac_try='test -s conftest$ac_exeext'
9475 { (case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_try") 2>&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
9484 ac_cv_search_opendir=$ac_res
9486 echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9492 rm -f core conftest.err conftest.$ac_objext \
9494 if test "${ac_cv_search_opendir+set}" = set; then
9498 if test "${ac_cv_search_opendir+set}" = set; then
9501 ac_cv_search_opendir=no
9504 LIBS=$ac_func_search_save_LIBS
9506 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9507 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9508 ac_res=$ac_cv_search_opendir
9509 if test "$ac_res" != no; then
9510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9515 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9516 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9517 if test "${ac_cv_search_opendir+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 ac_func_search_save_LIBS=$LIBS
9521 cat >conftest.$ac_ext <<_ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9528 /* Override any GCC internal prototype to avoid an error.
9529 Use char because int might match the return type of a GCC
9530 builtin and then its argument prototype would still apply. */
9543 for ac_lib in '' x; do
9544 if test -z "$ac_lib"; then
9545 ac_res="none required"
9548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9550 rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (ac_try="$ac_link"
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_link") 2>conftest.er1
9559 grep -v '^ *+' conftest.er1 >conftest.err
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9565 { (case "(($ac_try" in
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570 (eval "$ac_try") 2>&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; } &&
9574 { ac_try='test -s conftest$ac_exeext'
9575 { (case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_try") 2>&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_cv_search_opendir=$ac_res
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9592 rm -f core conftest.err conftest.$ac_objext \
9594 if test "${ac_cv_search_opendir+set}" = set; then
9598 if test "${ac_cv_search_opendir+set}" = set; then
9601 ac_cv_search_opendir=no
9604 LIBS=$ac_func_search_save_LIBS
9606 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9607 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9608 ac_res=$ac_cv_search_opendir
9609 if test "$ac_res" != no; then
9610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9617 for ac_header in dlfcn.h
9619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9626 ac_res=`eval echo '${'$as_ac_Header'}'`
9627 { echo "$as_me:$LINENO: result: $ac_res" >&5
9628 echo "${ECHO_T}$ac_res" >&6; }
9630 # Is the header compilable?
9631 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9633 cat >conftest.$ac_ext <<_ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9639 $ac_includes_default
9640 #include <$ac_header>
9642 rm -f conftest.$ac_objext
9643 if { (ac_try="$ac_compile"
9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649 (eval "$ac_compile") 2>conftest.er1
9651 grep -v '^ *+' conftest.er1 >conftest.err
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9657 { (case "(($ac_try" in
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_try") 2>&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try='test -s conftest.$ac_objext'
9667 { (case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_try") 2>&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; }; then
9676 ac_header_compiler=yes
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_header_compiler=no
9684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9686 echo "${ECHO_T}$ac_header_compiler" >&6; }
9688 # Is the header present?
9689 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9691 cat >conftest.$ac_ext <<_ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9697 #include <$ac_header>
9699 if { (ac_try="$ac_cpp conftest.$ac_ext"
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9707 grep -v '^ *+' conftest.er1 >conftest.err
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } >/dev/null; then
9712 if test -s conftest.err; then
9713 ac_cpp_err=$ac_c_preproc_warn_flag
9714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9721 if test -z "$ac_cpp_err"; then
9722 ac_header_preproc=yes
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9727 ac_header_preproc=no
9730 rm -f conftest.err conftest.$ac_ext
9731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9732 echo "${ECHO_T}$ac_header_preproc" >&6; }
9734 # So? What about this header?
9735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9741 ac_header_preproc=yes
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9757 ## ----------------------------------- ##
9758 ## Report this to llvmbugs@cs.uiuc.edu ##
9759 ## ----------------------------------- ##
9761 ) | sed "s/^/$as_me: WARNING: /" >&2
9764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 eval "$as_ac_Header=\$ac_header_preproc"
9771 ac_res=`eval echo '${'$as_ac_Header'}'`
9772 { echo "$as_me:$LINENO: result: $ac_res" >&5
9773 echo "${ECHO_T}$ac_res" >&6; }
9776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9777 cat >>confdefs.h <<_ACEOF
9778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9785 # Check whether --enable-ltdl-install was given.
9786 if test "${enable_ltdl_install+set}" = set; then
9787 enableval=$enable_ltdl_install;
9793 if test x"${enable_ltdl_install-no}" != xno; then
9795 INSTALL_LTDL_FALSE='#'
9797 INSTALL_LTDL_TRUE='#'
9803 if test x"${enable_ltdl_convenience-no}" != xno; then
9804 CONVENIENCE_LTDL_TRUE=
9805 CONVENIENCE_LTDL_FALSE='#'
9807 CONVENIENCE_LTDL_TRUE='#'
9808 CONVENIENCE_LTDL_FALSE=
9812 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9813 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9815 libname_spec='lib$name'
9823 shlibpath_overrides_runpath=unknown
9825 dynamic_linker="$host_os ld.so"
9826 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9827 if test "$GCC" = yes; then
9828 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9829 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9830 # if the path contains ";" then we assume it to be the separator
9831 # otherwise default to the standard path separator (i.e. ":") - it is
9832 # assumed that no part of a normal pathname contains ";" but that should
9833 # okay in the real world where ";" in dirpaths is itself problematic.
9834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9839 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9841 need_lib_prefix=unknown
9842 hardcode_into_libs=no
9844 # when you set need_version to no, make sure it does not cause -set_version
9845 # flags to be left without arguments
9846 need_version=unknown
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9852 shlibpath_var=LIBPATH
9854 # AIX 3 has no versioning support, so we append a major version to the name.
9855 soname_spec='${libname}${release}${shared_ext}$major'
9862 hardcode_into_libs=yes
9863 if test "$host_cpu" = ia64; then
9864 # AIX 5 supports IA64
9865 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9866 shlibpath_var=LD_LIBRARY_PATH
9868 # With GCC up to 2.95.x, collect2 would create an import file
9869 # for dependence libraries. The import file would start with
9870 # the line `#! .'. This would cause the generated library to
9871 # depend on `.', always an invalid library. This was fixed in
9872 # development snapshots of GCC prior to 3.0.
9874 aix4 | aix4.[01] | aix4.[01].*)
9875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9877 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9884 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9885 # soname into executable. Probably we can add versioning support to
9886 # collect2, so additional links can be useful in future.
9887 if test "$aix_use_runtimelinking" = yes; then
9888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9889 # instead of lib<name>.a to let people know that these are not
9890 # typical AIX shared libraries.
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9893 # We preserve .a as extension for shared libraries through AIX4.2
9894 # and later when we are not doing run time linking.
9895 library_names_spec='${libname}${release}.a $libname.a'
9896 soname_spec='${libname}${release}${shared_ext}$major'
9898 shlibpath_var=LIBPATH
9903 library_names_spec='$libname.ixlibrary $libname.a'
9904 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9905 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'
9909 library_names_spec='${libname}${shared_ext}'
9910 dynamic_linker="$host_os ld.so"
9911 shlibpath_var=LIBRARY_PATH
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9920 shlibpath_var=LD_LIBRARY_PATH
9921 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9922 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9923 # the default ld.so.conf also contains /usr/contrib/lib and
9924 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9925 # libtool to hard-code these into programs
9928 cygwin* | mingw* | pw32*)
9929 version_type=windows
9934 case $GCC,$host_os in
9935 yes,cygwin* | yes,mingw* | yes,pw32*)
9936 library_names_spec='$libname.dll.a'
9937 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9938 postinstall_cmds='base_file=`basename \${file}`~
9939 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9940 dldir=$destdir/`dirname \$dlpath`~
9941 test -d \$dldir || mkdir -p \$dldir~
9942 $install_prog $dir/$dlname \$dldir/$dlname~
9943 chmod a+x \$dldir/$dlname'
9944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9945 dlpath=$dir/\$dldll~
9947 shlibpath_overrides_runpath=yes
9951 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9952 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9953 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9956 # MinGW DLLs use traditional 'lib' prefix
9957 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9958 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9959 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9960 # It is most probably a Windows format PATH printed by
9961 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9962 # path with ; separators, and with drive letters. We can handle the
9963 # drive letters (cygwin fileutils understands them), so leave them,
9964 # especially as we might pass files found there to a mingw objdump,
9965 # which wouldn't understand a cygwinified path. Ahh.
9966 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9972 # pw32 DLLs use 'pw' prefix rather than 'lib'
9973 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9979 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9982 dynamic_linker='Win32 ld.exe'
9983 # FIXME: first we should search . and the directory the executable is in
9987 darwin* | rhapsody*)
9988 dynamic_linker="$host_os dyld"
9992 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9993 soname_spec='${libname}${release}${major}$shared_ext'
9994 shlibpath_overrides_runpath=yes
9995 shlibpath_var=DYLD_LIBRARY_PATH
9996 shrext_cmds='.dylib'
9997 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9998 if test "$GCC" = yes; then
9999 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"`
10001 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10003 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 shlibpath_var=LD_LIBRARY_PATH
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 shlibpath_overrides_runpath=no
10027 hardcode_into_libs=yes
10028 dynamic_linker='GNU ld.so'
10031 freebsd* | dragonfly*)
10032 # DragonFly does not have aout. When/if they implement a new
10033 # versioning mechanism, adjust this.
10034 if test -x /usr/bin/objformat; then
10035 objformat=`/usr/bin/objformat`
10038 freebsd[123]*) objformat=aout ;;
10039 *) objformat=elf ;;
10042 version_type=freebsd-$objformat
10043 case $version_type in
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10054 shlibpath_var=LD_LIBRARY_PATH
10057 shlibpath_overrides_runpath=yes
10059 freebsd3.[01]* | freebsdelf3.[01]*)
10060 shlibpath_overrides_runpath=yes
10061 hardcode_into_libs=yes
10063 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10064 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10065 shlibpath_overrides_runpath=no
10066 hardcode_into_libs=yes
10068 freebsd*) # from 4.6 on
10069 shlibpath_overrides_runpath=yes
10070 hardcode_into_libs=yes
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 shlibpath_var=LD_LIBRARY_PATH
10082 hardcode_into_libs=yes
10085 hpux9* | hpux10* | hpux11*)
10086 # Give a soname corresponding to the major version so that dld.sl refuses to
10087 # link against other versions.
10094 hardcode_into_libs=yes
10095 dynamic_linker="$host_os dld.so"
10096 shlibpath_var=LD_LIBRARY_PATH
10097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 if test "X$HPUX_IA64_MODE" = X32; then
10101 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10103 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10109 hardcode_into_libs=yes
10110 dynamic_linker="$host_os dld.sl"
10111 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 soname_spec='${libname}${release}${shared_ext}$major'
10115 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10120 dynamic_linker="$host_os dld.sl"
10121 shlibpath_var=SHLIB_PATH
10122 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10127 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10128 postinstall_cmds='chmod 555 $lib'
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=no
10140 hardcode_into_libs=yes
10143 irix5* | irix6* | nonstopux*)
10145 nonstopux*) version_type=nonstopux ;;
10147 if test "$lt_cv_prog_gnu_ld" = yes; then
10155 soname_spec='${libname}${release}${shared_ext}$major'
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10158 irix5* | nonstopux*)
10159 libsuff= shlibsuff=
10162 case $LD in # libtool.m4 will add one of these switches to LD
10163 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10164 libsuff= shlibsuff= libmagic=32-bit;;
10165 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10166 libsuff=32 shlibsuff=N32 libmagic=N32;;
10167 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10168 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10169 *) libsuff= shlibsuff= libmagic=never-match;;
10173 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10174 shlibpath_overrides_runpath=no
10175 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10176 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10177 hardcode_into_libs=yes
10180 # No shared lib support for Linux oldld, aout, or coff.
10181 linux*oldld* | linux*aout* | linux*coff*)
10185 # This must be Linux ELF.
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=no
10195 # This implies no fast_install, which is unacceptable.
10196 # Some rework will be needed to allow for fast_install
10197 # before this can be enabled.
10198 hardcode_into_libs=yes
10200 # Append ld.so.conf contents to the search path
10201 if test -f /etc/ld.so.conf; then
10202 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' ' '`
10203 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10206 # We used to test for /lib/ld.so.1 and disable shared libraries on
10207 # powerpc, because MkLinux only supported shared libraries with the
10208 # GNU dynamic linker. Since this was broken with cross compilers,
10209 # most powerpc-linux boxes support dynamic linking these days and
10210 # people can always --disable-shared, the test was removed, and we
10211 # assume the GNU/Linux dynamic linker is in use.
10212 dynamic_linker='GNU/Linux ld.so'
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 shlibpath_overrides_runpath=no
10223 hardcode_into_libs=yes
10224 dynamic_linker='GNU ld.so'
10231 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10234 dynamic_linker='NetBSD (a.out) ld.so'
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 dynamic_linker='NetBSD ld.elf_so'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath=yes
10242 hardcode_into_libs=yes
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=yes
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=yes
10264 sys_lib_dlsearch_path_spec="/usr/lib"
10266 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10268 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10269 *) need_version=no ;;
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10276 openbsd2.[89] | openbsd2.[89].*)
10277 shlibpath_overrides_runpath=no
10280 shlibpath_overrides_runpath=yes
10284 shlibpath_overrides_runpath=yes
10289 libname_spec='$name'
10292 library_names_spec='$libname${shared_ext} $libname.a'
10293 dynamic_linker='OS/2 ld.exe'
10294 shlibpath_var=LIBPATH
10297 osf3* | osf4* | osf5*)
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10305 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313 soname_spec='${libname}${release}${shared_ext}$major'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 shlibpath_overrides_runpath=yes
10316 hardcode_into_libs=yes
10317 # ldd complains unless libraries are executable
10318 postinstall_cmds='chmod +x $lib'
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10324 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath=yes
10327 if test "$with_gnu_ld" = yes; then
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 case $host_vendor in
10340 shlibpath_overrides_runpath=no
10342 export_dynamic_flag_spec='${wl}-Blargedynsym'
10343 runpath_var=LD_RUN_PATH
10351 shlibpath_overrides_runpath=no
10352 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10358 if test -d /usr/nec ;then
10360 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10361 soname_spec='$libname${shared_ext}.$major'
10362 shlibpath_var=LD_LIBRARY_PATH
10366 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10367 version_type=freebsd-elf
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 hardcode_into_libs=yes
10374 if test "$with_gnu_ld" = yes; then
10375 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10376 shlibpath_overrides_runpath=no
10378 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10379 shlibpath_overrides_runpath=yes
10382 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10386 sys_lib_dlsearch_path_spec='/usr/lib'
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 shlibpath_var=LD_LIBRARY_PATH
10400 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10401 echo "${ECHO_T}$dynamic_linker" >&6; }
10402 test "$dynamic_linker" = no && can_build_shared=no
10404 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10405 if test "$GCC" = yes; then
10406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10410 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10411 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10412 if test "${libltdl_cv_shlibext+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 eval libltdl_cv_shlibext=$shrext_cmds
10420 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10421 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10422 if test -n "$libltdl_cv_shlibext"; then
10424 cat >>confdefs.h <<_ACEOF
10425 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10431 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10432 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10433 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 libltdl_cv_shlibpath_var="$shlibpath_var"
10438 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10439 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10440 if test -n "$libltdl_cv_shlibpath_var"; then
10442 cat >>confdefs.h <<_ACEOF
10443 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10449 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10450 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10451 if test "${libltdl_cv_sys_search_path+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10456 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10457 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10458 if test -n "$libltdl_cv_sys_search_path"; then
10460 for dir in $libltdl_cv_sys_search_path; do
10461 if test -z "$sys_search_path"; then
10462 sys_search_path="$dir"
10464 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10468 cat >>confdefs.h <<_ACEOF
10469 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10474 { echo "$as_me:$LINENO: checking for objdir" >&5
10475 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10476 if test "${libltdl_cv_objdir+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 libltdl_cv_objdir="$objdir"
10480 if test -n "$objdir"; then
10483 rm -f .libs 2>/dev/null
10484 mkdir .libs 2>/dev/null
10485 if test -d .libs; then
10486 libltdl_cv_objdir=.libs
10488 # MS-DOS does not allow filenames that begin with a dot.
10489 libltdl_cv_objdir=_libs
10491 rmdir .libs 2>/dev/null
10495 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10496 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10498 cat >>confdefs.h <<_ACEOF
10499 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10507 # Check for command to grab the raw symbol name followed by C symbol from nm.
10508 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10509 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10510 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 # These are sane defaults that work on at least a few old systems.
10515 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10517 # Character class describing NM global symbol codes.
10518 symcode='[BCDEGRST]'
10520 # Regexp to match symbols that can be accessed directly from C.
10521 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10523 # Transform an extracted symbol line into a proper C declaration
10524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10526 # Transform an extracted symbol line into symbol name and symbol address
10527 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'"
10529 # Define system-specific variables.
10534 cygwin* | mingw* | pw32*)
10535 symcode='[ABCDGISTW]'
10537 hpux*) # Its linker distinguishes data from code symbols
10538 if test "$host_cpu" = ia64; then
10539 symcode='[ABCDEGRST]'
10541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10542 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'"
10545 if test "$host_cpu" = ia64; then
10546 symcode='[ABCDGIRSTW]'
10547 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10548 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'"
10551 irix* | nonstopux*)
10552 symcode='[BCDEGRST]'
10555 symcode='[BCDEGQRST]'
10566 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10574 # Handle CRLF in mingw tool chain
10578 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10582 # If we're using GNU nm, then use its standard symbol codes.
10583 case `$NM -V 2>&1` in
10584 *GNU* | *'with BFD'*)
10585 symcode='[ABCDGIRSTW]' ;;
10588 # Try without a prefix undercore, then with it.
10589 for ac_symprfx in "" "_"; do
10591 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10592 symxfrm="\\1 $ac_symprfx\\2 \\2"
10594 # Write the raw and C identifiers.
10595 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10597 # Check to see that the pipe works correctly.
10601 cat > conftest.$ac_ext <<EOF
10606 void nm_test_func(){}
10610 int main(){nm_test_var='a';nm_test_func();return(0);}
10613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10614 (eval $ac_compile) 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; then
10618 # Now try to grab the symbols.
10620 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10621 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } && test -s "$nlist"; then
10625 # Try sorting and uniquifying the output.
10626 if sort "$nlist" | uniq > "$nlist"T; then
10627 mv -f "$nlist"T "$nlist"
10632 # Make sure that we snagged all the symbols we need.
10633 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10634 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10635 cat <<EOF > conftest.$ac_ext
10641 # Now generate the symbol file.
10642 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10644 cat <<EOF >> conftest.$ac_ext
10645 #if defined (__STDC__) && __STDC__
10646 # define lt_ptr_t void *
10648 # define lt_ptr_t char *
10652 /* The mapping between symbol names and symbols. */
10657 lt_preloaded_symbols[] =
10660 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10661 cat <<\EOF >> conftest.$ac_ext
10669 # Now try linking the two files.
10670 mv conftest.$ac_objext conftstm.$ac_objext
10671 lt_save_LIBS="$LIBS"
10672 lt_save_CFLAGS="$CFLAGS"
10673 LIBS="conftstm.$ac_objext"
10674 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676 (eval $ac_link) 2>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10682 LIBS="$lt_save_LIBS"
10683 CFLAGS="$lt_save_CFLAGS"
10685 echo "cannot find nm_test_func in $nlist" >&5
10688 echo "cannot find nm_test_var in $nlist" >&5
10691 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10694 echo "$progname: failed program was:" >&5
10695 cat conftest.$ac_ext >&5
10697 rm -f conftest* conftst*
10699 # Do not use the global_symbol_pipe unless it works.
10700 if test "$pipe_works" = yes; then
10703 lt_cv_sys_global_symbol_pipe=
10709 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10710 lt_cv_sys_global_symbol_to_cdecl=
10712 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10713 { echo "$as_me:$LINENO: result: failed" >&5
10714 echo "${ECHO_T}failed" >&6; }
10716 { echo "$as_me:$LINENO: result: ok" >&5
10717 echo "${ECHO_T}ok" >&6; }
10721 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10722 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10723 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10727 libltdl_cv_preloaded_symbols=yes
10729 libltdl_cv_preloaded_symbols=no
10733 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10734 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10735 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10737 cat >>confdefs.h <<\_ACEOF
10738 #define HAVE_PRELOADED_SYMBOLS 1
10746 ac_cpp='$CPP $CPPFLAGS'
10747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10752 { echo "$as_me:$LINENO: checking for shl_load" >&5
10753 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10754 if test "${ac_cv_func_shl_load+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 cat >conftest.$ac_ext <<_ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10765 #define shl_load innocuous_shl_load
10767 /* System header to define __stub macros and hopefully few prototypes,
10768 which can conflict with char shl_load (); below.
10769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10770 <limits.h> exists even on freestanding compilers. */
10773 # include <limits.h>
10775 # include <assert.h>
10780 /* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
10787 /* The GNU C library defines this for functions which it implements
10788 to always fail with ENOSYS. Some functions are actually named
10789 something starting with __ and the normal name is an alias. */
10790 #if defined __stub_shl_load || defined __stub___shl_load
10797 return shl_load ();
10802 rm -f conftest.$ac_objext conftest$ac_exeext
10803 if { (ac_try="$ac_link"
10804 case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_link") 2>conftest.er1
10811 grep -v '^ *+' conftest.er1 >conftest.err
10813 cat conftest.err >&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } &&
10816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10817 { (case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_try") 2>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; } &&
10826 { ac_try='test -s conftest$ac_exeext'
10827 { (case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_try") 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
10836 ac_cv_func_shl_load=yes
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10841 ac_cv_func_shl_load=no
10844 rm -f core conftest.err conftest.$ac_objext \
10845 conftest$ac_exeext conftest.$ac_ext
10847 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10848 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10849 if test $ac_cv_func_shl_load = yes; then
10851 cat >>confdefs.h <<\_ACEOF
10852 #define HAVE_SHL_LOAD 1
10856 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10857 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10858 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10861 ac_check_lib_save_LIBS=$LIBS
10863 cat >conftest.$ac_ext <<_ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10870 /* Override any GCC internal prototype to avoid an error.
10871 Use char because int might match the return type of a GCC
10872 builtin and then its argument prototype would still apply. */
10880 return shl_load ();
10885 rm -f conftest.$ac_objext conftest$ac_exeext
10886 if { (ac_try="$ac_link"
10887 case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_link") 2>conftest.er1
10894 grep -v '^ *+' conftest.er1 >conftest.err
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10900 { (case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_try") 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try='test -s conftest$ac_exeext'
10910 { (case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_try") 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_cv_lib_dld_shl_load=yes
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10924 ac_cv_lib_dld_shl_load=no
10927 rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext conftest.$ac_ext
10929 LIBS=$ac_check_lib_save_LIBS
10931 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10932 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10933 if test $ac_cv_lib_dld_shl_load = yes; then
10935 cat >>confdefs.h <<\_ACEOF
10936 #define HAVE_SHL_LOAD 1
10939 LIBADD_DL="$LIBADD_DL -ldld"
10941 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10942 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10943 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 ac_check_lib_save_LIBS=$LIBS
10948 cat >conftest.$ac_ext <<_ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10955 /* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (ac_try="$ac_link"
10972 case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_link") 2>conftest.er1
10979 grep -v '^ *+' conftest.er1 >conftest.err
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10985 { (case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_try") 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; } &&
10994 { ac_try='test -s conftest$ac_exeext'
10995 { (case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_try") 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
11004 ac_cv_lib_dl_dlopen=yes
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 ac_cv_lib_dl_dlopen=no
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11016 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11017 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11018 if test $ac_cv_lib_dl_dlopen = yes; then
11020 cat >>confdefs.h <<\_ACEOF
11021 #define HAVE_LIBDL 1
11024 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11026 cat >conftest.$ac_ext <<_ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11033 # include <dlfcn.h>
11044 rm -f conftest.$ac_objext conftest$ac_exeext
11045 if { (ac_try="$ac_link"
11046 case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_link") 2>conftest.er1
11053 grep -v '^ *+' conftest.er1 >conftest.err
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } &&
11058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11059 { (case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064 (eval "$ac_try") 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; } &&
11068 { ac_try='test -s conftest$ac_exeext'
11069 { (case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_try") 2>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11079 cat >>confdefs.h <<\_ACEOF
11080 #define HAVE_LIBDL 1
11082 libltdl_cv_func_dlopen="yes"
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11088 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11089 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 ac_check_lib_save_LIBS=$LIBS
11093 LIBS="-lsvld $LIBS"
11094 cat >conftest.$ac_ext <<_ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11101 /* Override any GCC internal prototype to avoid an error.
11102 Use char because int might match the return type of a GCC
11103 builtin and then its argument prototype would still apply. */
11116 rm -f conftest.$ac_objext conftest$ac_exeext
11117 if { (ac_try="$ac_link"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_link") 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; } &&
11140 { ac_try='test -s conftest$ac_exeext'
11141 { (case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_try") 2>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_cv_lib_svld_dlopen=yes
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_cv_lib_svld_dlopen=no
11158 rm -f core conftest.err conftest.$ac_objext \
11159 conftest$ac_exeext conftest.$ac_ext
11160 LIBS=$ac_check_lib_save_LIBS
11162 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11163 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11164 if test $ac_cv_lib_svld_dlopen = yes; then
11166 cat >>confdefs.h <<\_ACEOF
11167 #define HAVE_LIBDL 1
11170 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11172 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11173 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11174 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 ac_check_lib_save_LIBS=$LIBS
11179 cat >conftest.$ac_ext <<_ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11186 /* Override any GCC internal prototype to avoid an error.
11187 Use char because int might match the return type of a GCC
11188 builtin and then its argument prototype would still apply. */
11196 return dld_link ();
11201 rm -f conftest.$ac_objext conftest$ac_exeext
11202 if { (ac_try="$ac_link"
11203 case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_link") 2>conftest.er1
11210 grep -v '^ *+' conftest.er1 >conftest.err
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
11215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11216 { (case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_try") 2>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; } &&
11225 { ac_try='test -s conftest$ac_exeext'
11226 { (case "(($ac_try" in
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_try") 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }; then
11235 ac_cv_lib_dld_dld_link=yes
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 ac_cv_lib_dld_dld_link=no
11243 rm -f core conftest.err conftest.$ac_objext \
11244 conftest$ac_exeext conftest.$ac_ext
11245 LIBS=$ac_check_lib_save_LIBS
11247 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11248 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11249 if test $ac_cv_lib_dld_dld_link = yes; then
11251 cat >>confdefs.h <<\_ACEOF
11255 LIBADD_DL="$LIBADD_DL -ldld"
11257 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11258 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11259 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 cat >conftest.$ac_ext <<_ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11270 #define _dyld_func_lookup innocuous__dyld_func_lookup
11272 /* System header to define __stub macros and hopefully few prototypes,
11273 which can conflict with char _dyld_func_lookup (); below.
11274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11275 <limits.h> exists even on freestanding compilers. */
11278 # include <limits.h>
11280 # include <assert.h>
11283 #undef _dyld_func_lookup
11285 /* Override any GCC internal prototype to avoid an error.
11286 Use char because int might match the return type of a GCC
11287 builtin and then its argument prototype would still apply. */
11291 char _dyld_func_lookup ();
11292 /* The GNU C library defines this for functions which it implements
11293 to always fail with ENOSYS. Some functions are actually named
11294 something starting with __ and the normal name is an alias. */
11295 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11302 return _dyld_func_lookup ();
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (ac_try="$ac_link"
11309 case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_link") 2>conftest.er1
11316 grep -v '^ *+' conftest.er1 >conftest.err
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
11321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11322 { (case "(($ac_try" in
11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324 *) ac_try_echo=$ac_try;;
11326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11327 (eval "$ac_try") 2>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; } &&
11331 { ac_try='test -s conftest$ac_exeext'
11332 { (case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_try") 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 ac_cv_func__dyld_func_lookup=yes
11343 echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11346 ac_cv_func__dyld_func_lookup=no
11349 rm -f core conftest.err conftest.$ac_objext \
11350 conftest$ac_exeext conftest.$ac_ext
11352 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11353 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11354 if test $ac_cv_func__dyld_func_lookup = yes; then
11356 cat >>confdefs.h <<\_ACEOF
11357 #define HAVE_DYLD 1
11371 rm -f core conftest.err conftest.$ac_objext \
11372 conftest$ac_exeext conftest.$ac_ext
11383 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11385 lt_save_LIBS="$LIBS"
11386 LIBS="$LIBS $LIBADD_DL"
11388 for ac_func in dlerror
11390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11396 cat >conftest.$ac_ext <<_ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11404 #define $ac_func innocuous_$ac_func
11406 /* System header to define __stub macros and hopefully few prototypes,
11407 which can conflict with char $ac_func (); below.
11408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11409 <limits.h> exists even on freestanding compilers. */
11412 # include <limits.h>
11414 # include <assert.h>
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11426 /* The GNU C library defines this for functions which it implements
11427 to always fail with ENOSYS. Some functions are actually named
11428 something starting with __ and the normal name is an alias. */
11429 #if defined __stub_$ac_func || defined __stub___$ac_func
11436 return $ac_func ();
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (ac_try="$ac_link"
11443 case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_link") 2>conftest.er1
11450 grep -v '^ *+' conftest.er1 >conftest.err
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } &&
11455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11456 { (case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461 (eval "$ac_try") 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; } &&
11465 { ac_try='test -s conftest$ac_exeext'
11466 { (case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_try") 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; }; then
11475 eval "$as_ac_var=yes"
11477 echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11480 eval "$as_ac_var=no"
11483 rm -f core conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
11486 ac_res=`eval echo '${'$as_ac_var'}'`
11487 { echo "$as_me:$LINENO: result: $ac_res" >&5
11488 echo "${ECHO_T}$ac_res" >&6; }
11489 if test `eval echo '${'$as_ac_var'}'` = yes; then
11490 cat >>confdefs.h <<_ACEOF
11491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11497 LIBS="$lt_save_LIBS"
11500 ac_cpp='$CPP $CPPFLAGS'
11501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11507 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11508 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11509 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 ac_cv_sys_symbol_underscore=no
11513 cat > conftest.$ac_ext <<EOF
11514 void nm_test_func(){}
11515 int main(){nm_test_func;return 0;}
11517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11518 (eval $ac_compile) 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; then
11522 # Now try to grab the symbols.
11523 ac_nlist=conftest.nm
11524 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11525 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } && test -s "$ac_nlist"; then
11529 # See whether the symbols have a leading underscore.
11530 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11531 ac_cv_sys_symbol_underscore=yes
11533 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11536 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11540 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11543 echo "configure: failed program was:" >&5
11549 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11550 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11553 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11554 if test x"$libltdl_cv_func_dlopen" = xyes ||
11555 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11556 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11557 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11558 if test "${libltdl_cv_need_uscore+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 libltdl_cv_need_uscore=unknown
11563 LIBS="$LIBS $LIBADD_DL"
11564 if test "$cross_compiling" = yes; then :
11565 libltdl_cv_need_uscore=cross
11567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11568 lt_status=$lt_dlunknown
11569 cat > conftest.$ac_ext <<EOF
11570 #line 11570 "configure"
11571 #include "confdefs.h"
11580 # define LT_DLGLOBAL RTLD_GLOBAL
11583 # define LT_DLGLOBAL DL_GLOBAL
11585 # define LT_DLGLOBAL 0
11589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11590 find out it does not work in some platform. */
11591 #ifndef LT_DLLAZY_OR_NOW
11593 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11596 # define LT_DLLAZY_OR_NOW DL_LAZY
11599 # define LT_DLLAZY_OR_NOW RTLD_NOW
11602 # define LT_DLLAZY_OR_NOW DL_NOW
11604 # define LT_DLLAZY_OR_NOW 0
11612 extern "C" void exit (int);
11615 void fnord() { int i=42;}
11618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11619 int status = $lt_dlunknown;
11623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11624 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11625 /* dlclose (self); */
11633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11634 (eval $ac_link) 2>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11638 (./conftest; exit; ) >&5 2>/dev/null
11640 case x$lt_status in
11641 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11642 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11643 x$lt_dlunknown|x*) ;;
11646 # compilation failed
11655 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11656 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11660 if test x"$libltdl_cv_need_uscore" = xyes; then
11662 cat >>confdefs.h <<\_ACEOF
11663 #define NEED_USCORE 1
11669 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11670 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11671 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 # PORTME does your system automatically load deplibs for dlopen?
11675 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11676 # For now, we just catch OSes we know something about -- in the
11677 # future, we'll try test this programmatically.
11678 libltdl_cv_sys_dlopen_deplibs=unknown
11680 aix3*|aix4.1.*|aix4.2.*)
11681 # Unknown whether this is true for these versions of AIX, but
11682 # we want this `case' here to explicitly catch those versions.
11683 libltdl_cv_sys_dlopen_deplibs=unknown
11686 libltdl_cv_sys_dlopen_deplibs=yes
11689 # Assuming the user has installed a libdl from somewhere, this is true
11690 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11691 libltdl_cv_sys_dlopen_deplibs=yes
11693 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11694 # GNU and its variants, using gnu ld.so (Glibc)
11695 libltdl_cv_sys_dlopen_deplibs=yes
11698 libltdl_cv_sys_dlopen_deplibs=yes
11701 libltdl_cv_sys_dlopen_deplibs=yes
11703 irix[12345]*|irix6.[01]*)
11704 # Catch all versions of IRIX before 6.2, and indicate that we don't
11705 # know how it worked for any of those versions.
11706 libltdl_cv_sys_dlopen_deplibs=unknown
11709 # The case above catches anything before 6.2, and it's known that
11710 # at 6.2 and later dlopen does load deplibs.
11711 libltdl_cv_sys_dlopen_deplibs=yes
11714 libltdl_cv_sys_dlopen_deplibs=yes
11717 libltdl_cv_sys_dlopen_deplibs=yes
11720 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11721 # it did *not* use an RPATH in a shared library to find objects the
11722 # library depends on, so we explictly say `no'.
11723 libltdl_cv_sys_dlopen_deplibs=no
11725 osf5.0|osf5.0a|osf5.1)
11726 # dlopen *does* load deplibs and with the right loader patch applied
11727 # it even uses RPATH in a shared library to search for shared objects
11728 # that the library depends on, but there's no easy way to know if that
11729 # patch is installed. Since this is the case, all we can really
11730 # say is unknown -- it depends on the patch being installed. If
11731 # it is, this changes to `yes'. Without it, it would be `no'.
11732 libltdl_cv_sys_dlopen_deplibs=unknown
11735 # the two cases above should catch all versions of osf <= 5.1. Read
11736 # the comments above for what we know about them.
11737 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11738 # is used to find them so we can finally say `yes'.
11739 libltdl_cv_sys_dlopen_deplibs=yes
11742 libltdl_cv_sys_dlopen_deplibs=yes
11744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11745 libltdl_cv_sys_dlopen_deplibs=yes
11750 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11751 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11752 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11754 cat >>confdefs.h <<\_ACEOF
11755 #define LTDL_DLOPEN_DEPLIBS 1
11761 for ac_header in argz.h
11763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 ac_res=`eval echo '${'$as_ac_Header'}'`
11771 { echo "$as_me:$LINENO: result: $ac_res" >&5
11772 echo "${ECHO_T}$ac_res" >&6; }
11774 # Is the header compilable?
11775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11777 cat >conftest.$ac_ext <<_ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11783 $ac_includes_default
11784 #include <$ac_header>
11786 rm -f conftest.$ac_objext
11787 if { (ac_try="$ac_compile"
11788 case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_compile") 2>conftest.er1
11795 grep -v '^ *+' conftest.er1 >conftest.err
11797 cat conftest.err >&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } &&
11800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11801 { (case "(($ac_try" in
11802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_try") 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; } &&
11810 { ac_try='test -s conftest.$ac_objext'
11811 { (case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_try") 2>&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 ac_header_compiler=yes
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11825 ac_header_compiler=no
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11830 echo "${ECHO_T}$ac_header_compiler" >&6; }
11832 # Is the header present?
11833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11835 cat >conftest.$ac_ext <<_ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 #include <$ac_header>
11843 if { (ac_try="$ac_cpp conftest.$ac_ext"
11844 case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11851 grep -v '^ *+' conftest.er1 >conftest.err
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } >/dev/null; then
11856 if test -s conftest.err; then
11857 ac_cpp_err=$ac_c_preproc_warn_flag
11858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11865 if test -z "$ac_cpp_err"; then
11866 ac_header_preproc=yes
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11871 ac_header_preproc=no
11874 rm -f conftest.err conftest.$ac_ext
11875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11876 echo "${ECHO_T}$ac_header_preproc" >&6; }
11878 # So? What about this header?
11879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11885 ac_header_preproc=yes
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11901 ## ----------------------------------- ##
11902 ## Report this to llvmbugs@cs.uiuc.edu ##
11903 ## ----------------------------------- ##
11905 ) | sed "s/^/$as_me: WARNING: /" >&2
11908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 eval "$as_ac_Header=\$ac_header_preproc"
11915 ac_res=`eval echo '${'$as_ac_Header'}'`
11916 { echo "$as_me:$LINENO: result: $ac_res" >&5
11917 echo "${ECHO_T}$ac_res" >&6; }
11920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11921 cat >>confdefs.h <<_ACEOF
11922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11930 { echo "$as_me:$LINENO: checking for error_t" >&5
11931 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11932 if test "${ac_cv_type_error_t+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 cat >conftest.$ac_ext <<_ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11945 typedef error_t ac__type_new_;
11949 if ((ac__type_new_ *) 0)
11951 if (sizeof (ac__type_new_))
11957 rm -f conftest.$ac_objext
11958 if { (ac_try="$ac_compile"
11959 case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_compile") 2>conftest.er1
11966 grep -v '^ *+' conftest.er1 >conftest.err
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11972 { (case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_try") 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest.$ac_objext'
11982 { (case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_try") 2>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 ac_cv_type_error_t=yes
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ac_cv_type_error_t=no
11999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12001 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12002 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12003 if test $ac_cv_type_error_t = yes; then
12005 cat >>confdefs.h <<_ACEOF
12006 #define HAVE_ERROR_T 1
12012 cat >>confdefs.h <<\_ACEOF
12013 #define error_t int
12024 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 cat >conftest.$ac_ext <<_ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12040 #define $ac_func innocuous_$ac_func
12042 /* System header to define __stub macros and hopefully few prototypes,
12043 which can conflict with char $ac_func (); below.
12044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12045 <limits.h> exists even on freestanding compilers. */
12048 # include <limits.h>
12050 # include <assert.h>
12055 /* Override any GCC internal prototype to avoid an error.
12056 Use char because int might match the return type of a GCC
12057 builtin and then its argument prototype would still apply. */
12062 /* The GNU C library defines this for functions which it implements
12063 to always fail with ENOSYS. Some functions are actually named
12064 something starting with __ and the normal name is an alias. */
12065 #if defined __stub_$ac_func || defined __stub___$ac_func
12072 return $ac_func ();
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (ac_try="$ac_link"
12079 case "(($ac_try" in
12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084 (eval "$ac_link") 2>conftest.er1
12086 grep -v '^ *+' conftest.er1 >conftest.err
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } &&
12091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12092 { (case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_try") 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; } &&
12101 { ac_try='test -s conftest$ac_exeext'
12102 { (case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_try") 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 eval "$as_ac_var=yes"
12113 echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12116 eval "$as_ac_var=no"
12119 rm -f core conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12122 ac_res=`eval echo '${'$as_ac_var'}'`
12123 { echo "$as_me:$LINENO: result: $ac_res" >&5
12124 echo "${ECHO_T}$ac_res" >&6; }
12125 if test `eval echo '${'$as_ac_var'}'` = yes; then
12126 cat >>confdefs.h <<_ACEOF
12127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12160 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 ac_res=`eval echo '${'$as_ac_Header'}'`
12171 { echo "$as_me:$LINENO: result: $ac_res" >&5
12172 echo "${ECHO_T}$ac_res" >&6; }
12174 # Is the header compilable?
12175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12177 cat >conftest.$ac_ext <<_ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 $ac_includes_default
12184 #include <$ac_header>
12186 rm -f conftest.$ac_objext
12187 if { (ac_try="$ac_compile"
12188 case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_compile") 2>conftest.er1
12195 grep -v '^ *+' conftest.er1 >conftest.err
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12201 { (case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_try") 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest.$ac_objext'
12211 { (case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_try") 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12220 ac_header_compiler=yes
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12225 ac_header_compiler=no
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12230 echo "${ECHO_T}$ac_header_compiler" >&6; }
12232 # Is the header present?
12233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12235 cat >conftest.$ac_ext <<_ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 #include <$ac_header>
12243 if { (ac_try="$ac_cpp conftest.$ac_ext"
12244 case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12251 grep -v '^ *+' conftest.er1 >conftest.err
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } >/dev/null; then
12256 if test -s conftest.err; then
12257 ac_cpp_err=$ac_c_preproc_warn_flag
12258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12265 if test -z "$ac_cpp_err"; then
12266 ac_header_preproc=yes
12268 echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12271 ac_header_preproc=no
12274 rm -f conftest.err conftest.$ac_ext
12275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12276 echo "${ECHO_T}$ac_header_preproc" >&6; }
12278 # So? What about this header?
12279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12285 ac_header_preproc=yes
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12301 ## ----------------------------------- ##
12302 ## Report this to llvmbugs@cs.uiuc.edu ##
12303 ## ----------------------------------- ##
12305 ) | sed "s/^/$as_me: WARNING: /" >&2
12308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 eval "$as_ac_Header=\$ac_header_preproc"
12315 ac_res=`eval echo '${'$as_ac_Header'}'`
12316 { echo "$as_me:$LINENO: result: $ac_res" >&5
12317 echo "${ECHO_T}$ac_res" >&6; }
12320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12321 cat >>confdefs.h <<_ACEOF
12322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12333 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 ac_res=`eval echo '${'$as_ac_Header'}'`
12343 { echo "$as_me:$LINENO: result: $ac_res" >&5
12344 echo "${ECHO_T}$ac_res" >&6; }
12346 # Is the header compilable?
12347 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12349 cat >conftest.$ac_ext <<_ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12355 $ac_includes_default
12356 #include <$ac_header>
12358 rm -f conftest.$ac_objext
12359 if { (ac_try="$ac_compile"
12360 case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_compile") 2>conftest.er1
12367 grep -v '^ *+' conftest.er1 >conftest.err
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12373 { (case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_try") 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; } &&
12382 { ac_try='test -s conftest.$ac_objext'
12383 { (case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_try") 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; }; then
12392 ac_header_compiler=yes
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397 ac_header_compiler=no
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12402 echo "${ECHO_T}$ac_header_compiler" >&6; }
12404 # Is the header present?
12405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 #include <$ac_header>
12415 if { (ac_try="$ac_cpp conftest.$ac_ext"
12416 case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12423 grep -v '^ *+' conftest.er1 >conftest.err
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } >/dev/null; then
12428 if test -s conftest.err; then
12429 ac_cpp_err=$ac_c_preproc_warn_flag
12430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12437 if test -z "$ac_cpp_err"; then
12438 ac_header_preproc=yes
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ac_header_preproc=no
12446 rm -f conftest.err conftest.$ac_ext
12447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12448 echo "${ECHO_T}$ac_header_preproc" >&6; }
12450 # So? What about this header?
12451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12457 ac_header_preproc=yes
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12473 ## ----------------------------------- ##
12474 ## Report this to llvmbugs@cs.uiuc.edu ##
12475 ## ----------------------------------- ##
12477 ) | sed "s/^/$as_me: WARNING: /" >&2
12480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 eval "$as_ac_Header=\$ac_header_preproc"
12487 ac_res=`eval echo '${'$as_ac_Header'}'`
12488 { echo "$as_me:$LINENO: result: $ac_res" >&5
12489 echo "${ECHO_T}$ac_res" >&6; }
12492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12493 cat >>confdefs.h <<_ACEOF
12494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12503 for ac_header in string.h strings.h
12505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 ac_res=`eval echo '${'$as_ac_Header'}'`
12513 { echo "$as_me:$LINENO: result: $ac_res" >&5
12514 echo "${ECHO_T}$ac_res" >&6; }
12516 # Is the header compilable?
12517 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12519 cat >conftest.$ac_ext <<_ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 $ac_includes_default
12526 #include <$ac_header>
12528 rm -f conftest.$ac_objext
12529 if { (ac_try="$ac_compile"
12530 case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_compile") 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
12542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12543 { (case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_try") 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; } &&
12552 { ac_try='test -s conftest.$ac_objext'
12553 { (case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_try") 2>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 ac_header_compiler=yes
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 ac_header_compiler=no
12570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12572 echo "${ECHO_T}$ac_header_compiler" >&6; }
12574 # Is the header present?
12575 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12577 cat >conftest.$ac_ext <<_ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 #include <$ac_header>
12585 if { (ac_try="$ac_cpp conftest.$ac_ext"
12586 case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12593 grep -v '^ *+' conftest.er1 >conftest.err
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } >/dev/null; then
12598 if test -s conftest.err; then
12599 ac_cpp_err=$ac_c_preproc_warn_flag
12600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12607 if test -z "$ac_cpp_err"; then
12608 ac_header_preproc=yes
12610 echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12613 ac_header_preproc=no
12616 rm -f conftest.err conftest.$ac_ext
12617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12618 echo "${ECHO_T}$ac_header_preproc" >&6; }
12620 # So? What about this header?
12621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12627 ac_header_preproc=yes
12630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12643 ## ----------------------------------- ##
12644 ## Report this to llvmbugs@cs.uiuc.edu ##
12645 ## ----------------------------------- ##
12647 ) | sed "s/^/$as_me: WARNING: /" >&2
12650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 eval "$as_ac_Header=\$ac_header_preproc"
12657 ac_res=`eval echo '${'$as_ac_Header'}'`
12658 { echo "$as_me:$LINENO: result: $ac_res" >&5
12659 echo "${ECHO_T}$ac_res" >&6; }
12662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12663 cat >>confdefs.h <<_ACEOF
12664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12674 for ac_func in strchr index
12676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 cat >conftest.$ac_ext <<_ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12690 #define $ac_func innocuous_$ac_func
12692 /* System header to define __stub macros and hopefully few prototypes,
12693 which can conflict with char $ac_func (); below.
12694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12695 <limits.h> exists even on freestanding compilers. */
12698 # include <limits.h>
12700 # include <assert.h>
12705 /* Override any GCC internal prototype to avoid an error.
12706 Use char because int might match the return type of a GCC
12707 builtin and then its argument prototype would still apply. */
12712 /* The GNU C library defines this for functions which it implements
12713 to always fail with ENOSYS. Some functions are actually named
12714 something starting with __ and the normal name is an alias. */
12715 #if defined __stub_$ac_func || defined __stub___$ac_func
12722 return $ac_func ();
12727 rm -f conftest.$ac_objext conftest$ac_exeext
12728 if { (ac_try="$ac_link"
12729 case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_link") 2>conftest.er1
12736 grep -v '^ *+' conftest.er1 >conftest.err
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
12741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12742 { (case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_try") 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } &&
12751 { ac_try='test -s conftest$ac_exeext'
12752 { (case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_try") 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 eval "$as_ac_var=yes"
12763 echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12766 eval "$as_ac_var=no"
12769 rm -f core conftest.err conftest.$ac_objext \
12770 conftest$ac_exeext conftest.$ac_ext
12772 ac_res=`eval echo '${'$as_ac_var'}'`
12773 { echo "$as_me:$LINENO: result: $ac_res" >&5
12774 echo "${ECHO_T}$ac_res" >&6; }
12775 if test `eval echo '${'$as_ac_var'}'` = yes; then
12776 cat >>confdefs.h <<_ACEOF
12777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12785 for ac_func in strrchr rindex
12787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12788 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12791 echo $ECHO_N "(cached) $ECHO_C" >&6
12793 cat >conftest.$ac_ext <<_ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12801 #define $ac_func innocuous_$ac_func
12803 /* System header to define __stub macros and hopefully few prototypes,
12804 which can conflict with char $ac_func (); below.
12805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12806 <limits.h> exists even on freestanding compilers. */
12809 # include <limits.h>
12811 # include <assert.h>
12816 /* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
12823 /* The GNU C library defines this for functions which it implements
12824 to always fail with ENOSYS. Some functions are actually named
12825 something starting with __ and the normal name is an alias. */
12826 #if defined __stub_$ac_func || defined __stub___$ac_func
12833 return $ac_func ();
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (ac_try="$ac_link"
12840 case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_link") 2>conftest.er1
12847 grep -v '^ *+' conftest.er1 >conftest.err
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12853 { (case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_try") 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } &&
12862 { ac_try='test -s conftest$ac_exeext'
12863 { (case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_try") 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12872 eval "$as_ac_var=yes"
12874 echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12877 eval "$as_ac_var=no"
12880 rm -f core conftest.err conftest.$ac_objext \
12881 conftest$ac_exeext conftest.$ac_ext
12883 ac_res=`eval echo '${'$as_ac_var'}'`
12884 { echo "$as_me:$LINENO: result: $ac_res" >&5
12885 echo "${ECHO_T}$ac_res" >&6; }
12886 if test `eval echo '${'$as_ac_var'}'` = yes; then
12887 cat >>confdefs.h <<_ACEOF
12888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12896 for ac_func in memcpy bcopy
12898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 cat >conftest.$ac_ext <<_ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12912 #define $ac_func innocuous_$ac_func
12914 /* System header to define __stub macros and hopefully few prototypes,
12915 which can conflict with char $ac_func (); below.
12916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12917 <limits.h> exists even on freestanding compilers. */
12920 # include <limits.h>
12922 # include <assert.h>
12927 /* Override any GCC internal prototype to avoid an error.
12928 Use char because int might match the return type of a GCC
12929 builtin and then its argument prototype would still apply. */
12934 /* The GNU C library defines this for functions which it implements
12935 to always fail with ENOSYS. Some functions are actually named
12936 something starting with __ and the normal name is an alias. */
12937 #if defined __stub_$ac_func || defined __stub___$ac_func
12944 return $ac_func ();
12949 rm -f conftest.$ac_objext conftest$ac_exeext
12950 if { (ac_try="$ac_link"
12951 case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_link") 2>conftest.er1
12958 grep -v '^ *+' conftest.er1 >conftest.err
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; } &&
12973 { ac_try='test -s conftest$ac_exeext'
12974 { (case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_try") 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 eval "$as_ac_var=yes"
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12988 eval "$as_ac_var=no"
12991 rm -f core conftest.err conftest.$ac_objext \
12992 conftest$ac_exeext conftest.$ac_ext
12994 ac_res=`eval echo '${'$as_ac_var'}'`
12995 { echo "$as_me:$LINENO: result: $ac_res" >&5
12996 echo "${ECHO_T}$ac_res" >&6; }
12997 if test `eval echo '${'$as_ac_var'}'` = yes; then
12998 cat >>confdefs.h <<_ACEOF
12999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13007 for ac_func in memmove strcmp
13009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13015 cat >conftest.$ac_ext <<_ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13023 #define $ac_func innocuous_$ac_func
13025 /* System header to define __stub macros and hopefully few prototypes,
13026 which can conflict with char $ac_func (); below.
13027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13028 <limits.h> exists even on freestanding compilers. */
13031 # include <limits.h>
13033 # include <assert.h>
13038 /* Override any GCC internal prototype to avoid an error.
13039 Use char because int might match the return type of a GCC
13040 builtin and then its argument prototype would still apply. */
13045 /* The GNU C library defines this for functions which it implements
13046 to always fail with ENOSYS. Some functions are actually named
13047 something starting with __ and the normal name is an alias. */
13048 #if defined __stub_$ac_func || defined __stub___$ac_func
13055 return $ac_func ();
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (ac_try="$ac_link"
13062 case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_link") 2>conftest.er1
13069 grep -v '^ *+' conftest.er1 >conftest.err
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13075 { (case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_try") 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try='test -s conftest$ac_exeext'
13085 { (case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_try") 2>&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; }; then
13094 eval "$as_ac_var=yes"
13096 echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13099 eval "$as_ac_var=no"
13102 rm -f core conftest.err conftest.$ac_objext \
13103 conftest$ac_exeext conftest.$ac_ext
13105 ac_res=`eval echo '${'$as_ac_var'}'`
13106 { echo "$as_me:$LINENO: result: $ac_res" >&5
13107 echo "${ECHO_T}$ac_res" >&6; }
13108 if test `eval echo '${'$as_ac_var'}'` = yes; then
13109 cat >>confdefs.h <<_ACEOF
13110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13119 for ac_func in closedir opendir readdir
13121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 cat >conftest.$ac_ext <<_ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h. */
13133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13135 #define $ac_func innocuous_$ac_func
13137 /* System header to define __stub macros and hopefully few prototypes,
13138 which can conflict with char $ac_func (); below.
13139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13140 <limits.h> exists even on freestanding compilers. */
13143 # include <limits.h>
13145 # include <assert.h>
13150 /* Override any GCC internal prototype to avoid an error.
13151 Use char because int might match the return type of a GCC
13152 builtin and then its argument prototype would still apply. */
13157 /* The GNU C library defines this for functions which it implements
13158 to always fail with ENOSYS. Some functions are actually named
13159 something starting with __ and the normal name is an alias. */
13160 #if defined __stub_$ac_func || defined __stub___$ac_func
13167 return $ac_func ();
13172 rm -f conftest.$ac_objext conftest$ac_exeext
13173 if { (ac_try="$ac_link"
13174 case "(($ac_try" in
13175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176 *) ac_try_echo=$ac_try;;
13178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13179 (eval "$ac_link") 2>conftest.er1
13181 grep -v '^ *+' conftest.er1 >conftest.err
13183 cat conftest.err >&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } &&
13186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13187 { (case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_try") 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; } &&
13196 { ac_try='test -s conftest$ac_exeext'
13197 { (case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_try") 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; }; then
13206 eval "$as_ac_var=yes"
13208 echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13211 eval "$as_ac_var=no"
13214 rm -f core conftest.err conftest.$ac_objext \
13215 conftest$ac_exeext conftest.$ac_ext
13217 ac_res=`eval echo '${'$as_ac_var'}'`
13218 { echo "$as_me:$LINENO: result: $ac_res" >&5
13219 echo "${ECHO_T}$ac_res" >&6; }
13220 if test `eval echo '${'$as_ac_var'}'` = yes; then
13221 cat >>confdefs.h <<_ACEOF
13222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13230 if test "$WITH_LLVMGCCDIR" = "default" ; then
13231 LLVMGCC="llvm-gcc${EXEEXT}"
13232 LLVMGXX="llvm-g++${EXEEXT}"
13233 LLVMGCCCOMMAND="$LLVMGCC"
13234 LLVMGXXCOMMAND="$LLVMGXX"
13235 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13237 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13239 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13240 set dummy $LLVMGCC; ac_word=$2
13241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13243 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13248 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252 for as_dir in $PATH
13255 test -z "$as_dir" && as_dir=.
13256 for ac_exec_ext in '' $ac_executable_extensions; do
13257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13258 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13269 LLVMGCC=$ac_cv_path_LLVMGCC
13270 if test -n "$LLVMGCC"; then
13271 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13272 echo "${ECHO_T}$LLVMGCC" >&6; }
13274 { echo "$as_me:$LINENO: result: no" >&5
13275 echo "${ECHO_T}no" >&6; }
13279 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13280 set dummy $LLVMGXX; ac_word=$2
13281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13283 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $PATH
13295 test -z "$as_dir" && as_dir=.
13296 for ac_exec_ext in '' $ac_executable_extensions; do
13297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13298 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13309 LLVMGXX=$ac_cv_path_LLVMGXX
13310 if test -n "$LLVMGXX"; then
13311 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13312 echo "${ECHO_T}$LLVMGXX" >&6; }
13314 { echo "$as_me:$LINENO: result: no" >&5
13315 echo "${ECHO_T}no" >&6; }
13320 if test -z "$LLVMGCC"; then
13321 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13322 LLVMGCCCOMMAND="$LLVMGCC"
13324 if test -z "$LLVMGXX"; then
13325 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13326 LLVMGXXCOMMAND="$LLVMGXX"
13333 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13335 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13340 # Check whether --with-llvmcc was given.
13341 if test "${with_llvmcc+set}" = set; then
13342 withval=$with_llvmcc;
13347 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13348 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13349 if test "$with_llvmcc" != "check"; then
13350 if (test "$with_llvmcc" != "llvm-gcc" &&
13351 test "$with_llvmcc" != "clang" &&
13352 test "$with_llvmcc" != "none"); then
13353 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13354 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13355 { (exit 1); exit 1; }; }
13357 WITH_LLVMCC="$with_llvmcc"
13358 elif test -n "$LLVMGCC"; then
13359 WITH_LLVMCC=llvm-gcc
13360 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13365 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13366 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13367 LLVMCC_OPTION=$WITH_LLVMCC
13370 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13371 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13384 if test "$GCC" != "yes" && test "$ICC" != "yes"
13386 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13387 echo "$as_me: error: gcc|icc required but not found" >&2;}
13388 { (exit 1); exit 1; }; }
13391 if test "$GXX" != "yes" && test "$IXX" != "yes"
13393 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13394 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13395 { (exit 1); exit 1; }; }
13398 if test "$GCC" = "yes"
13400 cat >conftest.$ac_ext <<_ACEOF
13401 #if !defined(__GNUC__) || __GNUC__ < 3
13402 #error Unsupported GCC version
13406 rm -f conftest.$ac_objext
13407 if { (ac_try="$ac_compile"
13408 case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_compile") 2>conftest.er1
13415 grep -v '^ *+' conftest.er1 >conftest.err
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } &&
13420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13421 { (case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_try") 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
13431 { (case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_try") 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13445 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13446 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13447 { (exit 1); exit 1; }; }
13450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13453 if test -z "$llvm_cv_gnu_make_command"
13455 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13456 echo "$as_me: error: GNU Make required but not found" >&2;}
13457 { (exit 1); exit 1; }; }
13460 { echo "$as_me:$LINENO: result: ok" >&5
13461 echo "${ECHO_T}ok" >&6; }
13463 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13464 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13465 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13467 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13469 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13470 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13474 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13475 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13476 if test "${ac_cv_lib_m_sin+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 ac_check_lib_save_LIBS=$LIBS
13481 cat >conftest.$ac_ext <<_ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13488 /* Override any GCC internal prototype to avoid an error.
13489 Use char because int might match the return type of a GCC
13490 builtin and then its argument prototype would still apply. */
13503 rm -f conftest.$ac_objext conftest$ac_exeext
13504 if { (ac_try="$ac_link"
13505 case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510 (eval "$ac_link") 2>conftest.er1
13512 grep -v '^ *+' conftest.er1 >conftest.err
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13518 { (case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_try") 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try='test -s conftest$ac_exeext'
13528 { (case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_try") 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
13537 ac_cv_lib_m_sin=yes
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13545 rm -f core conftest.err conftest.$ac_objext \
13546 conftest$ac_exeext conftest.$ac_ext
13547 LIBS=$ac_check_lib_save_LIBS
13549 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13550 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13551 if test $ac_cv_lib_m_sin = yes; then
13552 cat >>confdefs.h <<_ACEOF
13553 #define HAVE_LIBM 1
13560 if test "$llvm_cv_os_type" = "MingW" ; then
13562 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13563 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13564 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 ac_check_lib_save_LIBS=$LIBS
13568 LIBS="-limagehlp $LIBS"
13569 cat >conftest.$ac_ext <<_ACEOF
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h. */
13585 rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (ac_try="$ac_link"
13587 case "(($ac_try" in
13588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592 (eval "$ac_link") 2>conftest.er1
13594 grep -v '^ *+' conftest.er1 >conftest.err
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13600 { (case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_try") 2>&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; } &&
13609 { ac_try='test -s conftest$ac_exeext'
13610 { (case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_try") 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 ac_cv_lib_imagehlp_main=yes
13621 echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13624 ac_cv_lib_imagehlp_main=no
13627 rm -f core conftest.err conftest.$ac_objext \
13628 conftest$ac_exeext conftest.$ac_ext
13629 LIBS=$ac_check_lib_save_LIBS
13631 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13632 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13633 if test $ac_cv_lib_imagehlp_main = yes; then
13634 cat >>confdefs.h <<_ACEOF
13635 #define HAVE_LIBIMAGEHLP 1
13638 LIBS="-limagehlp $LIBS"
13643 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13644 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13645 if test "${ac_cv_lib_psapi_main+set}" = set; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 ac_check_lib_save_LIBS=$LIBS
13649 LIBS="-lpsapi $LIBS"
13650 cat >conftest.$ac_ext <<_ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13666 rm -f conftest.$ac_objext conftest$ac_exeext
13667 if { (ac_try="$ac_link"
13668 case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_link") 2>conftest.er1
13675 grep -v '^ *+' conftest.er1 >conftest.err
13677 cat conftest.err >&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
13680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13681 { (case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_try") 2>&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest$ac_exeext'
13691 { (case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_try") 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
13700 ac_cv_lib_psapi_main=yes
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13705 ac_cv_lib_psapi_main=no
13708 rm -f core conftest.err conftest.$ac_objext \
13709 conftest$ac_exeext conftest.$ac_ext
13710 LIBS=$ac_check_lib_save_LIBS
13712 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13713 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13714 if test $ac_cv_lib_psapi_main = yes; then
13715 cat >>confdefs.h <<_ACEOF
13716 #define HAVE_LIBPSAPI 1
13719 LIBS="-lpsapi $LIBS"
13725 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13726 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13727 if test "${ac_cv_search_dlopen+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 ac_func_search_save_LIBS=$LIBS
13731 cat >conftest.$ac_ext <<_ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h. */
13738 /* Override any GCC internal prototype to avoid an error.
13739 Use char because int might match the return type of a GCC
13740 builtin and then its argument prototype would still apply. */
13753 for ac_lib in '' dl; do
13754 if test -z "$ac_lib"; then
13755 ac_res="none required"
13758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13760 rm -f conftest.$ac_objext conftest$ac_exeext
13761 if { (ac_try="$ac_link"
13762 case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_link") 2>conftest.er1
13769 grep -v '^ *+' conftest.er1 >conftest.err
13771 cat conftest.err >&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13775 { (case "(($ac_try" in
13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780 (eval "$ac_try") 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; } &&
13784 { ac_try='test -s conftest$ac_exeext'
13785 { (case "(($ac_try" in
13786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13787 *) ac_try_echo=$ac_try;;
13789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13790 (eval "$ac_try") 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 ac_cv_search_dlopen=$ac_res
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13802 rm -f core conftest.err conftest.$ac_objext \
13804 if test "${ac_cv_search_dlopen+set}" = set; then
13808 if test "${ac_cv_search_dlopen+set}" = set; then
13811 ac_cv_search_dlopen=no
13813 rm conftest.$ac_ext
13814 LIBS=$ac_func_search_save_LIBS
13816 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13817 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13818 ac_res=$ac_cv_search_dlopen
13819 if test "$ac_res" != no; then
13820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13822 cat >>confdefs.h <<\_ACEOF
13823 #define HAVE_DLOPEN 1
13827 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13828 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13832 if test "$llvm_cv_enable_libffi" = "yes" ; then
13833 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13834 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13835 if test "${ac_cv_search_ffi_call+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 ac_func_search_save_LIBS=$LIBS
13839 cat >conftest.$ac_ext <<_ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13846 /* Override any GCC internal prototype to avoid an error.
13847 Use char because int might match the return type of a GCC
13848 builtin and then its argument prototype would still apply. */
13856 return ffi_call ();
13861 for ac_lib in '' ffi; do
13862 if test -z "$ac_lib"; then
13863 ac_res="none required"
13866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (ac_try="$ac_link"
13870 case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_link") 2>conftest.er1
13877 grep -v '^ *+' conftest.er1 >conftest.err
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13883 { (case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_try") 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; } &&
13892 { ac_try='test -s conftest$ac_exeext'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_search_ffi_call=$ac_res
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13910 rm -f core conftest.err conftest.$ac_objext \
13912 if test "${ac_cv_search_ffi_call+set}" = set; then
13916 if test "${ac_cv_search_ffi_call+set}" = set; then
13919 ac_cv_search_ffi_call=no
13921 rm conftest.$ac_ext
13922 LIBS=$ac_func_search_save_LIBS
13924 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13925 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13926 ac_res=$ac_cv_search_ffi_call
13927 if test "$ac_res" != no; then
13928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13930 cat >>confdefs.h <<\_ACEOF
13931 #define HAVE_FFI_CALL 1
13935 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13936 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13937 { (exit 1); exit 1; }; }
13942 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13943 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13944 if test "${ac_cv_search_mallinfo+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 ac_func_search_save_LIBS=$LIBS
13948 cat >conftest.$ac_ext <<_ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13955 /* Override any GCC internal prototype to avoid an error.
13956 Use char because int might match the return type of a GCC
13957 builtin and then its argument prototype would still apply. */
13965 return mallinfo ();
13970 for ac_lib in '' malloc; do
13971 if test -z "$ac_lib"; then
13972 ac_res="none required"
13975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13977 rm -f conftest.$ac_objext conftest$ac_exeext
13978 if { (ac_try="$ac_link"
13979 case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_link") 2>conftest.er1
13986 grep -v '^ *+' conftest.er1 >conftest.err
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13992 { (case "(($ac_try" in
13993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994 *) ac_try_echo=$ac_try;;
13996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997 (eval "$ac_try") 2>&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; } &&
14001 { ac_try='test -s conftest$ac_exeext'
14002 { (case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_try") 2>&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }; then
14011 ac_cv_search_mallinfo=$ac_res
14013 echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14019 rm -f core conftest.err conftest.$ac_objext \
14021 if test "${ac_cv_search_mallinfo+set}" = set; then
14025 if test "${ac_cv_search_mallinfo+set}" = set; then
14028 ac_cv_search_mallinfo=no
14030 rm conftest.$ac_ext
14031 LIBS=$ac_func_search_save_LIBS
14033 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14034 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14035 ac_res=$ac_cv_search_mallinfo
14036 if test "$ac_res" != no; then
14037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14039 cat >>confdefs.h <<\_ACEOF
14040 #define HAVE_MALLINFO 1
14046 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14048 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14049 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14050 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 ac_check_lib_save_LIBS=$LIBS
14054 LIBS="-lpthread $LIBS"
14055 cat >conftest.$ac_ext <<_ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14062 /* Override any GCC internal prototype to avoid an error.
14063 Use char because int might match the return type of a GCC
14064 builtin and then its argument prototype would still apply. */
14068 char pthread_mutex_init ();
14072 return pthread_mutex_init ();
14077 rm -f conftest.$ac_objext conftest$ac_exeext
14078 if { (ac_try="$ac_link"
14079 case "(($ac_try" in
14080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081 *) ac_try_echo=$ac_try;;
14083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084 (eval "$ac_link") 2>conftest.er1
14086 grep -v '^ *+' conftest.er1 >conftest.err
14088 cat conftest.err >&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
14091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14092 { (case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_try") 2>&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; } &&
14101 { ac_try='test -s conftest$ac_exeext'
14102 { (case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_try") 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; }; then
14111 ac_cv_lib_pthread_pthread_mutex_init=yes
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 ac_cv_lib_pthread_pthread_mutex_init=no
14119 rm -f core conftest.err conftest.$ac_objext \
14120 conftest$ac_exeext conftest.$ac_ext
14121 LIBS=$ac_check_lib_save_LIBS
14123 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14124 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14125 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14126 cat >>confdefs.h <<_ACEOF
14127 #define HAVE_LIBPTHREAD 1
14130 LIBS="-lpthread $LIBS"
14134 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14135 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14136 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 ac_func_search_save_LIBS=$LIBS
14140 cat >conftest.$ac_ext <<_ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14147 /* Override any GCC internal prototype to avoid an error.
14148 Use char because int might match the return type of a GCC
14149 builtin and then its argument prototype would still apply. */
14153 char pthread_mutex_lock ();
14157 return pthread_mutex_lock ();
14162 for ac_lib in '' pthread; do
14163 if test -z "$ac_lib"; then
14164 ac_res="none required"
14167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14169 rm -f conftest.$ac_objext conftest$ac_exeext
14170 if { (ac_try="$ac_link"
14171 case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_link") 2>conftest.er1
14178 grep -v '^ *+' conftest.er1 >conftest.err
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
14183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14184 { (case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_try") 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; } &&
14193 { ac_try='test -s conftest$ac_exeext'
14194 { (case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_try") 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 ac_cv_search_pthread_mutex_lock=$ac_res
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14211 rm -f core conftest.err conftest.$ac_objext \
14213 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14217 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14220 ac_cv_search_pthread_mutex_lock=no
14222 rm conftest.$ac_ext
14223 LIBS=$ac_func_search_save_LIBS
14225 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14226 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14227 ac_res=$ac_cv_search_pthread_mutex_lock
14228 if test "$ac_res" != no; then
14229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14231 cat >>confdefs.h <<\_ACEOF
14232 #define HAVE_PTHREAD_MUTEX_LOCK 1
14237 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14238 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14239 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 ac_func_search_save_LIBS=$LIBS
14243 cat >conftest.$ac_ext <<_ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h. */
14250 /* Override any GCC internal prototype to avoid an error.
14251 Use char because int might match the return type of a GCC
14252 builtin and then its argument prototype would still apply. */
14256 char pthread_rwlock_init ();
14260 return pthread_rwlock_init ();
14265 for ac_lib in '' pthread; do
14266 if test -z "$ac_lib"; then
14267 ac_res="none required"
14270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14272 rm -f conftest.$ac_objext conftest$ac_exeext
14273 if { (ac_try="$ac_link"
14274 case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_link") 2>conftest.er1
14281 grep -v '^ *+' conftest.er1 >conftest.err
14283 cat conftest.err >&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } &&
14286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14287 { (case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_try") 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; } &&
14296 { ac_try='test -s conftest$ac_exeext'
14297 { (case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_try") 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14306 ac_cv_search_pthread_rwlock_init=$ac_res
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14314 rm -f core conftest.err conftest.$ac_objext \
14316 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14320 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14323 ac_cv_search_pthread_rwlock_init=no
14325 rm conftest.$ac_ext
14326 LIBS=$ac_func_search_save_LIBS
14328 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14329 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14330 ac_res=$ac_cv_search_pthread_rwlock_init
14331 if test "$ac_res" != no; then
14332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14334 cat >>confdefs.h <<\_ACEOF
14335 #define HAVE_PTHREAD_RWLOCK_INIT 1
14340 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14341 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14342 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 ac_func_search_save_LIBS=$LIBS
14346 cat >conftest.$ac_ext <<_ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14353 /* Override any GCC internal prototype to avoid an error.
14354 Use char because int might match the return type of a GCC
14355 builtin and then its argument prototype would still apply. */
14359 char pthread_getspecific ();
14363 return pthread_getspecific ();
14368 for ac_lib in '' pthread; do
14369 if test -z "$ac_lib"; then
14370 ac_res="none required"
14373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14375 rm -f conftest.$ac_objext conftest$ac_exeext
14376 if { (ac_try="$ac_link"
14377 case "(($ac_try" in
14378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379 *) ac_try_echo=$ac_try;;
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382 (eval "$ac_link") 2>conftest.er1
14384 grep -v '^ *+' conftest.er1 >conftest.err
14386 cat conftest.err >&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } &&
14389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14390 { (case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_try") 2>&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; } &&
14399 { ac_try='test -s conftest$ac_exeext'
14400 { (case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_try") 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 ac_cv_search_pthread_getspecific=$ac_res
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14417 rm -f core conftest.err conftest.$ac_objext \
14419 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14423 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14426 ac_cv_search_pthread_getspecific=no
14428 rm conftest.$ac_ext
14429 LIBS=$ac_func_search_save_LIBS
14431 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14432 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14433 ac_res=$ac_cv_search_pthread_getspecific
14434 if test "$ac_res" != no; then
14435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14437 cat >>confdefs.h <<\_ACEOF
14438 #define HAVE_PTHREAD_GETSPECIFIC 1
14446 # Check whether --with-udis86 was given.
14447 if test "${with_udis86+set}" = set; then
14448 withval=$with_udis86;
14453 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14456 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14457 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14458 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14461 ac_check_lib_save_LIBS=$LIBS
14462 LIBS="-ludis86 $LIBS"
14463 cat >conftest.$ac_ext <<_ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h. */
14470 /* Override any GCC internal prototype to avoid an error.
14471 Use char because int might match the return type of a GCC
14472 builtin and then its argument prototype would still apply. */
14485 rm -f conftest.$ac_objext conftest$ac_exeext
14486 if { (ac_try="$ac_link"
14487 case "(($ac_try" in
14488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489 *) ac_try_echo=$ac_try;;
14491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492 (eval "$ac_link") 2>conftest.er1
14494 grep -v '^ *+' conftest.er1 >conftest.err
14496 cat conftest.err >&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } &&
14499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14500 { (case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505 (eval "$ac_try") 2>&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; } &&
14509 { ac_try='test -s conftest$ac_exeext'
14510 { (case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_try") 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; }; then
14519 ac_cv_lib_udis86_ud_init=yes
14521 echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.$ac_ext >&5
14524 ac_cv_lib_udis86_ud_init=no
14527 rm -f core conftest.err conftest.$ac_objext \
14528 conftest$ac_exeext conftest.$ac_ext
14529 LIBS=$ac_check_lib_save_LIBS
14531 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14532 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14533 if test $ac_cv_lib_udis86_ud_init = yes; then
14534 cat >>confdefs.h <<_ACEOF
14535 #define HAVE_LIBUDIS86 1
14538 LIBS="-ludis86 $LIBS"
14542 echo "Error! You need to have libudis86 around."
14554 cat >>confdefs.h <<_ACEOF
14555 #define USE_UDIS86 $USE_UDIS86
14560 # Check whether --with-oprofile was given.
14561 if test "${with_oprofile+set}" = set; then
14562 withval=$with_oprofile;
14566 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14567 no) llvm_cv_oppath=
14570 *) llvm_cv_oppath="${withval}/lib/oprofile"
14571 CPPFLAGS="-I${withval}/include";;
14573 if test -n "$llvm_cv_oppath" ; then
14574 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14575 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14576 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14577 if test "${ac_cv_search_bfd_init+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 ac_func_search_save_LIBS=$LIBS
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14588 /* Override any GCC internal prototype to avoid an error.
14589 Use char because int might match the return type of a GCC
14590 builtin and then its argument prototype would still apply. */
14598 return bfd_init ();
14603 for ac_lib in '' bfd; do
14604 if test -z "$ac_lib"; then
14605 ac_res="none required"
14608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14610 rm -f conftest.$ac_objext conftest$ac_exeext
14611 if { (ac_try="$ac_link"
14612 case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617 (eval "$ac_link") 2>conftest.er1
14619 grep -v '^ *+' conftest.er1 >conftest.err
14621 cat conftest.err >&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
14624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14625 { (case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_try") 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try='test -s conftest$ac_exeext'
14635 { (case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_try") 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_cv_search_bfd_init=$ac_res
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14652 rm -f core conftest.err conftest.$ac_objext \
14654 if test "${ac_cv_search_bfd_init+set}" = set; then
14658 if test "${ac_cv_search_bfd_init+set}" = set; then
14661 ac_cv_search_bfd_init=no
14663 rm conftest.$ac_ext
14664 LIBS=$ac_func_search_save_LIBS
14666 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14667 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14668 ac_res=$ac_cv_search_bfd_init
14669 if test "$ac_res" != no; then
14670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14674 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14675 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14676 if test "${ac_cv_search_op_open_agent+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 ac_func_search_save_LIBS=$LIBS
14680 cat >conftest.$ac_ext <<_ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14687 /* Override any GCC internal prototype to avoid an error.
14688 Use char because int might match the return type of a GCC
14689 builtin and then its argument prototype would still apply. */
14693 char op_open_agent ();
14697 return op_open_agent ();
14702 for ac_lib in '' opagent; do
14703 if test -z "$ac_lib"; then
14704 ac_res="none required"
14707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14709 rm -f conftest.$ac_objext conftest$ac_exeext
14710 if { (ac_try="$ac_link"
14711 case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716 (eval "$ac_link") 2>conftest.er1
14718 grep -v '^ *+' conftest.er1 >conftest.err
14720 cat conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } &&
14723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14724 { (case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_try") 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } &&
14733 { ac_try='test -s conftest$ac_exeext'
14734 { (case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_try") 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 ac_cv_search_op_open_agent=$ac_res
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14751 rm -f core conftest.err conftest.$ac_objext \
14753 if test "${ac_cv_search_op_open_agent+set}" = set; then
14757 if test "${ac_cv_search_op_open_agent+set}" = set; then
14760 ac_cv_search_op_open_agent=no
14762 rm conftest.$ac_ext
14763 LIBS=$ac_func_search_save_LIBS
14765 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14766 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14767 ac_res=$ac_cv_search_op_open_agent
14768 if test "$ac_res" != no; then
14769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14773 echo "Error! You need to have libopagent around."
14778 if test "${ac_cv_header_opagent_h+set}" = set; then
14779 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14780 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14781 if test "${ac_cv_header_opagent_h+set}" = set; then
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14785 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14787 # Is the header compilable?
14788 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14789 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14790 cat >conftest.$ac_ext <<_ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 $ac_includes_default
14797 #include <opagent.h>
14799 rm -f conftest.$ac_objext
14800 if { (ac_try="$ac_compile"
14801 case "(($ac_try" in
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806 (eval "$ac_compile") 2>conftest.er1
14808 grep -v '^ *+' conftest.er1 >conftest.err
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14814 { (case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_try") 2>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; } &&
14823 { ac_try='test -s conftest.$ac_objext'
14824 { (case "(($ac_try" in
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_try") 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14833 ac_header_compiler=yes
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 ac_header_compiler=no
14841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14843 echo "${ECHO_T}$ac_header_compiler" >&6; }
14845 # Is the header present?
14846 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14847 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14848 cat >conftest.$ac_ext <<_ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h. */
14854 #include <opagent.h>
14856 if { (ac_try="$ac_cpp conftest.$ac_ext"
14857 case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14864 grep -v '^ *+' conftest.er1 >conftest.err
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } >/dev/null; then
14869 if test -s conftest.err; then
14870 ac_cpp_err=$ac_c_preproc_warn_flag
14871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14878 if test -z "$ac_cpp_err"; then
14879 ac_header_preproc=yes
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 ac_header_preproc=no
14887 rm -f conftest.err conftest.$ac_ext
14888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14889 echo "${ECHO_T}$ac_header_preproc" >&6; }
14891 # So? What about this header?
14892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14894 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14895 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14897 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14898 ac_header_preproc=yes
14901 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14902 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14904 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14906 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14907 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14908 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14909 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14910 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14912 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14914 ## ----------------------------------- ##
14915 ## Report this to llvmbugs@cs.uiuc.edu ##
14916 ## ----------------------------------- ##
14918 ) | sed "s/^/$as_me: WARNING: /" >&2
14921 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14922 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14923 if test "${ac_cv_header_opagent_h+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 ac_cv_header_opagent_h=$ac_header_preproc
14928 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14929 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14932 if test $ac_cv_header_opagent_h = yes; then
14936 echo "Error! You need to have opagent.h around."
14952 cat >>confdefs.h <<_ACEOF
14953 #define USE_OPROFILE $USE_OPROFILE
14963 ac_header_dirent=no
14964 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14965 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14966 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14967 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 cat >conftest.$ac_ext <<_ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 #include <sys/types.h>
14989 rm -f conftest.$ac_objext
14990 if { (ac_try="$ac_compile"
14991 case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_compile") 2>conftest.er1
14998 grep -v '^ *+' conftest.er1 >conftest.err
15000 cat conftest.err >&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); } &&
15003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15004 { (case "(($ac_try" in
15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006 *) ac_try_echo=$ac_try;;
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009 (eval "$ac_try") 2>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try='test -s conftest.$ac_objext'
15014 { (case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_try") 2>&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; }; then
15023 eval "$as_ac_Header=yes"
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 eval "$as_ac_Header=no"
15031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15033 ac_res=`eval echo '${'$as_ac_Header'}'`
15034 { echo "$as_me:$LINENO: result: $ac_res" >&5
15035 echo "${ECHO_T}$ac_res" >&6; }
15036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15037 cat >>confdefs.h <<_ACEOF
15038 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15041 ac_header_dirent=$ac_hdr; break
15045 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15046 if test $ac_header_dirent = dirent.h; then
15047 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15048 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15049 if test "${ac_cv_search_opendir+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15052 ac_func_search_save_LIBS=$LIBS
15053 cat >conftest.$ac_ext <<_ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15060 /* Override any GCC internal prototype to avoid an error.
15061 Use char because int might match the return type of a GCC
15062 builtin and then its argument prototype would still apply. */
15075 for ac_lib in '' dir; do
15076 if test -z "$ac_lib"; then
15077 ac_res="none required"
15080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15082 rm -f conftest.$ac_objext conftest$ac_exeext
15083 if { (ac_try="$ac_link"
15084 case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_link") 2>conftest.er1
15091 grep -v '^ *+' conftest.er1 >conftest.err
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15097 { (case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_try") 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; } &&
15106 { ac_try='test -s conftest$ac_exeext'
15107 { (case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_try") 2>&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
15116 ac_cv_search_opendir=$ac_res
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15124 rm -f core conftest.err conftest.$ac_objext \
15126 if test "${ac_cv_search_opendir+set}" = set; then
15130 if test "${ac_cv_search_opendir+set}" = set; then
15133 ac_cv_search_opendir=no
15135 rm conftest.$ac_ext
15136 LIBS=$ac_func_search_save_LIBS
15138 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15139 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15140 ac_res=$ac_cv_search_opendir
15141 if test "$ac_res" != no; then
15142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15147 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15148 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15149 if test "${ac_cv_search_opendir+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 ac_func_search_save_LIBS=$LIBS
15153 cat >conftest.$ac_ext <<_ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15160 /* Override any GCC internal prototype to avoid an error.
15161 Use char because int might match the return type of a GCC
15162 builtin and then its argument prototype would still apply. */
15175 for ac_lib in '' x; do
15176 if test -z "$ac_lib"; then
15177 ac_res="none required"
15180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15182 rm -f conftest.$ac_objext conftest$ac_exeext
15183 if { (ac_try="$ac_link"
15184 case "(($ac_try" in
15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189 (eval "$ac_link") 2>conftest.er1
15191 grep -v '^ *+' conftest.er1 >conftest.err
15193 cat conftest.err >&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); } &&
15196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15197 { (case "(($ac_try" in
15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202 (eval "$ac_try") 2>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; } &&
15206 { ac_try='test -s conftest$ac_exeext'
15207 { (case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_try") 2>&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }; then
15216 ac_cv_search_opendir=$ac_res
15218 echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15224 rm -f core conftest.err conftest.$ac_objext \
15226 if test "${ac_cv_search_opendir+set}" = set; then
15230 if test "${ac_cv_search_opendir+set}" = set; then
15233 ac_cv_search_opendir=no
15235 rm conftest.$ac_ext
15236 LIBS=$ac_func_search_save_LIBS
15238 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15239 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15240 ac_res=$ac_cv_search_opendir
15241 if test "$ac_res" != no; then
15242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15248 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15249 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15250 if test "${ac_cv_header_mmap_anon+set}" = set; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15254 ac_cpp='$CPP $CPPFLAGS'
15255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15259 cat >conftest.$ac_ext <<_ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15265 #include <sys/mman.h>
15266 #include <unistd.h>
15271 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15276 rm -f conftest.$ac_objext
15277 if { (ac_try="$ac_compile"
15278 case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_compile") 2>conftest.er1
15285 grep -v '^ *+' conftest.er1 >conftest.err
15287 cat conftest.err >&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } &&
15290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15291 { (case "(($ac_try" in
15292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15293 *) ac_try_echo=$ac_try;;
15295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15296 (eval "$ac_try") 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; } &&
15300 { ac_try='test -s conftest.$ac_objext'
15301 { (case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_try") 2>&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; }; then
15310 ac_cv_header_mmap_anon=yes
15312 echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15315 ac_cv_header_mmap_anon=no
15318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15320 ac_cpp='$CPP $CPPFLAGS'
15321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15327 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15328 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15329 if test "$ac_cv_header_mmap_anon" = yes; then
15331 cat >>confdefs.h <<\_ACEOF
15332 #define HAVE_MMAP_ANONYMOUS 1
15337 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15338 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15339 if test "${ac_cv_header_stat_broken+set}" = set; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15342 cat >conftest.$ac_ext <<_ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15348 #include <sys/types.h>
15349 #include <sys/stat.h>
15351 #if defined S_ISBLK && defined S_IFDIR
15352 # if S_ISBLK (S_IFDIR)
15357 #if defined S_ISBLK && defined S_IFCHR
15358 # if S_ISBLK (S_IFCHR)
15363 #if defined S_ISLNK && defined S_IFREG
15364 # if S_ISLNK (S_IFREG)
15369 #if defined S_ISSOCK && defined S_IFREG
15370 # if S_ISSOCK (S_IFREG)
15376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15377 $EGREP "You lose" >/dev/null 2>&1; then
15378 ac_cv_header_stat_broken=yes
15380 ac_cv_header_stat_broken=no
15385 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15386 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15387 if test $ac_cv_header_stat_broken = yes; then
15389 cat >>confdefs.h <<\_ACEOF
15390 #define STAT_MACROS_BROKEN 1
15395 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15396 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15397 if test "${ac_cv_header_stdc+set}" = set; then
15398 echo $ECHO_N "(cached) $ECHO_C" >&6
15400 cat >conftest.$ac_ext <<_ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15406 #include <stdlib.h>
15407 #include <stdarg.h>
15408 #include <string.h>
15419 rm -f conftest.$ac_objext
15420 if { (ac_try="$ac_compile"
15421 case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_compile") 2>conftest.er1
15428 grep -v '^ *+' conftest.er1 >conftest.err
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } &&
15433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15434 { (case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_try") 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; } &&
15443 { ac_try='test -s conftest.$ac_objext'
15444 { (case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_try") 2>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; }; then
15453 ac_cv_header_stdc=yes
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15458 ac_cv_header_stdc=no
15461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463 if test $ac_cv_header_stdc = yes; then
15464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15465 cat >conftest.$ac_ext <<_ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 #include <string.h>
15474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15475 $EGREP "memchr" >/dev/null 2>&1; then
15478 ac_cv_header_stdc=no
15484 if test $ac_cv_header_stdc = yes; then
15485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15486 cat >conftest.$ac_ext <<_ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15492 #include <stdlib.h>
15495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15496 $EGREP "free" >/dev/null 2>&1; then
15499 ac_cv_header_stdc=no
15505 if test $ac_cv_header_stdc = yes; then
15506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15507 if test "$cross_compiling" = yes; then
15510 cat >conftest.$ac_ext <<_ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15517 #include <stdlib.h>
15518 #if ((' ' & 0x0FF) == 0x020)
15519 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15520 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15522 # define ISLOWER(c) \
15523 (('a' <= (c) && (c) <= 'i') \
15524 || ('j' <= (c) && (c) <= 'r') \
15525 || ('s' <= (c) && (c) <= 'z'))
15526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15534 for (i = 0; i < 256; i++)
15535 if (XOR (islower (i), ISLOWER (i))
15536 || toupper (i) != TOUPPER (i))
15541 rm -f conftest$ac_exeext
15542 if { (ac_try="$ac_link"
15543 case "(($ac_try" in
15544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15545 *) ac_try_echo=$ac_try;;
15547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15548 (eval "$ac_link") 2>&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15552 { (case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_try") 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15563 echo "$as_me: program exited with status $ac_status" >&5
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15567 ( exit $ac_status )
15568 ac_cv_header_stdc=no
15570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15576 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15577 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15578 if test $ac_cv_header_stdc = yes; then
15580 cat >>confdefs.h <<\_ACEOF
15581 #define STDC_HEADERS 1
15586 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15587 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15588 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
15591 cat >conftest.$ac_ext <<_ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15597 #include <sys/types.h>
15598 #include <sys/wait.h>
15599 #ifndef WEXITSTATUS
15600 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15603 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15611 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15616 rm -f conftest.$ac_objext
15617 if { (ac_try="$ac_compile"
15618 case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_compile") 2>conftest.er1
15625 grep -v '^ *+' conftest.er1 >conftest.err
15627 cat conftest.err >&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } &&
15630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15631 { (case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_try") 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; } &&
15640 { ac_try='test -s conftest.$ac_objext'
15641 { (case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_try") 2>&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 ac_cv_header_sys_wait_h=yes
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15655 ac_cv_header_sys_wait_h=no
15658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15660 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15661 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15662 if test $ac_cv_header_sys_wait_h = yes; then
15664 cat >>confdefs.h <<\_ACEOF
15665 #define HAVE_SYS_WAIT_H 1
15670 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15671 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15672 if test "${ac_cv_header_time+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15675 cat >conftest.$ac_ext <<_ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15681 #include <sys/types.h>
15682 #include <sys/time.h>
15688 if ((struct tm *) 0)
15694 rm -f conftest.$ac_objext
15695 if { (ac_try="$ac_compile"
15696 case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_compile") 2>conftest.er1
15703 grep -v '^ *+' conftest.er1 >conftest.err
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } &&
15708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15709 { (case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_try") 2>&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; } &&
15718 { ac_try='test -s conftest.$ac_objext'
15719 { (case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_try") 2>&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; }; then
15728 ac_cv_header_time=yes
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 ac_cv_header_time=no
15736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15739 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15740 if test $ac_cv_header_time = yes; then
15742 cat >>confdefs.h <<\_ACEOF
15743 #define TIME_WITH_SYS_TIME 1
15755 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 ac_res=`eval echo '${'$as_ac_Header'}'`
15765 { echo "$as_me:$LINENO: result: $ac_res" >&5
15766 echo "${ECHO_T}$ac_res" >&6; }
15768 # Is the header compilable?
15769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15771 cat >conftest.$ac_ext <<_ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15777 $ac_includes_default
15778 #include <$ac_header>
15780 rm -f conftest.$ac_objext
15781 if { (ac_try="$ac_compile"
15782 case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_compile") 2>conftest.er1
15789 grep -v '^ *+' conftest.er1 >conftest.err
15791 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
15794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15795 { (case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_try") 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; } &&
15804 { ac_try='test -s conftest.$ac_objext'
15805 { (case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810 (eval "$ac_try") 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814 ac_header_compiler=yes
15816 echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15819 ac_header_compiler=no
15822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15824 echo "${ECHO_T}$ac_header_compiler" >&6; }
15826 # Is the header present?
15827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15829 cat >conftest.$ac_ext <<_ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15835 #include <$ac_header>
15837 if { (ac_try="$ac_cpp conftest.$ac_ext"
15838 case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15845 grep -v '^ *+' conftest.er1 >conftest.err
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } >/dev/null; then
15850 if test -s conftest.err; then
15851 ac_cpp_err=$ac_c_preproc_warn_flag
15852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15859 if test -z "$ac_cpp_err"; then
15860 ac_header_preproc=yes
15862 echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15865 ac_header_preproc=no
15868 rm -f conftest.err conftest.$ac_ext
15869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15870 echo "${ECHO_T}$ac_header_preproc" >&6; }
15872 # So? What about this header?
15873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15879 ac_header_preproc=yes
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15895 ## ----------------------------------- ##
15896 ## Report this to llvmbugs@cs.uiuc.edu ##
15897 ## ----------------------------------- ##
15899 ) | sed "s/^/$as_me: WARNING: /" >&2
15902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 eval "$as_ac_Header=\$ac_header_preproc"
15909 ac_res=`eval echo '${'$as_ac_Header'}'`
15910 { echo "$as_me:$LINENO: result: $ac_res" >&5
15911 echo "${ECHO_T}$ac_res" >&6; }
15914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15915 cat >>confdefs.h <<_ACEOF
15916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15929 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15938 ac_res=`eval echo '${'$as_ac_Header'}'`
15939 { echo "$as_me:$LINENO: result: $ac_res" >&5
15940 echo "${ECHO_T}$ac_res" >&6; }
15942 # Is the header compilable?
15943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15945 cat >conftest.$ac_ext <<_ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 $ac_includes_default
15952 #include <$ac_header>
15954 rm -f conftest.$ac_objext
15955 if { (ac_try="$ac_compile"
15956 case "(($ac_try" in
15957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15958 *) ac_try_echo=$ac_try;;
15960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15961 (eval "$ac_compile") 2>conftest.er1
15963 grep -v '^ *+' conftest.er1 >conftest.err
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15969 { (case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_try") 2>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; } &&
15978 { ac_try='test -s conftest.$ac_objext'
15979 { (case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_try") 2>&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15988 ac_header_compiler=yes
15990 echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.$ac_ext >&5
15993 ac_header_compiler=no
15996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15998 echo "${ECHO_T}$ac_header_compiler" >&6; }
16000 # Is the header present?
16001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16003 cat >conftest.$ac_ext <<_ACEOF
16006 cat confdefs.h >>conftest.$ac_ext
16007 cat >>conftest.$ac_ext <<_ACEOF
16008 /* end confdefs.h. */
16009 #include <$ac_header>
16011 if { (ac_try="$ac_cpp conftest.$ac_ext"
16012 case "(($ac_try" in
16013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014 *) ac_try_echo=$ac_try;;
16016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16019 grep -v '^ *+' conftest.er1 >conftest.err
16021 cat conftest.err >&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } >/dev/null; then
16024 if test -s conftest.err; then
16025 ac_cpp_err=$ac_c_preproc_warn_flag
16026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16033 if test -z "$ac_cpp_err"; then
16034 ac_header_preproc=yes
16036 echo "$as_me: failed program was:" >&5
16037 sed 's/^/| /' conftest.$ac_ext >&5
16039 ac_header_preproc=no
16042 rm -f conftest.err conftest.$ac_ext
16043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16044 echo "${ECHO_T}$ac_header_preproc" >&6; }
16046 # So? What about this header?
16047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16053 ac_header_preproc=yes
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16069 ## ----------------------------------- ##
16070 ## Report this to llvmbugs@cs.uiuc.edu ##
16071 ## ----------------------------------- ##
16073 ) | sed "s/^/$as_me: WARNING: /" >&2
16076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16079 echo $ECHO_N "(cached) $ECHO_C" >&6
16081 eval "$as_ac_Header=\$ac_header_preproc"
16083 ac_res=`eval echo '${'$as_ac_Header'}'`
16084 { echo "$as_me:$LINENO: result: $ac_res" >&5
16085 echo "${ECHO_T}$ac_res" >&6; }
16088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16089 cat >>confdefs.h <<_ACEOF
16090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16099 for ac_header in utime.h windows.h
16101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 ac_res=`eval echo '${'$as_ac_Header'}'`
16109 { echo "$as_me:$LINENO: result: $ac_res" >&5
16110 echo "${ECHO_T}$ac_res" >&6; }
16112 # Is the header compilable?
16113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16115 cat >conftest.$ac_ext <<_ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121 $ac_includes_default
16122 #include <$ac_header>
16124 rm -f conftest.$ac_objext
16125 if { (ac_try="$ac_compile"
16126 case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_compile") 2>conftest.er1
16133 grep -v '^ *+' conftest.er1 >conftest.err
16135 cat conftest.err >&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } &&
16138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16139 { (case "(($ac_try" in
16140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141 *) ac_try_echo=$ac_try;;
16143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16144 (eval "$ac_try") 2>&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest.$ac_objext'
16149 { (case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_try") 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_header_compiler=yes
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16163 ac_header_compiler=no
16166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16168 echo "${ECHO_T}$ac_header_compiler" >&6; }
16170 # Is the header present?
16171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16173 cat >conftest.$ac_ext <<_ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16179 #include <$ac_header>
16181 if { (ac_try="$ac_cpp conftest.$ac_ext"
16182 case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16189 grep -v '^ *+' conftest.er1 >conftest.err
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } >/dev/null; then
16194 if test -s conftest.err; then
16195 ac_cpp_err=$ac_c_preproc_warn_flag
16196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16203 if test -z "$ac_cpp_err"; then
16204 ac_header_preproc=yes
16206 echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16209 ac_header_preproc=no
16212 rm -f conftest.err conftest.$ac_ext
16213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16214 echo "${ECHO_T}$ac_header_preproc" >&6; }
16216 # So? What about this header?
16217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16223 ac_header_preproc=yes
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16239 ## ----------------------------------- ##
16240 ## Report this to llvmbugs@cs.uiuc.edu ##
16241 ## ----------------------------------- ##
16243 ) | sed "s/^/$as_me: WARNING: /" >&2
16246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 eval "$as_ac_Header=\$ac_header_preproc"
16253 ac_res=`eval echo '${'$as_ac_Header'}'`
16254 { echo "$as_me:$LINENO: result: $ac_res" >&5
16255 echo "${ECHO_T}$ac_res" >&6; }
16258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16259 cat >>confdefs.h <<_ACEOF
16260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16272 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 ac_res=`eval echo '${'$as_ac_Header'}'`
16282 { echo "$as_me:$LINENO: result: $ac_res" >&5
16283 echo "${ECHO_T}$ac_res" >&6; }
16285 # Is the header compilable?
16286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16288 cat >conftest.$ac_ext <<_ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16294 $ac_includes_default
16295 #include <$ac_header>
16297 rm -f conftest.$ac_objext
16298 if { (ac_try="$ac_compile"
16299 case "(($ac_try" in
16300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301 *) ac_try_echo=$ac_try;;
16303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16304 (eval "$ac_compile") 2>conftest.er1
16306 grep -v '^ *+' conftest.er1 >conftest.err
16308 cat conftest.err >&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } &&
16311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16312 { (case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317 (eval "$ac_try") 2>&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; } &&
16321 { ac_try='test -s conftest.$ac_objext'
16322 { (case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_try") 2>&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); }; }; then
16331 ac_header_compiler=yes
16333 echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16336 ac_header_compiler=no
16339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16341 echo "${ECHO_T}$ac_header_compiler" >&6; }
16343 # Is the header present?
16344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16346 cat >conftest.$ac_ext <<_ACEOF
16349 cat confdefs.h >>conftest.$ac_ext
16350 cat >>conftest.$ac_ext <<_ACEOF
16351 /* end confdefs.h. */
16352 #include <$ac_header>
16354 if { (ac_try="$ac_cpp conftest.$ac_ext"
16355 case "(($ac_try" in
16356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357 *) ac_try_echo=$ac_try;;
16359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16362 grep -v '^ *+' conftest.er1 >conftest.err
16364 cat conftest.err >&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } >/dev/null; then
16367 if test -s conftest.err; then
16368 ac_cpp_err=$ac_c_preproc_warn_flag
16369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16376 if test -z "$ac_cpp_err"; then
16377 ac_header_preproc=yes
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16382 ac_header_preproc=no
16385 rm -f conftest.err conftest.$ac_ext
16386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16387 echo "${ECHO_T}$ac_header_preproc" >&6; }
16389 # So? What about this header?
16390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16396 ac_header_preproc=yes
16399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16412 ## ----------------------------------- ##
16413 ## Report this to llvmbugs@cs.uiuc.edu ##
16414 ## ----------------------------------- ##
16416 ) | sed "s/^/$as_me: WARNING: /" >&2
16419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 eval "$as_ac_Header=\$ac_header_preproc"
16426 ac_res=`eval echo '${'$as_ac_Header'}'`
16427 { echo "$as_me:$LINENO: result: $ac_res" >&5
16428 echo "${ECHO_T}$ac_res" >&6; }
16431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16432 cat >>confdefs.h <<_ACEOF
16433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16444 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16451 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 ac_res=`eval echo '${'$as_ac_Header'}'`
16454 { echo "$as_me:$LINENO: result: $ac_res" >&5
16455 echo "${ECHO_T}$ac_res" >&6; }
16457 # Is the header compilable?
16458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16460 cat >conftest.$ac_ext <<_ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16466 $ac_includes_default
16467 #include <$ac_header>
16469 rm -f conftest.$ac_objext
16470 if { (ac_try="$ac_compile"
16471 case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_compile") 2>conftest.er1
16478 grep -v '^ *+' conftest.er1 >conftest.err
16480 cat conftest.err >&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } &&
16483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16484 { (case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_try") 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try='test -s conftest.$ac_objext'
16494 { (case "(($ac_try" in
16495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499 (eval "$ac_try") 2>&5
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_header_compiler=yes
16505 echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16508 ac_header_compiler=no
16511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16513 echo "${ECHO_T}$ac_header_compiler" >&6; }
16515 # Is the header present?
16516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16518 cat >conftest.$ac_ext <<_ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 #include <$ac_header>
16526 if { (ac_try="$ac_cpp conftest.$ac_ext"
16527 case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16534 grep -v '^ *+' conftest.er1 >conftest.err
16536 cat conftest.err >&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } >/dev/null; then
16539 if test -s conftest.err; then
16540 ac_cpp_err=$ac_c_preproc_warn_flag
16541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16548 if test -z "$ac_cpp_err"; then
16549 ac_header_preproc=yes
16551 echo "$as_me: failed program was:" >&5
16552 sed 's/^/| /' conftest.$ac_ext >&5
16554 ac_header_preproc=no
16557 rm -f conftest.err conftest.$ac_ext
16558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16559 echo "${ECHO_T}$ac_header_preproc" >&6; }
16561 # So? What about this header?
16562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16568 ac_header_preproc=yes
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16584 ## ----------------------------------- ##
16585 ## Report this to llvmbugs@cs.uiuc.edu ##
16586 ## ----------------------------------- ##
16588 ) | sed "s/^/$as_me: WARNING: /" >&2
16591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16596 eval "$as_ac_Header=\$ac_header_preproc"
16598 ac_res=`eval echo '${'$as_ac_Header'}'`
16599 { echo "$as_me:$LINENO: result: $ac_res" >&5
16600 echo "${ECHO_T}$ac_res" >&6; }
16603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16604 cat >>confdefs.h <<_ACEOF
16605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16613 for ac_header in valgrind/valgrind.h
16615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16620 echo $ECHO_N "(cached) $ECHO_C" >&6
16622 ac_res=`eval echo '${'$as_ac_Header'}'`
16623 { echo "$as_me:$LINENO: result: $ac_res" >&5
16624 echo "${ECHO_T}$ac_res" >&6; }
16626 # Is the header compilable?
16627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16629 cat >conftest.$ac_ext <<_ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 $ac_includes_default
16636 #include <$ac_header>
16638 rm -f conftest.$ac_objext
16639 if { (ac_try="$ac_compile"
16640 case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_compile") 2>conftest.er1
16647 grep -v '^ *+' conftest.er1 >conftest.err
16649 cat conftest.err >&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
16652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16653 { (case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_try") 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
16663 { (case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_try") 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_header_compiler=yes
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 ac_header_compiler=no
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16682 echo "${ECHO_T}$ac_header_compiler" >&6; }
16684 # Is the header present?
16685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 #include <$ac_header>
16695 if { (ac_try="$ac_cpp conftest.$ac_ext"
16696 case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16703 grep -v '^ *+' conftest.er1 >conftest.err
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } >/dev/null; then
16708 if test -s conftest.err; then
16709 ac_cpp_err=$ac_c_preproc_warn_flag
16710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16717 if test -z "$ac_cpp_err"; then
16718 ac_header_preproc=yes
16720 echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16723 ac_header_preproc=no
16726 rm -f conftest.err conftest.$ac_ext
16727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16728 echo "${ECHO_T}$ac_header_preproc" >&6; }
16730 # So? What about this header?
16731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16737 ac_header_preproc=yes
16740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16753 ## ----------------------------------- ##
16754 ## Report this to llvmbugs@cs.uiuc.edu ##
16755 ## ----------------------------------- ##
16757 ) | sed "s/^/$as_me: WARNING: /" >&2
16760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16765 eval "$as_ac_Header=\$ac_header_preproc"
16767 ac_res=`eval echo '${'$as_ac_Header'}'`
16768 { echo "$as_me:$LINENO: result: $ac_res" >&5
16769 echo "${ECHO_T}$ac_res" >&6; }
16772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16773 cat >>confdefs.h <<_ACEOF
16774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16782 for ac_header in fenv.h
16784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16791 ac_res=`eval echo '${'$as_ac_Header'}'`
16792 { echo "$as_me:$LINENO: result: $ac_res" >&5
16793 echo "${ECHO_T}$ac_res" >&6; }
16795 # Is the header compilable?
16796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16798 cat >conftest.$ac_ext <<_ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 $ac_includes_default
16805 #include <$ac_header>
16807 rm -f conftest.$ac_objext
16808 if { (ac_try="$ac_compile"
16809 case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_compile") 2>conftest.er1
16816 grep -v '^ *+' conftest.er1 >conftest.err
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
16821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16822 { (case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_try") 2>&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest.$ac_objext'
16832 { (case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_try") 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 ac_header_compiler=yes
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16846 ac_header_compiler=no
16849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16851 echo "${ECHO_T}$ac_header_compiler" >&6; }
16853 # Is the header present?
16854 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16856 cat >conftest.$ac_ext <<_ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 #include <$ac_header>
16864 if { (ac_try="$ac_cpp conftest.$ac_ext"
16865 case "(($ac_try" in
16866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867 *) ac_try_echo=$ac_try;;
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16872 grep -v '^ *+' conftest.er1 >conftest.err
16874 cat conftest.err >&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } >/dev/null; then
16877 if test -s conftest.err; then
16878 ac_cpp_err=$ac_c_preproc_warn_flag
16879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16886 if test -z "$ac_cpp_err"; then
16887 ac_header_preproc=yes
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16892 ac_header_preproc=no
16895 rm -f conftest.err conftest.$ac_ext
16896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16897 echo "${ECHO_T}$ac_header_preproc" >&6; }
16899 # So? What about this header?
16900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16906 ac_header_preproc=yes
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16922 ## ----------------------------------- ##
16923 ## Report this to llvmbugs@cs.uiuc.edu ##
16924 ## ----------------------------------- ##
16926 ) | sed "s/^/$as_me: WARNING: /" >&2
16929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16934 eval "$as_ac_Header=\$ac_header_preproc"
16936 ac_res=`eval echo '${'$as_ac_Header'}'`
16937 { echo "$as_me:$LINENO: result: $ac_res" >&5
16938 echo "${ECHO_T}$ac_res" >&6; }
16941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16942 cat >>confdefs.h <<_ACEOF
16943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16950 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16952 for ac_header in pthread.h
16954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16961 ac_res=`eval echo '${'$as_ac_Header'}'`
16962 { echo "$as_me:$LINENO: result: $ac_res" >&5
16963 echo "${ECHO_T}$ac_res" >&6; }
16965 # Is the header compilable?
16966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16968 cat >conftest.$ac_ext <<_ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 $ac_includes_default
16975 #include <$ac_header>
16977 rm -f conftest.$ac_objext
16978 if { (ac_try="$ac_compile"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_compile") 2>conftest.er1
16986 grep -v '^ *+' conftest.er1 >conftest.err
16988 cat conftest.err >&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } &&
16991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16992 { (case "(($ac_try" in
16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_try") 2>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; } &&
17001 { ac_try='test -s conftest.$ac_objext'
17002 { (case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007 (eval "$ac_try") 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; }; then
17011 ac_header_compiler=yes
17013 echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17016 ac_header_compiler=no
17019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17021 echo "${ECHO_T}$ac_header_compiler" >&6; }
17023 # Is the header present?
17024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17026 cat >conftest.$ac_ext <<_ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h. */
17032 #include <$ac_header>
17034 if { (ac_try="$ac_cpp conftest.$ac_ext"
17035 case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17042 grep -v '^ *+' conftest.er1 >conftest.err
17044 cat conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } >/dev/null; then
17047 if test -s conftest.err; then
17048 ac_cpp_err=$ac_c_preproc_warn_flag
17049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17056 if test -z "$ac_cpp_err"; then
17057 ac_header_preproc=yes
17059 echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17062 ac_header_preproc=no
17065 rm -f conftest.err conftest.$ac_ext
17066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17067 echo "${ECHO_T}$ac_header_preproc" >&6; }
17069 # So? What about this header?
17070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17076 ac_header_preproc=yes
17079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17092 ## ----------------------------------- ##
17093 ## Report this to llvmbugs@cs.uiuc.edu ##
17094 ## ----------------------------------- ##
17096 ) | sed "s/^/$as_me: WARNING: /" >&2
17099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17104 eval "$as_ac_Header=\$ac_header_preproc"
17106 ac_res=`eval echo '${'$as_ac_Header'}'`
17107 { echo "$as_me:$LINENO: result: $ac_res" >&5
17108 echo "${ECHO_T}$ac_res" >&6; }
17111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17112 cat >>confdefs.h <<_ACEOF
17113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17129 if test "$llvm_cv_enable_libffi" = "yes" ; then
17132 for ac_header in ffi.h ffi/ffi.h
17134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17141 ac_res=`eval echo '${'$as_ac_Header'}'`
17142 { echo "$as_me:$LINENO: result: $ac_res" >&5
17143 echo "${ECHO_T}$ac_res" >&6; }
17145 # Is the header compilable?
17146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17148 cat >conftest.$ac_ext <<_ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17154 $ac_includes_default
17155 #include <$ac_header>
17157 rm -f conftest.$ac_objext
17158 if { (ac_try="$ac_compile"
17159 case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_compile") 2>conftest.er1
17166 grep -v '^ *+' conftest.er1 >conftest.err
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } &&
17171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17172 { (case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_try") 2>&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; } &&
17181 { ac_try='test -s conftest.$ac_objext'
17182 { (case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_try") 2>&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17191 ac_header_compiler=yes
17193 echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17196 ac_header_compiler=no
17199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17201 echo "${ECHO_T}$ac_header_compiler" >&6; }
17203 # Is the header present?
17204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17206 cat >conftest.$ac_ext <<_ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 #include <$ac_header>
17214 if { (ac_try="$ac_cpp conftest.$ac_ext"
17215 case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17222 grep -v '^ *+' conftest.er1 >conftest.err
17224 cat conftest.err >&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); } >/dev/null; then
17227 if test -s conftest.err; then
17228 ac_cpp_err=$ac_c_preproc_warn_flag
17229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17236 if test -z "$ac_cpp_err"; then
17237 ac_header_preproc=yes
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 ac_header_preproc=no
17245 rm -f conftest.err conftest.$ac_ext
17246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17247 echo "${ECHO_T}$ac_header_preproc" >&6; }
17249 # So? What about this header?
17250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17256 ac_header_preproc=yes
17259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17272 ## ----------------------------------- ##
17273 ## Report this to llvmbugs@cs.uiuc.edu ##
17274 ## ----------------------------------- ##
17276 ) | sed "s/^/$as_me: WARNING: /" >&2
17279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17284 eval "$as_ac_Header=\$ac_header_preproc"
17286 ac_res=`eval echo '${'$as_ac_Header'}'`
17287 { echo "$as_me:$LINENO: result: $ac_res" >&5
17288 echo "${ECHO_T}$ac_res" >&6; }
17291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17292 cat >>confdefs.h <<_ACEOF
17293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17303 for ac_header in CrashReporterClient.h
17305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17312 ac_res=`eval echo '${'$as_ac_Header'}'`
17313 { echo "$as_me:$LINENO: result: $ac_res" >&5
17314 echo "${ECHO_T}$ac_res" >&6; }
17316 # Is the header compilable?
17317 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17319 cat >conftest.$ac_ext <<_ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17325 $ac_includes_default
17326 #include <$ac_header>
17328 rm -f conftest.$ac_objext
17329 if { (ac_try="$ac_compile"
17330 case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_compile") 2>conftest.er1
17337 grep -v '^ *+' conftest.er1 >conftest.err
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } &&
17342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17343 { (case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_try") 2>&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; } &&
17352 { ac_try='test -s conftest.$ac_objext'
17353 { (case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_try") 2>&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; }; then
17362 ac_header_compiler=yes
17364 echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17367 ac_header_compiler=no
17370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17372 echo "${ECHO_T}$ac_header_compiler" >&6; }
17374 # Is the header present?
17375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17377 cat >conftest.$ac_ext <<_ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383 #include <$ac_header>
17385 if { (ac_try="$ac_cpp conftest.$ac_ext"
17386 case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17393 grep -v '^ *+' conftest.er1 >conftest.err
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } >/dev/null; then
17398 if test -s conftest.err; then
17399 ac_cpp_err=$ac_c_preproc_warn_flag
17400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17407 if test -z "$ac_cpp_err"; then
17408 ac_header_preproc=yes
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 ac_header_preproc=no
17416 rm -f conftest.err conftest.$ac_ext
17417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17418 echo "${ECHO_T}$ac_header_preproc" >&6; }
17420 # So? What about this header?
17421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17427 ac_header_preproc=yes
17430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17443 ## ----------------------------------- ##
17444 ## Report this to llvmbugs@cs.uiuc.edu ##
17445 ## ----------------------------------- ##
17447 ) | sed "s/^/$as_me: WARNING: /" >&2
17450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17453 echo $ECHO_N "(cached) $ECHO_C" >&6
17455 eval "$as_ac_Header=\$ac_header_preproc"
17457 ac_res=`eval echo '${'$as_ac_Header'}'`
17458 { echo "$as_me:$LINENO: result: $ac_res" >&5
17459 echo "${ECHO_T}$ac_res" >&6; }
17462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17463 cat >>confdefs.h <<_ACEOF
17464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17472 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17473 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17474 cat >conftest.$ac_ext <<_ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480 extern const char *__crashreporter_info__;
17482 __crashreporter_info__ = "test";
17487 rm -f conftest.$ac_objext conftest$ac_exeext
17488 if { (ac_try="$ac_link"
17489 case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_link") 2>conftest.er1
17496 grep -v '^ *+' conftest.er1 >conftest.err
17498 cat conftest.err >&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502 { (case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_try") 2>&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest$ac_exeext'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 { echo "$as_me:$LINENO: result: yes" >&5
17522 echo "${ECHO_T}yes" >&6; }
17524 cat >>confdefs.h <<\_ACEOF
17525 #define HAVE_CRASHREPORTER_INFO 1
17529 echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17532 { echo "$as_me:$LINENO: result: no" >&5
17533 echo "${ECHO_T}no" >&6; }
17535 cat >>confdefs.h <<\_ACEOF
17536 #define HAVE_CRASHREPORTER_INFO 0
17541 rm -f core conftest.err conftest.$ac_objext \
17542 conftest$ac_exeext conftest.$ac_ext
17547 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17548 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17549 if test "${ac_cv_huge_val_sanity+set}" = set; then
17550 echo $ECHO_N "(cached) $ECHO_C" >&6
17554 ac_cpp='$CXXCPP $CPPFLAGS'
17555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17559 ac_save_CXXFLAGS=$CXXFLAGS
17561 if test "$cross_compiling" = yes; then
17562 ac_cv_huge_val_sanity=yes
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17574 double x = HUGE_VAL; return x != x;
17579 rm -f conftest$ac_exeext
17580 if { (ac_try="$ac_link"
17581 case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17590 { (case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_try") 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 ac_cv_huge_val_sanity=yes
17601 echo "$as_me: program exited with status $ac_status" >&5
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17605 ( exit $ac_status )
17606 ac_cv_huge_val_sanity=no
17608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17612 CXXFLAGS=$ac_save_CXXFLAGS
17614 ac_cpp='$CPP $CPPFLAGS'
17615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17621 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17622 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17623 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17626 { echo "$as_me:$LINENO: checking for pid_t" >&5
17627 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17628 if test "${ac_cv_type_pid_t+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17631 cat >conftest.$ac_ext <<_ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17637 $ac_includes_default
17638 typedef pid_t ac__type_new_;
17642 if ((ac__type_new_ *) 0)
17644 if (sizeof (ac__type_new_))
17650 rm -f conftest.$ac_objext
17651 if { (ac_try="$ac_compile"
17652 case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_compile") 2>conftest.er1
17659 grep -v '^ *+' conftest.er1 >conftest.err
17661 cat conftest.err >&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
17664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17665 { (case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_try") 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } &&
17674 { ac_try='test -s conftest.$ac_objext'
17675 { (case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_try") 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
17684 ac_cv_type_pid_t=yes
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17689 ac_cv_type_pid_t=no
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17695 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17696 if test $ac_cv_type_pid_t = yes; then
17700 cat >>confdefs.h <<_ACEOF
17706 { echo "$as_me:$LINENO: checking for size_t" >&5
17707 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17708 if test "${ac_cv_type_size_t+set}" = set; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17711 cat >conftest.$ac_ext <<_ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17717 $ac_includes_default
17718 typedef size_t ac__type_new_;
17722 if ((ac__type_new_ *) 0)
17724 if (sizeof (ac__type_new_))
17730 rm -f conftest.$ac_objext
17731 if { (ac_try="$ac_compile"
17732 case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_compile") 2>conftest.er1
17739 grep -v '^ *+' conftest.er1 >conftest.err
17741 cat conftest.err >&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } &&
17744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17745 { (case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_try") 2>&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; } &&
17754 { ac_try='test -s conftest.$ac_objext'
17755 { (case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760 (eval "$ac_try") 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_type_size_t=yes
17766 echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17769 ac_cv_type_size_t=no
17772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17775 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17776 if test $ac_cv_type_size_t = yes; then
17780 cat >>confdefs.h <<_ACEOF
17781 #define size_t unsigned int
17787 cat >>confdefs.h <<_ACEOF
17788 #define RETSIGTYPE void
17791 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17792 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17793 if test "${ac_cv_struct_tm+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17796 cat >conftest.$ac_ext <<_ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 #include <sys/types.h>
17808 struct tm *tp; tp->tm_sec;
17813 rm -f conftest.$ac_objext
17814 if { (ac_try="$ac_compile"
17815 case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_compile") 2>conftest.er1
17822 grep -v '^ *+' conftest.er1 >conftest.err
17824 cat conftest.err >&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } &&
17827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17828 { (case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833 (eval "$ac_try") 2>&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; } &&
17837 { ac_try='test -s conftest.$ac_objext'
17838 { (case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_try") 2>&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; }; then
17847 ac_cv_struct_tm=time.h
17849 echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17852 ac_cv_struct_tm=sys/time.h
17855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17857 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17858 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17859 if test $ac_cv_struct_tm = sys/time.h; then
17861 cat >>confdefs.h <<\_ACEOF
17862 #define TM_IN_SYS_TIME 1
17867 { echo "$as_me:$LINENO: checking for int64_t" >&5
17868 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17869 if test "${ac_cv_type_int64_t+set}" = set; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17872 cat >conftest.$ac_ext <<_ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h. */
17878 $ac_includes_default
17879 typedef int64_t ac__type_new_;
17883 if ((ac__type_new_ *) 0)
17885 if (sizeof (ac__type_new_))
17891 rm -f conftest.$ac_objext
17892 if { (ac_try="$ac_compile"
17893 case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_compile") 2>conftest.er1
17900 grep -v '^ *+' conftest.er1 >conftest.err
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
17905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17906 { (case "(($ac_try" in
17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911 (eval "$ac_try") 2>&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; } &&
17915 { ac_try='test -s conftest.$ac_objext'
17916 { (case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_try") 2>&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; }; then
17925 ac_cv_type_int64_t=yes
17927 echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17930 ac_cv_type_int64_t=no
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17935 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17936 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17937 if test $ac_cv_type_int64_t = yes; then
17939 cat >>confdefs.h <<_ACEOF
17940 #define HAVE_INT64_T 1
17945 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17946 echo "$as_me: error: Type int64_t required but not found" >&2;}
17947 { (exit 1); exit 1; }; }
17950 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17951 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17952 if test "${ac_cv_type_uint64_t+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 cat >conftest.$ac_ext <<_ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17961 $ac_includes_default
17962 typedef uint64_t ac__type_new_;
17966 if ((ac__type_new_ *) 0)
17968 if (sizeof (ac__type_new_))
17974 rm -f conftest.$ac_objext
17975 if { (ac_try="$ac_compile"
17976 case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981 (eval "$ac_compile") 2>conftest.er1
17983 grep -v '^ *+' conftest.er1 >conftest.err
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
17988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17989 { (case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_try") 2>&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest.$ac_objext'
17999 { (case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_try") 2>&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008 ac_cv_type_uint64_t=yes
18010 echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18013 ac_cv_type_uint64_t=no
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18019 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18020 if test $ac_cv_type_uint64_t = yes; then
18022 cat >>confdefs.h <<_ACEOF
18023 #define HAVE_UINT64_T 1
18028 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18029 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18030 if test "${ac_cv_type_u_int64_t+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18033 cat >conftest.$ac_ext <<_ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 $ac_includes_default
18040 typedef u_int64_t ac__type_new_;
18044 if ((ac__type_new_ *) 0)
18046 if (sizeof (ac__type_new_))
18052 rm -f conftest.$ac_objext
18053 if { (ac_try="$ac_compile"
18054 case "(($ac_try" in
18055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18056 *) ac_try_echo=$ac_try;;
18058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18059 (eval "$ac_compile") 2>conftest.er1
18061 grep -v '^ *+' conftest.er1 >conftest.err
18063 cat conftest.err >&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } &&
18066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18067 { (case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072 (eval "$ac_try") 2>&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; } &&
18076 { ac_try='test -s conftest.$ac_objext'
18077 { (case "(($ac_try" in
18078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079 *) ac_try_echo=$ac_try;;
18081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082 (eval "$ac_try") 2>&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; }; then
18086 ac_cv_type_u_int64_t=yes
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 ac_cv_type_u_int64_t=no
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18096 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18097 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18098 if test $ac_cv_type_u_int64_t = yes; then
18100 cat >>confdefs.h <<_ACEOF
18101 #define HAVE_U_INT64_T 1
18106 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18107 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18108 { (exit 1); exit 1; }; }
18122 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18128 echo $ECHO_N "(cached) $ECHO_C" >&6
18130 cat >conftest.$ac_ext <<_ACEOF
18133 cat confdefs.h >>conftest.$ac_ext
18134 cat >>conftest.$ac_ext <<_ACEOF
18135 /* end confdefs.h. */
18136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18138 #define $ac_func innocuous_$ac_func
18140 /* System header to define __stub macros and hopefully few prototypes,
18141 which can conflict with char $ac_func (); below.
18142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18143 <limits.h> exists even on freestanding compilers. */
18146 # include <limits.h>
18148 # include <assert.h>
18153 /* Override any GCC internal prototype to avoid an error.
18154 Use char because int might match the return type of a GCC
18155 builtin and then its argument prototype would still apply. */
18160 /* The GNU C library defines this for functions which it implements
18161 to always fail with ENOSYS. Some functions are actually named
18162 something starting with __ and the normal name is an alias. */
18163 #if defined __stub_$ac_func || defined __stub___$ac_func
18170 return $ac_func ();
18175 rm -f conftest.$ac_objext conftest$ac_exeext
18176 if { (ac_try="$ac_link"
18177 case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_link") 2>conftest.er1
18184 grep -v '^ *+' conftest.er1 >conftest.err
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } &&
18189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18190 { (case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_try") 2>&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; } &&
18199 { ac_try='test -s conftest$ac_exeext'
18200 { (case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_try") 2>&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; }; then
18209 eval "$as_ac_var=yes"
18211 echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18214 eval "$as_ac_var=no"
18217 rm -f core conftest.err conftest.$ac_objext \
18218 conftest$ac_exeext conftest.$ac_ext
18220 ac_res=`eval echo '${'$as_ac_var'}'`
18221 { echo "$as_me:$LINENO: result: $ac_res" >&5
18222 echo "${ECHO_T}$ac_res" >&6; }
18223 if test `eval echo '${'$as_ac_var'}'` = yes; then
18224 cat >>confdefs.h <<_ACEOF
18225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18235 for ac_func in powf fmodf strtof round
18237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18241 echo $ECHO_N "(cached) $ECHO_C" >&6
18243 cat >conftest.$ac_ext <<_ACEOF
18246 cat confdefs.h >>conftest.$ac_ext
18247 cat >>conftest.$ac_ext <<_ACEOF
18248 /* end confdefs.h. */
18249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18251 #define $ac_func innocuous_$ac_func
18253 /* System header to define __stub macros and hopefully few prototypes,
18254 which can conflict with char $ac_func (); below.
18255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18256 <limits.h> exists even on freestanding compilers. */
18259 # include <limits.h>
18261 # include <assert.h>
18266 /* Override any GCC internal prototype to avoid an error.
18267 Use char because int might match the return type of a GCC
18268 builtin and then its argument prototype would still apply. */
18273 /* The GNU C library defines this for functions which it implements
18274 to always fail with ENOSYS. Some functions are actually named
18275 something starting with __ and the normal name is an alias. */
18276 #if defined __stub_$ac_func || defined __stub___$ac_func
18283 return $ac_func ();
18288 rm -f conftest.$ac_objext conftest$ac_exeext
18289 if { (ac_try="$ac_link"
18290 case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_link") 2>conftest.er1
18297 grep -v '^ *+' conftest.er1 >conftest.err
18299 cat conftest.err >&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } &&
18302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18303 { (case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_try") 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; } &&
18312 { ac_try='test -s conftest$ac_exeext'
18313 { (case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_try") 2>&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 eval "$as_ac_var=yes"
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18327 eval "$as_ac_var=no"
18330 rm -f core conftest.err conftest.$ac_objext \
18331 conftest$ac_exeext conftest.$ac_ext
18333 ac_res=`eval echo '${'$as_ac_var'}'`
18334 { echo "$as_me:$LINENO: result: $ac_res" >&5
18335 echo "${ECHO_T}$ac_res" >&6; }
18336 if test `eval echo '${'$as_ac_var'}'` = yes; then
18337 cat >>confdefs.h <<_ACEOF
18338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18349 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18352 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18355 echo $ECHO_N "(cached) $ECHO_C" >&6
18357 cat >conftest.$ac_ext <<_ACEOF
18360 cat confdefs.h >>conftest.$ac_ext
18361 cat >>conftest.$ac_ext <<_ACEOF
18362 /* end confdefs.h. */
18363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18365 #define $ac_func innocuous_$ac_func
18367 /* System header to define __stub macros and hopefully few prototypes,
18368 which can conflict with char $ac_func (); below.
18369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18370 <limits.h> exists even on freestanding compilers. */
18373 # include <limits.h>
18375 # include <assert.h>
18380 /* Override any GCC internal prototype to avoid an error.
18381 Use char because int might match the return type of a GCC
18382 builtin and then its argument prototype would still apply. */
18387 /* The GNU C library defines this for functions which it implements
18388 to always fail with ENOSYS. Some functions are actually named
18389 something starting with __ and the normal name is an alias. */
18390 #if defined __stub_$ac_func || defined __stub___$ac_func
18397 return $ac_func ();
18402 rm -f conftest.$ac_objext conftest$ac_exeext
18403 if { (ac_try="$ac_link"
18404 case "(($ac_try" in
18405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406 *) ac_try_echo=$ac_try;;
18408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409 (eval "$ac_link") 2>conftest.er1
18411 grep -v '^ *+' conftest.er1 >conftest.err
18413 cat conftest.err >&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } &&
18416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18417 { (case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_try") 2>&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; } &&
18426 { ac_try='test -s conftest$ac_exeext'
18427 { (case "(($ac_try" in
18428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429 *) ac_try_echo=$ac_try;;
18431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_try") 2>&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; }; then
18436 eval "$as_ac_var=yes"
18438 echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18441 eval "$as_ac_var=no"
18444 rm -f core conftest.err conftest.$ac_objext \
18445 conftest$ac_exeext conftest.$ac_ext
18447 ac_res=`eval echo '${'$as_ac_var'}'`
18448 { echo "$as_me:$LINENO: result: $ac_res" >&5
18449 echo "${ECHO_T}$ac_res" >&6; }
18450 if test `eval echo '${'$as_ac_var'}'` = yes; then
18451 cat >>confdefs.h <<_ACEOF
18452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18461 for ac_func in isatty mkdtemp mkstemp
18463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 cat >conftest.$ac_ext <<_ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18477 #define $ac_func innocuous_$ac_func
18479 /* System header to define __stub macros and hopefully few prototypes,
18480 which can conflict with char $ac_func (); below.
18481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18482 <limits.h> exists even on freestanding compilers. */
18485 # include <limits.h>
18487 # include <assert.h>
18492 /* Override any GCC internal prototype to avoid an error.
18493 Use char because int might match the return type of a GCC
18494 builtin and then its argument prototype would still apply. */
18499 /* The GNU C library defines this for functions which it implements
18500 to always fail with ENOSYS. Some functions are actually named
18501 something starting with __ and the normal name is an alias. */
18502 #if defined __stub_$ac_func || defined __stub___$ac_func
18509 return $ac_func ();
18514 rm -f conftest.$ac_objext conftest$ac_exeext
18515 if { (ac_try="$ac_link"
18516 case "(($ac_try" in
18517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518 *) ac_try_echo=$ac_try;;
18520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521 (eval "$ac_link") 2>conftest.er1
18523 grep -v '^ *+' conftest.er1 >conftest.err
18525 cat conftest.err >&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); } &&
18528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18529 { (case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_try") 2>&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; } &&
18538 { ac_try='test -s conftest$ac_exeext'
18539 { (case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_try") 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18548 eval "$as_ac_var=yes"
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18553 eval "$as_ac_var=no"
18556 rm -f core conftest.err conftest.$ac_objext \
18557 conftest$ac_exeext conftest.$ac_ext
18559 ac_res=`eval echo '${'$as_ac_var'}'`
18560 { echo "$as_me:$LINENO: result: $ac_res" >&5
18561 echo "${ECHO_T}$ac_res" >&6; }
18562 if test `eval echo '${'$as_ac_var'}'` = yes; then
18563 cat >>confdefs.h <<_ACEOF
18564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18576 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 cat >conftest.$ac_ext <<_ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18592 #define $ac_func innocuous_$ac_func
18594 /* System header to define __stub macros and hopefully few prototypes,
18595 which can conflict with char $ac_func (); below.
18596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18597 <limits.h> exists even on freestanding compilers. */
18600 # include <limits.h>
18602 # include <assert.h>
18607 /* Override any GCC internal prototype to avoid an error.
18608 Use char because int might match the return type of a GCC
18609 builtin and then its argument prototype would still apply. */
18614 /* The GNU C library defines this for functions which it implements
18615 to always fail with ENOSYS. Some functions are actually named
18616 something starting with __ and the normal name is an alias. */
18617 #if defined __stub_$ac_func || defined __stub___$ac_func
18624 return $ac_func ();
18629 rm -f conftest.$ac_objext conftest$ac_exeext
18630 if { (ac_try="$ac_link"
18631 case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_link") 2>conftest.er1
18638 grep -v '^ *+' conftest.er1 >conftest.err
18640 cat conftest.err >&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } &&
18643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18644 { (case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_try") 2>&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; } &&
18653 { ac_try='test -s conftest$ac_exeext'
18654 { (case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_try") 2>&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; }; then
18663 eval "$as_ac_var=yes"
18665 echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.$ac_ext >&5
18668 eval "$as_ac_var=no"
18671 rm -f core conftest.err conftest.$ac_objext \
18672 conftest$ac_exeext conftest.$ac_ext
18674 ac_res=`eval echo '${'$as_ac_var'}'`
18675 { echo "$as_me:$LINENO: result: $ac_res" >&5
18676 echo "${ECHO_T}$ac_res" >&6; }
18677 if test `eval echo '${'$as_ac_var'}'` = yes; then
18678 cat >>confdefs.h <<_ACEOF
18679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18688 for ac_func in strerror strerror_r setenv
18690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18696 cat >conftest.$ac_ext <<_ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18704 #define $ac_func innocuous_$ac_func
18706 /* System header to define __stub macros and hopefully few prototypes,
18707 which can conflict with char $ac_func (); below.
18708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18709 <limits.h> exists even on freestanding compilers. */
18712 # include <limits.h>
18714 # include <assert.h>
18719 /* Override any GCC internal prototype to avoid an error.
18720 Use char because int might match the return type of a GCC
18721 builtin and then its argument prototype would still apply. */
18726 /* The GNU C library defines this for functions which it implements
18727 to always fail with ENOSYS. Some functions are actually named
18728 something starting with __ and the normal name is an alias. */
18729 #if defined __stub_$ac_func || defined __stub___$ac_func
18736 return $ac_func ();
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (ac_try="$ac_link"
18743 case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_link") 2>conftest.er1
18750 grep -v '^ *+' conftest.er1 >conftest.err
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18756 { (case "(($ac_try" in
18757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761 (eval "$ac_try") 2>&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest$ac_exeext'
18766 { (case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_try") 2>&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; }; then
18775 eval "$as_ac_var=yes"
18777 echo "$as_me: failed program was:" >&5
18778 sed 's/^/| /' conftest.$ac_ext >&5
18780 eval "$as_ac_var=no"
18783 rm -f core conftest.err conftest.$ac_objext \
18784 conftest$ac_exeext conftest.$ac_ext
18786 ac_res=`eval echo '${'$as_ac_var'}'`
18787 { echo "$as_me:$LINENO: result: $ac_res" >&5
18788 echo "${ECHO_T}$ac_res" >&6; }
18789 if test `eval echo '${'$as_ac_var'}'` = yes; then
18790 cat >>confdefs.h <<_ACEOF
18791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18801 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18809 cat >conftest.$ac_ext <<_ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18817 #define $ac_func innocuous_$ac_func
18819 /* System header to define __stub macros and hopefully few prototypes,
18820 which can conflict with char $ac_func (); below.
18821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18822 <limits.h> exists even on freestanding compilers. */
18825 # include <limits.h>
18827 # include <assert.h>
18832 /* Override any GCC internal prototype to avoid an error.
18833 Use char because int might match the return type of a GCC
18834 builtin and then its argument prototype would still apply. */
18839 /* The GNU C library defines this for functions which it implements
18840 to always fail with ENOSYS. Some functions are actually named
18841 something starting with __ and the normal name is an alias. */
18842 #if defined __stub_$ac_func || defined __stub___$ac_func
18849 return $ac_func ();
18854 rm -f conftest.$ac_objext conftest$ac_exeext
18855 if { (ac_try="$ac_link"
18856 case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_link") 2>conftest.er1
18863 grep -v '^ *+' conftest.er1 >conftest.err
18865 cat conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } &&
18868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18869 { (case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_try") 2>&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; } &&
18878 { ac_try='test -s conftest$ac_exeext'
18879 { (case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_try") 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 eval "$as_ac_var=yes"
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18893 eval "$as_ac_var=no"
18896 rm -f core conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18899 ac_res=`eval echo '${'$as_ac_var'}'`
18900 { echo "$as_me:$LINENO: result: $ac_res" >&5
18901 echo "${ECHO_T}$ac_res" >&6; }
18902 if test `eval echo '${'$as_ac_var'}'` = yes; then
18903 cat >>confdefs.h <<_ACEOF
18904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18915 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 cat >conftest.$ac_ext <<_ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18931 #define $ac_func innocuous_$ac_func
18933 /* System header to define __stub macros and hopefully few prototypes,
18934 which can conflict with char $ac_func (); below.
18935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18936 <limits.h> exists even on freestanding compilers. */
18939 # include <limits.h>
18941 # include <assert.h>
18946 /* Override any GCC internal prototype to avoid an error.
18947 Use char because int might match the return type of a GCC
18948 builtin and then its argument prototype would still apply. */
18953 /* The GNU C library defines this for functions which it implements
18954 to always fail with ENOSYS. Some functions are actually named
18955 something starting with __ and the normal name is an alias. */
18956 #if defined __stub_$ac_func || defined __stub___$ac_func
18963 return $ac_func ();
18968 rm -f conftest.$ac_objext conftest$ac_exeext
18969 if { (ac_try="$ac_link"
18970 case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_link") 2>conftest.er1
18977 grep -v '^ *+' conftest.er1 >conftest.err
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } &&
18982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18983 { (case "(($ac_try" in
18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985 *) ac_try_echo=$ac_try;;
18987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988 (eval "$ac_try") 2>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try='test -s conftest$ac_exeext'
18993 { (case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_try") 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 eval "$as_ac_var=yes"
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 eval "$as_ac_var=no"
19010 rm -f core conftest.err conftest.$ac_objext \
19011 conftest$ac_exeext conftest.$ac_ext
19013 ac_res=`eval echo '${'$as_ac_var'}'`
19014 { echo "$as_me:$LINENO: result: $ac_res" >&5
19015 echo "${ECHO_T}$ac_res" >&6; }
19016 if test `eval echo '${'$as_ac_var'}'` = yes; then
19017 cat >>confdefs.h <<_ACEOF
19018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19024 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19025 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19026 if test "${llvm_cv_c_printf_a+set}" = set; then
19027 echo $ECHO_N "(cached) $ECHO_C" >&6
19030 ac_cpp='$CPP $CPPFLAGS'
19031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19035 if test "$cross_compiling" = yes; then
19036 llvmac_cv_c_printf_a=no
19038 cat >conftest.$ac_ext <<_ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19047 #include <stdlib.h>
19053 volatile double A, B;
19057 sprintf(Buffer, "%a", A);
19061 if (A != 0x1.999999999999ap-4)
19068 rm -f conftest$ac_exeext
19069 if { (ac_try="$ac_link"
19070 case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_link") 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19079 { (case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_try") 2>&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
19088 llvm_cv_c_printf_a=yes
19090 echo "$as_me: program exited with status $ac_status" >&5
19091 echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19094 ( exit $ac_status )
19095 llvmac_cv_c_printf_a=no
19097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19102 ac_cpp='$CPP $CPPFLAGS'
19103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19108 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19109 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19110 if test "$llvm_cv_c_printf_a" = "yes"; then
19112 cat >>confdefs.h <<\_ACEOF
19113 #define HAVE_PRINTF_A 1
19119 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19120 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19121 if test "${ac_cv_func_rand48+set}" = set; then
19122 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 ac_cpp='$CXXCPP $CPPFLAGS'
19126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19130 cat >conftest.$ac_ext <<_ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 #include <stdlib.h>
19140 srand48(0);lrand48();drand48();
19145 rm -f conftest.$ac_objext
19146 if { (ac_try="$ac_compile"
19147 case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152 (eval "$ac_compile") 2>conftest.er1
19154 grep -v '^ *+' conftest.er1 >conftest.err
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } &&
19159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19160 { (case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_try") 2>&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } &&
19169 { ac_try='test -s conftest.$ac_objext'
19170 { (case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_try") 2>&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19179 ac_cv_func_rand48=yes
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19184 ac_cv_func_rand48=no
19187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19189 ac_cpp='$CPP $CPPFLAGS'
19190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19195 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19196 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19198 if test "$ac_cv_func_rand48" = "yes" ; then
19200 cat >>confdefs.h <<\_ACEOF
19201 #define HAVE_RAND48 1
19207 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19208 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19209 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19210 echo $ECHO_N "(cached) $ECHO_C" >&6
19212 cat >conftest.$ac_ext <<_ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19218 $ac_includes_default
19223 char *p = (char *) strerror_s;
19231 rm -f conftest.$ac_objext
19232 if { (ac_try="$ac_compile"
19233 case "(($ac_try" in
19234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235 *) ac_try_echo=$ac_try;;
19237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238 (eval "$ac_compile") 2>conftest.er1
19240 grep -v '^ *+' conftest.er1 >conftest.err
19242 cat conftest.err >&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19246 { (case "(($ac_try" in
19247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248 *) ac_try_echo=$ac_try;;
19250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251 (eval "$ac_try") 2>&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest.$ac_objext'
19256 { (case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_try") 2>&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265 ac_cv_have_decl_strerror_s=yes
19267 echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19270 ac_cv_have_decl_strerror_s=no
19273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19275 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19276 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19277 if test $ac_cv_have_decl_strerror_s = yes; then
19279 cat >>confdefs.h <<_ACEOF
19280 #define HAVE_DECL_STRERROR_S 1
19285 cat >>confdefs.h <<_ACEOF
19286 #define HAVE_DECL_STRERROR_S 0
19294 if test "$llvm_cv_os_type" = "MingW" ; then
19295 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19296 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19297 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 ac_check_lib_save_LIBS=$LIBS
19302 cat >conftest.$ac_ext <<_ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19309 /* Override any GCC internal prototype to avoid an error.
19310 Use char because int might match the return type of a GCC
19311 builtin and then its argument prototype would still apply. */
19324 rm -f conftest.$ac_objext conftest$ac_exeext
19325 if { (ac_try="$ac_link"
19326 case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_link") 2>conftest.er1
19333 grep -v '^ *+' conftest.er1 >conftest.err
19335 cat conftest.err >&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } &&
19338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19339 { (case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_try") 2>&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest$ac_exeext'
19349 { (case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_try") 2>&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 ac_cv_lib_gcc__alloca=yes
19360 echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19363 ac_cv_lib_gcc__alloca=no
19366 rm -f core conftest.err conftest.$ac_objext \
19367 conftest$ac_exeext conftest.$ac_ext
19368 LIBS=$ac_check_lib_save_LIBS
19370 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19371 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19372 if test $ac_cv_lib_gcc__alloca = yes; then
19374 cat >>confdefs.h <<\_ACEOF
19375 #define HAVE__ALLOCA 1
19380 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19381 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19382 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 ac_check_lib_save_LIBS=$LIBS
19387 cat >conftest.$ac_ext <<_ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19394 /* Override any GCC internal prototype to avoid an error.
19395 Use char because int might match the return type of a GCC
19396 builtin and then its argument prototype would still apply. */
19404 return __alloca ();
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_link") 2>conftest.er1
19418 grep -v '^ *+' conftest.er1 >conftest.err
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } &&
19423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19424 { (case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_try") 2>&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; } &&
19433 { ac_try='test -s conftest$ac_exeext'
19434 { (case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_try") 2>&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; }; then
19443 ac_cv_lib_gcc___alloca=yes
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19448 ac_cv_lib_gcc___alloca=no
19451 rm -f core conftest.err conftest.$ac_objext \
19452 conftest$ac_exeext conftest.$ac_ext
19453 LIBS=$ac_check_lib_save_LIBS
19455 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19456 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19457 if test $ac_cv_lib_gcc___alloca = yes; then
19459 cat >>confdefs.h <<\_ACEOF
19460 #define HAVE___ALLOCA 1
19465 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19466 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19467 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 ac_check_lib_save_LIBS=$LIBS
19472 cat >conftest.$ac_ext <<_ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19479 /* Override any GCC internal prototype to avoid an error.
19480 Use char because int might match the return type of a GCC
19481 builtin and then its argument prototype would still apply. */
19489 return __chkstk ();
19494 rm -f conftest.$ac_objext conftest$ac_exeext
19495 if { (ac_try="$ac_link"
19496 case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_link") 2>conftest.er1
19503 grep -v '^ *+' conftest.er1 >conftest.err
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
19508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19509 { (case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_try") 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest$ac_exeext'
19519 { (case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_try") 2>&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 ac_cv_lib_gcc___chkstk=yes
19530 echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19533 ac_cv_lib_gcc___chkstk=no
19536 rm -f core conftest.err conftest.$ac_objext \
19537 conftest$ac_exeext conftest.$ac_ext
19538 LIBS=$ac_check_lib_save_LIBS
19540 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19541 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19542 if test $ac_cv_lib_gcc___chkstk = yes; then
19544 cat >>confdefs.h <<\_ACEOF
19545 #define HAVE___CHKSTK 1
19550 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19551 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19552 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 ac_check_lib_save_LIBS=$LIBS
19557 cat >conftest.$ac_ext <<_ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19564 /* Override any GCC internal prototype to avoid an error.
19565 Use char because int might match the return type of a GCC
19566 builtin and then its argument prototype would still apply. */
19574 return ___chkstk ();
19579 rm -f conftest.$ac_objext conftest$ac_exeext
19580 if { (ac_try="$ac_link"
19581 case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_link") 2>conftest.er1
19588 grep -v '^ *+' conftest.er1 >conftest.err
19590 cat conftest.err >&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } &&
19593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19594 { (case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_try") 2>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try='test -s conftest$ac_exeext'
19604 { (case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_try") 2>&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_cv_lib_gcc____chkstk=yes
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19618 ac_cv_lib_gcc____chkstk=no
19621 rm -f core conftest.err conftest.$ac_objext \
19622 conftest$ac_exeext conftest.$ac_ext
19623 LIBS=$ac_check_lib_save_LIBS
19625 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19626 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19627 if test $ac_cv_lib_gcc____chkstk = yes; then
19629 cat >>confdefs.h <<\_ACEOF
19630 #define HAVE____CHKSTK 1
19636 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19637 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19638 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19641 ac_check_lib_save_LIBS=$LIBS
19643 cat >conftest.$ac_ext <<_ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19650 /* Override any GCC internal prototype to avoid an error.
19651 Use char because int might match the return type of a GCC
19652 builtin and then its argument prototype would still apply. */
19660 return __ashldi3 ();
19665 rm -f conftest.$ac_objext conftest$ac_exeext
19666 if { (ac_try="$ac_link"
19667 case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_link") 2>conftest.er1
19674 grep -v '^ *+' conftest.er1 >conftest.err
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
19679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19680 { (case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_try") 2>&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest$ac_exeext'
19690 { (case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_try") 2>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; }; then
19699 ac_cv_lib_gcc___ashldi3=yes
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19704 ac_cv_lib_gcc___ashldi3=no
19707 rm -f core conftest.err conftest.$ac_objext \
19708 conftest$ac_exeext conftest.$ac_ext
19709 LIBS=$ac_check_lib_save_LIBS
19711 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19712 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19713 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19715 cat >>confdefs.h <<\_ACEOF
19716 #define HAVE___ASHLDI3 1
19721 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19722 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19723 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
19726 ac_check_lib_save_LIBS=$LIBS
19728 cat >conftest.$ac_ext <<_ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h. */
19735 /* Override any GCC internal prototype to avoid an error.
19736 Use char because int might match the return type of a GCC
19737 builtin and then its argument prototype would still apply. */
19745 return __ashrdi3 ();
19750 rm -f conftest.$ac_objext conftest$ac_exeext
19751 if { (ac_try="$ac_link"
19752 case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757 (eval "$ac_link") 2>conftest.er1
19759 grep -v '^ *+' conftest.er1 >conftest.err
19761 cat conftest.err >&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); } &&
19764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19765 { (case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_try") 2>&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try='test -s conftest$ac_exeext'
19775 { (case "(($ac_try" in
19776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19777 *) ac_try_echo=$ac_try;;
19779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780 (eval "$ac_try") 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 ac_cv_lib_gcc___ashrdi3=yes
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19789 ac_cv_lib_gcc___ashrdi3=no
19792 rm -f core conftest.err conftest.$ac_objext \
19793 conftest$ac_exeext conftest.$ac_ext
19794 LIBS=$ac_check_lib_save_LIBS
19796 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19797 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19798 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19800 cat >>confdefs.h <<\_ACEOF
19801 #define HAVE___ASHRDI3 1
19806 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19807 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19808 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 ac_check_lib_save_LIBS=$LIBS
19813 cat >conftest.$ac_ext <<_ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19820 /* Override any GCC internal prototype to avoid an error.
19821 Use char because int might match the return type of a GCC
19822 builtin and then its argument prototype would still apply. */
19830 return __divdi3 ();
19835 rm -f conftest.$ac_objext conftest$ac_exeext
19836 if { (ac_try="$ac_link"
19837 case "(($ac_try" in
19838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839 *) ac_try_echo=$ac_try;;
19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842 (eval "$ac_link") 2>conftest.er1
19844 grep -v '^ *+' conftest.er1 >conftest.err
19846 cat conftest.err >&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } &&
19849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19850 { (case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_try") 2>&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; } &&
19859 { ac_try='test -s conftest$ac_exeext'
19860 { (case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_try") 2>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
19869 ac_cv_lib_gcc___divdi3=yes
19871 echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19874 ac_cv_lib_gcc___divdi3=no
19877 rm -f core conftest.err conftest.$ac_objext \
19878 conftest$ac_exeext conftest.$ac_ext
19879 LIBS=$ac_check_lib_save_LIBS
19881 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19882 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19883 if test $ac_cv_lib_gcc___divdi3 = yes; then
19885 cat >>confdefs.h <<\_ACEOF
19886 #define HAVE___DIVDI3 1
19891 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19892 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19893 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 ac_check_lib_save_LIBS=$LIBS
19898 cat >conftest.$ac_ext <<_ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19905 /* Override any GCC internal prototype to avoid an error.
19906 Use char because int might match the return type of a GCC
19907 builtin and then its argument prototype would still apply. */
19915 return __fixdfdi ();
19920 rm -f conftest.$ac_objext conftest$ac_exeext
19921 if { (ac_try="$ac_link"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_link") 2>conftest.er1
19929 grep -v '^ *+' conftest.er1 >conftest.err
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } &&
19934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19935 { (case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_try") 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; } &&
19944 { ac_try='test -s conftest$ac_exeext'
19945 { (case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_try") 2>&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; }; then
19954 ac_cv_lib_gcc___fixdfdi=yes
19956 echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19959 ac_cv_lib_gcc___fixdfdi=no
19962 rm -f core conftest.err conftest.$ac_objext \
19963 conftest$ac_exeext conftest.$ac_ext
19964 LIBS=$ac_check_lib_save_LIBS
19966 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19967 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19968 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19970 cat >>confdefs.h <<\_ACEOF
19971 #define HAVE___FIXDFDI 1
19976 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19977 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19978 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19979 echo $ECHO_N "(cached) $ECHO_C" >&6
19981 ac_check_lib_save_LIBS=$LIBS
19983 cat >conftest.$ac_ext <<_ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19990 /* Override any GCC internal prototype to avoid an error.
19991 Use char because int might match the return type of a GCC
19992 builtin and then its argument prototype would still apply. */
20000 return __fixsfdi ();
20005 rm -f conftest.$ac_objext conftest$ac_exeext
20006 if { (ac_try="$ac_link"
20007 case "(($ac_try" in
20008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009 *) ac_try_echo=$ac_try;;
20011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20012 (eval "$ac_link") 2>conftest.er1
20014 grep -v '^ *+' conftest.er1 >conftest.err
20016 cat conftest.err >&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } &&
20019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20020 { (case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_try") 2>&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; } &&
20029 { ac_try='test -s conftest$ac_exeext'
20030 { (case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_try") 2>&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 ac_cv_lib_gcc___fixsfdi=yes
20041 echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20044 ac_cv_lib_gcc___fixsfdi=no
20047 rm -f core conftest.err conftest.$ac_objext \
20048 conftest$ac_exeext conftest.$ac_ext
20049 LIBS=$ac_check_lib_save_LIBS
20051 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20052 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20053 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20055 cat >>confdefs.h <<\_ACEOF
20056 #define HAVE___FIXSFDI 1
20061 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20062 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20063 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20064 echo $ECHO_N "(cached) $ECHO_C" >&6
20066 ac_check_lib_save_LIBS=$LIBS
20068 cat >conftest.$ac_ext <<_ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20075 /* Override any GCC internal prototype to avoid an error.
20076 Use char because int might match the return type of a GCC
20077 builtin and then its argument prototype would still apply. */
20081 char __floatdidf ();
20085 return __floatdidf ();
20090 rm -f conftest.$ac_objext conftest$ac_exeext
20091 if { (ac_try="$ac_link"
20092 case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_link") 2>conftest.er1
20099 grep -v '^ *+' conftest.er1 >conftest.err
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } &&
20104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20105 { (case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_try") 2>&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; } &&
20114 { ac_try='test -s conftest$ac_exeext'
20115 { (case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_try") 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20124 ac_cv_lib_gcc___floatdidf=yes
20126 echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20129 ac_cv_lib_gcc___floatdidf=no
20132 rm -f core conftest.err conftest.$ac_objext \
20133 conftest$ac_exeext conftest.$ac_ext
20134 LIBS=$ac_check_lib_save_LIBS
20136 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20137 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20138 if test $ac_cv_lib_gcc___floatdidf = yes; then
20140 cat >>confdefs.h <<\_ACEOF
20141 #define HAVE___FLOATDIDF 1
20146 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20147 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20148 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20151 ac_check_lib_save_LIBS=$LIBS
20153 cat >conftest.$ac_ext <<_ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20160 /* Override any GCC internal prototype to avoid an error.
20161 Use char because int might match the return type of a GCC
20162 builtin and then its argument prototype would still apply. */
20170 return __lshrdi3 ();
20175 rm -f conftest.$ac_objext conftest$ac_exeext
20176 if { (ac_try="$ac_link"
20177 case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_link") 2>conftest.er1
20184 grep -v '^ *+' conftest.er1 >conftest.err
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } &&
20189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20190 { (case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_try") 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try='test -s conftest$ac_exeext'
20200 { (case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_try") 2>&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 ac_cv_lib_gcc___lshrdi3=yes
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20214 ac_cv_lib_gcc___lshrdi3=no
20217 rm -f core conftest.err conftest.$ac_objext \
20218 conftest$ac_exeext conftest.$ac_ext
20219 LIBS=$ac_check_lib_save_LIBS
20221 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20222 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20223 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20225 cat >>confdefs.h <<\_ACEOF
20226 #define HAVE___LSHRDI3 1
20231 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20232 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20233 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 ac_check_lib_save_LIBS=$LIBS
20238 cat >conftest.$ac_ext <<_ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20245 /* Override any GCC internal prototype to avoid an error.
20246 Use char because int might match the return type of a GCC
20247 builtin and then its argument prototype would still apply. */
20255 return __moddi3 ();
20260 rm -f conftest.$ac_objext conftest$ac_exeext
20261 if { (ac_try="$ac_link"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_link") 2>conftest.er1
20269 grep -v '^ *+' conftest.er1 >conftest.err
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } &&
20274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20275 { (case "(($ac_try" in
20276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277 *) ac_try_echo=$ac_try;;
20279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280 (eval "$ac_try") 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; } &&
20284 { ac_try='test -s conftest$ac_exeext'
20285 { (case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_try") 2>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 ac_cv_lib_gcc___moddi3=yes
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20299 ac_cv_lib_gcc___moddi3=no
20302 rm -f core conftest.err conftest.$ac_objext \
20303 conftest$ac_exeext conftest.$ac_ext
20304 LIBS=$ac_check_lib_save_LIBS
20306 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20307 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20308 if test $ac_cv_lib_gcc___moddi3 = yes; then
20310 cat >>confdefs.h <<\_ACEOF
20311 #define HAVE___MODDI3 1
20316 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20317 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20318 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20321 ac_check_lib_save_LIBS=$LIBS
20323 cat >conftest.$ac_ext <<_ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20330 /* Override any GCC internal prototype to avoid an error.
20331 Use char because int might match the return type of a GCC
20332 builtin and then its argument prototype would still apply. */
20340 return __udivdi3 ();
20345 rm -f conftest.$ac_objext conftest$ac_exeext
20346 if { (ac_try="$ac_link"
20347 case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_link") 2>conftest.er1
20354 grep -v '^ *+' conftest.er1 >conftest.err
20356 cat conftest.err >&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } &&
20359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20360 { (case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_try") 2>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; } &&
20369 { ac_try='test -s conftest$ac_exeext'
20370 { (case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_try") 2>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 ac_cv_lib_gcc___udivdi3=yes
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 ac_cv_lib_gcc___udivdi3=no
20387 rm -f core conftest.err conftest.$ac_objext \
20388 conftest$ac_exeext conftest.$ac_ext
20389 LIBS=$ac_check_lib_save_LIBS
20391 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20392 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20393 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20395 cat >>confdefs.h <<\_ACEOF
20396 #define HAVE___UDIVDI3 1
20401 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20402 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20403 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20406 ac_check_lib_save_LIBS=$LIBS
20408 cat >conftest.$ac_ext <<_ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20415 /* Override any GCC internal prototype to avoid an error.
20416 Use char because int might match the return type of a GCC
20417 builtin and then its argument prototype would still apply. */
20425 return __umoddi3 ();
20430 rm -f conftest.$ac_objext conftest$ac_exeext
20431 if { (ac_try="$ac_link"
20432 case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_link") 2>conftest.er1
20439 grep -v '^ *+' conftest.er1 >conftest.err
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } &&
20444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20445 { (case "(($ac_try" in
20446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447 *) ac_try_echo=$ac_try;;
20449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20450 (eval "$ac_try") 2>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; } &&
20454 { ac_try='test -s conftest$ac_exeext'
20455 { (case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_try") 2>&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; }; then
20464 ac_cv_lib_gcc___umoddi3=yes
20466 echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20469 ac_cv_lib_gcc___umoddi3=no
20472 rm -f core conftest.err conftest.$ac_objext \
20473 conftest$ac_exeext conftest.$ac_ext
20474 LIBS=$ac_check_lib_save_LIBS
20476 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20477 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20478 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20480 cat >>confdefs.h <<\_ACEOF
20481 #define HAVE___UMODDI3 1
20487 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20488 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20489 if test "${ac_cv_lib_gcc___main+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 ac_check_lib_save_LIBS=$LIBS
20494 cat >conftest.$ac_ext <<_ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20501 /* Override any GCC internal prototype to avoid an error.
20502 Use char because int might match the return type of a GCC
20503 builtin and then its argument prototype would still apply. */
20516 rm -f conftest.$ac_objext conftest$ac_exeext
20517 if { (ac_try="$ac_link"
20518 case "(($ac_try" in
20519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520 *) ac_try_echo=$ac_try;;
20522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20523 (eval "$ac_link") 2>conftest.er1
20525 grep -v '^ *+' conftest.er1 >conftest.err
20527 cat conftest.err >&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); } &&
20530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20531 { (case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_try") 2>&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; } &&
20540 { ac_try='test -s conftest$ac_exeext'
20541 { (case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_try") 2>&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; }; then
20550 ac_cv_lib_gcc___main=yes
20552 echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20555 ac_cv_lib_gcc___main=no
20558 rm -f core conftest.err conftest.$ac_objext \
20559 conftest$ac_exeext conftest.$ac_ext
20560 LIBS=$ac_check_lib_save_LIBS
20562 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20563 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20564 if test $ac_cv_lib_gcc___main = yes; then
20566 cat >>confdefs.h <<\_ACEOF
20567 #define HAVE___MAIN 1
20572 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20573 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20574 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20575 echo $ECHO_N "(cached) $ECHO_C" >&6
20577 ac_check_lib_save_LIBS=$LIBS
20579 cat >conftest.$ac_ext <<_ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20586 /* Override any GCC internal prototype to avoid an error.
20587 Use char because int might match the return type of a GCC
20588 builtin and then its argument prototype would still apply. */
20596 return __cmpdi2 ();
20601 rm -f conftest.$ac_objext conftest$ac_exeext
20602 if { (ac_try="$ac_link"
20603 case "(($ac_try" in
20604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605 *) ac_try_echo=$ac_try;;
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608 (eval "$ac_link") 2>conftest.er1
20610 grep -v '^ *+' conftest.er1 >conftest.err
20612 cat conftest.err >&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } &&
20615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20616 { (case "(($ac_try" in
20617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618 *) ac_try_echo=$ac_try;;
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621 (eval "$ac_try") 2>&5
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); }; } &&
20625 { ac_try='test -s conftest$ac_exeext'
20626 { (case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_try") 2>&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 ac_cv_lib_gcc___cmpdi2=yes
20637 echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20640 ac_cv_lib_gcc___cmpdi2=no
20643 rm -f core conftest.err conftest.$ac_objext \
20644 conftest$ac_exeext conftest.$ac_ext
20645 LIBS=$ac_check_lib_save_LIBS
20647 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20648 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20649 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20651 cat >>confdefs.h <<\_ACEOF
20652 #define HAVE___CMPDI2 1
20660 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20661 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20662 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20666 ac_cpp='$CXXCPP $CPPFLAGS'
20667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20671 cat >conftest.$ac_ext <<_ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h. */
20686 rm -f conftest.$ac_objext
20687 if { (ac_try="$ac_compile"
20688 case "(($ac_try" in
20689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690 *) ac_try_echo=$ac_try;;
20692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693 (eval "$ac_compile") 2>conftest.er1
20695 grep -v '^ *+' conftest.er1 >conftest.err
20697 cat conftest.err >&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } &&
20700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20701 { (case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706 (eval "$ac_try") 2>&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; } &&
20710 { ac_try='test -s conftest.$ac_objext'
20711 { (case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_try") 2>&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; }; then
20720 ac_cv_func_isnan_in_math_h=yes
20722 echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20725 ac_cv_func_isnan_in_math_h=no
20728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20730 ac_cpp='$CPP $CPPFLAGS'
20731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20736 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20737 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20740 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20742 cat >>confdefs.h <<\_ACEOF
20743 #define HAVE_ISNAN_IN_MATH_H 1
20748 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20749 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20750 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
20754 ac_cpp='$CXXCPP $CPPFLAGS'
20755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20759 cat >conftest.$ac_ext <<_ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h. */
20774 rm -f conftest.$ac_objext
20775 if { (ac_try="$ac_compile"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_compile") 2>conftest.er1
20783 grep -v '^ *+' conftest.er1 >conftest.err
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } &&
20788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20789 { (case "(($ac_try" in
20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_try") 2>&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try='test -s conftest.$ac_objext'
20799 { (case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_try") 2>&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
20808 ac_cv_func_isnan_in_cmath=yes
20810 echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20813 ac_cv_func_isnan_in_cmath=no
20816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20818 ac_cpp='$CPP $CPPFLAGS'
20819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20824 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20825 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20827 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_ISNAN_IN_CMATH 1
20835 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20836 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20837 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
20841 ac_cpp='$CXXCPP $CPPFLAGS'
20842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20846 cat >conftest.$ac_ext <<_ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h. */
20856 float f; std::isnan(f);
20861 rm -f conftest.$ac_objext
20862 if { (ac_try="$ac_compile"
20863 case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_compile") 2>conftest.er1
20870 grep -v '^ *+' conftest.er1 >conftest.err
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } &&
20875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20876 { (case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_try") 2>&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; } &&
20885 { ac_try='test -s conftest.$ac_objext'
20886 { (case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_try") 2>&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
20895 ac_cv_func_std_isnan_in_cmath=yes
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 ac_cv_func_std_isnan_in_cmath=no
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20905 ac_cpp='$CPP $CPPFLAGS'
20906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20911 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20912 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20914 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20916 cat >>confdefs.h <<\_ACEOF
20917 #define HAVE_STD_ISNAN_IN_CMATH 1
20923 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20924 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20925 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20926 echo $ECHO_N "(cached) $ECHO_C" >&6
20929 ac_cpp='$CXXCPP $CPPFLAGS'
20930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20934 cat >conftest.$ac_ext <<_ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20949 rm -f conftest.$ac_objext
20950 if { (ac_try="$ac_compile"
20951 case "(($ac_try" in
20952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953 *) ac_try_echo=$ac_try;;
20955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956 (eval "$ac_compile") 2>conftest.er1
20958 grep -v '^ *+' conftest.er1 >conftest.err
20960 cat conftest.err >&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } &&
20963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20964 { (case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_try") 2>&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); }; } &&
20973 { ac_try='test -s conftest.$ac_objext'
20974 { (case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20983 ac_cv_func_isinf_in_math_h=yes
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20988 ac_cv_func_isinf_in_math_h=no
20991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20993 ac_cpp='$CPP $CPPFLAGS'
20994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20999 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21000 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21002 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21004 cat >>confdefs.h <<\_ACEOF
21005 #define HAVE_ISINF_IN_MATH_H 1
21010 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21011 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21012 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21016 ac_cpp='$CXXCPP $CPPFLAGS'
21017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21021 cat >conftest.$ac_ext <<_ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h. */
21036 rm -f conftest.$ac_objext
21037 if { (ac_try="$ac_compile"
21038 case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_compile") 2>conftest.er1
21045 grep -v '^ *+' conftest.er1 >conftest.err
21047 cat conftest.err >&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); } &&
21050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21051 { (case "(($ac_try" in
21052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056 (eval "$ac_try") 2>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; } &&
21060 { ac_try='test -s conftest.$ac_objext'
21061 { (case "(($ac_try" in
21062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21063 *) ac_try_echo=$ac_try;;
21065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21066 (eval "$ac_try") 2>&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
21070 ac_cv_func_isinf_in_cmath=yes
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_cv_func_isinf_in_cmath=no
21078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080 ac_cpp='$CPP $CPPFLAGS'
21081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21086 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21087 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21089 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21091 cat >>confdefs.h <<\_ACEOF
21092 #define HAVE_ISINF_IN_CMATH 1
21097 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21098 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21099 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21100 echo $ECHO_N "(cached) $ECHO_C" >&6
21103 ac_cpp='$CXXCPP $CPPFLAGS'
21104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21108 cat >conftest.$ac_ext <<_ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21118 float f; std::isinf(f)}
21123 rm -f conftest.$ac_objext
21124 if { (ac_try="$ac_compile"
21125 case "(($ac_try" in
21126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127 *) ac_try_echo=$ac_try;;
21129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130 (eval "$ac_compile") 2>conftest.er1
21132 grep -v '^ *+' conftest.er1 >conftest.err
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } &&
21137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21138 { (case "(($ac_try" in
21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140 *) ac_try_echo=$ac_try;;
21142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21143 (eval "$ac_try") 2>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest.$ac_objext'
21148 { (case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_try") 2>&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; }; then
21157 ac_cv_func_std_isinf_in_cmath=yes
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21162 ac_cv_func_std_isinf_in_cmath=no
21165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21167 ac_cpp='$CPP $CPPFLAGS'
21168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21173 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21174 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21176 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21178 cat >>confdefs.h <<\_ACEOF
21179 #define HAVE_STD_ISINF_IN_CMATH 1
21184 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21185 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21186 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21187 echo $ECHO_N "(cached) $ECHO_C" >&6
21190 ac_cpp='$CXXCPP $CPPFLAGS'
21191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21195 cat >conftest.$ac_ext <<_ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21201 #include <ieeefp.h>
21205 float f; finite(f);
21210 rm -f conftest.$ac_objext
21211 if { (ac_try="$ac_compile"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_compile") 2>conftest.er1
21219 grep -v '^ *+' conftest.er1 >conftest.err
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } &&
21224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21225 { (case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_try") 2>&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; } &&
21234 { ac_try='test -s conftest.$ac_objext'
21235 { (case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_try") 2>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_func_finite_in_ieeefp_h=yes
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 ac_cv_func_finite_in_ieeefp_h=no
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254 ac_cpp='$CPP $CPPFLAGS'
21255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21260 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21261 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21263 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21265 cat >>confdefs.h <<\_ACEOF
21266 #define HAVE_FINITE_IN_IEEEFP_H 1
21273 if test "$llvm_cv_platform_type" = "Unix" ; then
21276 for ac_header in stdlib.h unistd.h
21278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21285 ac_res=`eval echo '${'$as_ac_Header'}'`
21286 { echo "$as_me:$LINENO: result: $ac_res" >&5
21287 echo "${ECHO_T}$ac_res" >&6; }
21289 # Is the header compilable?
21290 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21292 cat >conftest.$ac_ext <<_ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h. */
21298 $ac_includes_default
21299 #include <$ac_header>
21301 rm -f conftest.$ac_objext
21302 if { (ac_try="$ac_compile"
21303 case "(($ac_try" in
21304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305 *) ac_try_echo=$ac_try;;
21307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21308 (eval "$ac_compile") 2>conftest.er1
21310 grep -v '^ *+' conftest.er1 >conftest.err
21312 cat conftest.err >&5
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); } &&
21315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21316 { (case "(($ac_try" in
21317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318 *) ac_try_echo=$ac_try;;
21320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321 (eval "$ac_try") 2>&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; } &&
21325 { ac_try='test -s conftest.$ac_objext'
21326 { (case "(($ac_try" in
21327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328 *) ac_try_echo=$ac_try;;
21330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331 (eval "$ac_try") 2>&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; }; then
21335 ac_header_compiler=yes
21337 echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21340 ac_header_compiler=no
21343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21345 echo "${ECHO_T}$ac_header_compiler" >&6; }
21347 # Is the header present?
21348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21350 cat >conftest.$ac_ext <<_ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21356 #include <$ac_header>
21358 if { (ac_try="$ac_cpp conftest.$ac_ext"
21359 case "(($ac_try" in
21360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21366 grep -v '^ *+' conftest.er1 >conftest.err
21368 cat conftest.err >&5
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); } >/dev/null; then
21371 if test -s conftest.err; then
21372 ac_cpp_err=$ac_c_preproc_warn_flag
21373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21380 if test -z "$ac_cpp_err"; then
21381 ac_header_preproc=yes
21383 echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21386 ac_header_preproc=no
21389 rm -f conftest.err conftest.$ac_ext
21390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21391 echo "${ECHO_T}$ac_header_preproc" >&6; }
21393 # So? What about this header?
21394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21400 ac_header_preproc=yes
21403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21416 ## ----------------------------------- ##
21417 ## Report this to llvmbugs@cs.uiuc.edu ##
21418 ## ----------------------------------- ##
21420 ) | sed "s/^/$as_me: WARNING: /" >&2
21423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21426 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 eval "$as_ac_Header=\$ac_header_preproc"
21430 ac_res=`eval echo '${'$as_ac_Header'}'`
21431 { echo "$as_me:$LINENO: result: $ac_res" >&5
21432 echo "${ECHO_T}$ac_res" >&6; }
21435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21436 cat >>confdefs.h <<_ACEOF
21437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21445 for ac_func in getpagesize
21447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21453 cat >conftest.$ac_ext <<_ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21461 #define $ac_func innocuous_$ac_func
21463 /* System header to define __stub macros and hopefully few prototypes,
21464 which can conflict with char $ac_func (); below.
21465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21466 <limits.h> exists even on freestanding compilers. */
21469 # include <limits.h>
21471 # include <assert.h>
21476 /* Override any GCC internal prototype to avoid an error.
21477 Use char because int might match the return type of a GCC
21478 builtin and then its argument prototype would still apply. */
21483 /* The GNU C library defines this for functions which it implements
21484 to always fail with ENOSYS. Some functions are actually named
21485 something starting with __ and the normal name is an alias. */
21486 #if defined __stub_$ac_func || defined __stub___$ac_func
21493 return $ac_func ();
21498 rm -f conftest.$ac_objext conftest$ac_exeext
21499 if { (ac_try="$ac_link"
21500 case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_link") 2>conftest.er1
21507 grep -v '^ *+' conftest.er1 >conftest.err
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } &&
21512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21513 { (case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518 (eval "$ac_try") 2>&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); }; } &&
21522 { ac_try='test -s conftest$ac_exeext'
21523 { (case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528 (eval "$ac_try") 2>&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); }; }; then
21532 eval "$as_ac_var=yes"
21534 echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21537 eval "$as_ac_var=no"
21540 rm -f core conftest.err conftest.$ac_objext \
21541 conftest$ac_exeext conftest.$ac_ext
21543 ac_res=`eval echo '${'$as_ac_var'}'`
21544 { echo "$as_me:$LINENO: result: $ac_res" >&5
21545 echo "${ECHO_T}$ac_res" >&6; }
21546 if test `eval echo '${'$as_ac_var'}'` = yes; then
21547 cat >>confdefs.h <<_ACEOF
21548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21554 { echo "$as_me:$LINENO: checking for working mmap" >&5
21555 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21556 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21559 if test "$cross_compiling" = yes; then
21560 ac_cv_func_mmap_fixed_mapped=no
21562 cat >conftest.$ac_ext <<_ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21568 $ac_includes_default
21569 /* malloc might have been renamed as rpl_malloc. */
21572 /* Thanks to Mike Haertel and Jim Avera for this test.
21573 Here is a matrix of mmap possibilities:
21574 mmap private not fixed
21575 mmap private fixed at somewhere currently unmapped
21576 mmap private fixed at somewhere already mapped
21577 mmap shared not fixed
21578 mmap shared fixed at somewhere currently unmapped
21579 mmap shared fixed at somewhere already mapped
21580 For private mappings, we should verify that changes cannot be read()
21581 back from the file, nor mmap's back from the file at a different
21582 address. (There have been systems where private was not correctly
21583 implemented like the infamous i386 svr4.0, and systems where the
21584 VM page cache was not coherent with the file system buffer cache
21585 like early versions of FreeBSD and possibly contemporary NetBSD.)
21586 For shared mappings, we should conversely verify that changes get
21587 propagated back to all the places they're supposed to be.
21589 Grep wants private fixed already mapped.
21590 The main things grep needs to know about mmap are:
21591 * does it exist and is it safe to write into the mmap'd area
21592 * how to use it (BSD variants) */
21595 #include <sys/mman.h>
21597 #if !STDC_HEADERS && !HAVE_STDLIB_H
21601 /* This mess was copied from the GNU getpagesize.h. */
21602 #if !HAVE_GETPAGESIZE
21603 /* Assume that all systems that can run configure have sys/param.h. */
21604 # if !HAVE_SYS_PARAM_H
21605 # define HAVE_SYS_PARAM_H 1
21608 # ifdef _SC_PAGESIZE
21609 # define getpagesize() sysconf(_SC_PAGESIZE)
21610 # else /* no _SC_PAGESIZE */
21611 # if HAVE_SYS_PARAM_H
21612 # include <sys/param.h>
21613 # ifdef EXEC_PAGESIZE
21614 # define getpagesize() EXEC_PAGESIZE
21615 # else /* no EXEC_PAGESIZE */
21617 # define getpagesize() NBPG * CLSIZE
21620 # endif /* no CLSIZE */
21621 # else /* no NBPG */
21623 # define getpagesize() NBPC
21624 # else /* no NBPC */
21626 # define getpagesize() PAGESIZE
21627 # endif /* PAGESIZE */
21628 # endif /* no NBPC */
21629 # endif /* no NBPG */
21630 # endif /* no EXEC_PAGESIZE */
21631 # else /* no HAVE_SYS_PARAM_H */
21632 # define getpagesize() 8192 /* punt totally */
21633 # endif /* no HAVE_SYS_PARAM_H */
21634 # endif /* no _SC_PAGESIZE */
21636 #endif /* no HAVE_GETPAGESIZE */
21641 char *data, *data2, *data3;
21645 pagesize = getpagesize ();
21647 /* First, make a file with some known garbage in it. */
21648 data = (char *) malloc (pagesize);
21651 for (i = 0; i < pagesize; ++i)
21652 *(data + i) = rand ();
21654 fd = creat ("conftest.mmap", 0600);
21657 if (write (fd, data, pagesize) != pagesize)
21661 /* Next, try to mmap the file at a fixed address which already has
21662 something else allocated at it. If we can, also make sure that
21663 we see the same garbage. */
21664 fd = open ("conftest.mmap", O_RDWR);
21667 data2 = (char *) malloc (2 * pagesize);
21670 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21671 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21672 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21674 for (i = 0; i < pagesize; ++i)
21675 if (*(data + i) != *(data2 + i))
21678 /* Finally, make sure that changes to the mapped area do not
21679 percolate back to the file as seen by read(). (This is a bug on
21680 some variants of i386 svr4.0.) */
21681 for (i = 0; i < pagesize; ++i)
21682 *(data2 + i) = *(data2 + i) + 1;
21683 data3 = (char *) malloc (pagesize);
21686 if (read (fd, data3, pagesize) != pagesize)
21688 for (i = 0; i < pagesize; ++i)
21689 if (*(data + i) != *(data3 + i))
21695 rm -f conftest$ac_exeext
21696 if { (ac_try="$ac_link"
21697 case "(($ac_try" in
21698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699 *) ac_try_echo=$ac_try;;
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702 (eval "$ac_link") 2>&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21706 { (case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_try") 2>&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; }; then
21715 ac_cv_func_mmap_fixed_mapped=yes
21717 echo "$as_me: program exited with status $ac_status" >&5
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ( exit $ac_status )
21722 ac_cv_func_mmap_fixed_mapped=no
21724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21729 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21730 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21731 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21733 cat >>confdefs.h <<\_ACEOF
21734 #define HAVE_MMAP 1
21738 rm -f conftest.mmap
21740 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21741 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21742 if test "${ac_cv_func_mmap_file+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21746 ac_cpp='$CPP $CPPFLAGS'
21747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21751 if test "$cross_compiling" = yes; then
21752 ac_cv_func_mmap_file=no
21754 cat >conftest.$ac_ext <<_ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21762 #include <sys/types.h>
21763 #include <sys/mman.h>
21771 fd = creat ("foo",0777);
21772 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21774 return (fd != (int) MAP_FAILED);
21779 rm -f conftest$ac_exeext
21780 if { (ac_try="$ac_link"
21781 case "(($ac_try" in
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_link") 2>&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21790 { (case "(($ac_try" in
21791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795 (eval "$ac_try") 2>&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ac_cv_func_mmap_file=yes
21801 echo "$as_me: program exited with status $ac_status" >&5
21802 echo "$as_me: failed program was:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21805 ( exit $ac_status )
21806 ac_cv_func_mmap_file=no
21808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21813 ac_cpp='$CPP $CPPFLAGS'
21814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21820 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21821 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21822 if test "$ac_cv_func_mmap_file" = yes; then
21824 cat >>confdefs.h <<\_ACEOF
21825 #define HAVE_MMAP_FILE
21832 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21833 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21834 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21837 if test "$llvm_cv_os_type" = "Interix" ; then
21838 ac_cv_need_dev_zero_for_mmap=yes
21840 ac_cv_need_dev_zero_for_mmap=no
21844 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21845 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21846 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21848 cat >>confdefs.h <<\_ACEOF
21849 #define NEED_DEV_ZERO_FOR_MMAP 1
21854 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21856 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21857 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21859 if test "$ac_cv_func_mmap_file" = "no"
21861 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21862 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21866 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21867 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21869 ac_cpp='$CXXCPP $CPPFLAGS'
21870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21874 cat >conftest.$ac_ext <<_ACEOF
21877 cat confdefs.h >>conftest.$ac_ext
21878 cat >>conftest.$ac_ext <<_ACEOF
21879 /* end confdefs.h. */
21881 volatile unsigned long val = 1;
21882 __sync_synchronize();
21883 __sync_val_compare_and_swap(&val, 1, 0);
21884 __sync_add_and_fetch(&val, 1);
21885 __sync_sub_and_fetch(&val, 1);
21890 rm -f conftest.$ac_objext conftest$ac_exeext
21891 if { (ac_try="$ac_link"
21892 case "(($ac_try" in
21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897 (eval "$ac_link") 2>conftest.er1
21899 grep -v '^ *+' conftest.er1 >conftest.err
21901 cat conftest.err >&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } &&
21904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21905 { (case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910 (eval "$ac_try") 2>&5
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); }; } &&
21914 { ac_try='test -s conftest$ac_exeext'
21915 { (case "(($ac_try" in
21916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917 *) ac_try_echo=$ac_try;;
21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920 (eval "$ac_try") 2>&5
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); }; }; then
21925 ac_cpp='$CPP $CPPFLAGS'
21926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21930 { echo "$as_me:$LINENO: result: yes" >&5
21931 echo "${ECHO_T}yes" >&6; }
21933 cat >>confdefs.h <<\_ACEOF
21934 #define LLVM_MULTITHREADED 1
21938 echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21941 { echo "$as_me:$LINENO: result: no" >&5
21942 echo "${ECHO_T}no" >&6; }
21944 cat >>confdefs.h <<\_ACEOF
21945 #define LLVM_MULTITHREADED 0
21948 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21949 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21952 rm -f core conftest.err conftest.$ac_objext \
21953 conftest$ac_exeext conftest.$ac_ext
21956 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21957 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21958 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21959 if test "${llvm_cv_linux_mixed+set}" = set; then
21960 echo $ECHO_N "(cached) $ECHO_C" >&6
21963 ac_cpp='$CPP $CPPFLAGS'
21964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21968 cat >conftest.$ac_ext <<_ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h. */
21975 error: Not x86-64 even if uname says so!
21986 rm -f conftest.$ac_objext
21987 if { (ac_try="$ac_compile"
21988 case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_compile") 2>conftest.er1
21995 grep -v '^ *+' conftest.er1 >conftest.err
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } &&
22000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22001 { (case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_try") 2>&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; } &&
22010 { ac_try='test -s conftest.$ac_objext'
22011 { (case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016 (eval "$ac_try") 2>&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
22020 llvm_cv_linux_mixed=no
22022 echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22025 llvm_cv_linux_mixed=yes
22028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 ac_cpp='$CPP $CPPFLAGS'
22031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22037 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22038 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22040 if test "$llvm_cv_linux_mixed" = "yes"; then
22041 llvm_cv_target_arch="x86"
22047 for ac_func in __dso_handle
22049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22053 echo $ECHO_N "(cached) $ECHO_C" >&6
22055 cat >conftest.$ac_ext <<_ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22063 #define $ac_func innocuous_$ac_func
22065 /* System header to define __stub macros and hopefully few prototypes,
22066 which can conflict with char $ac_func (); below.
22067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22068 <limits.h> exists even on freestanding compilers. */
22071 # include <limits.h>
22073 # include <assert.h>
22078 /* Override any GCC internal prototype to avoid an error.
22079 Use char because int might match the return type of a GCC
22080 builtin and then its argument prototype would still apply. */
22085 /* The GNU C library defines this for functions which it implements
22086 to always fail with ENOSYS. Some functions are actually named
22087 something starting with __ and the normal name is an alias. */
22088 #if defined __stub_$ac_func || defined __stub___$ac_func
22095 return $ac_func ();
22100 rm -f conftest.$ac_objext conftest$ac_exeext
22101 if { (ac_try="$ac_link"
22102 case "(($ac_try" in
22103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104 *) ac_try_echo=$ac_try;;
22106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22107 (eval "$ac_link") 2>conftest.er1
22109 grep -v '^ *+' conftest.er1 >conftest.err
22111 cat conftest.err >&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } &&
22114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22115 { (case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120 (eval "$ac_try") 2>&5
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; } &&
22124 { ac_try='test -s conftest$ac_exeext'
22125 { (case "(($ac_try" in
22126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127 *) ac_try_echo=$ac_try;;
22129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22130 (eval "$ac_try") 2>&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }; }; then
22134 eval "$as_ac_var=yes"
22136 echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22139 eval "$as_ac_var=no"
22142 rm -f core conftest.err conftest.$ac_objext \
22143 conftest$ac_exeext conftest.$ac_ext
22145 ac_res=`eval echo '${'$as_ac_var'}'`
22146 { echo "$as_me:$LINENO: result: $ac_res" >&5
22147 echo "${ECHO_T}$ac_res" >&6; }
22148 if test `eval echo '${'$as_ac_var'}'` = yes; then
22149 cat >>confdefs.h <<_ACEOF
22150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22157 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22158 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22159 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22160 echo $ECHO_N "(cached) $ECHO_C" >&6
22162 llvm_cv_llvmgcc_dragonegg="no"
22163 if test -n "$LLVMGCC" ; then
22164 cp /dev/null conftest.c
22165 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22166 if test $? -eq 0 ; then
22167 llvm_cv_llvmgcc_dragonegg="yes"
22172 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22173 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22175 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22176 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22177 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
22179 LLVMCC_EMITIR_FLAG="-emit-llvm"
22180 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22185 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22186 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22187 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22188 echo $ECHO_N "(cached) $ECHO_C" >&6
22190 llvm_cv_llvmgcc_sanity="no"
22191 if test -n "$LLVMGCC" ; then
22192 cp /dev/null conftest.c
22193 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22194 grep 'target datalayout =' > /dev/null 2>&1
22195 if test $? -eq 0 ; then
22196 llvm_cv_llvmgcc_sanity="yes"
22201 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22202 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22204 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22205 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22206 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22207 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22208 LLVMCC1=$llvmcc1path
22210 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22211 LLVMCC1PLUS=$llvmcc1pluspath
22213 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22214 LLVMGCCDIR=$llvmgccdir
22216 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22217 LLVMGCC_LANGS=$llvmgcclangs
22219 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22222 { echo "$as_me:$LINENO: result: ok" >&5
22223 echo "${ECHO_T}ok" >&6; }
22226 SHLIBEXT=$libltdl_cv_shlibext
22229 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22232 # Translate the various configuration directories and other basic
22233 # information into substitutions that will end up in Makefile.config.in
22234 # that these configured values can be used by the makefiles
22235 if test "${prefix}" = "NONE" ; then
22236 prefix="/usr/local"
22238 eval LLVM_PREFIX="${prefix}";
22239 eval LLVM_BINDIR="${prefix}/bin";
22240 eval LLVM_LIBDIR="${prefix}/lib";
22241 eval LLVM_DATADIR="${prefix}/share/llvm";
22242 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22243 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22244 eval LLVM_INCLUDEDIR="${prefix}/include";
22245 eval LLVM_INFODIR="${prefix}/info";
22246 eval LLVM_MANDIR="${prefix}/man";
22247 LLVM_CONFIGTIME=`date`
22259 # Place the various directores into the config.h file as #defines so that we
22260 # can know about the installation paths within LLVM.
22262 cat >>confdefs.h <<_ACEOF
22263 #define LLVM_PREFIX "$LLVM_PREFIX"
22267 cat >>confdefs.h <<_ACEOF
22268 #define LLVM_BINDIR "$LLVM_BINDIR"
22272 cat >>confdefs.h <<_ACEOF
22273 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22277 cat >>confdefs.h <<_ACEOF
22278 #define LLVM_DATADIR "$LLVM_DATADIR"
22282 cat >>confdefs.h <<_ACEOF
22283 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22287 cat >>confdefs.h <<_ACEOF
22288 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22292 cat >>confdefs.h <<_ACEOF
22293 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22297 cat >>confdefs.h <<_ACEOF
22298 #define LLVM_INFODIR "$LLVM_INFODIR"
22302 cat >>confdefs.h <<_ACEOF
22303 #define LLVM_MANDIR "$LLVM_MANDIR"
22307 cat >>confdefs.h <<_ACEOF
22308 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22312 cat >>confdefs.h <<_ACEOF
22313 #define LLVM_HOSTTRIPLE "$host"
22317 # Determine which bindings to build.
22318 if test "$BINDINGS_TO_BUILD" = auto ; then
22319 BINDINGS_TO_BUILD=""
22320 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22321 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22324 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22327 # This isn't really configurey, but it avoids having to repeat the list in
22332 # Do any work necessary to ensure that bindings have what they need.
22333 binding_prereqs_failed=0
22334 for a_binding in $BINDINGS_TO_BUILD ; do
22335 case "$a_binding" in
22337 if test "x$OCAMLC" = x ; then
22338 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22339 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22340 binding_prereqs_failed=1
22342 if test "x$OCAMLDEP" = x ; then
22343 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22344 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22345 binding_prereqs_failed=1
22347 if test "x$OCAMLOPT" = x ; then
22348 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22349 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22351 if test "x$with_ocaml_libdir" != xauto ; then
22352 OCAML_LIBDIR=$with_ocaml_libdir
22355 ocaml_stdlib="`"$OCAMLC" -where`"
22356 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22358 # ocaml stdlib is beneath our prefix; use stdlib
22359 OCAML_LIBDIR=$ocaml_stdlib
22362 # ocaml stdlib is outside our prefix; use libdir/ocaml
22363 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22370 if test "$binding_prereqs_failed" = 1 ; then
22371 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22372 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22373 { (exit 1); exit 1; }; }
22376 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22377 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22378 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22379 echo $ECHO_N "(cached) $ECHO_C" >&6
22382 ac_cpp='$CXXCPP $CPPFLAGS'
22383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22387 oldcxxflags="$CXXFLAGS"
22388 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22389 cat >conftest.$ac_ext <<_ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h. */
22404 rm -f conftest.$ac_objext
22405 if { (ac_try="$ac_compile"
22406 case "(($ac_try" in
22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408 *) ac_try_echo=$ac_try;;
22410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411 (eval "$ac_compile") 2>conftest.er1
22413 grep -v '^ *+' conftest.er1 >conftest.err
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } &&
22418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22419 { (case "(($ac_try" in
22420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421 *) ac_try_echo=$ac_try;;
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424 (eval "$ac_try") 2>&5
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; } &&
22428 { ac_try='test -s conftest.$ac_objext'
22429 { (case "(($ac_try" in
22430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22431 *) ac_try_echo=$ac_try;;
22433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22434 (eval "$ac_try") 2>&5
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); }; }; then
22438 llvm_cv_cxx_visibility_inlines_hidden=yes
22440 echo "$as_me: failed program was:" >&5
22441 sed 's/^/| /' conftest.$ac_ext >&5
22443 llvm_cv_cxx_visibility_inlines_hidden=no
22446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22447 CXXFLAGS="$oldcxxflags"
22449 ac_cpp='$CPP $CPPFLAGS'
22450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22456 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22457 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22458 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22459 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22462 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22467 if test "$llvm_cv_link_use_r" = "yes" ; then
22474 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22475 RDYNAMIC="-Wl,-export-dynamic"
22482 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22489 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22491 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22493 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22495 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22497 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22500 ac_config_files="$ac_config_files Makefile.config"
22503 ac_config_files="$ac_config_files llvm.spec"
22506 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22509 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22512 ac_config_commands="$ac_config_commands setup"
22514 ac_config_commands="$ac_config_commands Makefile"
22517 ac_config_commands="$ac_config_commands Makefile.common"
22520 ac_config_commands="$ac_config_commands examples/Makefile"
22523 ac_config_commands="$ac_config_commands lib/Makefile"
22526 ac_config_commands="$ac_config_commands runtime/Makefile"
22529 ac_config_commands="$ac_config_commands test/Makefile"
22532 ac_config_commands="$ac_config_commands test/Makefile.tests"
22535 ac_config_commands="$ac_config_commands unittests/Makefile"
22538 ac_config_commands="$ac_config_commands tools/Makefile"
22541 ac_config_commands="$ac_config_commands utils/Makefile"
22544 ac_config_commands="$ac_config_commands projects/Makefile"
22547 ac_config_commands="$ac_config_commands bindings/Makefile"
22550 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22554 cat >confcache <<\_ACEOF
22555 # This file is a shell script that caches the results of configure
22556 # tests run on this system so they can be shared between configure
22557 # scripts and configure runs, see configure's option --config-cache.
22558 # It is not useful on other systems. If it contains results you don't
22559 # want to keep, you may remove or edit it.
22561 # config.status only pays attention to the cache file if you give it
22562 # the --recheck option to rerun configure.
22564 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22565 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22566 # following values.
22570 # The following way of writing the cache mishandles newlines in values,
22571 # but we know of no workaround that is simple, portable, and efficient.
22572 # So, we kill variables containing newlines.
22573 # Ultrix sh set writes to stderr and can't be redirected directly,
22574 # and sets the high bit in the cache file unless we assign to the vars.
22576 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22577 eval ac_val=\$$ac_var
22581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22582 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22585 _ | IFS | as_nl) ;; #(
22586 *) $as_unset $ac_var ;;
22592 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22593 *${as_nl}ac_space=\ *)
22594 # `set' does not quote correctly, so add quotes (double-quote
22595 # substitution turns \\\\ into \\, and sed turns \\ into \).
22598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22601 # `set' quotes correctly as required by POSIX, so do not add quotes.
22602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22611 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22613 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22615 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22616 if test -w "$cache_file"; then
22617 test "x$cache_file" != "x/dev/null" &&
22618 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22619 echo "$as_me: updating cache $cache_file" >&6;}
22620 cat confcache >$cache_file
22622 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22623 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22629 # Let make expand exec_prefix.
22630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22632 DEFS=-DHAVE_CONFIG_H
22636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22637 # 1. Remove the extension, and $U if already installed.
22638 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22639 ac_i=`echo "$ac_i" | sed "$ac_script"`
22640 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22641 # will be set to the directory where LIBOBJS objects are built.
22642 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22643 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22645 LIBOBJS=$ac_libobjs
22647 LTLIBOBJS=$ac_ltlibobjs
22650 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22651 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22652 Usually this means the macro was only invoked conditionally." >&5
22653 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22654 Usually this means the macro was only invoked conditionally." >&2;}
22655 { (exit 1); exit 1; }; }
22657 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22658 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22659 Usually this means the macro was only invoked conditionally." >&5
22660 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22661 Usually this means the macro was only invoked conditionally." >&2;}
22662 { (exit 1); exit 1; }; }
22665 : ${CONFIG_STATUS=./config.status}
22666 ac_clean_files_save=$ac_clean_files
22667 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22668 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22669 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22670 cat >$CONFIG_STATUS <<_ACEOF
22672 # Generated by $as_me.
22673 # Run this file to recreate the current configuration.
22674 # Compiler output produced by configure, useful for debugging
22675 # configure, is in config.log if it exists.
22678 ac_cs_recheck=false
22680 SHELL=\${CONFIG_SHELL-$SHELL}
22683 cat >>$CONFIG_STATUS <<\_ACEOF
22684 ## --------------------- ##
22685 ## M4sh Initialization. ##
22686 ## --------------------- ##
22688 # Be Bourne compatible
22689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22692 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22693 # is contrary to our usage. Disable this feature.
22694 alias -g '${1+"$@"}'='"$@"'
22695 setopt NO_GLOB_SUBST
22697 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22699 BIN_SH=xpg4; export BIN_SH # for Tru64
22700 DUALCASE=1; export DUALCASE # for MKS sh
22704 # Avoid depending upon Character Ranges.
22705 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22706 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22707 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22708 as_cr_digits='0123456789'
22709 as_cr_alnum=$as_cr_Letters$as_cr_digits
22711 # The user is always right.
22712 if test "${PATH_SEPARATOR+set}" != set; then
22713 echo "#! /bin/sh" >conf$$.sh
22714 echo "exit 0" >>conf$$.sh
22716 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22724 # Support unset when possible.
22725 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22733 # We need space, tab and new line, in precisely that order. Quoting is
22734 # there to prevent editors from complaining about space-tab.
22735 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22736 # splitting by setting IFS to empty value.)
22741 # Find who we are. Look in the path if we contain no directory separator.
22743 *[\\/]* ) as_myself=$0 ;;
22744 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22745 for as_dir in $PATH
22748 test -z "$as_dir" && as_dir=.
22749 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22755 # We did not find ourselves, most probably we were run as `sh COMMAND'
22756 # in which case we are not to be found in the path.
22757 if test "x$as_myself" = x; then
22760 if test ! -f "$as_myself"; then
22761 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22762 { (exit 1); exit 1; }
22765 # Work around bugs in pre-3.0 UWIN ksh.
22766 for as_var in ENV MAIL MAILPATH
22767 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22775 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22776 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22777 LC_TELEPHONE LC_TIME
22779 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22780 eval $as_var=C; export $as_var
22782 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22786 # Required to use basename.
22787 if expr a : '\(a\)' >/dev/null 2>&1 &&
22788 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22794 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22795 as_basename=basename
22801 # Name of the executable.
22802 as_me=`$as_basename -- "$0" ||
22803 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22804 X"$0" : 'X\(//\)$' \| \
22805 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22807 sed '/^.*\/\([^/][^/]*\)\/*$/{
22826 as_lineno_1=$LINENO
22827 as_lineno_2=$LINENO
22828 test "x$as_lineno_1" != "x$as_lineno_2" &&
22829 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22831 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22832 # uniformly replaced by the line number. The first 'sed' inserts a
22833 # line-number line after each line using $LINENO; the second 'sed'
22834 # does the real work. The second script uses 'N' to pair each
22835 # line-number line with the line containing $LINENO, and appends
22836 # trailing '-' during substitution so that $LINENO is not a special
22837 # case at line end.
22838 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22839 # scripts with optimization help from Paolo Bonzini. Blame Lee
22840 # E. McMahon (1931-1989) for sed's syntax. :-)
22852 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22855 ' >$as_me.lineno &&
22856 chmod +x "$as_me.lineno" ||
22857 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22858 { (exit 1); exit 1; }; }
22860 # Don't try to exec as it changes $[0], causing all sort of problems
22861 # (the dirname of $[0] is not the place where we might find the
22862 # original and so on. Autoconf is especially sensitive to this).
22863 . "./$as_me.lineno"
22864 # Exit status is that of the last command.
22869 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22875 ECHO_C= ECHO_N= ECHO_T=
22876 case `echo -n x` in
22878 case `echo 'x\c'` in
22879 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22886 if expr a : '\(a\)' >/dev/null 2>&1 &&
22887 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22893 rm -f conf$$ conf$$.exe conf$$.file
22894 if test -d conf$$.dir; then
22895 rm -f conf$$.dir/conf$$.file
22901 if ln -s conf$$.file conf$$ 2>/dev/null; then
22903 # ... but there are two gotchas:
22904 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22905 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22906 # In both cases, we have to default to `cp -p'.
22907 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22909 elif ln conf$$.file conf$$ 2>/dev/null; then
22914 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22915 rmdir conf$$.dir 2>/dev/null
22917 if mkdir -p . 2>/dev/null; then
22920 test -d ./-p && rmdir ./-p
22924 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22925 # systems may use methods other than mode bits to determine executability.
22926 cat >conf$$.file <<_ASEOF
22930 chmod +x conf$$.file
22931 if test -x conf$$.file >/dev/null 2>&1; then
22932 as_executable_p="test -x"
22938 # Sed expression to map a string onto a valid CPP name.
22939 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22941 # Sed expression to map a string onto a valid variable name.
22942 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22947 # Save the log message, to keep $[0] and so on meaningful, and to
22948 # report actual input values of CONFIG_FILES etc. instead of their
22949 # values after options handling.
22951 This file was extended by llvm $as_me 3.0svn, which was
22952 generated by GNU Autoconf 2.60. Invocation command line was
22954 CONFIG_FILES = $CONFIG_FILES
22955 CONFIG_HEADERS = $CONFIG_HEADERS
22956 CONFIG_LINKS = $CONFIG_LINKS
22957 CONFIG_COMMANDS = $CONFIG_COMMANDS
22960 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22965 cat >>$CONFIG_STATUS <<_ACEOF
22966 # Files that config.status was made for.
22967 config_files="$ac_config_files"
22968 config_headers="$ac_config_headers"
22969 config_commands="$ac_config_commands"
22973 cat >>$CONFIG_STATUS <<\_ACEOF
22975 \`$as_me' instantiates files from templates according to the
22976 current configuration.
22978 Usage: $0 [OPTIONS] [FILE]...
22980 -h, --help print this help, then exit
22981 -V, --version print version number, then exit
22982 -q, --quiet do not print progress messages
22983 -d, --debug don't remove temporary files
22984 --recheck update $as_me by reconfiguring in the same conditions
22985 --file=FILE[:TEMPLATE]
22986 instantiate the configuration file FILE
22987 --header=FILE[:TEMPLATE]
22988 instantiate the configuration header FILE
22990 Configuration files:
22993 Configuration headers:
22996 Configuration commands:
22999 Report bugs to <bug-autoconf@gnu.org>."
23002 cat >>$CONFIG_STATUS <<_ACEOF
23004 llvm config.status 3.0svn
23005 configured by $0, generated by GNU Autoconf 2.60,
23006 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23008 Copyright (C) 2006 Free Software Foundation, Inc.
23009 This config.status script is free software; the Free Software Foundation
23010 gives unlimited permission to copy, distribute and modify it."
23017 cat >>$CONFIG_STATUS <<\_ACEOF
23018 # If no file are specified by the user, then we need to provide default
23019 # value. By we need to know if files were specified by the user.
23025 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23026 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23037 # Handling of the options.
23038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23040 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23041 echo "$ac_cs_version"; exit ;;
23042 --debug | --debu | --deb | --de | --d | -d )
23044 --file | --fil | --fi | --f )
23046 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23047 ac_need_defaults=false;;
23048 --header | --heade | --head | --hea )
23050 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23051 ac_need_defaults=false;;
23053 # Conflict between --help and --header
23054 { echo "$as_me: error: ambiguous option: $1
23055 Try \`$0 --help' for more information." >&2
23056 { (exit 1); exit 1; }; };;
23057 --help | --hel | -h )
23058 echo "$ac_cs_usage"; exit ;;
23059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23060 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23063 # This is an error.
23064 -*) { echo "$as_me: error: unrecognized option: $1
23065 Try \`$0 --help' for more information." >&2
23066 { (exit 1); exit 1; }; } ;;
23068 *) ac_config_targets="$ac_config_targets $1"
23069 ac_need_defaults=false ;;
23075 ac_configure_extra_args=
23077 if $ac_cs_silent; then
23079 ac_configure_extra_args="$ac_configure_extra_args --silent"
23083 cat >>$CONFIG_STATUS <<_ACEOF
23084 if \$ac_cs_recheck; then
23085 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23086 CONFIG_SHELL=$SHELL
23087 export CONFIG_SHELL
23088 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23092 cat >>$CONFIG_STATUS <<\_ACEOF
23096 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23097 ## Running $as_me. ##
23103 cat >>$CONFIG_STATUS <<_ACEOF
23107 llvm_src="${srcdir}"
23111 cat >>$CONFIG_STATUS <<\_ACEOF
23113 # Handling of arguments.
23114 for ac_config_target in $ac_config_targets
23116 case $ac_config_target in
23117 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23118 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23119 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23120 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23121 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23122 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23123 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23124 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23125 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23126 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23127 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23128 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23129 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23130 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23131 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23132 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23133 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23134 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23135 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23136 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23137 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23138 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23139 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23140 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23141 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23143 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23144 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23145 { (exit 1); exit 1; }; };;
23150 # If the user did not use the arguments to specify the items to instantiate,
23151 # then the envvar interface is used. Set only those that are not.
23152 # We use the long form for the default assignment because of an extremely
23153 # bizarre bug on SunOS 4.1.3.
23154 if $ac_need_defaults; then
23155 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23156 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23157 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23160 # Have a temporary directory for convenience. Make it in the build tree
23161 # simply because there is no reason against having it here, and in addition,
23162 # creating and moving files from /tmp can sometimes cause problems.
23163 # Hook for its removal unless debugging.
23164 # Note that there is a small window in which the directory will not be cleaned:
23165 # after its creation but before its name has been assigned to `$tmp'.
23169 trap 'exit_status=$?
23170 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23172 trap '{ (exit 1); exit 1; }' 1 2 13 15
23174 # Create a (secure) tmp directory for tmp files.
23177 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23178 test -n "$tmp" && test -d "$tmp"
23181 tmp=./conf$$-$RANDOM
23182 (umask 077 && mkdir "$tmp")
23185 echo "$me: cannot create a temporary directory in ." >&2
23186 { (exit 1); exit 1; }
23190 # Set up the sed scripts for CONFIG_FILES section.
23193 # No need to generate the scripts if there are no CONFIG_FILES.
23194 # This happens for instance when ./config.status config.h
23195 if test -n "$CONFIG_FILES"; then
23202 for ac_last_try in false false false false false :; do
23203 cat >conf$$subs.sed <<_ACEOF
23204 SHELL!$SHELL$ac_delim
23205 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23206 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23207 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23208 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23209 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23210 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23211 exec_prefix!$exec_prefix$ac_delim
23212 prefix!$prefix$ac_delim
23213 program_transform_name!$program_transform_name$ac_delim
23214 bindir!$bindir$ac_delim
23215 sbindir!$sbindir$ac_delim
23216 libexecdir!$libexecdir$ac_delim
23217 datarootdir!$datarootdir$ac_delim
23218 datadir!$datadir$ac_delim
23219 sysconfdir!$sysconfdir$ac_delim
23220 sharedstatedir!$sharedstatedir$ac_delim
23221 localstatedir!$localstatedir$ac_delim
23222 includedir!$includedir$ac_delim
23223 oldincludedir!$oldincludedir$ac_delim
23224 docdir!$docdir$ac_delim
23225 infodir!$infodir$ac_delim
23226 htmldir!$htmldir$ac_delim
23227 dvidir!$dvidir$ac_delim
23228 pdfdir!$pdfdir$ac_delim
23229 psdir!$psdir$ac_delim
23230 libdir!$libdir$ac_delim
23231 localedir!$localedir$ac_delim
23232 mandir!$mandir$ac_delim
23233 DEFS!$DEFS$ac_delim
23234 ECHO_C!$ECHO_C$ac_delim
23235 ECHO_N!$ECHO_N$ac_delim
23236 ECHO_T!$ECHO_T$ac_delim
23237 LIBS!$LIBS$ac_delim
23238 build_alias!$build_alias$ac_delim
23239 host_alias!$host_alias$ac_delim
23240 target_alias!$target_alias$ac_delim
23241 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23242 subdirs!$subdirs$ac_delim
23243 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23244 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23245 build!$build$ac_delim
23246 build_cpu!$build_cpu$ac_delim
23247 build_vendor!$build_vendor$ac_delim
23248 build_os!$build_os$ac_delim
23249 host!$host$ac_delim
23250 host_cpu!$host_cpu$ac_delim
23251 host_vendor!$host_vendor$ac_delim
23252 host_os!$host_os$ac_delim
23253 target!$target$ac_delim
23254 target_cpu!$target_cpu$ac_delim
23255 target_vendor!$target_vendor$ac_delim
23256 target_os!$target_os$ac_delim
23258 HOST_OS!$HOST_OS$ac_delim
23259 TARGET_OS!$TARGET_OS$ac_delim
23260 LINKALL!$LINKALL$ac_delim
23261 NOLINKALL!$NOLINKALL$ac_delim
23262 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23263 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23264 ARCH!$ARCH$ac_delim
23265 ENDIAN!$ENDIAN$ac_delim
23267 CFLAGS!$CFLAGS$ac_delim
23268 LDFLAGS!$LDFLAGS$ac_delim
23269 CPPFLAGS!$CPPFLAGS$ac_delim
23270 ac_ct_CC!$ac_ct_CC$ac_delim
23271 EXEEXT!$EXEEXT$ac_delim
23272 OBJEXT!$OBJEXT$ac_delim
23274 GREP!$GREP$ac_delim
23275 EGREP!$EGREP$ac_delim
23276 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23277 BUILD_CC!$BUILD_CC$ac_delim
23278 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23279 BUILD_CXX!$BUILD_CXX$ac_delim
23280 CVSBUILD!$CVSBUILD$ac_delim
23281 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23282 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23283 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23284 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23285 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23286 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23287 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23289 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23290 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23291 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23292 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23293 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23294 ENABLE_PIC!$ENABLE_PIC$ac_delim
23295 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23296 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23297 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23298 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23299 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23300 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23303 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23305 elif $ac_last_try; then
23306 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23307 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23308 { (exit 1); exit 1; }; }
23310 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23314 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23315 if test -n "$ac_eof"; then
23316 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23317 ac_eof=`expr $ac_eof + 1`
23320 cat >>$CONFIG_STATUS <<_ACEOF
23321 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23325 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23326 s/^/s,@/; s/!/@,|#_!!_#|/
23329 s/'"$ac_delim"'$/,g/; t
23331 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23332 ' >>$CONFIG_STATUS <conf$$subs.sed
23333 rm -f conf$$subs.sed
23334 cat >>$CONFIG_STATUS <<_ACEOF
23340 for ac_last_try in false false false false false :; do
23341 cat >conf$$subs.sed <<_ACEOF
23342 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23343 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23344 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23345 CLANGPATH!$CLANGPATH$ac_delim
23346 CLANGXXPATH!$CLANGXXPATH$ac_delim
23347 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23348 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23349 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23350 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23352 CXXFLAGS!$CXXFLAGS$ac_delim
23353 ac_ct_CXX!$ac_ct_CXX$ac_delim
23355 ifGNUmake!$ifGNUmake$ac_delim
23356 LN_S!$LN_S$ac_delim
23359 DATE!$DATE$ac_delim
23360 FIND!$FIND$ac_delim
23361 MKDIR!$MKDIR$ac_delim
23363 RANLIB!$RANLIB$ac_delim
23368 BINPWD!$BINPWD$ac_delim
23369 GRAPHVIZ!$GRAPHVIZ$ac_delim
23372 NEATO!$NEATO$ac_delim
23373 TWOPI!$TWOPI$ac_delim
23374 CIRCO!$CIRCO$ac_delim
23376 DOTTY!$DOTTY$ac_delim
23377 XDOT_PY!$XDOT_PY$ac_delim
23378 PERL!$PERL$ac_delim
23379 HAVE_PERL!$HAVE_PERL$ac_delim
23380 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23381 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23382 INSTALL_DATA!$INSTALL_DATA$ac_delim
23383 BZIP2!$BZIP2$ac_delim
23385 DOXYGEN!$DOXYGEN$ac_delim
23386 GROFF!$GROFF$ac_delim
23387 GZIPBIN!$GZIPBIN$ac_delim
23388 POD2HTML!$POD2HTML$ac_delim
23389 POD2MAN!$POD2MAN$ac_delim
23390 PDFROFF!$PDFROFF$ac_delim
23391 RUNTEST!$RUNTEST$ac_delim
23392 TCLSH!$TCLSH$ac_delim
23394 OCAMLC!$OCAMLC$ac_delim
23395 OCAMLOPT!$OCAMLOPT$ac_delim
23396 OCAMLDEP!$OCAMLDEP$ac_delim
23397 OCAMLDOC!$OCAMLDOC$ac_delim
23399 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23400 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23401 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23402 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23403 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23404 LIBADD_DL!$LIBADD_DL$ac_delim
23405 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23406 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23407 LLVMGCC!$LLVMGCC$ac_delim
23408 LLVMGXX!$LLVMGXX$ac_delim
23409 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23410 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23411 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23412 USE_UDIS86!$USE_UDIS86$ac_delim
23413 USE_OPROFILE!$USE_OPROFILE$ac_delim
23414 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23415 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23416 MMAP_FILE!$MMAP_FILE$ac_delim
23417 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23418 LLVMCC1!$LLVMCC1$ac_delim
23419 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23420 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23421 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23422 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23423 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23424 SHLIBEXT!$SHLIBEXT$ac_delim
23425 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23426 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23427 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23428 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23429 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23430 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23431 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23432 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23433 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23434 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23435 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23436 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23437 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23438 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23441 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23443 elif $ac_last_try; then
23444 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23445 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23446 { (exit 1); exit 1; }; }
23448 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23452 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23453 if test -n "$ac_eof"; then
23454 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23455 ac_eof=`expr $ac_eof + 1`
23458 cat >>$CONFIG_STATUS <<_ACEOF
23459 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23463 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23464 s/^/s,@/; s/!/@,|#_!!_#|/
23467 s/'"$ac_delim"'$/,g/; t
23469 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23470 ' >>$CONFIG_STATUS <conf$$subs.sed
23471 rm -f conf$$subs.sed
23472 cat >>$CONFIG_STATUS <<_ACEOF
23478 for ac_last_try in false false false false false :; do
23479 cat >conf$$subs.sed <<_ACEOF
23480 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23481 RPATH!$RPATH$ac_delim
23482 RDYNAMIC!$RDYNAMIC$ac_delim
23483 LIBOBJS!$LIBOBJS$ac_delim
23484 LTLIBOBJS!$LTLIBOBJS$ac_delim
23487 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23489 elif $ac_last_try; then
23490 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23491 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23492 { (exit 1); exit 1; }; }
23494 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23498 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23499 if test -n "$ac_eof"; then
23500 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23501 ac_eof=`expr $ac_eof + 1`
23504 cat >>$CONFIG_STATUS <<_ACEOF
23505 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23509 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23510 s/^/s,@/; s/!/@,|#_!!_#|/
23513 s/'"$ac_delim"'$/,g/; t
23515 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23516 ' >>$CONFIG_STATUS <conf$$subs.sed
23517 rm -f conf$$subs.sed
23518 cat >>$CONFIG_STATUS <<_ACEOF
23525 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23526 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23527 # trailing colons and then remove the whole line if VPATH becomes empty
23528 # (actually we leave an empty line to preserve line numbers).
23529 if test "x$srcdir" = x.; then
23530 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23531 s/:*\$(srcdir):*/:/
23532 s/:*\${srcdir}:*/:/
23534 s/^\([^=]*=[ ]*\):*/\1/
23540 cat >>$CONFIG_STATUS <<\_ACEOF
23541 fi # test -n "$CONFIG_FILES"
23544 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23547 :[FHLC]) ac_mode=$ac_tag; continue;;
23549 case $ac_mode$ac_tag in
23551 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23552 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23553 { (exit 1); exit 1; }; };;
23554 :[FH]-) ac_tag=-:-;;
23555 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23572 -) ac_f="$tmp/stdin";;
23573 *) # Look for the file first in the build tree, then in the source tree
23574 # (if the path is not absolute). The absolute path cannot be DOS-style,
23575 # because $ac_f cannot contain `:'.
23579 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23581 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23582 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23583 { (exit 1); exit 1; }; };;
23585 ac_file_inputs="$ac_file_inputs $ac_f"
23588 # Let's still pretend it is `configure' which instantiates (i.e., don't
23589 # use $as_me), people would be surprised to read:
23590 # /* config.h. Generated by config.status. */
23591 configure_input="Generated from "`IFS=:
23592 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23593 if test x"$ac_file" != x-; then
23594 configure_input="$ac_file. $configure_input"
23595 { echo "$as_me:$LINENO: creating $ac_file" >&5
23596 echo "$as_me: creating $ac_file" >&6;}
23600 *:-:* | *:-) cat >"$tmp/stdin";;
23605 ac_dir=`$as_dirname -- "$ac_file" ||
23606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23607 X"$ac_file" : 'X\(//\)[^/]' \| \
23608 X"$ac_file" : 'X\(//\)$' \| \
23609 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23615 /^X\(\/\/\)[^/].*/{
23630 -*) as_dir=./$as_dir;;
23632 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23636 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23637 *) as_qdir=$as_dir;;
23639 as_dirs="'$as_qdir' $as_dirs"
23640 as_dir=`$as_dirname -- "$as_dir" ||
23641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23642 X"$as_dir" : 'X\(//\)[^/]' \| \
23643 X"$as_dir" : 'X\(//\)$' \| \
23644 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23650 /^X\(\/\/\)[^/].*/{
23663 test -d "$as_dir" && break
23665 test -z "$as_dirs" || eval "mkdir $as_dirs"
23666 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23667 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23668 { (exit 1); exit 1; }; }; }
23672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23674 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23675 # A ".." for each directory in $ac_dir_suffix.
23676 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23677 case $ac_top_builddir_sub in
23678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23682 ac_abs_top_builddir=$ac_pwd
23683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23684 # for backward compatibility:
23685 ac_top_builddir=$ac_top_build_prefix
23688 .) # We are building in place.
23690 ac_top_srcdir=$ac_top_builddir_sub
23691 ac_abs_top_srcdir=$ac_pwd ;;
23692 [\\/]* | ?:[\\/]* ) # Absolute name.
23693 ac_srcdir=$srcdir$ac_dir_suffix;
23694 ac_top_srcdir=$srcdir
23695 ac_abs_top_srcdir=$srcdir ;;
23696 *) # Relative name.
23697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23698 ac_top_srcdir=$ac_top_build_prefix$srcdir
23699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23711 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23712 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23716 cat >>$CONFIG_STATUS <<\_ACEOF
23717 # If the template does not know about datarootdir, expand it.
23718 # FIXME: This hack should be removed a few years after 2.60.
23719 ac_datarootdir_hack=; ac_datarootdir_seen=
23721 case `sed -n '/datarootdir/ {
23730 ' $ac_file_inputs` in
23731 *datarootdir*) ac_datarootdir_seen=yes;;
23732 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23733 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23734 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23736 cat >>$CONFIG_STATUS <<_ACEOF
23737 ac_datarootdir_hack='
23738 s&@datadir@&$datadir&g
23739 s&@docdir@&$docdir&g
23740 s&@infodir@&$infodir&g
23741 s&@localedir@&$localedir&g
23742 s&@mandir@&$mandir&g
23743 s&\\\${datarootdir}&$datarootdir&g' ;;
23747 # Neutralize VPATH when `$srcdir' = `.'.
23748 # Shell code in configure.ac might set extrasub.
23749 # FIXME: do we really want to maintain this feature?
23750 cat >>$CONFIG_STATUS <<_ACEOF
23754 cat >>$CONFIG_STATUS <<\_ACEOF
23756 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23757 s&@configure_input@&$configure_input&;t t
23758 s&@top_builddir@&$ac_top_builddir_sub&;t t
23759 s&@srcdir@&$ac_srcdir&;t t
23760 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23761 s&@top_srcdir@&$ac_top_srcdir&;t t
23762 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23763 s&@builddir@&$ac_builddir&;t t
23764 s&@abs_builddir@&$ac_abs_builddir&;t t
23765 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23766 s&@INSTALL@&$ac_INSTALL&;t t
23767 $ac_datarootdir_hack
23768 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23770 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23771 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23772 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23773 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23774 which seems to be undefined. Please make sure it is defined." >&5
23775 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23776 which seems to be undefined. Please make sure it is defined." >&2;}
23780 -) cat "$tmp/out"; rm -f "$tmp/out";;
23781 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23790 # Transform confdefs.h into a sed script `conftest.defines', that
23791 # substitutes the proper values into config.h.in to produce config.h.
23792 rm -f conftest.defines conftest.tail
23793 # First, append a space to every undef/define line, to ease matching.
23794 echo 's/$/ /' >conftest.defines
23795 # Then, protect against being on the right side of a sed subst, or in
23796 # an unquoted here document, in config.status. If some macros were
23797 # called several times there might be several #defines for the same
23798 # symbol, which is useless. But do not sort them, since the last
23799 # AC_DEFINE must be honored.
23800 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23801 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23802 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23803 # PARAMS is the parameter list in the macro definition--in most cases, it's
23804 # just an empty string.
23805 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23806 ac_dB='\\)[ (].*,\\1define\\2'
23814 s/^[ ]*#[ ]*define[ ][ ]*//
23819 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23820 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23821 ' >>conftest.defines
23823 # Remove the space that was appended to ease matching.
23824 # Then replace #undef with comments. This is necessary, for
23825 # example, in the case of _POSIX_SOURCE, which is predefined and required
23826 # on some systems where configure will not decide to define it.
23827 # (The regexp can be short, since the line contains either #define or #undef.)
23829 s,^[ #]*u.*,/* & */,' >>conftest.defines
23831 # Break up conftest.defines:
23832 ac_max_sed_lines=50
23834 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23835 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23836 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23838 ac_in='$ac_file_inputs'
23839 ac_out='"$tmp/out1"'
23840 ac_nxt='"$tmp/out2"'
23844 # Write a here document:
23845 cat >>$CONFIG_STATUS <<_ACEOF
23846 # First, check the format of the line:
23847 cat >"\$tmp/defines.sed" <<\\CEOF
23848 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23849 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23853 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23855 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23856 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23857 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23858 grep . conftest.tail >/dev/null || break
23859 rm -f conftest.defines
23860 mv conftest.tail conftest.defines
23862 rm -f conftest.defines conftest.tail
23864 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23865 cat >>$CONFIG_STATUS <<\_ACEOF
23866 if test x"$ac_file" != x-; then
23867 echo "/* $configure_input */" >"$tmp/config.h"
23868 cat "$ac_result" >>"$tmp/config.h"
23869 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23870 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23871 echo "$as_me: $ac_file is unchanged" >&6;}
23874 mv "$tmp/config.h" $ac_file
23877 echo "/* $configure_input */"
23883 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23884 echo "$as_me: executing $ac_file commands" >&6;}
23889 case $ac_file$ac_mode in
23890 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23891 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23892 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23893 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23894 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23895 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23896 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23897 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23898 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23899 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23900 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23901 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23902 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23903 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23904 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23905 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23906 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23907 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23908 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23909 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23910 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23911 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23912 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23913 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23914 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23915 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23921 { (exit 0); exit 0; }
23923 chmod +x $CONFIG_STATUS
23924 ac_clean_files=$ac_clean_files_save
23927 # configure is writing to config.log, and then calls config.status.
23928 # config.status does its own redirection, appending to config.log.
23929 # Unfortunately, on DOS this fails, as config.log is still kept open
23930 # by configure, so config.status won't be able to write to it; its
23931 # output is simply discarded. So we exec the FD to /dev/null,
23932 # effectively closing config.log, so it can be properly (re)opened and
23933 # appended to by config.status. When coming back to configure, we
23934 # need to make the FD available again.
23935 if test "$no_create" != yes; then
23937 ac_config_status_args=
23938 test "$silent" = yes &&
23939 ac_config_status_args="$ac_config_status_args --quiet"
23941 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23943 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23944 # would make configure fail if this is the last instruction.
23945 $ac_cs_success || { (exit 1); exit 1; }
23949 # CONFIG_SUBDIRS section.
23951 if test "$no_recursion" != yes; then
23953 # Remove --cache-file and --srcdir arguments so they do not pile up.
23954 ac_sub_configure_args=
23956 eval "set x $ac_configure_args"
23960 if test -n "$ac_prev"; then
23965 -cache-file | --cache-file | --cache-fil | --cache-fi \
23966 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23967 ac_prev=cache_file ;;
23968 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23969 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23972 --config-cache | -C)
23974 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23976 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23978 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23980 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23984 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23986 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23990 # Always prepend --prefix to ensure using the same prefix
23991 # in subdir configurations.
23992 ac_arg="--prefix=$prefix"
23994 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23996 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23999 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24001 # Do not complain, so a configure script can configure whichever
24002 # parts of a large source tree are present.
24003 test -d "$srcdir/$ac_dir" || continue
24005 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24006 echo "$as_me:$LINENO: $ac_msg" >&5
24010 -*) as_dir=./$as_dir;;
24012 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24016 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24017 *) as_qdir=$as_dir;;
24019 as_dirs="'$as_qdir' $as_dirs"
24020 as_dir=`$as_dirname -- "$as_dir" ||
24021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24022 X"$as_dir" : 'X\(//\)[^/]' \| \
24023 X"$as_dir" : 'X\(//\)$' \| \
24024 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24030 /^X\(\/\/\)[^/].*/{
24043 test -d "$as_dir" && break
24045 test -z "$as_dirs" || eval "mkdir $as_dirs"
24046 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24047 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24048 { (exit 1); exit 1; }; }; }
24052 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24055 # A ".." for each directory in $ac_dir_suffix.
24056 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24057 case $ac_top_builddir_sub in
24058 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24059 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24062 ac_abs_top_builddir=$ac_pwd
24063 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24064 # for backward compatibility:
24065 ac_top_builddir=$ac_top_build_prefix
24068 .) # We are building in place.
24070 ac_top_srcdir=$ac_top_builddir_sub
24071 ac_abs_top_srcdir=$ac_pwd ;;
24072 [\\/]* | ?:[\\/]* ) # Absolute name.
24073 ac_srcdir=$srcdir$ac_dir_suffix;
24074 ac_top_srcdir=$srcdir
24075 ac_abs_top_srcdir=$srcdir ;;
24076 *) # Relative name.
24077 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24078 ac_top_srcdir=$ac_top_build_prefix$srcdir
24079 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24081 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24086 # Check for guested configure; otherwise get Cygnus style configure.
24087 if test -f "$ac_srcdir/configure.gnu"; then
24088 ac_sub_configure=$ac_srcdir/configure.gnu
24089 elif test -f "$ac_srcdir/configure"; then
24090 ac_sub_configure=$ac_srcdir/configure
24091 elif test -f "$ac_srcdir/configure.in"; then
24092 # This should be Cygnus configure.
24093 ac_sub_configure=$ac_aux_dir/configure
24095 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24096 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24100 # The recursion is here.
24101 if test -n "$ac_sub_configure"; then
24102 # Make the cache file name correct relative to the subdirectory.
24103 case $cache_file in
24104 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24105 *) # Relative name.
24106 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24109 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24110 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24111 # The eval makes quoting arguments work.
24112 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24113 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24114 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24115 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24116 { (exit 1); exit 1; }; }