2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.9svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.9svn'
565 PACKAGE_STRING='llvm 2.9svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
683 ENABLE_EXPENSIVE_CHECKS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
754 HAVE_LINK_VERSION_SCRIPT
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
766 NO_MISSING_FIELD_INITIALIZERS
791 ENABLE_VISIBILITY_INLINES_HIDDEN
797 ac_precious_vars='build_alias
808 ac_subdirs_all='projects/llvm-gcc
812 projects/llvm-poolalloc
815 projects/llvm-stacker
820 projects/llvm-kernel'
822 # Initialize some variables set by options.
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
834 program_transform_name=s,x,x,
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
922 -disable-* | --disable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 -enable-* | --enable-*)
942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
963 -help | --help | --hel | --he | -h)
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 htmldir=$ac_optarg ;;
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1112 -site=* | --site=* | --sit=*)
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package| sed 's/-/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
1147 -without-* | --without-*)
1148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1157 # Obsolete; use --with-x.
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1189 # FIXME: should be removed in autoconf 3.0.
1190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
1205 # Be sure to have absolute directory names.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val=\$$ac_var
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1225 target=$target_alias
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241 test "$silent" = yes && exec 6>/dev/null
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1322 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of llvm 2.9svn:";;
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1399 --enable-expensive-checks
1400 Compile with expensive debug checks enabled (default
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
1406 --enable-jit Enable Just In Time Compiling (default is YES)
1407 --enable-doxygen Build doxygen documentation (default is NO)
1408 --enable-threads Use threads if available (default is YES)
1409 --enable-pic Build LLVM with Position Independent Code (default
1411 --enable-shared Build a shared library and link tools against it
1413 --enable-timestamps Enable embedding timestamp information in build
1415 --enable-targets Build specific host targets: all or
1416 target1,target2,... Valid targets are: host, x86,
1417 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1418 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1420 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
1424 --enable-libffi Check for the presence of libffi (default is NO)
1425 --enable-ltdl-install install libltdl
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1432 --with-llvmgcc Specify location of llvm-gcc driver (default
1434 --with-llvmgxx Specify location of llvm-g++ driver (default
1436 --with-clang Specify location of clang compiler (default is
1438 --with-built-clang Use the compiled Clang as the LLVM compiler
1440 --with-optimize-option Select the compiler options to use for optimized
1442 --with-extra-options Specify additional options to compile LLVM with
1443 --with-ocaml-libdir Specify install location for ocaml bindings (default
1445 --with-c-include-dirs Colon separated list of directories clang will
1447 --with-cxx-include-root Directory with the libstdc++ headers.
1448 --with-cxx-include-arch Architecture of the libstdc++ headers.
1449 --with-cxx-include-32bit-dir
1450 32 bit multilib dir.
1451 --with-cxx-include-64bit-dir
1452 64 bit multilib directory.
1453 --with-binutils-include Specify path to binutils/include/ containing
1454 plugin-api.h file for gold plugin.
1455 --with-tclinclude directory where tcl headers are
1456 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1457 clang, or none; default=check)
1458 --with-udis86=<path> Use udis86 external x86 disassembler library
1459 --with-oprofile=<prefix>
1460 Tell OProfile >= 0.9.4 how to symbolize JIT output
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1476 Report bugs to <llvmbugs@cs.uiuc.edu>.
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484 test -d "$ac_dir" || continue
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1504 .) # We are building in place.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1537 llvm configure 2.9svn
1538 generated by GNU Autoconf 2.60
1540 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1545 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1549 cat >config.log <<_ACEOF
1550 This file contains any messages produced by compilers while
1551 running configure, to aid debugging if configure makes a mistake.
1553 It was created by llvm $as_me 2.9svn, which was
1554 generated by GNU Autoconf 2.60. Invocation command line was
1566 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1572 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1575 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1576 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1577 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1578 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1579 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1580 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1581 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 test -z "$as_dir" && as_dir=.
1590 echo "PATH: $as_dir"
1606 # Keep a trace of the command line.
1607 # Strip out --no-create and --no-recursion so they do not pile up.
1608 # Strip out --silent because we don't want to record it for future runs.
1609 # Also quote any args containing shell meta-characters.
1610 # Make two passes to allow for proper duplicate-argument suppression.
1614 ac_must_keep_next=false
1620 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622 | -silent | --silent | --silen | --sile | --sil)
1625 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1628 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1630 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1631 if test $ac_must_keep_next = true; then
1632 ac_must_keep_next=false # Got value, back to normal.
1635 *=* | --config-cache | -C | -disable-* | --disable-* \
1636 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638 | -with-* | --with-* | -without-* | --without-* | --x)
1639 case "$ac_configure_args0 " in
1640 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1643 -* ) ac_must_keep_next=true ;;
1646 ac_configure_args="$ac_configure_args '$ac_arg'"
1651 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1654 # When interrupted or exit'd, cleanup temporary files, and complete
1655 # config.log. We remove comments because anyway the quotes in there
1656 # would cause problems or look ugly.
1657 # WARNING: Use '\'' to represent an apostrophe within the trap.
1658 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1659 trap 'exit_status=$?
1660 # Save into config.log some information that might help in debugging.
1665 ## ---------------- ##
1666 ## Cache variables. ##
1667 ## ---------------- ##
1670 # The following way of writing the cache mishandles newlines in values,
1672 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673 eval ac_val=\$$ac_var
1677 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1681 _ | IFS | as_nl) ;; #(
1682 *) $as_unset $ac_var ;;
1687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
1690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1707 for ac_var in $ac_subst_vars
1709 eval ac_val=\$$ac_var
1711 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1713 echo "$ac_var='\''$ac_val'\''"
1717 if test -n "$ac_subst_files"; then
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1724 for ac_var in $ac_subst_files
1726 eval ac_val=\$$ac_var
1728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730 echo "$ac_var='\''$ac_val'\''"
1735 if test -s confdefs.h; then
1745 test "$ac_signal" != 0 &&
1746 echo "$as_me: caught signal $ac_signal"
1747 echo "$as_me: exit $exit_status"
1749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1753 for ac_signal in 1 2 13 15; do
1754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1761 # Predefined preprocessor variables.
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer explicitly selected file to automatically selected ones.
1790 if test -n "$CONFIG_SITE"; then
1791 set x "$CONFIG_SITE"
1792 elif test "x$prefix" != xNONE; then
1793 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1795 set x "$ac_default_prefix/share/config.site" \
1796 "$ac_default_prefix/etc/config.site"
1801 if test -r "$ac_site_file"; then
1802 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803 echo "$as_me: loading site script $ac_site_file" >&6;}
1804 sed 's/^/| /' "$ac_site_file" >&5
1809 if test -r "$cache_file"; then
1810 # Some versions of bash will fail to source /dev/null (special
1811 # files actually), so we avoid doing that.
1812 if test -f "$cache_file"; then
1813 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814 echo "$as_me: loading cache $cache_file" >&6;}
1816 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817 *) . "./$cache_file";;
1821 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822 echo "$as_me: creating cache $cache_file" >&6;}
1826 # Check that the precious variables saved in the cache have kept the same
1828 ac_cache_corrupted=false
1829 for ac_var in $ac_precious_vars; do
1830 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831 eval ac_new_set=\$ac_env_${ac_var}_set
1832 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833 eval ac_new_val=\$ac_env_${ac_var}_value
1834 case $ac_old_set,$ac_new_set in
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1838 ac_cache_corrupted=: ;;
1840 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1842 ac_cache_corrupted=: ;;
1845 if test "x$ac_old_val" != "x$ac_new_val"; then
1846 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1849 echo "$as_me: former value: $ac_old_val" >&2;}
1850 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1851 echo "$as_me: current value: $ac_new_val" >&2;}
1852 ac_cache_corrupted=:
1855 # Pass precious variables to config.status.
1856 if test "$ac_new_set" = set; then
1858 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1859 *) ac_arg=$ac_var=$ac_new_val ;;
1861 case " $ac_configure_args " in
1862 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1863 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1867 if $ac_cache_corrupted; then
1868 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872 { (exit 1); exit 1; }; }
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1907 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1916 for ac_dir in autoconf "$srcdir"/autoconf; do
1917 if test -f "$ac_dir/install-sh"; then
1919 ac_install_sh="$ac_aux_dir/install-sh -c"
1921 elif test -f "$ac_dir/install.sh"; then
1923 ac_install_sh="$ac_aux_dir/install.sh -c"
1925 elif test -f "$ac_dir/shtool"; then
1927 ac_install_sh="$ac_aux_dir/shtool install -c"
1931 if test -z "$ac_aux_dir"; then
1932 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934 { (exit 1); exit 1; }; }
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1942 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1943 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1947 if test ${srcdir} != "." ; then
1948 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1949 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951 { (exit 1); exit 1; }; }
1957 if test -d ${srcdir}/projects/llvm-gcc ; then
1958 subdirs="$subdirs projects/llvm-gcc"
1962 if test -d ${srcdir}/projects/test-suite ; then
1963 subdirs="$subdirs projects/test-suite"
1967 if test -d ${srcdir}/projects/llvm-test ; then
1968 subdirs="$subdirs projects/llvm-test"
1972 if test -d ${srcdir}/projects/poolalloc ; then
1973 subdirs="$subdirs projects/poolalloc"
1977 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1978 subdirs="$subdirs projects/llvm-poolalloc"
1982 for i in `ls ${srcdir}/projects`
1984 if test -d ${srcdir}/projects/${i} ; then
1986 sample) subdirs="$subdirs projects/sample"
1988 privbracket) subdirs="$subdirs projects/privbracket"
1990 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1992 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1994 llvm-java) subdirs="$subdirs projects/llvm-java"
1996 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1998 safecode) subdirs="$subdirs projects/safecode"
2000 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2008 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2016 # Make sure we can run config.sub.
2017 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020 { (exit 1); exit 1; }; }
2022 { echo "$as_me:$LINENO: checking build system type" >&5
2023 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024 if test "${ac_cv_build+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 ac_build_alias=$build_alias
2028 test "x$ac_build_alias" = x &&
2029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030 test "x$ac_build_alias" = x &&
2031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033 { (exit 1); exit 1; }; }
2034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041 echo "${ECHO_T}$ac_cv_build" >&6; }
2042 case $ac_cv_build in
2044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045 echo "$as_me: error: invalid value of canonical build" >&2;}
2046 { (exit 1); exit 1; }; };;
2049 ac_save_IFS=$IFS; IFS='-'
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2059 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2062 { echo "$as_me:$LINENO: checking host system type" >&5
2063 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_host+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 if test "x$host_alias" = x; then
2068 ac_cv_host=$ac_cv_build
2070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
2077 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078 echo "${ECHO_T}$ac_cv_host" >&6; }
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082 echo "$as_me: error: invalid value of canonical host" >&2;}
2083 { (exit 1); exit 1; }; };;
2086 ac_save_IFS=$IFS; IFS='-'
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2096 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2099 { echo "$as_me:$LINENO: checking target system type" >&5
2100 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_target+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 if test "x$target_alias" = x; then
2105 ac_cv_target=$ac_cv_host
2107 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2114 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115 echo "${ECHO_T}$ac_cv_target" >&6; }
2116 case $ac_cv_target in
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119 echo "$as_me: error: invalid value of canonical target" >&2;}
2120 { (exit 1); exit 1; }; };;
2122 target=$ac_cv_target
2123 ac_save_IFS=$IFS; IFS='-'
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2133 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2136 # The aliases save the names the user supplied, while $host etc.
2137 # will get canonicalized.
2138 test -n "$target_alias" &&
2139 test "$program_prefix$program_suffix$program_transform_name" = \
2141 program_prefix=${target_alias}-
2143 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145 if test "${llvm_cv_os_type+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 llvm_cv_link_all_option="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2152 llvm_cv_os_type="AIX"
2153 llvm_cv_platform_type="Unix" ;;
2155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157 llvm_cv_os_type="IRIX"
2158 llvm_cv_platform_type="Unix" ;;
2160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162 llvm_cv_os_type="Cygwin"
2163 llvm_cv_platform_type="Unix" ;;
2165 llvm_cv_link_all_option="-Wl,-all_load"
2166 llvm_cv_no_link_all_option="-Wl,-noall_load"
2167 llvm_cv_os_type="Darwin"
2168 llvm_cv_platform_type="Unix" ;;
2170 llvm_cv_link_all_option="-Wl,-all_load"
2171 llvm_cv_no_link_all_option="-Wl,-noall_load"
2172 llvm_cv_os_type="Minix"
2173 llvm_cv_platform_type="Unix" ;;
2175 llvm_cv_link_all_option="-Wl,--whole-archive"
2176 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2177 llvm_cv_os_type="FreeBSD"
2178 llvm_cv_platform_type="Unix" ;;
2180 llvm_cv_link_all_option="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182 llvm_cv_os_type="OpenBSD"
2183 llvm_cv_platform_type="Unix" ;;
2185 llvm_cv_link_all_option="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187 llvm_cv_os_type="NetBSD"
2188 llvm_cv_platform_type="Unix" ;;
2190 llvm_cv_link_all_option="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192 llvm_cv_os_type="DragonFly"
2193 llvm_cv_platform_type="Unix" ;;
2195 llvm_cv_link_all_option="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197 llvm_cv_os_type="HP-UX"
2198 llvm_cv_platform_type="Unix" ;;
2200 llvm_cv_link_all_option="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2202 llvm_cv_os_type="Interix"
2203 llvm_cv_platform_type="Unix" ;;
2205 llvm_cv_link_all_option="-Wl,--whole-archive"
2206 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2207 llvm_cv_os_type="Linux"
2208 llvm_cv_platform_type="Unix" ;;
2210 llvm_cv_link_all_option="-Wl,-z,allextract"
2211 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2212 llvm_cv_os_type="SunOS"
2213 llvm_cv_platform_type="Unix" ;;
2215 llvm_cv_link_all_option="-Wl,-z,allextract"
2216 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2217 llvm_cv_os_type="AuroraUX"
2218 llvm_cv_platform_type="Unix" ;;
2220 llvm_cv_link_all_option="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2222 llvm_cv_os_type="Win32"
2223 llvm_cv_platform_type="Win32" ;;
2225 llvm_cv_link_all_option="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2227 llvm_cv_os_type="MingW"
2228 llvm_cv_platform_type="Win32" ;;
2230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232 llvm_cv_os_type="Haiku"
2233 llvm_cv_platform_type="Unix" ;;
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="Freestanding"
2238 llvm_cv_platform_type="Unix" ;;
2240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242 llvm_cv_os_type="Freestanding"
2243 llvm_cv_platform_type="Unix" ;;
2245 llvm_cv_link_all_option=""
2246 llvm_cv_no_link_all_option=""
2247 llvm_cv_os_type="Unknown"
2248 llvm_cv_platform_type="Unknown" ;;
2251 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2252 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2254 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2255 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2256 if test "${llvm_cv_target_os_type+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 llvm_cv_target_os_type="AIX" ;;
2263 llvm_cv_target_os_type="IRIX" ;;
2265 llvm_cv_target_os_type="Cygwin" ;;
2267 llvm_cv_target_os_type="Darwin" ;;
2269 llvm_cv_target_os_type="Minix" ;;
2271 llvm_cv_target_os_type="FreeBSD" ;;
2273 llvm_cv_target_os_type="OpenBSD" ;;
2275 llvm_cv_target_os_type="NetBSD" ;;
2277 llvm_cv_target_os_type="DragonFly" ;;
2279 llvm_cv_target_os_type="HP-UX" ;;
2281 llvm_cv_target_os_type="Interix" ;;
2283 llvm_cv_target_os_type="Linux" ;;
2285 llvm_cv_target_os_type="SunOS" ;;
2287 llvm_cv_target_os_type="AuroraUX" ;;
2289 llvm_cv_target_os_type="Win32" ;;
2291 llvm_cv_target_os_type="MingW" ;;
2293 llvm_cv_target_os_type="Haiku" ;;
2295 llvm_cv_target_os_type="Freestanding" ;;
2297 llvm_cv_target_os_type="Unknown" ;;
2300 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2301 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2303 if test "$llvm_cv_os_type" = "Unknown" ; then
2304 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2306 { (exit 1); exit 1; }; }
2311 HOST_OS=$llvm_cv_os_type
2313 TARGET_OS=$llvm_cv_target_os_type
2316 LINKALL=$llvm_cv_link_all_option
2318 NOLINKALL=$llvm_cv_no_link_all_option
2321 case $llvm_cv_platform_type in
2324 cat >>confdefs.h <<\_ACEOF
2325 #define LLVM_ON_UNIX 1
2335 cat >>confdefs.h <<\_ACEOF
2336 #define LLVM_ON_WIN32 1
2346 { echo "$as_me:$LINENO: checking target architecture" >&5
2347 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2348 if test "${llvm_cv_target_arch+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 i?86-*) llvm_cv_target_arch="x86" ;;
2353 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2354 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2355 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2356 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2357 arm*-*) llvm_cv_target_arch="ARM" ;;
2358 mips-*) llvm_cv_target_arch="Mips" ;;
2359 xcore-*) llvm_cv_target_arch="XCore" ;;
2360 msp430-*) llvm_cv_target_arch="MSP430" ;;
2361 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2362 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2363 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2364 ptx-*) llvm_cv_target_arch="PTX" ;;
2365 *) llvm_cv_target_arch="Unknown" ;;
2368 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2369 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2371 if test "$llvm_cv_target_arch" = "Unknown" ; then
2372 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2373 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2376 # Determine the LLVM native architecture for the target
2377 case "$llvm_cv_target_arch" in
2378 x86) LLVM_NATIVE_ARCH="X86" ;;
2379 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2380 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2383 ARCH=$llvm_cv_target_arch
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 if test -n "$CC"; then
2421 { echo "$as_me:$LINENO: result: $CC" >&5
2422 echo "${ECHO_T}$CC" >&6; }
2424 { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2430 if test -z "$ac_cv_prog_CC"; then
2432 # Extract the first word of "gcc", so it can be a program name with args.
2433 set dummy gcc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_ac_ct_CC="gcc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460 if test -n "$ac_ct_CC"; then
2461 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462 echo "${ECHO_T}$ac_ct_CC" >&6; }
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2468 if test "x$ac_ct_CC" = x; then
2471 case $cross_compiling:$ac_tool_warned in
2473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474 whose name does not start with the host triplet. If you think this
2475 configuration is useful to you, please write to autoconf@gnu.org." >&5
2476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477 whose name does not start with the host triplet. If you think this
2478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2479 ac_tool_warned=yes ;;
2487 if test -z "$CC"; then
2488 if test -n "$ac_tool_prefix"; then
2489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}cc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_CC="${ac_tool_prefix}cc"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 if test -n "$CC"; then
2518 { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2528 if test -z "$CC"; then
2529 # Extract the first word of "cc", so it can be a program name with args.
2530 set dummy cc; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548 ac_prog_rejected=yes
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 if test $ac_prog_rejected = yes; then
2560 # We found a bogon in the path, so make sure we never use it.
2561 set dummy $ac_cv_prog_CC
2563 if test $# != 0; then
2564 # We chose a different compiler from the bogus one.
2565 # However, it has the same basename, so the bogon will be chosen
2566 # first if we set CC to just the basename; use the full file name.
2568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574 if test -n "$CC"; then
2575 { echo "$as_me:$LINENO: result: $CC" >&5
2576 echo "${ECHO_T}$CC" >&6; }
2578 { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2584 if test -z "$CC"; then
2585 if test -n "$ac_tool_prefix"; then
2586 for ac_prog in cl.exe
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 if test -n "$CC"; then
2617 { echo "$as_me:$LINENO: result: $CC" >&5
2618 echo "${ECHO_T}$CC" >&6; }
2620 { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2625 test -n "$CC" && break
2628 if test -z "$CC"; then
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_ac_ct_CC="$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662 echo "${ECHO_T}$ac_ct_CC" >&6; }
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$ac_ct_CC" && break
2672 if test "x$ac_ct_CC" = x; then
2675 case $cross_compiling:$ac_tool_warned in
2677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678 whose name does not start with the host triplet. If you think this
2679 configuration is useful to you, please write to autoconf@gnu.org." >&5
2680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet. If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2683 ac_tool_warned=yes ;;
2692 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: no acceptable C compiler found in \$PATH
2695 See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }
2698 # Provide some information about the compiler.
2699 echo "$as_me:$LINENO: checking for C compiler version" >&5
2700 ac_compiler=`set X $ac_compile; echo $2`
2701 { (ac_try="$ac_compiler --version >&5"
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compiler --version >&5") 2>&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }
2711 { (ac_try="$ac_compiler -v >&5"
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler -v >&5") 2>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721 { (ac_try="$ac_compiler -V >&5"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -V >&5") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2747 ac_clean_files_save=$ac_clean_files
2748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2749 # Try to create an executable without -o first, disregard a.out.
2750 # It will help us diagnose broken compilers, and finding out an intuition
2752 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756 # List of possible output files, starting from the most likely.
2757 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758 # only as a last resort. b.out is created by i960 compilers.
2759 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761 # The IRIX 6 linker writes into existing files which may not be
2762 # executable, retaining their permissions. Remove them first so a
2763 # subsequent execution test works.
2765 for ac_file in $ac_files
2768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2774 if { (ac_try="$ac_link_default"
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_link_default") 2>&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; then
2784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2787 # so that the user can short-circuit this test for compilers unknown to
2789 for ac_file in $ac_files
2791 test -f "$ac_file" || continue
2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2796 # We found the default executable, but exeext='' is most
2800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 # We set ac_cv_exeext here because the later test for it is not
2805 # safe: cross compilers may not add the suffix if given an `-o'
2806 # argument, so we may need to know it at that point already.
2807 # Even if this section looks crufty: it has the advantage of
2814 test "$ac_cv_exeext" = no && ac_cv_exeext=
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: C compiler cannot create executables
2823 See \`config.log' for more details." >&2;}
2824 { (exit 77); exit 77; }; }
2827 ac_exeext=$ac_cv_exeext
2828 { echo "$as_me:$LINENO: result: $ac_file" >&5
2829 echo "${ECHO_T}$ac_file" >&6; }
2831 # Check that the compiler produces executables we can run. If not, either
2832 # the compiler is broken, or we cross compile.
2833 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836 # If not cross compiling, check that we can run a simple program.
2837 if test "$cross_compiling" != yes; then
2838 if { ac_try='./$ac_file'
2839 { (case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_try") 2>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2850 if test "$cross_compiling" = maybe; then
2853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }
2863 { echo "$as_me:$LINENO: result: yes" >&5
2864 echo "${ECHO_T}yes" >&6; }
2866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2867 ac_clean_files=$ac_clean_files_save
2868 # Check that the compiler produces executables we can run. If not, either
2869 # the compiler is broken, or we cross compile.
2870 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873 echo "${ECHO_T}$cross_compiling" >&6; }
2875 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877 if { (ac_try="$ac_link"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_link") 2>&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
2887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2891 for ac_file in conftest.exe conftest conftest.*; do
2892 test -f "$ac_file" || continue
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2908 rm -f conftest$ac_cv_exeext
2909 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2912 rm -f conftest.$ac_ext
2913 EXEEXT=$ac_cv_exeext
2915 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917 if test "${ac_cv_objext+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2935 rm -f conftest.o conftest.obj
2936 if { (ac_try="$ac_compile"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
2946 for ac_file in conftest.o conftest.obj conftest.*; do
2947 test -f "$ac_file" || continue;
2949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968 echo "${ECHO_T}$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 cat >conftest.$ac_ext <<_ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>conftest.er1
3003 grep -v '^ *+' conftest.er1 >conftest.err
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_try") 2>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_try") 2>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3040 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3041 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3042 GCC=`test $ac_compiler_gnu = yes && echo yes`
3043 ac_test_CFLAGS=${CFLAGS+set}
3044 ac_save_CFLAGS=$CFLAGS
3045 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3046 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_cc_g+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 ac_save_c_werror_flag=$ac_c_werror_flag
3051 ac_c_werror_flag=yes
3054 cat >conftest.$ac_ext <<_ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3078 grep -v '^ *+' conftest.er1 >conftest.err
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084 { (case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_try") 2>&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3109 cat >conftest.$ac_ext <<_ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3165 cat >conftest.$ac_ext <<_ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3189 grep -v '^ *+' conftest.er1 >conftest.err
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3232 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3233 if test "$ac_test_CFLAGS" = set; then
3234 CFLAGS=$ac_save_CFLAGS
3235 elif test $ac_cv_prog_cc_g = yes; then
3236 if test "$GCC" = yes; then
3242 if test "$GCC" = yes; then
3248 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3249 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3250 if test "${ac_cv_prog_cc_c89+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 ac_cv_prog_cc_c89=no
3255 cat >conftest.$ac_ext <<_ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3263 #include <sys/types.h>
3264 #include <sys/stat.h>
3265 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3266 struct buf { int x; };
3267 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268 static char *e (p, i)
3274 static char *f (char * (*g) (char **, int), char **p, ...)
3279 s = g (p, va_arg (v,int));
3284 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3285 function prototypes and stuff, but not '\xHH' hex character constants.
3286 These don't provoke an error unfortunately, instead are silently treated
3287 as 'x'. The following induces an error, until -std is added to get
3288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3289 array size at least. It's necessary to write '\x00'==0 to get something
3290 that's true only with -std. */
3291 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294 inside strings and character constants. */
3296 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298 int test (int i, double x);
3299 struct s1 {int (*f) (int a);};
3300 struct s2 {int (*f) (double a);};
3301 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3312 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3315 CC="$ac_save_CC $ac_arg"
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3325 grep -v '^ *+' conftest.er1 >conftest.err
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 ac_cv_prog_cc_c89=$ac_arg
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext
3359 test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 rm -f conftest.$ac_ext
3366 case "x$ac_cv_prog_cc_c89" in
3368 { echo "$as_me:$LINENO: result: none needed" >&5
3369 echo "${ECHO_T}none needed" >&6; } ;;
3371 { echo "$as_me:$LINENO: result: unsupported" >&5
3372 echo "${ECHO_T}unsupported" >&6; } ;;
3374 CC="$CC $ac_cv_prog_cc_c89"
3375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3394 # On Suns, sometimes $CPP names a directory.
3395 if test -n "$CPP" && test -d "$CPP"; then
3398 if test -z "$CPP"; then
3399 if test "${ac_cv_prog_CPP+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 # Double quotes because CPP needs to be expanded
3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3406 for ac_c_preproc_warn_flag in '' yes
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3421 # include <limits.h>
3423 # include <assert.h>
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 if test -z "$ac_cpp_err"; then
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 # Broken: fails on valid input.
3459 rm -f conftest.err conftest.$ac_ext
3461 # OK, works on sane cases. Now check whether nonexistent headers
3462 # can be detected and how.
3463 cat >conftest.$ac_ext <<_ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 #include <ac_nonexistent.h>
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 grep -v '^ *+' conftest.er1 >conftest.err
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 if test -z "$ac_cpp_err"; then
3494 # Broken: success on invalid input.
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Passes both tests.
3505 rm -f conftest.err conftest.$ac_ext
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3522 { echo "$as_me:$LINENO: result: $CPP" >&5
3523 echo "${ECHO_T}$CPP" >&6; }
3525 for ac_c_preproc_warn_flag in '' yes
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
3533 cat >conftest.$ac_ext <<_ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3540 # include <limits.h>
3542 # include <assert.h>
3546 if { (ac_try="$ac_cpp conftest.$ac_ext"
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554 grep -v '^ *+' conftest.er1 >conftest.err
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568 if test -z "$ac_cpp_err"; then
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 # Broken: fails on valid input.
3578 rm -f conftest.err conftest.$ac_ext
3580 # OK, works on sane cases. Now check whether nonexistent headers
3581 # can be detected and how.
3582 cat >conftest.$ac_ext <<_ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3588 #include <ac_nonexistent.h>
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 if test -z "$ac_cpp_err"; then
3613 # Broken: success on invalid input.
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 # Passes both tests.
3624 rm -f conftest.err conftest.$ac_ext
3627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628 rm -f conftest.err conftest.$ac_ext
3629 if $ac_preproc_ok; then
3632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3633 See \`config.log' for more details." >&5
3634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3635 See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3647 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3648 if test "${ac_cv_path_GREP+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 # Extract the first word of "grep ggrep" to use in msg output
3652 if test -z "$GREP"; then
3653 set dummy grep ggrep; ac_prog_name=$2
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 ac_path_GREP_found=false
3658 # Loop through the user's path and test for each of PROGNAME-LIST
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3663 test -z "$as_dir" && as_dir=.
3664 for ac_prog in grep ggrep; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3667 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3668 # Check for GNU ac_path_GREP and select it if it is found.
3669 # Check for GNU $ac_path_GREP
3670 case `"$ac_path_GREP" --version 2>&1` in
3672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3675 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3678 cat "conftest.in" "conftest.in" >"conftest.tmp"
3679 mv "conftest.tmp" "conftest.in"
3680 cp "conftest.in" "conftest.nl"
3681 echo 'GREP' >> "conftest.nl"
3682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3684 ac_count=`expr $ac_count + 1`
3685 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3686 # Best one so far, save it but keep looking for a better one
3687 ac_cv_path_GREP="$ac_path_GREP"
3688 ac_path_GREP_max=$ac_count
3690 # 10*(2^10) chars as input seems more than enough
3691 test $ac_count -gt 10 && break
3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3697 $ac_path_GREP_found && break 3
3707 GREP="$ac_cv_path_GREP"
3708 if test -z "$GREP"; then
3709 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3710 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3711 { (exit 1); exit 1; }; }
3715 ac_cv_path_GREP=$GREP
3720 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3721 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3722 GREP="$ac_cv_path_GREP"
3725 { echo "$as_me:$LINENO: checking for egrep" >&5
3726 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3727 if test "${ac_cv_path_EGREP+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3731 then ac_cv_path_EGREP="$GREP -E"
3733 # Extract the first word of "egrep" to use in msg output
3734 if test -z "$EGREP"; then
3735 set dummy egrep; ac_prog_name=$2
3736 if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 ac_path_EGREP_found=false
3740 # Loop through the user's path and test for each of PROGNAME-LIST
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3745 test -z "$as_dir" && as_dir=.
3746 for ac_prog in egrep; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3749 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3750 # Check for GNU ac_path_EGREP and select it if it is found.
3751 # Check for GNU $ac_path_EGREP
3752 case `"$ac_path_EGREP" --version 2>&1` in
3754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3757 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3760 cat "conftest.in" "conftest.in" >"conftest.tmp"
3761 mv "conftest.tmp" "conftest.in"
3762 cp "conftest.in" "conftest.nl"
3763 echo 'EGREP' >> "conftest.nl"
3764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3766 ac_count=`expr $ac_count + 1`
3767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3768 # Best one so far, save it but keep looking for a better one
3769 ac_cv_path_EGREP="$ac_path_EGREP"
3770 ac_path_EGREP_max=$ac_count
3772 # 10*(2^10) chars as input seems more than enough
3773 test $ac_count -gt 10 && break
3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3779 $ac_path_EGREP_found && break 3
3789 EGREP="$ac_cv_path_EGREP"
3790 if test -z "$EGREP"; then
3791 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3792 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3793 { (exit 1); exit 1; }; }
3797 ac_cv_path_EGREP=$EGREP
3803 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3804 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3805 EGREP="$ac_cv_path_EGREP"
3808 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3810 if test "${ac_cv_header_stdc+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 cat >conftest.$ac_ext <<_ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3841 grep -v '^ *+' conftest.er1 >conftest.err
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3847 { (case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_try") 2>&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_try") 2>&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_header_stdc=yes
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 ac_cv_header_stdc=no
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 if test $ac_cv_header_stdc = yes; then
3877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3878 cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888 $EGREP "memchr" >/dev/null 2>&1; then
3891 ac_cv_header_stdc=no
3897 if test $ac_cv_header_stdc = yes; then
3898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909 $EGREP "free" >/dev/null 2>&1; then
3912 ac_cv_header_stdc=no
3918 if test $ac_cv_header_stdc = yes; then
3919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3920 if test "$cross_compiling" = yes; then
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3931 #if ((' ' & 0x0FF) == 0x020)
3932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935 # define ISLOWER(c) \
3936 (('a' <= (c) && (c) <= 'i') \
3937 || ('j' <= (c) && (c) <= 'r') \
3938 || ('s' <= (c) && (c) <= 'z'))
3939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3947 for (i = 0; i < 256; i++)
3948 if (XOR (islower (i), ISLOWER (i))
3949 || toupper (i) != TOUPPER (i))
3954 rm -f conftest$ac_exeext
3955 if { (ac_try="$ac_link"
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_link") 2>&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3965 { (case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_try") 2>&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3976 echo "$as_me: program exited with status $ac_status" >&5
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3981 ac_cv_header_stdc=no
3983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3991 if test $ac_cv_header_stdc = yes; then
3993 cat >>confdefs.h <<\_ACEOF
3994 #define STDC_HEADERS 1
3999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010 inttypes.h stdint.h unistd.h
4012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 cat >conftest.$ac_ext <<_ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 $ac_includes_default
4026 #include <$ac_header>
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4037 grep -v '^ *+' conftest.er1 >conftest.err
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4043 { (case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_try") 2>&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 eval "$as_ac_Header=yes"
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 eval "$as_ac_Header=no"
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_res=`eval echo '${'$as_ac_Header'}'`
4073 { echo "$as_me:$LINENO: result: $ac_res" >&5
4074 echo "${ECHO_T}$ac_res" >&6; }
4075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4076 cat >>confdefs.h <<_ACEOF
4077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4085 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4086 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4087 if test "${ac_cv_c_bigendian+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 # See if sys/param.h defines the BYTE_ORDER macro.
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 #include <sys/types.h>
4098 #include <sys/param.h>
4103 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_try") 2>&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 # It does; now see whether it defined to BIG_ENDIAN or not.
4146 cat >conftest.$ac_ext <<_ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4152 #include <sys/types.h>
4153 #include <sys/param.h>
4158 #if BYTE_ORDER != BIG_ENDIAN
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4175 grep -v '^ *+' conftest.er1 >conftest.err
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_c_bigendian=yes
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_c_bigendian=no
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 # It does not; compile a test program.
4214 if test "$cross_compiling" = yes; then
4215 # try to guess the endianness by grepping values into an object file
4216 ac_cv_c_bigendian=unknown
4217 cat >conftest.$ac_ext <<_ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4224 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4226 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4227 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4232 _ascii (); _ebcdic ();
4237 rm -f conftest.$ac_objext
4238 if { (ac_try="$ac_compile"
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_compile") 2>conftest.er1
4246 grep -v '^ *+' conftest.er1 >conftest.err
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4272 ac_cv_c_bigendian=yes
4274 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4275 if test "$ac_cv_c_bigendian" = unknown; then
4276 ac_cv_c_bigendian=no
4278 # finding both strings is unlikely to happen, but who knows?
4279 ac_cv_c_bigendian=unknown
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 cat >conftest.$ac_ext <<_ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4297 $ac_includes_default
4302 /* Are we little or big endian? From Harbison&Steele. */
4306 char c[sizeof (long int)];
4309 return u.c[sizeof (long int) - 1] == 1;
4315 rm -f conftest$ac_exeext
4316 if { (ac_try="$ac_link"
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_link") 2>&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4326 { (case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_try") 2>&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4335 ac_cv_c_bigendian=no
4337 echo "$as_me: program exited with status $ac_status" >&5
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4342 ac_cv_c_bigendian=yes
4344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4354 case $ac_cv_c_bigendian in
4362 { { echo "$as_me:$LINENO: error: unknown endianness
4363 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4364 echo "$as_me: error: unknown endianness
4365 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4366 { (exit 1); exit 1; }; } ;;
4370 if test "$cross_compiling" = yes; then
4371 LLVM_CROSS_COMPILING=1
4374 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4375 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4376 if test "${ac_cv_build_exeext+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4380 ac_cv_build_exeext=.exe
4382 ac_build_prefix=${build_alias}-
4384 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4385 set dummy ${ac_build_prefix}gcc; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test -n "$BUILD_CC"; then
4392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 BUILD_CC=$ac_cv_prog_BUILD_CC
4412 if test -n "$BUILD_CC"; then
4413 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414 echo "${ECHO_T}$BUILD_CC" >&6; }
4416 { echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6; }
4421 if test -z "$BUILD_CC"; then
4422 # Extract the first word of "gcc", so it can be a program name with args.
4423 set dummy gcc; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 if test -n "$BUILD_CC"; then
4430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_BUILD_CC="gcc"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 BUILD_CC=$ac_cv_prog_BUILD_CC
4450 if test -n "$BUILD_CC"; then
4451 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4452 echo "${ECHO_T}$BUILD_CC" >&6; }
4454 { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4459 if test -z "$BUILD_CC"; then
4460 # Extract the first word of "cc", so it can be a program name with args.
4461 set dummy cc; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 if test -n "$BUILD_CC"; then
4468 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479 ac_prog_rejected=yes
4482 ac_cv_prog_BUILD_CC="cc"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy $ac_cv_prog_BUILD_CC
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set BUILD_CC to just the basename; use the full file name.
4499 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4504 BUILD_CC=$ac_cv_prog_BUILD_CC
4505 if test -n "$BUILD_CC"; then
4506 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4507 echo "${ECHO_T}$BUILD_CC" >&6; }
4509 { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4516 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4517 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4518 { (exit 1); exit 1; }; }
4519 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521 echo 'int main () { return 0; }' > conftest.$ac_ext
4523 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4524 (eval $ac_build_link) 2>&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; then
4528 for file in conftest.*; do
4530 *.c | *.o | *.obj | *.dSYM) ;;
4531 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4535 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4536 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4537 { (exit 1); exit 1; }; }
4540 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4545 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4546 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4547 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4548 ac_build_exeext=$BUILD_EXEEXT
4550 ac_build_prefix=${build_alias}-
4551 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552 set dummy ${ac_build_prefix}g++; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 if test -n "$BUILD_CXX"; then
4559 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4579 if test -n "$BUILD_CXX"; then
4580 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4581 echo "${ECHO_T}$BUILD_CXX" >&6; }
4583 { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4588 if test -z "$BUILD_CXX"; then
4589 # Extract the first word of "g++", so it can be a program name with args.
4590 set dummy g++; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 if test -n "$BUILD_CXX"; then
4597 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_BUILD_CXX="g++"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4617 if test -n "$BUILD_CXX"; then
4618 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4619 echo "${ECHO_T}$BUILD_CXX" >&6; }
4621 { echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6; }
4626 if test -z "$BUILD_CXX"; then
4627 # Extract the first word of "c++", so it can be a program name with args.
4628 set dummy c++; ac_word=$2
4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 if test -n "$BUILD_CXX"; then
4635 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646 ac_prog_rejected=yes
4649 ac_cv_prog_BUILD_CXX="c++"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 if test $ac_prog_rejected = yes; then
4658 # We found a bogon in the path, so make sure we never use it.
4659 set dummy $ac_cv_prog_BUILD_CXX
4661 if test $# != 0; then
4662 # We chose a different compiler from the bogus one.
4663 # However, it has the same basename, so the bogon will be chosen
4664 # first if we set BUILD_CXX to just the basename; use the full file name.
4666 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4671 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4672 if test -n "$BUILD_CXX"; then
4673 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4674 echo "${ECHO_T}$BUILD_CXX" >&6; }
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4684 LLVM_CROSS_COMPILING=0
4688 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4699 # Check whether --enable-optimized was given.
4700 if test "${enable_optimized+set}" = set; then
4701 enableval=$enable_optimized;
4706 if test ${enableval} = "no" ; then
4710 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4714 # Check whether --enable-profiling was given.
4715 if test "${enable_profiling+set}" = set; then
4716 enableval=$enable_profiling;
4721 if test ${enableval} = "no" ; then
4725 ENABLE_PROFILING=ENABLE_PROFILING=1
4729 # Check whether --enable-assertions was given.
4730 if test "${enable_assertions+set}" = set; then
4731 enableval=$enable_assertions;
4736 if test ${enableval} = "yes" ; then
4740 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4744 # Check whether --enable-expensive-checks was given.
4745 if test "${enable_expensive_checks+set}" = set; then
4746 enableval=$enable_expensive_checks;
4751 if test ${enableval} = "yes" ; then
4752 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4754 EXPENSIVE_CHECKS=yes
4757 ENABLE_EXPENSIVE_CHECKS=
4763 # Check whether --enable-debug-runtime was given.
4764 if test "${enable_debug_runtime+set}" = set; then
4765 enableval=$enable_debug_runtime;
4770 if test ${enableval} = "no" ; then
4774 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4778 # Check whether --enable-debug-symbols was given.
4779 if test "${enable_debug_symbols+set}" = set; then
4780 enableval=$enable_debug_symbols;
4785 if test ${enableval} = "no" ; then
4789 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4793 # Check whether --enable-jit was given.
4794 if test "${enable_jit+set}" = set; then
4795 enableval=$enable_jit;
4800 if test ${enableval} = "no"
4805 case "$llvm_cv_target_arch" in
4806 x86) TARGET_HAS_JIT=1
4808 Sparc) TARGET_HAS_JIT=0
4810 PowerPC) TARGET_HAS_JIT=1
4812 x86_64) TARGET_HAS_JIT=1
4814 Alpha) TARGET_HAS_JIT=1
4816 ARM) TARGET_HAS_JIT=1
4818 Mips) TARGET_HAS_JIT=0
4820 XCore) TARGET_HAS_JIT=0
4822 MSP430) TARGET_HAS_JIT=0
4824 SystemZ) TARGET_HAS_JIT=0
4826 Blackfin) TARGET_HAS_JIT=0
4828 MBlaze) TARGET_HAS_JIT=0
4830 PTX) TARGET_HAS_JIT=0
4837 # Check whether --enable-doxygen was given.
4838 if test "${enable_doxygen+set}" = set; then
4839 enableval=$enable_doxygen;
4844 case "$enableval" in
4845 yes) ENABLE_DOXYGEN=1
4847 no) ENABLE_DOXYGEN=0
4849 default) ENABLE_DOXYGEN=0
4851 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4852 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4853 { (exit 1); exit 1; }; } ;;
4856 # Check whether --enable-threads was given.
4857 if test "${enable_threads+set}" = set; then
4858 enableval=$enable_threads;
4863 case "$enableval" in
4864 yes) ENABLE_THREADS=1
4866 no) ENABLE_THREADS=0
4868 default) ENABLE_THREADS=1
4870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
4875 cat >>confdefs.h <<_ACEOF
4876 #define ENABLE_THREADS $ENABLE_THREADS
4880 # Check whether --enable-pic was given.
4881 if test "${enable_pic+set}" = set; then
4882 enableval=$enable_pic;
4887 case "$enableval" in
4892 default) ENABLE_PIC=1
4894 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4895 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4896 { (exit 1); exit 1; }; } ;;
4899 cat >>confdefs.h <<_ACEOF
4900 #define ENABLE_PIC $ENABLE_PIC
4904 # Check whether --enable-shared was given.
4905 if test "${enable_shared+set}" = set; then
4906 enableval=$enable_shared;
4911 case "$enableval" in
4912 yes) ENABLE_SHARED=1
4916 default) ENABLE_SHARED=0
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4923 # Check whether --enable-timestamps was given.
4924 if test "${enable_timestamps+set}" = set; then
4925 enableval=$enable_timestamps;
4930 case "$enableval" in
4931 yes) ENABLE_TIMESTAMPS=1
4933 no) ENABLE_TIMESTAMPS=0
4935 default) ENABLE_TIMESTAMPS=1
4937 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4938 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4939 { (exit 1); exit 1; }; } ;;
4942 cat >>confdefs.h <<_ACEOF
4943 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4948 # Check whether --enable-targets was given.
4949 if test "${enable_targets+set}" = set; then
4950 enableval=$enable_targets;
4955 if test "$enableval" = host-only ; then
4958 case "$enableval" in
4959 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4960 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4962 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4964 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4965 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4966 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4967 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4968 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4969 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4970 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4971 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4972 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4973 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4974 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4975 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4976 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4977 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4978 host) case "$llvm_cv_target_arch" in
4979 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4980 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4981 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4982 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4983 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4984 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4985 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4986 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4987 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4988 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4989 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4990 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4991 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4992 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4993 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4994 echo "$as_me: error: Can not set target to build" >&2;}
4995 { (exit 1); exit 1; }; } ;;
4997 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4998 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5004 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5007 # Determine whether we are building LLVM support for the native architecture.
5008 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5009 for a_target in $TARGETS_TO_BUILD; do
5010 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5012 cat >>confdefs.h <<_ACEOF
5013 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5016 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5017 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5018 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5020 cat >>confdefs.h <<_ACEOF
5021 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5025 cat >>confdefs.h <<_ACEOF
5026 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5030 cat >>confdefs.h <<_ACEOF
5031 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5037 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5038 # target feature def files.
5039 LLVM_ENUM_TARGETS=""
5040 LLVM_ENUM_ASM_PRINTERS=""
5041 LLVM_ENUM_ASM_PARSERS=""
5042 LLVM_ENUM_DISASSEMBLERS=""
5043 for target_to_build in $TARGETS_TO_BUILD; do
5044 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5045 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5046 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5048 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5049 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5050 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5052 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5053 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5055 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5056 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5064 # Check whether --enable-cbe-printf-a was given.
5065 if test "${enable_cbe_printf_a+set}" = set; then
5066 enableval=$enable_cbe_printf_a;
5071 case "$enableval" in
5072 yes) ENABLE_CBE_PRINTF_A=1
5074 no) ENABLE_CBE_PRINTF_A=0
5076 default) ENABLE_CBE_PRINTF_A=1
5078 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5079 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5080 { (exit 1); exit 1; }; } ;;
5083 cat >>confdefs.h <<_ACEOF
5084 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5089 # Check whether --with-llvmgccdir was given.
5090 if test "${with_llvmgccdir+set}" = set; then
5091 withval=$with_llvmgccdir;
5097 default) WITH_LLVMGCCDIR=default ;;
5098 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5099 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5100 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5101 { (exit 1); exit 1; }; } ;;
5105 # Check whether --with-llvmgcc was given.
5106 if test "${with_llvmgcc+set}" = set; then
5107 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5113 # Check whether --with-llvmgxx was given.
5114 if test "${with_llvmgxx+set}" = set; then
5115 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5120 if test -n "$LLVMGCC"; then
5121 LLVMGCCCOMMAND="$LLVMGCC"
5124 if test -n "$LLVMGXX"; then
5125 LLVMGXXCOMMAND="$LLVMGXX"
5128 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5129 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5130 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5131 { (exit 1); exit 1; }; };
5134 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5135 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5136 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5137 { (exit 1); exit 1; }; };
5141 # Check whether --with-clang was given.
5142 if test "${with_clang+set}" = set; then
5143 withval=$with_clang;
5150 # Check whether --with-built-clang was given.
5151 if test "${with_built_clang+set}" = set; then
5152 withval=$with_built_clang;
5154 with_built_clang=check
5158 { echo "$as_me:$LINENO: checking clang compiler" >&5
5159 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5162 if test "$with_clang" != "default"; then
5163 WITH_CLANGPATH="$with_clang"
5164 if ! test -x "$WITH_CLANGPATH"; then
5165 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5166 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5167 { (exit 1); exit 1; }; }
5169 elif test "$with_built_clang" = "yes"; then
5171 elif test "$with_built_clang" = "no"; then
5174 if test "$with_built_clang" != "check"; then
5175 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5176 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5177 { (exit 1); exit 1; }; }
5180 if test -f ${srcdir}/tools/clang/README.txt; then
5185 if ! test -z "$WITH_CLANGPATH"; then
5186 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5187 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5188 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5189 elif test "$WITH_BUILT_CLANG" = "1"; then
5190 { echo "$as_me:$LINENO: result: built" >&5
5191 echo "${ECHO_T}built" >&6; }
5193 { echo "$as_me:$LINENO: result: none" >&5
5194 echo "${ECHO_T}none" >&6; }
5196 CLANGPATH=$WITH_CLANGPATH
5198 CLANGXXPATH=$WITH_CLANGXXPATH
5200 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5204 # Check whether --with-optimize-option was given.
5205 if test "${with_optimize_option+set}" = set; then
5206 withval=$with_optimize_option;
5211 { echo "$as_me:$LINENO: checking optimization flags" >&5
5212 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5215 case "$llvm_cv_os_type" in
5216 FreeBSD) optimize_option=-O2 ;;
5217 MingW) optimize_option=-O2 ;;
5218 *) optimize_option=-O3 ;;
5220 *) optimize_option="$withval" ;;
5222 OPTIMIZE_OPTION=$optimize_option
5224 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5225 echo "${ECHO_T}$optimize_option" >&6; }
5228 # Check whether --with-extra-options was given.
5229 if test "${with_extra_options+set}" = set; then
5230 withval=$with_extra_options;
5236 default) EXTRA_OPTIONS= ;;
5237 *) EXTRA_OPTIONS=$withval ;;
5239 EXTRA_OPTIONS=$EXTRA_OPTIONS
5242 # Check whether --enable-bindings was given.
5243 if test "${enable_bindings+set}" = set; then
5244 enableval=$enable_bindings;
5249 BINDINGS_TO_BUILD=""
5250 case "$enableval" in
5251 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5252 all ) BINDINGS_TO_BUILD="ocaml" ;;
5253 none | no) BINDINGS_TO_BUILD="" ;;
5254 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5255 case "$a_binding" in
5256 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5257 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5258 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5259 { (exit 1); exit 1; }; } ;;
5266 # Check whether --with-ocaml-libdir was given.
5267 if test "${with_ocaml_libdir+set}" = set; then
5268 withval=$with_ocaml_libdir;
5274 auto) with_ocaml_libdir="$withval" ;;
5275 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5276 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5277 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5278 { (exit 1); exit 1; }; } ;;
5282 # Check whether --with-c-include-dirs was given.
5283 if test "${with_c_include_dirs+set}" = set; then
5284 withval=$with_c_include_dirs;
5290 cat >>confdefs.h <<_ACEOF
5291 #define C_INCLUDE_DIRS "$withval"
5296 # Check whether --with-cxx-include-root was given.
5297 if test "${with_cxx_include_root+set}" = set; then
5298 withval=$with_cxx_include_root;
5304 cat >>confdefs.h <<_ACEOF
5305 #define CXX_INCLUDE_ROOT "$withval"
5310 # Check whether --with-cxx-include-arch was given.
5311 if test "${with_cxx_include_arch+set}" = set; then
5312 withval=$with_cxx_include_arch;
5318 cat >>confdefs.h <<_ACEOF
5319 #define CXX_INCLUDE_ARCH "$withval"
5324 # Check whether --with-cxx-include-32bit-dir was given.
5325 if test "${with_cxx_include_32bit_dir+set}" = set; then
5326 withval=$with_cxx_include_32bit_dir;
5332 cat >>confdefs.h <<_ACEOF
5333 #define CXX_INCLUDE_32BIT_DIR "$withval"
5338 # Check whether --with-cxx-include-64bit-dir was given.
5339 if test "${with_cxx_include_64bit_dir+set}" = set; then
5340 withval=$with_cxx_include_64bit_dir;
5346 cat >>confdefs.h <<_ACEOF
5347 #define CXX_INCLUDE_64BIT_DIR "$withval"
5352 # Check whether --with-binutils-include was given.
5353 if test "${with_binutils_include+set}" = set; then
5354 withval=$with_binutils_include;
5360 default) WITH_BINUTILS_INCDIR=default ;;
5361 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5362 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5363 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5364 { (exit 1); exit 1; }; } ;;
5366 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5367 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5369 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5370 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5371 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5372 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5373 { (exit 1); exit 1; }; };
5377 # Check whether --enable-libffi was given.
5378 if test "${enable_libffi+set}" = set; then
5379 enableval=$enable_libffi; case "$enableval" in
5380 yes) llvm_cv_enable_libffi="yes" ;;
5381 no) llvm_cv_enable_libffi="no" ;;
5382 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5383 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5384 { (exit 1); exit 1; }; } ;;
5387 llvm_cv_enable_libffi=no
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5399 # On Suns, sometimes $CPP names a directory.
5400 if test -n "$CPP" && test -d "$CPP"; then
5403 if test -z "$CPP"; then
5404 if test "${ac_cv_prog_CPP+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 # Double quotes because CPP needs to be expanded
5408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5411 for ac_c_preproc_warn_flag in '' yes
5413 # Use a header file that comes with gcc, so configuring glibc
5414 # with a fresh cross-compiler works.
5415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416 # <limits.h> exists even on freestanding compilers.
5417 # On the NeXT, cc -E runs the code through the compiler's parser,
5418 # not just through cpp. "Syntax error" is here to catch this case.
5419 cat >conftest.$ac_ext <<_ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5426 # include <limits.h>
5428 # include <assert.h>
5432 if { (ac_try="$ac_cpp conftest.$ac_ext"
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5440 grep -v '^ *+' conftest.er1 >conftest.err
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } >/dev/null; then
5445 if test -s conftest.err; then
5446 ac_cpp_err=$ac_c_preproc_warn_flag
5447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5454 if test -z "$ac_cpp_err"; then
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 # Broken: fails on valid input.
5464 rm -f conftest.err conftest.$ac_ext
5466 # OK, works on sane cases. Now check whether nonexistent headers
5467 # can be detected and how.
5468 cat >conftest.$ac_ext <<_ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 #include <ac_nonexistent.h>
5476 if { (ac_try="$ac_cpp conftest.$ac_ext"
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5484 grep -v '^ *+' conftest.er1 >conftest.err
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5498 if test -z "$ac_cpp_err"; then
5499 # Broken: success on invalid input.
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 # Passes both tests.
5510 rm -f conftest.err conftest.$ac_ext
5513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5514 rm -f conftest.err conftest.$ac_ext
5515 if $ac_preproc_ok; then
5527 { echo "$as_me:$LINENO: result: $CPP" >&5
5528 echo "${ECHO_T}$CPP" >&6; }
5530 for ac_c_preproc_warn_flag in '' yes
5532 # Use a header file that comes with gcc, so configuring glibc
5533 # with a fresh cross-compiler works.
5534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5535 # <limits.h> exists even on freestanding compilers.
5536 # On the NeXT, cc -E runs the code through the compiler's parser,
5537 # not just through cpp. "Syntax error" is here to catch this case.
5538 cat >conftest.$ac_ext <<_ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5545 # include <limits.h>
5547 # include <assert.h>
5551 if { (ac_try="$ac_cpp conftest.$ac_ext"
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5559 grep -v '^ *+' conftest.er1 >conftest.err
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } >/dev/null; then
5564 if test -s conftest.err; then
5565 ac_cpp_err=$ac_c_preproc_warn_flag
5566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5573 if test -z "$ac_cpp_err"; then
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5579 # Broken: fails on valid input.
5583 rm -f conftest.err conftest.$ac_ext
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
5587 cat >conftest.$ac_ext <<_ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593 #include <ac_nonexistent.h>
5595 if { (ac_try="$ac_cpp conftest.$ac_ext"
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5603 grep -v '^ *+' conftest.er1 >conftest.err
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } >/dev/null; then
5608 if test -s conftest.err; then
5609 ac_cpp_err=$ac_c_preproc_warn_flag
5610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5617 if test -z "$ac_cpp_err"; then
5618 # Broken: success on invalid input.
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 # Passes both tests.
5629 rm -f conftest.err conftest.$ac_ext
5632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5633 rm -f conftest.err conftest.$ac_ext
5634 if $ac_preproc_ok; then
5637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5638 See \`config.log' for more details." >&5
5639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5640 See \`config.log' for more details." >&2;}
5641 { (exit 1); exit 1; }; }
5645 ac_cpp='$CPP $CPPFLAGS'
5646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651 ac_cpp='$CPP $CPPFLAGS'
5652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655 if test -n "$ac_tool_prefix"; then
5658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5662 if test "${ac_cv_prog_CC+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 if test -n "$CC"; then
5666 ac_cv_prog_CC="$CC" # Let the user override the test.
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 if test -n "$CC"; then
5687 { echo "$as_me:$LINENO: result: $CC" >&5
5688 echo "${ECHO_T}$CC" >&6; }
5690 { echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6; }
5695 test -n "$CC" && break
5698 if test -z "$CC"; then
5702 # Extract the first word of "$ac_prog", so it can be a program name with args.
5703 set dummy $ac_prog; ac_word=$2
5704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 if test -n "$ac_ct_CC"; then
5710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_prog_ac_ct_CC="$ac_prog"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5730 if test -n "$ac_ct_CC"; then
5731 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5732 echo "${ECHO_T}$ac_ct_CC" >&6; }
5734 { echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6; }
5739 test -n "$ac_ct_CC" && break
5742 if test "x$ac_ct_CC" = x; then
5745 case $cross_compiling:$ac_tool_warned in
5747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5748 whose name does not start with the host triplet. If you think this
5749 configuration is useful to you, please write to autoconf@gnu.org." >&5
5750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5751 whose name does not start with the host triplet. If you think this
5752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5753 ac_tool_warned=yes ;;
5760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5761 See \`config.log' for more details." >&5
5762 echo "$as_me: error: no acceptable C compiler found in \$PATH
5763 See \`config.log' for more details." >&2;}
5764 { (exit 1); exit 1; }; }
5766 # Provide some information about the compiler.
5767 echo "$as_me:$LINENO: checking for C compiler version" >&5
5768 ac_compiler=`set X $ac_compile; echo $2`
5769 { (ac_try="$ac_compiler --version >&5"
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compiler --version >&5") 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }
5779 { (ac_try="$ac_compiler -v >&5"
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compiler -v >&5") 2>&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }
5789 { (ac_try="$ac_compiler -V >&5"
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compiler -V >&5") 2>&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }
5800 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5801 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5802 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_try") 2>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5869 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5870 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5871 GCC=`test $ac_compiler_gnu = yes && echo yes`
5872 ac_test_CFLAGS=${CFLAGS+set}
5873 ac_save_CFLAGS=$CFLAGS
5874 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5875 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5876 if test "${ac_cv_prog_cc_g+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 ac_save_c_werror_flag=$ac_c_werror_flag
5880 ac_c_werror_flag=yes
5883 cat >conftest.$ac_ext <<_ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5898 rm -f conftest.$ac_objext
5899 if { (ac_try="$ac_compile"
5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 (eval "$ac_compile") 2>conftest.er1
5907 grep -v '^ *+' conftest.er1 >conftest.err
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5913 { (case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_try") 2>&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try='test -s conftest.$ac_objext'
5923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_try") 2>&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5938 cat >conftest.$ac_ext <<_ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5953 rm -f conftest.$ac_objext
5954 if { (ac_try="$ac_compile"
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5962 grep -v '^ *+' conftest.er1 >conftest.err
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5968 { (case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_try") 2>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_try") 2>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_c_werror_flag=$ac_save_c_werror_flag
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6009 rm -f conftest.$ac_objext
6010 if { (ac_try="$ac_compile"
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compile") 2>conftest.er1
6018 grep -v '^ *+' conftest.er1 >conftest.err
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_try") 2>&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_try") 2>&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 ac_c_werror_flag=$ac_save_c_werror_flag
6060 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6061 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6062 if test "$ac_test_CFLAGS" = set; then
6063 CFLAGS=$ac_save_CFLAGS
6064 elif test $ac_cv_prog_cc_g = yes; then
6065 if test "$GCC" = yes; then
6071 if test "$GCC" = yes; then
6077 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6078 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6079 if test "${ac_cv_prog_cc_c89+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 ac_cv_prog_cc_c89=no
6084 cat >conftest.$ac_ext <<_ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6092 #include <sys/types.h>
6093 #include <sys/stat.h>
6094 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6095 struct buf { int x; };
6096 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6097 static char *e (p, i)
6103 static char *f (char * (*g) (char **, int), char **p, ...)
6108 s = g (p, va_arg (v,int));
6113 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6114 function prototypes and stuff, but not '\xHH' hex character constants.
6115 These don't provoke an error unfortunately, instead are silently treated
6116 as 'x'. The following induces an error, until -std is added to get
6117 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6118 array size at least. It's necessary to write '\x00'==0 to get something
6119 that's true only with -std. */
6120 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6122 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6123 inside strings and character constants. */
6125 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6127 int test (int i, double x);
6128 struct s1 {int (*f) (int a);};
6129 struct s2 {int (*f) (double a);};
6130 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6136 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6141 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6142 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6144 CC="$ac_save_CC $ac_arg"
6145 rm -f conftest.$ac_objext
6146 if { (ac_try="$ac_compile"
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_compile") 2>conftest.er1
6154 grep -v '^ *+' conftest.er1 >conftest.err
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } &&
6159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6160 { (case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_try") 2>&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_try") 2>&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_cv_prog_cc_c89=$ac_arg
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6187 rm -f core conftest.err conftest.$ac_objext
6188 test "x$ac_cv_prog_cc_c89" != "xno" && break
6190 rm -f conftest.$ac_ext
6195 case "x$ac_cv_prog_cc_c89" in
6197 { echo "$as_me:$LINENO: result: none needed" >&5
6198 echo "${ECHO_T}none needed" >&6; } ;;
6200 { echo "$as_me:$LINENO: result: unsupported" >&5
6201 echo "${ECHO_T}unsupported" >&6; } ;;
6203 CC="$CC $ac_cv_prog_cc_c89"
6204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6205 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6210 ac_cpp='$CPP $CPPFLAGS'
6211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6216 ac_cpp='$CXXCPP $CPPFLAGS'
6217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6220 if test -z "$CXX"; then
6221 if test -n "$CCC"; then
6224 if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231 if test "${ac_cv_prog_CXX+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 if test -n "$CXX"; then
6235 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 if test -n "$CXX"; then
6256 { echo "$as_me:$LINENO: result: $CXX" >&5
6257 echo "${ECHO_T}$CXX" >&6; }
6259 { echo "$as_me:$LINENO: result: no" >&5
6260 echo "${ECHO_T}no" >&6; }
6264 test -n "$CXX" && break
6267 if test -z "$CXX"; then
6271 # Extract the first word of "$ac_prog", so it can be a program name with args.
6272 set dummy $ac_prog; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 if test -n "$ac_ct_CXX"; then
6279 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_ac_ct_CXX="$ac_prog"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6299 if test -n "$ac_ct_CXX"; then
6300 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6301 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6308 test -n "$ac_ct_CXX" && break
6311 if test "x$ac_ct_CXX" = x; then
6314 case $cross_compiling:$ac_tool_warned in
6316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6317 whose name does not start with the host triplet. If you think this
6318 configuration is useful to you, please write to autoconf@gnu.org." >&5
6319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6320 whose name does not start with the host triplet. If you think this
6321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6322 ac_tool_warned=yes ;;
6330 # Provide some information about the compiler.
6331 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6332 ac_compiler=`set X $ac_compile; echo $2`
6333 { (ac_try="$ac_compiler --version >&5"
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_compiler --version >&5") 2>&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }
6343 { (ac_try="$ac_compiler -v >&5"
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compiler -v >&5") 2>&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }
6353 { (ac_try="$ac_compiler -V >&5"
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_compiler -V >&5") 2>&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }
6364 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6365 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6366 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 cat >conftest.$ac_ext <<_ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6396 grep -v '^ *+' conftest.er1 >conftest.err
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6402 { (case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_try") 2>&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest.$ac_objext'
6412 { (case "(($ac_try" in
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_try") 2>&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6433 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6434 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6435 GXX=`test $ac_compiler_gnu = yes && echo yes`
6436 ac_test_CXXFLAGS=${CXXFLAGS+set}
6437 ac_save_CXXFLAGS=$CXXFLAGS
6438 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6439 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6440 if test "${ac_cv_prog_cxx_g+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6444 ac_cxx_werror_flag=yes
6447 cat >conftest.$ac_ext <<_ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6462 rm -f conftest.$ac_objext
6463 if { (ac_try="$ac_compile"
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_compile") 2>conftest.er1
6471 grep -v '^ *+' conftest.er1 >conftest.err
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6477 { (case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_try") 2>&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; } &&
6486 { ac_try='test -s conftest.$ac_objext'
6487 { (case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_try") 2>&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_prog_cxx_g=yes
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6502 cat >conftest.$ac_ext <<_ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6517 rm -f conftest.$ac_objext
6518 if { (ac_try="$ac_compile"
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_compile") 2>conftest.er1
6526 grep -v '^ *+' conftest.er1 >conftest.err
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
6531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6532 { (case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_try") 2>&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest.$ac_objext'
6542 { (case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_try") 2>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6558 cat >conftest.$ac_ext <<_ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6573 rm -f conftest.$ac_objext
6574 if { (ac_try="$ac_compile"
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6582 grep -v '^ *+' conftest.er1 >conftest.err
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6588 { (case "(($ac_try" in
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_try") 2>&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; } &&
6597 { ac_try='test -s conftest.$ac_objext'
6598 { (case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_try") 2>&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 ac_cv_prog_cxx_g=yes
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6625 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6626 if test "$ac_test_CXXFLAGS" = set; then
6627 CXXFLAGS=$ac_save_CXXFLAGS
6628 elif test $ac_cv_prog_cxx_g = yes; then
6629 if test "$GXX" = yes; then
6635 if test "$GXX" = yes; then
6642 ac_cpp='$CPP $CPPFLAGS'
6643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6648 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6649 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6650 if test "${lt_cv_path_NM+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 if test -n "$NM"; then
6654 # Let the user override the test.
6657 lt_nm_to_check="${ac_tool_prefix}nm"
6658 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6659 lt_nm_to_check="$lt_nm_to_check nm"
6661 for lt_tmp_nm in $lt_nm_to_check; do
6662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6663 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6665 test -z "$ac_dir" && ac_dir=.
6666 tmp_nm="$ac_dir/$lt_tmp_nm"
6667 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6668 # Check to see if the nm accepts a BSD-compat flag.
6669 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6670 # nm: unknown option "B" ignored
6671 # Tru64's nm complains that /dev/null is an invalid object file
6672 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6673 */dev/null* | *'Invalid file or object type'*)
6674 lt_cv_path_NM="$tmp_nm -B"
6678 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6680 lt_cv_path_NM="$tmp_nm -p"
6684 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6685 continue # so that we can try to find one that supports BSD flags
6694 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6697 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6698 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6703 { echo "$as_me:$LINENO: checking for GNU make" >&5
6704 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6705 if test "${llvm_cv_gnu_make_command+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 llvm_cv_gnu_make_command=''
6709 for a in "$MAKE" make gmake gnumake ; do
6710 if test -z "$a" ; then continue ; fi ;
6711 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6713 llvm_cv_gnu_make_command=$a ;
6718 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6719 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6720 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6724 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6725 echo "${ECHO_T}\"Not found\"" >&6; };
6729 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6730 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6732 if test "$LN_S" = "ln -s"; then
6733 { echo "$as_me:$LINENO: result: yes" >&5
6734 echo "${ECHO_T}yes" >&6; }
6736 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6737 echo "${ECHO_T}no, using $LN_S" >&6; }
6740 # Extract the first word of "cmp", so it can be a program name with args.
6741 set dummy cmp; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_CMP+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6772 if test -n "$CMP"; then
6773 { echo "$as_me:$LINENO: result: $CMP" >&5
6774 echo "${ECHO_T}$CMP" >&6; }
6776 { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6781 # Extract the first word of "cp", so it can be a program name with args.
6782 set dummy cp; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_CP+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6813 if test -n "$CP"; then
6814 { echo "$as_me:$LINENO: result: $CP" >&5
6815 echo "${ECHO_T}$CP" >&6; }
6817 { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6822 # Extract the first word of "date", so it can be a program name with args.
6823 set dummy date; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_path_DATE+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6853 DATE=$ac_cv_path_DATE
6854 if test -n "$DATE"; then
6855 { echo "$as_me:$LINENO: result: $DATE" >&5
6856 echo "${ECHO_T}$DATE" >&6; }
6858 { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6863 # Extract the first word of "find", so it can be a program name with args.
6864 set dummy find; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_path_FIND+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6894 FIND=$ac_cv_path_FIND
6895 if test -n "$FIND"; then
6896 { echo "$as_me:$LINENO: result: $FIND" >&5
6897 echo "${ECHO_T}$FIND" >&6; }
6899 { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6904 # Extract the first word of "grep", so it can be a program name with args.
6905 set dummy grep; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_GREP+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6935 GREP=$ac_cv_path_GREP
6936 if test -n "$GREP"; then
6937 { echo "$as_me:$LINENO: result: $GREP" >&5
6938 echo "${ECHO_T}$GREP" >&6; }
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6945 # Extract the first word of "mkdir", so it can be a program name with args.
6946 set dummy mkdir; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_path_MKDIR+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6976 MKDIR=$ac_cv_path_MKDIR
6977 if test -n "$MKDIR"; then
6978 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6979 echo "${ECHO_T}$MKDIR" >&6; }
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6986 # Extract the first word of "mv", so it can be a program name with args.
6987 set dummy mv; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_path_MV+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7018 if test -n "$MV"; then
7019 { echo "$as_me:$LINENO: result: $MV" >&5
7020 echo "${ECHO_T}$MV" >&6; }
7022 { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_prog_RANLIB+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 if test -n "$RANLIB"; then
7036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 RANLIB=$ac_cv_prog_RANLIB
7056 if test -n "$RANLIB"; then
7057 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7058 echo "${ECHO_T}$RANLIB" >&6; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7066 if test -z "$ac_cv_prog_RANLIB"; then
7067 ac_ct_RANLIB=$RANLIB
7068 # Extract the first word of "ranlib", so it can be a program name with args.
7069 set dummy ranlib; ac_word=$2
7070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7072 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 if test -n "$ac_ct_RANLIB"; then
7076 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_prog_ac_ct_RANLIB="ranlib"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7096 if test -n "$ac_ct_RANLIB"; then
7097 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7098 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7100 { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7104 if test "x$ac_ct_RANLIB" = x; then
7107 case $cross_compiling:$ac_tool_warned in
7109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7110 whose name does not start with the host triplet. If you think this
7111 configuration is useful to you, please write to autoconf@gnu.org." >&5
7112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7113 whose name does not start with the host triplet. If you think this
7114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7115 ac_tool_warned=yes ;;
7117 RANLIB=$ac_ct_RANLIB
7120 RANLIB="$ac_cv_prog_RANLIB"
7123 if test -n "$ac_tool_prefix"; then
7124 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7125 set dummy ${ac_tool_prefix}ar; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_prog_AR+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 if test -n "$AR"; then
7132 ac_cv_prog_AR="$AR" # Let the user override the test.
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_prog_AR="${ac_tool_prefix}ar"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 if test -n "$AR"; then
7153 { echo "$as_me:$LINENO: result: $AR" >&5
7154 echo "${ECHO_T}$AR" >&6; }
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7162 if test -z "$ac_cv_prog_AR"; then
7164 # Extract the first word of "ar", so it can be a program name with args.
7165 set dummy ar; ac_word=$2
7166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 if test -n "$ac_ct_AR"; then
7172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_prog_ac_ct_AR="ar"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7192 if test -n "$ac_ct_AR"; then
7193 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7194 echo "${ECHO_T}$ac_ct_AR" >&6; }
7196 { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7200 if test "x$ac_ct_AR" = x; then
7203 case $cross_compiling:$ac_tool_warned in
7205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7206 whose name does not start with the host triplet. If you think this
7207 configuration is useful to you, please write to autoconf@gnu.org." >&5
7208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7209 whose name does not start with the host triplet. If you think this
7210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7211 ac_tool_warned=yes ;;
7219 # Extract the first word of "rm", so it can be a program name with args.
7220 set dummy rm; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_path_RM+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7251 if test -n "$RM"; then
7252 { echo "$as_me:$LINENO: result: $RM" >&5
7253 echo "${ECHO_T}$RM" >&6; }
7255 { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7260 # Extract the first word of "sed", so it can be a program name with args.
7261 set dummy sed; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_SED+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7292 if test -n "$SED"; then
7293 { echo "$as_me:$LINENO: result: $SED" >&5
7294 echo "${ECHO_T}$SED" >&6; }
7296 { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7301 # Extract the first word of "tar", so it can be a program name with args.
7302 set dummy tar; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_TAR+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7333 if test -n "$TAR"; then
7334 { echo "$as_me:$LINENO: result: $TAR" >&5
7335 echo "${ECHO_T}$TAR" >&6; }
7337 { echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6; }
7342 # Extract the first word of "pwd", so it can be a program name with args.
7343 set dummy pwd; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_BINPWD+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7373 BINPWD=$ac_cv_path_BINPWD
7374 if test -n "$BINPWD"; then
7375 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7376 echo "${ECHO_T}$BINPWD" >&6; }
7378 { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7384 # Extract the first word of "Graphviz", so it can be a program name with args.
7385 set dummy Graphviz; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7415 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7416 if test -n "$GRAPHVIZ"; then
7417 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7418 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7420 { echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6; }
7425 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7427 cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_GRAPHVIZ 1
7431 if test "$llvm_cv_os_type" = "MingW" ; then
7432 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7435 cat >>confdefs.h <<_ACEOF
7436 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7440 # Extract the first word of "dot", so it can be a program name with args.
7441 set dummy dot; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_path_DOT+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7472 if test -n "$DOT"; then
7473 { echo "$as_me:$LINENO: result: $DOT" >&5
7474 echo "${ECHO_T}$DOT" >&6; }
7476 { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7481 if test "$DOT" != "echo dot" ; then
7483 cat >>confdefs.h <<\_ACEOF
7487 if test "$llvm_cv_os_type" = "MingW" ; then
7488 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7491 cat >>confdefs.h <<_ACEOF
7492 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7496 # Extract the first word of "fdp", so it can be a program name with args.
7497 set dummy fdp; ac_word=$2
7498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7500 if test "${ac_cv_path_FDP+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7528 if test -n "$FDP"; then
7529 { echo "$as_me:$LINENO: result: $FDP" >&5
7530 echo "${ECHO_T}$FDP" >&6; }
7532 { echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6; }
7537 if test "$FDP" != "echo fdp" ; then
7539 cat >>confdefs.h <<\_ACEOF
7543 if test "$llvm_cv_os_type" = "MingW" ; then
7544 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7547 cat >>confdefs.h <<_ACEOF
7548 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7552 # Extract the first word of "neato", so it can be a program name with args.
7553 set dummy neato; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_NEATO+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7583 NEATO=$ac_cv_path_NEATO
7584 if test -n "$NEATO"; then
7585 { echo "$as_me:$LINENO: result: $NEATO" >&5
7586 echo "${ECHO_T}$NEATO" >&6; }
7588 { echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6; }
7593 if test "$NEATO" != "echo neato" ; then
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_NEATO 1
7599 if test "$llvm_cv_os_type" = "MingW" ; then
7600 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7603 cat >>confdefs.h <<_ACEOF
7604 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7608 # Extract the first word of "twopi", so it can be a program name with args.
7609 set dummy twopi; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_path_TWOPI+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7639 TWOPI=$ac_cv_path_TWOPI
7640 if test -n "$TWOPI"; then
7641 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7642 echo "${ECHO_T}$TWOPI" >&6; }
7644 { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7649 if test "$TWOPI" != "echo twopi" ; then
7651 cat >>confdefs.h <<\_ACEOF
7652 #define HAVE_TWOPI 1
7655 if test "$llvm_cv_os_type" = "MingW" ; then
7656 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7659 cat >>confdefs.h <<_ACEOF
7660 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7664 # Extract the first word of "circo", so it can be a program name with args.
7665 set dummy circo; ac_word=$2
7666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668 if test "${ac_cv_path_CIRCO+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7683 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7695 CIRCO=$ac_cv_path_CIRCO
7696 if test -n "$CIRCO"; then
7697 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7698 echo "${ECHO_T}$CIRCO" >&6; }
7700 { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7705 if test "$CIRCO" != "echo circo" ; then
7707 cat >>confdefs.h <<\_ACEOF
7708 #define HAVE_CIRCO 1
7711 if test "$llvm_cv_os_type" = "MingW" ; then
7712 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7715 cat >>confdefs.h <<_ACEOF
7716 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7720 for ac_prog in gv gsview32
7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
7723 set dummy $ac_prog; ac_word=$2
7724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7726 if test "${ac_cv_path_GV+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 if test -n "$GV"; then
7754 { echo "$as_me:$LINENO: result: $GV" >&5
7755 echo "${ECHO_T}$GV" >&6; }
7757 { echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6; }
7762 test -n "$GV" && break
7764 test -n "$GV" || GV="echo gv"
7766 if test "$GV" != "echo gv" ; then
7768 cat >>confdefs.h <<\_ACEOF
7772 if test "$llvm_cv_os_type" = "MingW" ; then
7773 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7776 cat >>confdefs.h <<_ACEOF
7777 #define LLVM_PATH_GV "$GV${EXEEXT}"
7781 # Extract the first word of "dotty", so it can be a program name with args.
7782 set dummy dotty; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_path_DOTTY+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7812 DOTTY=$ac_cv_path_DOTTY
7813 if test -n "$DOTTY"; then
7814 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7815 echo "${ECHO_T}$DOTTY" >&6; }
7817 { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7822 if test "$DOTTY" != "echo dotty" ; then
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_DOTTY 1
7828 if test "$llvm_cv_os_type" = "MingW" ; then
7829 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7832 cat >>confdefs.h <<_ACEOF
7833 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7837 # Extract the first word of "xdot.py", so it can be a program name with args.
7838 set dummy xdot.py; ac_word=$2
7839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7841 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7868 XDOT_PY=$ac_cv_path_XDOT_PY
7869 if test -n "$XDOT_PY"; then
7870 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7871 echo "${ECHO_T}$XDOT_PY" >&6; }
7873 { echo "$as_me:$LINENO: result: no" >&5
7874 echo "${ECHO_T}no" >&6; }
7878 if test "$XDOT_PY" != "echo xdot.py" ; then
7880 cat >>confdefs.h <<\_ACEOF
7881 #define HAVE_XDOT_PY 1
7884 if test "$llvm_cv_os_type" = "MingW" ; then
7885 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7888 cat >>confdefs.h <<_ACEOF
7889 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7895 # Extract the first word of "perl", so it can be a program name with args.
7896 set dummy perl; ac_word=$2
7897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7899 if test "${ac_cv_path_PERL+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7914 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7926 PERL=$ac_cv_path_PERL
7927 if test -n "$PERL"; then
7928 { echo "$as_me:$LINENO: result: $PERL" >&5
7929 echo "${ECHO_T}$PERL" >&6; }
7931 { echo "$as_me:$LINENO: result: no" >&5
7932 echo "${ECHO_T}no" >&6; }
7936 if test "$PERL" != "none"; then
7937 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7938 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7939 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7940 { echo "$as_me:$LINENO: result: yes" >&5
7941 echo "${ECHO_T}yes" >&6; }
7944 { echo "$as_me:$LINENO: result: not found" >&5
7945 echo "${ECHO_T}not found" >&6; }
7950 if test x"$PERL" = xnone; then
7953 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7954 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7955 { (exit 1); exit 1; }; }
7961 # Find a good install program. We prefer a C program (faster),
7962 # so one script is as good as another. But avoid the broken or
7963 # incompatible versions:
7964 # SysV /etc/install, /usr/sbin/install
7965 # SunOS /usr/etc/install
7966 # IRIX /sbin/install
7968 # AmigaOS /C/install, which installs bootblocks on floppy discs
7969 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7970 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7971 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7972 # OS/2's system install, which has a completely different semantic
7973 # ./install, which can be erroneously created by make from ./install.sh.
7974 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7975 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7976 if test -z "$INSTALL"; then
7977 if test "${ac_cv_path_install+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir=.
7985 # Account for people who put trailing slashes in PATH elements.
7987 ./ | .// | /cC/* | \
7988 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7989 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7992 # OSF1 and SCO ODT 3.0 have their own names for install.
7993 # Don't use installbsd from OSF since it installs stuff as root
7995 for ac_prog in ginstall scoinst install; do
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7998 if test $ac_prog = install &&
7999 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8000 # AIX install. It has an incompatible calling convention.
8002 elif test $ac_prog = install &&
8003 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8004 # program-specific install script used by HP pwplus--don't use.
8007 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8020 if test "${ac_cv_path_install+set}" = set; then
8021 INSTALL=$ac_cv_path_install
8023 # As a last resort, use the slow shell script. Don't cache a
8024 # value for INSTALL within a source directory, because that will
8025 # break other packages using the cache if that directory is
8026 # removed, or if the value is a relative name.
8027 INSTALL=$ac_install_sh
8030 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8031 echo "${ECHO_T}$INSTALL" >&6; }
8033 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8034 # It thinks the first close brace ends the variable substitution.
8035 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8037 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8039 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8042 [\\/$]* | ?:[\\/]* ) ;;
8043 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8046 # Extract the first word of "bzip2", so it can be a program name with args.
8047 set dummy bzip2; ac_word=$2
8048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050 if test "${ac_cv_path_BZIP2+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8065 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 BZIP2=$ac_cv_path_BZIP2
8077 if test -n "$BZIP2"; then
8078 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8079 echo "${ECHO_T}$BZIP2" >&6; }
8081 { echo "$as_me:$LINENO: result: no" >&5
8082 echo "${ECHO_T}no" >&6; }
8086 # Extract the first word of "cat", so it can be a program name with args.
8087 set dummy cat; ac_word=$2
8088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8090 if test "${ac_cv_path_CAT+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8105 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 if test -n "$CAT"; then
8118 { echo "$as_me:$LINENO: result: $CAT" >&5
8119 echo "${ECHO_T}$CAT" >&6; }
8121 { echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6; }
8126 # Extract the first word of "doxygen", so it can be a program name with args.
8127 set dummy doxygen; ac_word=$2
8128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8130 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8135 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8145 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 DOXYGEN=$ac_cv_path_DOXYGEN
8157 if test -n "$DOXYGEN"; then
8158 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8159 echo "${ECHO_T}$DOXYGEN" >&6; }
8161 { echo "$as_me:$LINENO: result: no" >&5
8162 echo "${ECHO_T}no" >&6; }
8166 # Extract the first word of "groff", so it can be a program name with args.
8167 set dummy groff; ac_word=$2
8168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8170 if test "${ac_cv_path_GROFF+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 test -z "$as_dir" && as_dir=.
8183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8185 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 GROFF=$ac_cv_path_GROFF
8197 if test -n "$GROFF"; then
8198 { echo "$as_me:$LINENO: result: $GROFF" >&5
8199 echo "${ECHO_T}$GROFF" >&6; }
8201 { echo "$as_me:$LINENO: result: no" >&5
8202 echo "${ECHO_T}no" >&6; }
8206 # Extract the first word of "gzip", so it can be a program name with args.
8207 set dummy gzip; ac_word=$2
8208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8210 if test "${ac_cv_path_GZIP+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8225 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 GZIP=$ac_cv_path_GZIP
8237 if test -n "$GZIP"; then
8238 { echo "$as_me:$LINENO: result: $GZIP" >&5
8239 echo "${ECHO_T}$GZIP" >&6; }
8241 { echo "$as_me:$LINENO: result: no" >&5
8242 echo "${ECHO_T}no" >&6; }
8246 # Extract the first word of "pod2html", so it can be a program name with args.
8247 set dummy pod2html; ac_word=$2
8248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8250 if test "${ac_cv_path_POD2HTML+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262 test -z "$as_dir" && as_dir=.
8263 for ac_exec_ext in '' $ac_executable_extensions; do
8264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8265 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8276 POD2HTML=$ac_cv_path_POD2HTML
8277 if test -n "$POD2HTML"; then
8278 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8279 echo "${ECHO_T}$POD2HTML" >&6; }
8281 { echo "$as_me:$LINENO: result: no" >&5
8282 echo "${ECHO_T}no" >&6; }
8286 # Extract the first word of "pod2man", so it can be a program name with args.
8287 set dummy pod2man; ac_word=$2
8288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8290 if test "${ac_cv_path_POD2MAN+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 test -z "$as_dir" && as_dir=.
8303 for ac_exec_ext in '' $ac_executable_extensions; do
8304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8305 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 POD2MAN=$ac_cv_path_POD2MAN
8317 if test -n "$POD2MAN"; then
8318 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8319 echo "${ECHO_T}$POD2MAN" >&6; }
8321 { echo "$as_me:$LINENO: result: no" >&5
8322 echo "${ECHO_T}no" >&6; }
8326 # Extract the first word of "pdfroff", so it can be a program name with args.
8327 set dummy pdfroff; ac_word=$2
8328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8330 if test "${ac_cv_path_PDFROFF+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 PDFROFF=$ac_cv_path_PDFROFF
8357 if test -n "$PDFROFF"; then
8358 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8359 echo "${ECHO_T}$PDFROFF" >&6; }
8361 { echo "$as_me:$LINENO: result: no" >&5
8362 echo "${ECHO_T}no" >&6; }
8366 # Extract the first word of "runtest", so it can be a program name with args.
8367 set dummy runtest; ac_word=$2
8368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8370 if test "${ac_cv_path_RUNTEST+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 test -z "$as_dir" && as_dir=.
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8385 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 RUNTEST=$ac_cv_path_RUNTEST
8397 if test -n "$RUNTEST"; then
8398 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8399 echo "${ECHO_T}$RUNTEST" >&6; }
8401 { echo "$as_me:$LINENO: result: no" >&5
8402 echo "${ECHO_T}no" >&6; }
8408 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8409 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8411 # Check whether --with-tclinclude was given.
8412 if test "${with_tclinclude+set}" = set; then
8413 withval=$with_tclinclude; with_tclinclude=${withval}
8418 if test "${ac_cv_path_tclsh+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 if test x"${with_tclinclude}" != x ; then
8423 if test -f ${with_tclinclude}/tclsh ; then
8424 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8425 elif test -f ${with_tclinclude}/src/tclsh ; then
8426 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8428 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8429 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8430 { (exit 1); exit 1; }; }
8436 if test x"${ac_cv_path_tclsh}" = x ; then
8437 { echo "$as_me:$LINENO: result: none" >&5
8438 echo "${ECHO_T}none" >&6; }
8439 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
8441 # Extract the first word of "$ac_prog", so it can be a program name with args.
8442 set dummy $ac_prog; ac_word=$2
8443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8445 if test "${ac_cv_path_TCLSH+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8460 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 TCLSH=$ac_cv_path_TCLSH
8472 if test -n "$TCLSH"; then
8473 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8474 echo "${ECHO_T}$TCLSH" >&6; }
8476 { echo "$as_me:$LINENO: result: no" >&5
8477 echo "${ECHO_T}no" >&6; }
8481 test -n "$TCLSH" && break
8484 if test x"${TCLSH}" = x ; then
8485 ac_cv_path_tclsh='';
8487 ac_cv_path_tclsh="${TCLSH}";
8490 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8491 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8492 TCLSH="${ac_cv_path_tclsh}"
8496 # Extract the first word of "zip", so it can be a program name with args.
8497 set dummy zip; ac_word=$2
8498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8500 if test "${ac_cv_path_ZIP+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 if test -n "$ZIP"; then
8528 { echo "$as_me:$LINENO: result: $ZIP" >&5
8529 echo "${ECHO_T}$ZIP" >&6; }
8531 { echo "$as_me:$LINENO: result: no" >&5
8532 echo "${ECHO_T}no" >&6; }
8536 for ac_prog in ocamlc
8538 # Extract the first word of "$ac_prog", so it can be a program name with args.
8539 set dummy $ac_prog; ac_word=$2
8540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8542 if test "${ac_cv_path_OCAMLC+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8557 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8568 OCAMLC=$ac_cv_path_OCAMLC
8569 if test -n "$OCAMLC"; then
8570 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8571 echo "${ECHO_T}$OCAMLC" >&6; }
8573 { echo "$as_me:$LINENO: result: no" >&5
8574 echo "${ECHO_T}no" >&6; }
8578 test -n "$OCAMLC" && break
8581 for ac_prog in ocamlopt
8583 # Extract the first word of "$ac_prog", so it can be a program name with args.
8584 set dummy $ac_prog; ac_word=$2
8585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8587 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8602 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 OCAMLOPT=$ac_cv_path_OCAMLOPT
8614 if test -n "$OCAMLOPT"; then
8615 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8616 echo "${ECHO_T}$OCAMLOPT" >&6; }
8618 { echo "$as_me:$LINENO: result: no" >&5
8619 echo "${ECHO_T}no" >&6; }
8623 test -n "$OCAMLOPT" && break
8626 for ac_prog in ocamldep
8628 # Extract the first word of "$ac_prog", so it can be a program name with args.
8629 set dummy $ac_prog; ac_word=$2
8630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8632 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8647 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8658 OCAMLDEP=$ac_cv_path_OCAMLDEP
8659 if test -n "$OCAMLDEP"; then
8660 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8661 echo "${ECHO_T}$OCAMLDEP" >&6; }
8663 { echo "$as_me:$LINENO: result: no" >&5
8664 echo "${ECHO_T}no" >&6; }
8668 test -n "$OCAMLDEP" && break
8671 for ac_prog in ocamldoc
8673 # Extract the first word of "$ac_prog", so it can be a program name with args.
8674 set dummy $ac_prog; ac_word=$2
8675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8677 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8682 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8692 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 OCAMLDOC=$ac_cv_path_OCAMLDOC
8704 if test -n "$OCAMLDOC"; then
8705 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8706 echo "${ECHO_T}$OCAMLDOC" >&6; }
8708 { echo "$as_me:$LINENO: result: no" >&5
8709 echo "${ECHO_T}no" >&6; }
8713 test -n "$OCAMLDOC" && break
8716 for ac_prog in gas as
8718 # Extract the first word of "$ac_prog", so it can be a program name with args.
8719 set dummy $ac_prog; ac_word=$2
8720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8722 if test "${ac_cv_path_GAS+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 test -z "$as_dir" && as_dir=.
8735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8737 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 if test -n "$GAS"; then
8750 { echo "$as_me:$LINENO: result: $GAS" >&5
8751 echo "${ECHO_T}$GAS" >&6; }
8753 { echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6; }
8758 test -n "$GAS" && break
8762 { echo "$as_me:$LINENO: checking for linker version" >&5
8763 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8764 if test "${llvm_cv_link_version+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 version_string="$(ld -v 2>&1 | head -1)"
8771 if (echo "$version_string" | grep -q "ld64"); then
8772 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8774 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8778 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8779 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8781 cat >>confdefs.h <<_ACEOF
8782 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8787 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8788 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8789 if test "${llvm_cv_link_use_r+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 ac_cpp='$CPP $CPPFLAGS'
8794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8799 CFLAGS="$CFLAGS -Wl,-R."
8800 cat >conftest.$ac_ext <<_ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8815 rm -f conftest.$ac_objext conftest$ac_exeext
8816 if { (ac_try="$ac_link"
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_link") 2>conftest.er1
8824 grep -v '^ *+' conftest.er1 >conftest.err
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_try") 2>&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_try") 2>&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 llvm_cv_link_use_r=yes
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 llvm_cv_link_use_r=no
8857 rm -f core conftest.err conftest.$ac_objext \
8858 conftest$ac_exeext conftest.$ac_ext
8861 ac_cpp='$CPP $CPPFLAGS'
8862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8868 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8869 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8870 if test "$llvm_cv_link_use_r" = yes ; then
8872 cat >>confdefs.h <<\_ACEOF
8873 #define HAVE_LINK_R 1
8879 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8880 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8881 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8885 ac_cpp='$CPP $CPPFLAGS'
8886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8891 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8892 cat >conftest.$ac_ext <<_ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8907 rm -f conftest.$ac_objext conftest$ac_exeext
8908 if { (ac_try="$ac_link"
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_link") 2>conftest.er1
8916 grep -v '^ *+' conftest.er1 >conftest.err
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8922 { (case "(($ac_try" in
8923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924 *) ac_try_echo=$ac_try;;
8926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8927 (eval "$ac_try") 2>&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; } &&
8931 { ac_try='test -s conftest$ac_exeext'
8932 { (case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_try") 2>&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 llvm_cv_link_use_export_dynamic=yes
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8946 llvm_cv_link_use_export_dynamic=no
8949 rm -f core conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8953 ac_cpp='$CPP $CPPFLAGS'
8954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8960 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8961 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8962 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8964 cat >>confdefs.h <<\_ACEOF
8965 #define HAVE_LINK_EXPORT_DYNAMIC 1
8971 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8972 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8973 if test "${llvm_cv_link_use_version_script+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 ac_cpp='$CPP $CPPFLAGS'
8978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8984 # The following code is from the autoconf manual,
8985 # "11.13: Limitations of Usual Tools".
8986 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8987 # Use mktemp if possible; otherwise fall back on mkdir,
8988 # with $RANDOM to make collisions less likely.
8992 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8994 test -n "$tmp" && test -d "$tmp"
8996 tmp=$TMPDIR/foo$$-$RANDOM
8997 (umask 077 && mkdir "$tmp")
9000 echo "{" > "$tmp/export.map"
9001 echo " global: main;" >> "$tmp/export.map"
9002 echo " local: *;" >> "$tmp/export.map"
9003 echo "};" >> "$tmp/export.map"
9005 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9006 cat >conftest.$ac_ext <<_ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9021 rm -f conftest.$ac_objext conftest$ac_exeext
9022 if { (ac_try="$ac_link"
9024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025 *) ac_try_echo=$ac_try;;
9027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9028 (eval "$ac_link") 2>conftest.er1
9030 grep -v '^ *+' conftest.er1 >conftest.err
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
9035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9036 { (case "(($ac_try" in
9037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038 *) ac_try_echo=$ac_try;;
9040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041 (eval "$ac_try") 2>&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; } &&
9045 { ac_try='test -s conftest$ac_exeext'
9046 { (case "(($ac_try" in
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_try") 2>&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; }; then
9055 llvm_cv_link_use_version_script=yes
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9060 llvm_cv_link_use_version_script=no
9063 rm -f core conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
9065 rm "$tmp/export.map"
9069 ac_cpp='$CPP $CPPFLAGS'
9070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9076 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9077 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9078 if test "$llvm_cv_link_use_version_script" = yes ; then
9079 HAVE_LINK_VERSION_SCRIPT=1
9086 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9087 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9088 if test "${ac_cv_c_const+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 cat >conftest.$ac_ext <<_ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9101 /* FIXME: Include the comments suggested by Paul. */
9103 /* Ultrix mips cc rejects this. */
9104 typedef int charset[2];
9106 /* SunOS 4.1.1 cc rejects this. */
9107 char const *const *ccp;
9109 /* NEC SVR4.0.2 mips cc rejects this. */
9110 struct point {int x, y;};
9111 static struct point const zero = {0,0};
9112 /* AIX XL C 1.02.0.0 rejects this.
9113 It does not let you subtract one const X* pointer from another in
9114 an arm of an if-expression whose if-part is not a constant
9116 const char *g = "string";
9117 ccp = &g + (g ? g-g : 0);
9118 /* HPUX 7.0 cc rejects these. */
9121 ccp = (char const *const *) p;
9122 { /* SCO 3.2v4 cc rejects this. */
9124 char const *s = 0 ? (char *) 0 : (char const *) 0;
9129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9131 const int *foo = &x[0];
9134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9135 typedef const int *iptr;
9139 { /* AIX XL C 1.02.0.0 rejects this saying
9140 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9141 struct s { int j; const int *ap[3]; };
9142 struct s *b; b->j = 5;
9144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9148 return !x[0] && !zero.x;
9155 rm -f conftest.$ac_objext
9156 if { (ac_try="$ac_compile"
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_compile") 2>conftest.er1
9164 grep -v '^ *+' conftest.er1 >conftest.err
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
9169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9170 { (case "(($ac_try" in
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175 (eval "$ac_try") 2>&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; } &&
9179 { ac_try='test -s conftest.$ac_objext'
9180 { (case "(($ac_try" in
9181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9182 *) ac_try_echo=$ac_try;;
9184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9185 (eval "$ac_try") 2>&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; }; then
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9200 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9201 if test $ac_cv_c_const = no; then
9203 cat >>confdefs.h <<\_ACEOF
9215 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9216 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9217 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9218 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 cat >conftest.$ac_ext <<_ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 #include <sys/types.h>
9240 rm -f conftest.$ac_objext
9241 if { (ac_try="$ac_compile"
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_compile") 2>conftest.er1
9249 grep -v '^ *+' conftest.er1 >conftest.err
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9255 { (case "(($ac_try" in
9256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257 *) ac_try_echo=$ac_try;;
9259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260 (eval "$ac_try") 2>&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try='test -s conftest.$ac_objext'
9265 { (case "(($ac_try" in
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_try") 2>&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 eval "$as_ac_Header=yes"
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9279 eval "$as_ac_Header=no"
9282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 ac_res=`eval echo '${'$as_ac_Header'}'`
9285 { echo "$as_me:$LINENO: result: $ac_res" >&5
9286 echo "${ECHO_T}$ac_res" >&6; }
9287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9288 cat >>confdefs.h <<_ACEOF
9289 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9292 ac_header_dirent=$ac_hdr; break
9296 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9297 if test $ac_header_dirent = dirent.h; then
9298 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9299 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9300 if test "${ac_cv_search_opendir+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 ac_func_search_save_LIBS=$LIBS
9304 cat >conftest.$ac_ext <<_ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9311 /* Override any GCC internal prototype to avoid an error.
9312 Use char because int might match the return type of a GCC
9313 builtin and then its argument prototype would still apply. */
9326 for ac_lib in '' dir; do
9327 if test -z "$ac_lib"; then
9328 ac_res="none required"
9331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9333 rm -f conftest.$ac_objext conftest$ac_exeext
9334 if { (ac_try="$ac_link"
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340 (eval "$ac_link") 2>conftest.er1
9342 grep -v '^ *+' conftest.er1 >conftest.err
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9348 { (case "(($ac_try" in
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_try") 2>&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; } &&
9357 { ac_try='test -s conftest$ac_exeext'
9358 { (case "(($ac_try" in
9359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360 *) ac_try_echo=$ac_try;;
9362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9363 (eval "$ac_try") 2>&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9367 ac_cv_search_opendir=$ac_res
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9375 rm -f core conftest.err conftest.$ac_objext \
9377 if test "${ac_cv_search_opendir+set}" = set; then
9381 if test "${ac_cv_search_opendir+set}" = set; then
9384 ac_cv_search_opendir=no
9387 LIBS=$ac_func_search_save_LIBS
9389 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9390 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9391 ac_res=$ac_cv_search_opendir
9392 if test "$ac_res" != no; then
9393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9398 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9399 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9400 if test "${ac_cv_search_opendir+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 ac_func_search_save_LIBS=$LIBS
9404 cat >conftest.$ac_ext <<_ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9411 /* Override any GCC internal prototype to avoid an error.
9412 Use char because int might match the return type of a GCC
9413 builtin and then its argument prototype would still apply. */
9426 for ac_lib in '' x; do
9427 if test -z "$ac_lib"; then
9428 ac_res="none required"
9431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9433 rm -f conftest.$ac_objext conftest$ac_exeext
9434 if { (ac_try="$ac_link"
9436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9437 *) ac_try_echo=$ac_try;;
9439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9440 (eval "$ac_link") 2>conftest.er1
9442 grep -v '^ *+' conftest.er1 >conftest.err
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9448 { (case "(($ac_try" in
9449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453 (eval "$ac_try") 2>&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; } &&
9457 { ac_try='test -s conftest$ac_exeext'
9458 { (case "(($ac_try" in
9459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460 *) ac_try_echo=$ac_try;;
9462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463 (eval "$ac_try") 2>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 ac_cv_search_opendir=$ac_res
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9475 rm -f core conftest.err conftest.$ac_objext \
9477 if test "${ac_cv_search_opendir+set}" = set; then
9481 if test "${ac_cv_search_opendir+set}" = set; then
9484 ac_cv_search_opendir=no
9487 LIBS=$ac_func_search_save_LIBS
9489 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9490 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9491 ac_res=$ac_cv_search_opendir
9492 if test "$ac_res" != no; then
9493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9500 for ac_header in dlfcn.h
9502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 ac_res=`eval echo '${'$as_ac_Header'}'`
9510 { echo "$as_me:$LINENO: result: $ac_res" >&5
9511 echo "${ECHO_T}$ac_res" >&6; }
9513 # Is the header compilable?
9514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9516 cat >conftest.$ac_ext <<_ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9522 $ac_includes_default
9523 #include <$ac_header>
9525 rm -f conftest.$ac_objext
9526 if { (ac_try="$ac_compile"
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_compile") 2>conftest.er1
9534 grep -v '^ *+' conftest.er1 >conftest.err
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9540 { (case "(($ac_try" in
9541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9542 *) ac_try_echo=$ac_try;;
9544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9545 (eval "$ac_try") 2>&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; } &&
9549 { ac_try='test -s conftest.$ac_objext'
9550 { (case "(($ac_try" in
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_try") 2>&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; }; then
9559 ac_header_compiler=yes
9561 echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9564 ac_header_compiler=no
9567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9569 echo "${ECHO_T}$ac_header_compiler" >&6; }
9571 # Is the header present?
9572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9574 cat >conftest.$ac_ext <<_ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580 #include <$ac_header>
9582 if { (ac_try="$ac_cpp conftest.$ac_ext"
9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9590 grep -v '^ *+' conftest.er1 >conftest.err
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } >/dev/null; then
9595 if test -s conftest.err; then
9596 ac_cpp_err=$ac_c_preproc_warn_flag
9597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9604 if test -z "$ac_cpp_err"; then
9605 ac_header_preproc=yes
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9610 ac_header_preproc=no
9613 rm -f conftest.err conftest.$ac_ext
9614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9615 echo "${ECHO_T}$ac_header_preproc" >&6; }
9617 # So? What about this header?
9618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9624 ac_header_preproc=yes
9627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9640 ## ----------------------------------- ##
9641 ## Report this to llvmbugs@cs.uiuc.edu ##
9642 ## ----------------------------------- ##
9644 ) | sed "s/^/$as_me: WARNING: /" >&2
9647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 eval "$as_ac_Header=\$ac_header_preproc"
9654 ac_res=`eval echo '${'$as_ac_Header'}'`
9655 { echo "$as_me:$LINENO: result: $ac_res" >&5
9656 echo "${ECHO_T}$ac_res" >&6; }
9659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9660 cat >>confdefs.h <<_ACEOF
9661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9668 # Check whether --enable-ltdl-install was given.
9669 if test "${enable_ltdl_install+set}" = set; then
9670 enableval=$enable_ltdl_install;
9676 if test x"${enable_ltdl_install-no}" != xno; then
9678 INSTALL_LTDL_FALSE='#'
9680 INSTALL_LTDL_TRUE='#'
9686 if test x"${enable_ltdl_convenience-no}" != xno; then
9687 CONVENIENCE_LTDL_TRUE=
9688 CONVENIENCE_LTDL_FALSE='#'
9690 CONVENIENCE_LTDL_TRUE='#'
9691 CONVENIENCE_LTDL_FALSE=
9695 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9696 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9698 libname_spec='lib$name'
9706 shlibpath_overrides_runpath=unknown
9708 dynamic_linker="$host_os ld.so"
9709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9710 if test "$GCC" = yes; then
9711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9712 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9713 # if the path contains ";" then we assume it to be the separator
9714 # otherwise default to the standard path separator (i.e. ":") - it is
9715 # assumed that no part of a normal pathname contains ";" but that should
9716 # okay in the real world where ";" in dirpaths is itself problematic.
9717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9724 need_lib_prefix=unknown
9725 hardcode_into_libs=no
9727 # when you set need_version to no, make sure it does not cause -set_version
9728 # flags to be left without arguments
9729 need_version=unknown
9734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9735 shlibpath_var=LIBPATH
9737 # AIX 3 has no versioning support, so we append a major version to the name.
9738 soname_spec='${libname}${release}${shared_ext}$major'
9745 hardcode_into_libs=yes
9746 if test "$host_cpu" = ia64; then
9747 # AIX 5 supports IA64
9748 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9749 shlibpath_var=LD_LIBRARY_PATH
9751 # With GCC up to 2.95.x, collect2 would create an import file
9752 # for dependence libraries. The import file would start with
9753 # the line `#! .'. This would cause the generated library to
9754 # depend on `.', always an invalid library. This was fixed in
9755 # development snapshots of GCC prior to 3.0.
9757 aix4 | aix4.[01] | aix4.[01].*)
9758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9760 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9768 # soname into executable. Probably we can add versioning support to
9769 # collect2, so additional links can be useful in future.
9770 if test "$aix_use_runtimelinking" = yes; then
9771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9772 # instead of lib<name>.a to let people know that these are not
9773 # typical AIX shared libraries.
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776 # We preserve .a as extension for shared libraries through AIX4.2
9777 # and later when we are not doing run time linking.
9778 library_names_spec='${libname}${release}.a $libname.a'
9779 soname_spec='${libname}${release}${shared_ext}$major'
9781 shlibpath_var=LIBPATH
9786 library_names_spec='$libname.ixlibrary $libname.a'
9787 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9788 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'
9792 library_names_spec='${libname}${shared_ext}'
9793 dynamic_linker="$host_os ld.so"
9794 shlibpath_var=LIBRARY_PATH
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9806 # the default ld.so.conf also contains /usr/contrib/lib and
9807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9808 # libtool to hard-code these into programs
9811 cygwin* | mingw* | pw32*)
9812 version_type=windows
9817 case $GCC,$host_os in
9818 yes,cygwin* | yes,mingw* | yes,pw32*)
9819 library_names_spec='$libname.dll.a'
9820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9821 postinstall_cmds='base_file=`basename \${file}`~
9822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9823 dldir=$destdir/`dirname \$dlpath`~
9824 test -d \$dldir || mkdir -p \$dldir~
9825 $install_prog $dir/$dlname \$dldir/$dlname~
9826 chmod a+x \$dldir/$dlname'
9827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9828 dlpath=$dir/\$dldll~
9830 shlibpath_overrides_runpath=yes
9834 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9835 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9836 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9839 # MinGW DLLs use traditional 'lib' prefix
9840 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9841 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9842 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9843 # It is most probably a Windows format PATH printed by
9844 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9845 # path with ; separators, and with drive letters. We can handle the
9846 # drive letters (cygwin fileutils understands them), so leave them,
9847 # especially as we might pass files found there to a mingw objdump,
9848 # which wouldn't understand a cygwinified path. Ahh.
9849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9855 # pw32 DLLs use 'pw' prefix rather than 'lib'
9856 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9862 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9865 dynamic_linker='Win32 ld.exe'
9866 # FIXME: first we should search . and the directory the executable is in
9870 darwin* | rhapsody*)
9871 dynamic_linker="$host_os dyld"
9875 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9876 soname_spec='${libname}${release}${major}$shared_ext'
9877 shlibpath_overrides_runpath=yes
9878 shlibpath_var=DYLD_LIBRARY_PATH
9879 shrext_cmds='.dylib'
9880 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9881 if test "$GCC" = yes; then
9882 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"`
9884 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9894 soname_spec='${libname}${release}${shared_ext}$major'
9895 shlibpath_var=LD_LIBRARY_PATH
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 shlibpath_overrides_runpath=no
9910 hardcode_into_libs=yes
9911 dynamic_linker='GNU ld.so'
9914 freebsd* | dragonfly*)
9915 # DragonFly does not have aout. When/if they implement a new
9916 # versioning mechanism, adjust this.
9917 if test -x /usr/bin/objformat; then
9918 objformat=`/usr/bin/objformat`
9921 freebsd[123]*) objformat=aout ;;
9925 version_type=freebsd-$objformat
9926 case $version_type in
9928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9937 shlibpath_var=LD_LIBRARY_PATH
9940 shlibpath_overrides_runpath=yes
9942 freebsd3.[01]* | freebsdelf3.[01]*)
9943 shlibpath_overrides_runpath=yes
9944 hardcode_into_libs=yes
9946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9948 shlibpath_overrides_runpath=no
9949 hardcode_into_libs=yes
9951 freebsd*) # from 4.6 on
9952 shlibpath_overrides_runpath=yes
9953 hardcode_into_libs=yes
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 shlibpath_var=LD_LIBRARY_PATH
9965 hardcode_into_libs=yes
9968 hpux9* | hpux10* | hpux11*)
9969 # Give a soname corresponding to the major version so that dld.sl refuses to
9970 # link against other versions.
9977 hardcode_into_libs=yes
9978 dynamic_linker="$host_os dld.so"
9979 shlibpath_var=LD_LIBRARY_PATH
9980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982 soname_spec='${libname}${release}${shared_ext}$major'
9983 if test "X$HPUX_IA64_MODE" = X32; then
9984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9992 hardcode_into_libs=yes
9993 dynamic_linker="$host_os dld.sl"
9994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9997 soname_spec='${libname}${release}${shared_ext}$major'
9998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10003 dynamic_linker="$host_os dld.sl"
10004 shlibpath_var=SHLIB_PATH
10005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10007 soname_spec='${libname}${release}${shared_ext}$major'
10010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10011 postinstall_cmds='chmod 555 $lib'
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 shlibpath_overrides_runpath=no
10023 hardcode_into_libs=yes
10026 irix5* | irix6* | nonstopux*)
10028 nonstopux*) version_type=nonstopux ;;
10030 if test "$lt_cv_prog_gnu_ld" = yes; then
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10041 irix5* | nonstopux*)
10042 libsuff= shlibsuff=
10045 case $LD in # libtool.m4 will add one of these switches to LD
10046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10047 libsuff= shlibsuff= libmagic=32-bit;;
10048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10049 libsuff=32 shlibsuff=N32 libmagic=N32;;
10050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10051 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10052 *) libsuff= shlibsuff= libmagic=never-match;;
10056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10057 shlibpath_overrides_runpath=no
10058 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10059 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10060 hardcode_into_libs=yes
10063 # No shared lib support for Linux oldld, aout, or coff.
10064 linux*oldld* | linux*aout* | linux*coff*)
10068 # This must be Linux ELF.
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 shlibpath_overrides_runpath=no
10078 # This implies no fast_install, which is unacceptable.
10079 # Some rework will be needed to allow for fast_install
10080 # before this can be enabled.
10081 hardcode_into_libs=yes
10083 # Append ld.so.conf contents to the search path
10084 if test -f /etc/ld.so.conf; then
10085 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' ' '`
10086 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10089 # We used to test for /lib/ld.so.1 and disable shared libraries on
10090 # powerpc, because MkLinux only supported shared libraries with the
10091 # GNU dynamic linker. Since this was broken with cross compilers,
10092 # most powerpc-linux boxes support dynamic linking these days and
10093 # people can always --disable-shared, the test was removed, and we
10094 # assume the GNU/Linux dynamic linker is in use.
10095 dynamic_linker='GNU/Linux ld.so'
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 shlibpath_overrides_runpath=no
10106 hardcode_into_libs=yes
10107 dynamic_linker='GNU ld.so'
10114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10117 dynamic_linker='NetBSD (a.out) ld.so'
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10120 soname_spec='${libname}${release}${shared_ext}$major'
10121 dynamic_linker='NetBSD ld.elf_so'
10123 shlibpath_var=LD_LIBRARY_PATH
10124 shlibpath_overrides_runpath=yes
10125 hardcode_into_libs=yes
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 shlibpath_var=LD_LIBRARY_PATH
10132 shlibpath_overrides_runpath=yes
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 shlibpath_var=LD_LIBRARY_PATH
10142 shlibpath_overrides_runpath=yes
10147 sys_lib_dlsearch_path_spec="/usr/lib"
10149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10151 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10152 *) need_version=no ;;
10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10156 shlibpath_var=LD_LIBRARY_PATH
10157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10159 openbsd2.[89] | openbsd2.[89].*)
10160 shlibpath_overrides_runpath=no
10163 shlibpath_overrides_runpath=yes
10167 shlibpath_overrides_runpath=yes
10172 libname_spec='$name'
10175 library_names_spec='$libname${shared_ext} $libname.a'
10176 dynamic_linker='OS/2 ld.exe'
10177 shlibpath_var=LIBPATH
10180 osf3* | osf4* | osf5*)
10184 soname_spec='${libname}${release}${shared_ext}$major'
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 shlibpath_var=LD_LIBRARY_PATH
10187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196 soname_spec='${libname}${release}${shared_ext}$major'
10197 shlibpath_var=LD_LIBRARY_PATH
10198 shlibpath_overrides_runpath=yes
10199 hardcode_into_libs=yes
10200 # ldd complains unless libraries are executable
10201 postinstall_cmds='chmod +x $lib'
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10208 shlibpath_var=LD_LIBRARY_PATH
10209 shlibpath_overrides_runpath=yes
10210 if test "$with_gnu_ld" = yes; then
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 case $host_vendor in
10223 shlibpath_overrides_runpath=no
10225 export_dynamic_flag_spec='${wl}-Blargedynsym'
10226 runpath_var=LD_RUN_PATH
10234 shlibpath_overrides_runpath=no
10235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10241 if test -d /usr/nec ;then
10243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10244 soname_spec='$libname${shared_ext}.$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10250 version_type=freebsd-elf
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 hardcode_into_libs=yes
10257 if test "$with_gnu_ld" = yes; then
10258 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10259 shlibpath_overrides_runpath=no
10261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10262 shlibpath_overrides_runpath=yes
10265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10269 sys_lib_dlsearch_path_spec='/usr/lib'
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 shlibpath_var=LD_LIBRARY_PATH
10283 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10284 echo "${ECHO_T}$dynamic_linker" >&6; }
10285 test "$dynamic_linker" = no && can_build_shared=no
10287 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10288 if test "$GCC" = yes; then
10289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10293 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10294 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10295 if test "${libltdl_cv_shlibext+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 eval libltdl_cv_shlibext=$shrext_cmds
10303 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10304 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10305 if test -n "$libltdl_cv_shlibext"; then
10307 cat >>confdefs.h <<_ACEOF
10308 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10314 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10315 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10316 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 libltdl_cv_shlibpath_var="$shlibpath_var"
10321 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10322 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10323 if test -n "$libltdl_cv_shlibpath_var"; then
10325 cat >>confdefs.h <<_ACEOF
10326 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10332 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10333 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10334 if test "${libltdl_cv_sys_search_path+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10339 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10340 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10341 if test -n "$libltdl_cv_sys_search_path"; then
10343 for dir in $libltdl_cv_sys_search_path; do
10344 if test -z "$sys_search_path"; then
10345 sys_search_path="$dir"
10347 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10351 cat >>confdefs.h <<_ACEOF
10352 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10357 { echo "$as_me:$LINENO: checking for objdir" >&5
10358 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10359 if test "${libltdl_cv_objdir+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 libltdl_cv_objdir="$objdir"
10363 if test -n "$objdir"; then
10366 rm -f .libs 2>/dev/null
10367 mkdir .libs 2>/dev/null
10368 if test -d .libs; then
10369 libltdl_cv_objdir=.libs
10371 # MS-DOS does not allow filenames that begin with a dot.
10372 libltdl_cv_objdir=_libs
10374 rmdir .libs 2>/dev/null
10378 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10379 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10381 cat >>confdefs.h <<_ACEOF
10382 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10390 # Check for command to grab the raw symbol name followed by C symbol from nm.
10391 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10392 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10393 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 # These are sane defaults that work on at least a few old systems.
10398 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10400 # Character class describing NM global symbol codes.
10401 symcode='[BCDEGRST]'
10403 # Regexp to match symbols that can be accessed directly from C.
10404 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10406 # Transform an extracted symbol line into a proper C declaration
10407 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10409 # Transform an extracted symbol line into symbol name and symbol address
10410 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'"
10412 # Define system-specific variables.
10417 cygwin* | mingw* | pw32*)
10418 symcode='[ABCDGISTW]'
10420 hpux*) # Its linker distinguishes data from code symbols
10421 if test "$host_cpu" = ia64; then
10422 symcode='[ABCDEGRST]'
10424 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10425 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'"
10428 if test "$host_cpu" = ia64; then
10429 symcode='[ABCDGIRSTW]'
10430 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10431 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'"
10434 irix* | nonstopux*)
10435 symcode='[BCDEGRST]'
10438 symcode='[BCDEGQRST]'
10449 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10457 # Handle CRLF in mingw tool chain
10461 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10465 # If we're using GNU nm, then use its standard symbol codes.
10466 case `$NM -V 2>&1` in
10467 *GNU* | *'with BFD'*)
10468 symcode='[ABCDGIRSTW]' ;;
10471 # Try without a prefix undercore, then with it.
10472 for ac_symprfx in "" "_"; do
10474 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10475 symxfrm="\\1 $ac_symprfx\\2 \\2"
10477 # Write the raw and C identifiers.
10478 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10480 # Check to see that the pipe works correctly.
10484 cat > conftest.$ac_ext <<EOF
10489 void nm_test_func(){}
10493 int main(){nm_test_var='a';nm_test_func();return(0);}
10496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10497 (eval $ac_compile) 2>&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; then
10501 # Now try to grab the symbols.
10503 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10504 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } && test -s "$nlist"; then
10508 # Try sorting and uniquifying the output.
10509 if sort "$nlist" | uniq > "$nlist"T; then
10510 mv -f "$nlist"T "$nlist"
10515 # Make sure that we snagged all the symbols we need.
10516 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10517 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10518 cat <<EOF > conftest.$ac_ext
10524 # Now generate the symbol file.
10525 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10527 cat <<EOF >> conftest.$ac_ext
10528 #if defined (__STDC__) && __STDC__
10529 # define lt_ptr_t void *
10531 # define lt_ptr_t char *
10535 /* The mapping between symbol names and symbols. */
10540 lt_preloaded_symbols[] =
10543 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10544 cat <<\EOF >> conftest.$ac_ext
10552 # Now try linking the two files.
10553 mv conftest.$ac_objext conftstm.$ac_objext
10554 lt_save_LIBS="$LIBS"
10555 lt_save_CFLAGS="$CFLAGS"
10556 LIBS="conftstm.$ac_objext"
10557 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559 (eval $ac_link) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10565 LIBS="$lt_save_LIBS"
10566 CFLAGS="$lt_save_CFLAGS"
10568 echo "cannot find nm_test_func in $nlist" >&5
10571 echo "cannot find nm_test_var in $nlist" >&5
10574 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10577 echo "$progname: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10580 rm -f conftest* conftst*
10582 # Do not use the global_symbol_pipe unless it works.
10583 if test "$pipe_works" = yes; then
10586 lt_cv_sys_global_symbol_pipe=
10592 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10593 lt_cv_sys_global_symbol_to_cdecl=
10595 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10596 { echo "$as_me:$LINENO: result: failed" >&5
10597 echo "${ECHO_T}failed" >&6; }
10599 { echo "$as_me:$LINENO: result: ok" >&5
10600 echo "${ECHO_T}ok" >&6; }
10604 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10605 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10606 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10610 libltdl_cv_preloaded_symbols=yes
10612 libltdl_cv_preloaded_symbols=no
10616 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10617 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10618 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10620 cat >>confdefs.h <<\_ACEOF
10621 #define HAVE_PRELOADED_SYMBOLS 1
10629 ac_cpp='$CPP $CPPFLAGS'
10630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10635 { echo "$as_me:$LINENO: checking for shl_load" >&5
10636 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10637 if test "${ac_cv_func_shl_load+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10646 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10648 #define shl_load innocuous_shl_load
10650 /* System header to define __stub macros and hopefully few prototypes,
10651 which can conflict with char shl_load (); below.
10652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10653 <limits.h> exists even on freestanding compilers. */
10656 # include <limits.h>
10658 # include <assert.h>
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10670 /* The GNU C library defines this for functions which it implements
10671 to always fail with ENOSYS. Some functions are actually named
10672 something starting with __ and the normal name is an alias. */
10673 #if defined __stub_shl_load || defined __stub___shl_load
10680 return shl_load ();
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_link") 2>conftest.er1
10694 grep -v '^ *+' conftest.er1 >conftest.err
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10700 { (case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_try") 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest$ac_exeext'
10710 { (case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_try") 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 ac_cv_func_shl_load=yes
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_cv_func_shl_load=no
10727 rm -f core conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10730 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10731 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10732 if test $ac_cv_func_shl_load = yes; then
10734 cat >>confdefs.h <<\_ACEOF
10735 #define HAVE_SHL_LOAD 1
10739 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10740 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10741 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 ac_check_lib_save_LIBS=$LIBS
10746 cat >conftest.$ac_ext <<_ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10753 /* Override any GCC internal prototype to avoid an error.
10754 Use char because int might match the return type of a GCC
10755 builtin and then its argument prototype would still apply. */
10763 return shl_load ();
10768 rm -f conftest.$ac_objext conftest$ac_exeext
10769 if { (ac_try="$ac_link"
10770 case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_link") 2>conftest.er1
10777 grep -v '^ *+' conftest.er1 >conftest.err
10779 cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10783 { (case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_try") 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; } &&
10792 { ac_try='test -s conftest$ac_exeext'
10793 { (case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_try") 2>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; }; then
10802 ac_cv_lib_dld_shl_load=yes
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10807 ac_cv_lib_dld_shl_load=no
10810 rm -f core conftest.err conftest.$ac_objext \
10811 conftest$ac_exeext conftest.$ac_ext
10812 LIBS=$ac_check_lib_save_LIBS
10814 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10815 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10816 if test $ac_cv_lib_dld_shl_load = yes; then
10818 cat >>confdefs.h <<\_ACEOF
10819 #define HAVE_SHL_LOAD 1
10822 LIBADD_DL="$LIBADD_DL -ldld"
10824 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10825 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10826 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 ac_check_lib_save_LIBS=$LIBS
10831 cat >conftest.$ac_ext <<_ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10838 /* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
10853 rm -f conftest.$ac_objext conftest$ac_exeext
10854 if { (ac_try="$ac_link"
10855 case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_link") 2>conftest.er1
10862 grep -v '^ *+' conftest.er1 >conftest.err
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest$ac_exeext'
10878 { (case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_try") 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 ac_cv_lib_dl_dlopen=yes
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 ac_cv_lib_dl_dlopen=no
10895 rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10899 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10900 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10901 if test $ac_cv_lib_dl_dlopen = yes; then
10903 cat >>confdefs.h <<\_ACEOF
10904 #define HAVE_LIBDL 1
10907 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10909 cat >conftest.$ac_ext <<_ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10916 # include <dlfcn.h>
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (ac_try="$ac_link"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_link") 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_try") 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest$ac_exeext'
10952 { (case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_try") 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10962 cat >>confdefs.h <<\_ACEOF
10963 #define HAVE_LIBDL 1
10965 libltdl_cv_func_dlopen="yes"
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10971 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 ac_check_lib_save_LIBS=$LIBS
10976 LIBS="-lsvld $LIBS"
10977 cat >conftest.$ac_ext <<_ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10984 /* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (ac_try="$ac_link"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_link") 2>conftest.er1
11008 grep -v '^ *+' conftest.er1 >conftest.err
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014 { (case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_try") 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_cv_lib_svld_dlopen=yes
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11038 ac_cv_lib_svld_dlopen=no
11041 rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11043 LIBS=$ac_check_lib_save_LIBS
11045 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11046 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11047 if test $ac_cv_lib_svld_dlopen = yes; then
11049 cat >>confdefs.h <<\_ACEOF
11050 #define HAVE_LIBDL 1
11053 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11055 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11056 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11057 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11058 echo $ECHO_N "(cached) $ECHO_C" >&6
11060 ac_check_lib_save_LIBS=$LIBS
11062 cat >conftest.$ac_ext <<_ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11069 /* Override any GCC internal prototype to avoid an error.
11070 Use char because int might match the return type of a GCC
11071 builtin and then its argument prototype would still apply. */
11079 return dld_link ();
11084 rm -f conftest.$ac_objext conftest$ac_exeext
11085 if { (ac_try="$ac_link"
11086 case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_link") 2>conftest.er1
11093 grep -v '^ *+' conftest.er1 >conftest.err
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11099 { (case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_try") 2>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; } &&
11108 { ac_try='test -s conftest$ac_exeext'
11109 { (case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_try") 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }; then
11118 ac_cv_lib_dld_dld_link=yes
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 ac_cv_lib_dld_dld_link=no
11126 rm -f core conftest.err conftest.$ac_objext \
11127 conftest$ac_exeext conftest.$ac_ext
11128 LIBS=$ac_check_lib_save_LIBS
11130 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11131 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11132 if test $ac_cv_lib_dld_dld_link = yes; then
11134 cat >>confdefs.h <<\_ACEOF
11138 LIBADD_DL="$LIBADD_DL -ldld"
11140 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11141 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11142 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 cat >conftest.$ac_ext <<_ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11151 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11153 #define _dyld_func_lookup innocuous__dyld_func_lookup
11155 /* System header to define __stub macros and hopefully few prototypes,
11156 which can conflict with char _dyld_func_lookup (); below.
11157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11158 <limits.h> exists even on freestanding compilers. */
11161 # include <limits.h>
11163 # include <assert.h>
11166 #undef _dyld_func_lookup
11168 /* Override any GCC internal prototype to avoid an error.
11169 Use char because int might match the return type of a GCC
11170 builtin and then its argument prototype would still apply. */
11174 char _dyld_func_lookup ();
11175 /* The GNU C library defines this for functions which it implements
11176 to always fail with ENOSYS. Some functions are actually named
11177 something starting with __ and the normal name is an alias. */
11178 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11185 return _dyld_func_lookup ();
11190 rm -f conftest.$ac_objext conftest$ac_exeext
11191 if { (ac_try="$ac_link"
11192 case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_link") 2>conftest.er1
11199 grep -v '^ *+' conftest.er1 >conftest.err
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } &&
11204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11205 { (case "(($ac_try" in
11206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207 *) ac_try_echo=$ac_try;;
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210 (eval "$ac_try") 2>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; } &&
11214 { ac_try='test -s conftest$ac_exeext'
11215 { (case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_try") 2>&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; }; then
11224 ac_cv_func__dyld_func_lookup=yes
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11229 ac_cv_func__dyld_func_lookup=no
11232 rm -f core conftest.err conftest.$ac_objext \
11233 conftest$ac_exeext conftest.$ac_ext
11235 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11236 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11237 if test $ac_cv_func__dyld_func_lookup = yes; then
11239 cat >>confdefs.h <<\_ACEOF
11240 #define HAVE_DYLD 1
11254 rm -f core conftest.err conftest.$ac_objext \
11255 conftest$ac_exeext conftest.$ac_ext
11266 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11268 lt_save_LIBS="$LIBS"
11269 LIBS="$LIBS $LIBADD_DL"
11271 for ac_func in dlerror
11273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 cat >conftest.$ac_ext <<_ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11287 #define $ac_func innocuous_$ac_func
11289 /* System header to define __stub macros and hopefully few prototypes,
11290 which can conflict with char $ac_func (); below.
11291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11292 <limits.h> exists even on freestanding compilers. */
11295 # include <limits.h>
11297 # include <assert.h>
11302 /* Override any GCC internal prototype to avoid an error.
11303 Use char because int might match the return type of a GCC
11304 builtin and then its argument prototype would still apply. */
11309 /* The GNU C library defines this for functions which it implements
11310 to always fail with ENOSYS. Some functions are actually named
11311 something starting with __ and the normal name is an alias. */
11312 #if defined __stub_$ac_func || defined __stub___$ac_func
11319 return $ac_func ();
11324 rm -f conftest.$ac_objext conftest$ac_exeext
11325 if { (ac_try="$ac_link"
11326 case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_link") 2>conftest.er1
11333 grep -v '^ *+' conftest.er1 >conftest.err
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } &&
11338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11339 { (case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_try") 2>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; } &&
11348 { ac_try='test -s conftest$ac_exeext'
11349 { (case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_try") 2>&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 eval "$as_ac_var=yes"
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11363 eval "$as_ac_var=no"
11366 rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11369 ac_res=`eval echo '${'$as_ac_var'}'`
11370 { echo "$as_me:$LINENO: result: $ac_res" >&5
11371 echo "${ECHO_T}$ac_res" >&6; }
11372 if test `eval echo '${'$as_ac_var'}'` = yes; then
11373 cat >>confdefs.h <<_ACEOF
11374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11380 LIBS="$lt_save_LIBS"
11383 ac_cpp='$CPP $CPPFLAGS'
11384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11390 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11391 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11392 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 ac_cv_sys_symbol_underscore=no
11396 cat > conftest.$ac_ext <<EOF
11397 void nm_test_func(){}
11398 int main(){nm_test_func;return 0;}
11400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11401 (eval $ac_compile) 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; then
11405 # Now try to grab the symbols.
11406 ac_nlist=conftest.nm
11407 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11408 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } && test -s "$ac_nlist"; then
11412 # See whether the symbols have a leading underscore.
11413 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11414 ac_cv_sys_symbol_underscore=yes
11416 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11419 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11423 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11426 echo "configure: failed program was:" >&5
11432 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11433 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11436 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11437 if test x"$libltdl_cv_func_dlopen" = xyes ||
11438 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11439 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11440 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11441 if test "${libltdl_cv_need_uscore+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 libltdl_cv_need_uscore=unknown
11446 LIBS="$LIBS $LIBADD_DL"
11447 if test "$cross_compiling" = yes; then :
11448 libltdl_cv_need_uscore=cross
11450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11451 lt_status=$lt_dlunknown
11452 cat > conftest.$ac_ext <<EOF
11453 #line 11453 "configure"
11454 #include "confdefs.h"
11463 # define LT_DLGLOBAL RTLD_GLOBAL
11466 # define LT_DLGLOBAL DL_GLOBAL
11468 # define LT_DLGLOBAL 0
11472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11473 find out it does not work in some platform. */
11474 #ifndef LT_DLLAZY_OR_NOW
11476 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11479 # define LT_DLLAZY_OR_NOW DL_LAZY
11482 # define LT_DLLAZY_OR_NOW RTLD_NOW
11485 # define LT_DLLAZY_OR_NOW DL_NOW
11487 # define LT_DLLAZY_OR_NOW 0
11495 extern "C" void exit (int);
11498 void fnord() { int i=42;}
11501 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11502 int status = $lt_dlunknown;
11506 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11507 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11508 /* dlclose (self); */
11516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11517 (eval $ac_link) 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11521 (./conftest; exit; ) >&5 2>/dev/null
11523 case x$lt_status in
11524 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11525 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11526 x$lt_dlunknown|x*) ;;
11529 # compilation failed
11538 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11539 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11543 if test x"$libltdl_cv_need_uscore" = xyes; then
11545 cat >>confdefs.h <<\_ACEOF
11546 #define NEED_USCORE 1
11552 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11553 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11554 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 # PORTME does your system automatically load deplibs for dlopen?
11558 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11559 # For now, we just catch OSes we know something about -- in the
11560 # future, we'll try test this programmatically.
11561 libltdl_cv_sys_dlopen_deplibs=unknown
11563 aix3*|aix4.1.*|aix4.2.*)
11564 # Unknown whether this is true for these versions of AIX, but
11565 # we want this `case' here to explicitly catch those versions.
11566 libltdl_cv_sys_dlopen_deplibs=unknown
11569 libltdl_cv_sys_dlopen_deplibs=yes
11572 # Assuming the user has installed a libdl from somewhere, this is true
11573 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11574 libltdl_cv_sys_dlopen_deplibs=yes
11576 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11577 # GNU and its variants, using gnu ld.so (Glibc)
11578 libltdl_cv_sys_dlopen_deplibs=yes
11581 libltdl_cv_sys_dlopen_deplibs=yes
11584 libltdl_cv_sys_dlopen_deplibs=yes
11586 irix[12345]*|irix6.[01]*)
11587 # Catch all versions of IRIX before 6.2, and indicate that we don't
11588 # know how it worked for any of those versions.
11589 libltdl_cv_sys_dlopen_deplibs=unknown
11592 # The case above catches anything before 6.2, and it's known that
11593 # at 6.2 and later dlopen does load deplibs.
11594 libltdl_cv_sys_dlopen_deplibs=yes
11597 libltdl_cv_sys_dlopen_deplibs=yes
11600 libltdl_cv_sys_dlopen_deplibs=yes
11603 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11604 # it did *not* use an RPATH in a shared library to find objects the
11605 # library depends on, so we explictly say `no'.
11606 libltdl_cv_sys_dlopen_deplibs=no
11608 osf5.0|osf5.0a|osf5.1)
11609 # dlopen *does* load deplibs and with the right loader patch applied
11610 # it even uses RPATH in a shared library to search for shared objects
11611 # that the library depends on, but there's no easy way to know if that
11612 # patch is installed. Since this is the case, all we can really
11613 # say is unknown -- it depends on the patch being installed. If
11614 # it is, this changes to `yes'. Without it, it would be `no'.
11615 libltdl_cv_sys_dlopen_deplibs=unknown
11618 # the two cases above should catch all versions of osf <= 5.1. Read
11619 # the comments above for what we know about them.
11620 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11621 # is used to find them so we can finally say `yes'.
11622 libltdl_cv_sys_dlopen_deplibs=yes
11625 libltdl_cv_sys_dlopen_deplibs=yes
11627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11628 libltdl_cv_sys_dlopen_deplibs=yes
11633 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11634 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11635 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11637 cat >>confdefs.h <<\_ACEOF
11638 #define LTDL_DLOPEN_DEPLIBS 1
11644 for ac_header in argz.h
11646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 ac_res=`eval echo '${'$as_ac_Header'}'`
11654 { echo "$as_me:$LINENO: result: $ac_res" >&5
11655 echo "${ECHO_T}$ac_res" >&6; }
11657 # Is the header compilable?
11658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11660 cat >conftest.$ac_ext <<_ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11666 $ac_includes_default
11667 #include <$ac_header>
11669 rm -f conftest.$ac_objext
11670 if { (ac_try="$ac_compile"
11671 case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_compile") 2>conftest.er1
11678 grep -v '^ *+' conftest.er1 >conftest.err
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } &&
11683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11684 { (case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_try") 2>&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; } &&
11693 { ac_try='test -s conftest.$ac_objext'
11694 { (case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_try") 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 ac_header_compiler=yes
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 ac_header_compiler=no
11711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11713 echo "${ECHO_T}$ac_header_compiler" >&6; }
11715 # Is the header present?
11716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11718 cat >conftest.$ac_ext <<_ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 #include <$ac_header>
11726 if { (ac_try="$ac_cpp conftest.$ac_ext"
11727 case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11734 grep -v '^ *+' conftest.er1 >conftest.err
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } >/dev/null; then
11739 if test -s conftest.err; then
11740 ac_cpp_err=$ac_c_preproc_warn_flag
11741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11748 if test -z "$ac_cpp_err"; then
11749 ac_header_preproc=yes
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11754 ac_header_preproc=no
11757 rm -f conftest.err conftest.$ac_ext
11758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11759 echo "${ECHO_T}$ac_header_preproc" >&6; }
11761 # So? What about this header?
11762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11768 ac_header_preproc=yes
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11784 ## ----------------------------------- ##
11785 ## Report this to llvmbugs@cs.uiuc.edu ##
11786 ## ----------------------------------- ##
11788 ) | sed "s/^/$as_me: WARNING: /" >&2
11791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 eval "$as_ac_Header=\$ac_header_preproc"
11798 ac_res=`eval echo '${'$as_ac_Header'}'`
11799 { echo "$as_me:$LINENO: result: $ac_res" >&5
11800 echo "${ECHO_T}$ac_res" >&6; }
11803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11804 cat >>confdefs.h <<_ACEOF
11805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11813 { echo "$as_me:$LINENO: checking for error_t" >&5
11814 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11815 if test "${ac_cv_type_error_t+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 cat >conftest.$ac_ext <<_ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11828 typedef error_t ac__type_new_;
11832 if ((ac__type_new_ *) 0)
11834 if (sizeof (ac__type_new_))
11840 rm -f conftest.$ac_objext
11841 if { (ac_try="$ac_compile"
11842 case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_compile") 2>conftest.er1
11849 grep -v '^ *+' conftest.er1 >conftest.err
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } &&
11854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11855 { (case "(($ac_try" in
11856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857 *) ac_try_echo=$ac_try;;
11859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860 (eval "$ac_try") 2>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; } &&
11864 { ac_try='test -s conftest.$ac_objext'
11865 { (case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_try") 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 ac_cv_type_error_t=yes
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 ac_cv_type_error_t=no
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11885 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11886 if test $ac_cv_type_error_t = yes; then
11888 cat >>confdefs.h <<_ACEOF
11889 #define HAVE_ERROR_T 1
11895 cat >>confdefs.h <<\_ACEOF
11896 #define error_t int
11907 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 cat >conftest.$ac_ext <<_ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11923 #define $ac_func innocuous_$ac_func
11925 /* System header to define __stub macros and hopefully few prototypes,
11926 which can conflict with char $ac_func (); below.
11927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11928 <limits.h> exists even on freestanding compilers. */
11931 # include <limits.h>
11933 # include <assert.h>
11938 /* Override any GCC internal prototype to avoid an error.
11939 Use char because int might match the return type of a GCC
11940 builtin and then its argument prototype would still apply. */
11945 /* The GNU C library defines this for functions which it implements
11946 to always fail with ENOSYS. Some functions are actually named
11947 something starting with __ and the normal name is an alias. */
11948 #if defined __stub_$ac_func || defined __stub___$ac_func
11955 return $ac_func ();
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (ac_try="$ac_link"
11962 case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_link") 2>conftest.er1
11969 grep -v '^ *+' conftest.er1 >conftest.err
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11975 { (case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980 (eval "$ac_try") 2>&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; } &&
11984 { ac_try='test -s conftest$ac_exeext'
11985 { (case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_try") 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; }; then
11994 eval "$as_ac_var=yes"
11996 echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11999 eval "$as_ac_var=no"
12002 rm -f core conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12005 ac_res=`eval echo '${'$as_ac_var'}'`
12006 { echo "$as_me:$LINENO: result: $ac_res" >&5
12007 echo "${ECHO_T}$ac_res" >&6; }
12008 if test `eval echo '${'$as_ac_var'}'` = yes; then
12009 cat >>confdefs.h <<_ACEOF
12010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12043 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 ac_res=`eval echo '${'$as_ac_Header'}'`
12054 { echo "$as_me:$LINENO: result: $ac_res" >&5
12055 echo "${ECHO_T}$ac_res" >&6; }
12057 # Is the header compilable?
12058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12060 cat >conftest.$ac_ext <<_ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12066 $ac_includes_default
12067 #include <$ac_header>
12069 rm -f conftest.$ac_objext
12070 if { (ac_try="$ac_compile"
12071 case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_compile") 2>conftest.er1
12078 grep -v '^ *+' conftest.er1 >conftest.err
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12084 { (case "(($ac_try" in
12085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086 *) ac_try_echo=$ac_try;;
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_try") 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest.$ac_objext'
12094 { (case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_try") 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 ac_header_compiler=yes
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12108 ac_header_compiler=no
12111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12113 echo "${ECHO_T}$ac_header_compiler" >&6; }
12115 # Is the header present?
12116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12118 cat >conftest.$ac_ext <<_ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 #include <$ac_header>
12126 if { (ac_try="$ac_cpp conftest.$ac_ext"
12127 case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12134 grep -v '^ *+' conftest.er1 >conftest.err
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } >/dev/null; then
12139 if test -s conftest.err; then
12140 ac_cpp_err=$ac_c_preproc_warn_flag
12141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12148 if test -z "$ac_cpp_err"; then
12149 ac_header_preproc=yes
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12154 ac_header_preproc=no
12157 rm -f conftest.err conftest.$ac_ext
12158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12159 echo "${ECHO_T}$ac_header_preproc" >&6; }
12161 # So? What about this header?
12162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12168 ac_header_preproc=yes
12171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12184 ## ----------------------------------- ##
12185 ## Report this to llvmbugs@cs.uiuc.edu ##
12186 ## ----------------------------------- ##
12188 ) | sed "s/^/$as_me: WARNING: /" >&2
12191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 eval "$as_ac_Header=\$ac_header_preproc"
12198 ac_res=`eval echo '${'$as_ac_Header'}'`
12199 { echo "$as_me:$LINENO: result: $ac_res" >&5
12200 echo "${ECHO_T}$ac_res" >&6; }
12203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12204 cat >>confdefs.h <<_ACEOF
12205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12216 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 ac_res=`eval echo '${'$as_ac_Header'}'`
12226 { echo "$as_me:$LINENO: result: $ac_res" >&5
12227 echo "${ECHO_T}$ac_res" >&6; }
12229 # Is the header compilable?
12230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12232 cat >conftest.$ac_ext <<_ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12238 $ac_includes_default
12239 #include <$ac_header>
12241 rm -f conftest.$ac_objext
12242 if { (ac_try="$ac_compile"
12243 case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_compile") 2>conftest.er1
12250 grep -v '^ *+' conftest.er1 >conftest.err
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } &&
12255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12256 { (case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_try") 2>&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; } &&
12265 { ac_try='test -s conftest.$ac_objext'
12266 { (case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_try") 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 ac_header_compiler=yes
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 ac_header_compiler=no
12283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12285 echo "${ECHO_T}$ac_header_compiler" >&6; }
12287 # Is the header present?
12288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12290 cat >conftest.$ac_ext <<_ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 #include <$ac_header>
12298 if { (ac_try="$ac_cpp conftest.$ac_ext"
12299 case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12306 grep -v '^ *+' conftest.er1 >conftest.err
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } >/dev/null; then
12311 if test -s conftest.err; then
12312 ac_cpp_err=$ac_c_preproc_warn_flag
12313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12320 if test -z "$ac_cpp_err"; then
12321 ac_header_preproc=yes
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 ac_header_preproc=no
12329 rm -f conftest.err conftest.$ac_ext
12330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12331 echo "${ECHO_T}$ac_header_preproc" >&6; }
12333 # So? What about this header?
12334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12340 ac_header_preproc=yes
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12356 ## ----------------------------------- ##
12357 ## Report this to llvmbugs@cs.uiuc.edu ##
12358 ## ----------------------------------- ##
12360 ) | sed "s/^/$as_me: WARNING: /" >&2
12363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 eval "$as_ac_Header=\$ac_header_preproc"
12370 ac_res=`eval echo '${'$as_ac_Header'}'`
12371 { echo "$as_me:$LINENO: result: $ac_res" >&5
12372 echo "${ECHO_T}$ac_res" >&6; }
12375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12376 cat >>confdefs.h <<_ACEOF
12377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12386 for ac_header in string.h strings.h
12388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 ac_res=`eval echo '${'$as_ac_Header'}'`
12396 { echo "$as_me:$LINENO: result: $ac_res" >&5
12397 echo "${ECHO_T}$ac_res" >&6; }
12399 # Is the header compilable?
12400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12402 cat >conftest.$ac_ext <<_ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 $ac_includes_default
12409 #include <$ac_header>
12411 rm -f conftest.$ac_objext
12412 if { (ac_try="$ac_compile"
12413 case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_compile") 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12426 { (case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_try") 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest.$ac_objext'
12436 { (case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_try") 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
12445 ac_header_compiler=yes
12447 echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12450 ac_header_compiler=no
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12455 echo "${ECHO_T}$ac_header_compiler" >&6; }
12457 # Is the header present?
12458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12460 cat >conftest.$ac_ext <<_ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12466 #include <$ac_header>
12468 if { (ac_try="$ac_cpp conftest.$ac_ext"
12469 case "(($ac_try" in
12470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471 *) ac_try_echo=$ac_try;;
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12476 grep -v '^ *+' conftest.er1 >conftest.err
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } >/dev/null; then
12481 if test -s conftest.err; then
12482 ac_cpp_err=$ac_c_preproc_warn_flag
12483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12490 if test -z "$ac_cpp_err"; then
12491 ac_header_preproc=yes
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12496 ac_header_preproc=no
12499 rm -f conftest.err conftest.$ac_ext
12500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12501 echo "${ECHO_T}$ac_header_preproc" >&6; }
12503 # So? What about this header?
12504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12510 ac_header_preproc=yes
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12526 ## ----------------------------------- ##
12527 ## Report this to llvmbugs@cs.uiuc.edu ##
12528 ## ----------------------------------- ##
12530 ) | sed "s/^/$as_me: WARNING: /" >&2
12533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12536 echo $ECHO_N "(cached) $ECHO_C" >&6
12538 eval "$as_ac_Header=\$ac_header_preproc"
12540 ac_res=`eval echo '${'$as_ac_Header'}'`
12541 { echo "$as_me:$LINENO: result: $ac_res" >&5
12542 echo "${ECHO_T}$ac_res" >&6; }
12545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12546 cat >>confdefs.h <<_ACEOF
12547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12557 for ac_func in strchr index
12559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12573 #define $ac_func innocuous_$ac_func
12575 /* System header to define __stub macros and hopefully few prototypes,
12576 which can conflict with char $ac_func (); below.
12577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12578 <limits.h> exists even on freestanding compilers. */
12581 # include <limits.h>
12583 # include <assert.h>
12588 /* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
12595 /* The GNU C library defines this for functions which it implements
12596 to always fail with ENOSYS. Some functions are actually named
12597 something starting with __ and the normal name is an alias. */
12598 #if defined __stub_$ac_func || defined __stub___$ac_func
12605 return $ac_func ();
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (ac_try="$ac_link"
12612 case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_link") 2>conftest.er1
12619 grep -v '^ *+' conftest.er1 >conftest.err
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12625 { (case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630 (eval "$ac_try") 2>&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; } &&
12634 { ac_try='test -s conftest$ac_exeext'
12635 { (case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_try") 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 eval "$as_ac_var=yes"
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 eval "$as_ac_var=no"
12652 rm -f core conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12655 ac_res=`eval echo '${'$as_ac_var'}'`
12656 { echo "$as_me:$LINENO: result: $ac_res" >&5
12657 echo "${ECHO_T}$ac_res" >&6; }
12658 if test `eval echo '${'$as_ac_var'}'` = yes; then
12659 cat >>confdefs.h <<_ACEOF
12660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12668 for ac_func in strrchr rindex
12670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 cat >conftest.$ac_ext <<_ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12684 #define $ac_func innocuous_$ac_func
12686 /* System header to define __stub macros and hopefully few prototypes,
12687 which can conflict with char $ac_func (); below.
12688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12689 <limits.h> exists even on freestanding compilers. */
12692 # include <limits.h>
12694 # include <assert.h>
12699 /* Override any GCC internal prototype to avoid an error.
12700 Use char because int might match the return type of a GCC
12701 builtin and then its argument prototype would still apply. */
12706 /* The GNU C library defines this for functions which it implements
12707 to always fail with ENOSYS. Some functions are actually named
12708 something starting with __ and the normal name is an alias. */
12709 #if defined __stub_$ac_func || defined __stub___$ac_func
12716 return $ac_func ();
12721 rm -f conftest.$ac_objext conftest$ac_exeext
12722 if { (ac_try="$ac_link"
12723 case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_link") 2>conftest.er1
12730 grep -v '^ *+' conftest.er1 >conftest.err
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
12735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12736 { (case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_try") 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest$ac_exeext'
12746 { (case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_try") 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 eval "$as_ac_var=yes"
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 eval "$as_ac_var=no"
12763 rm -f core conftest.err conftest.$ac_objext \
12764 conftest$ac_exeext conftest.$ac_ext
12766 ac_res=`eval echo '${'$as_ac_var'}'`
12767 { echo "$as_me:$LINENO: result: $ac_res" >&5
12768 echo "${ECHO_T}$ac_res" >&6; }
12769 if test `eval echo '${'$as_ac_var'}'` = yes; then
12770 cat >>confdefs.h <<_ACEOF
12771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12779 for ac_func in memcpy bcopy
12781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 cat >conftest.$ac_ext <<_ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12795 #define $ac_func innocuous_$ac_func
12797 /* System header to define __stub macros and hopefully few prototypes,
12798 which can conflict with char $ac_func (); below.
12799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12800 <limits.h> exists even on freestanding compilers. */
12803 # include <limits.h>
12805 # include <assert.h>
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12817 /* The GNU C library defines this for functions which it implements
12818 to always fail with ENOSYS. Some functions are actually named
12819 something starting with __ and the normal name is an alias. */
12820 #if defined __stub_$ac_func || defined __stub___$ac_func
12827 return $ac_func ();
12832 rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (ac_try="$ac_link"
12834 case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_link") 2>conftest.er1
12841 grep -v '^ *+' conftest.er1 >conftest.err
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847 { (case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest$ac_exeext'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 eval "$as_ac_var=yes"
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12871 eval "$as_ac_var=no"
12874 rm -f core conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
12877 ac_res=`eval echo '${'$as_ac_var'}'`
12878 { echo "$as_me:$LINENO: result: $ac_res" >&5
12879 echo "${ECHO_T}$ac_res" >&6; }
12880 if test `eval echo '${'$as_ac_var'}'` = yes; then
12881 cat >>confdefs.h <<_ACEOF
12882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12890 for ac_func in memmove strcmp
12892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 cat >conftest.$ac_ext <<_ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12906 #define $ac_func innocuous_$ac_func
12908 /* System header to define __stub macros and hopefully few prototypes,
12909 which can conflict with char $ac_func (); below.
12910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12911 <limits.h> exists even on freestanding compilers. */
12914 # include <limits.h>
12916 # include <assert.h>
12921 /* Override any GCC internal prototype to avoid an error.
12922 Use char because int might match the return type of a GCC
12923 builtin and then its argument prototype would still apply. */
12928 /* The GNU C library defines this for functions which it implements
12929 to always fail with ENOSYS. Some functions are actually named
12930 something starting with __ and the normal name is an alias. */
12931 #if defined __stub_$ac_func || defined __stub___$ac_func
12938 return $ac_func ();
12943 rm -f conftest.$ac_objext conftest$ac_exeext
12944 if { (ac_try="$ac_link"
12945 case "(($ac_try" in
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_link") 2>conftest.er1
12952 grep -v '^ *+' conftest.er1 >conftest.err
12954 cat conftest.err >&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12958 { (case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_try") 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest$ac_exeext'
12968 { (case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_try") 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 eval "$as_ac_var=yes"
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12982 eval "$as_ac_var=no"
12985 rm -f core conftest.err conftest.$ac_objext \
12986 conftest$ac_exeext conftest.$ac_ext
12988 ac_res=`eval echo '${'$as_ac_var'}'`
12989 { echo "$as_me:$LINENO: result: $ac_res" >&5
12990 echo "${ECHO_T}$ac_res" >&6; }
12991 if test `eval echo '${'$as_ac_var'}'` = yes; then
12992 cat >>confdefs.h <<_ACEOF
12993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13002 for ac_func in closedir opendir readdir
13004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 cat >conftest.$ac_ext <<_ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13018 #define $ac_func innocuous_$ac_func
13020 /* System header to define __stub macros and hopefully few prototypes,
13021 which can conflict with char $ac_func (); below.
13022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13023 <limits.h> exists even on freestanding compilers. */
13026 # include <limits.h>
13028 # include <assert.h>
13033 /* Override any GCC internal prototype to avoid an error.
13034 Use char because int might match the return type of a GCC
13035 builtin and then its argument prototype would still apply. */
13040 /* The GNU C library defines this for functions which it implements
13041 to always fail with ENOSYS. Some functions are actually named
13042 something starting with __ and the normal name is an alias. */
13043 #if defined __stub_$ac_func || defined __stub___$ac_func
13050 return $ac_func ();
13055 rm -f conftest.$ac_objext conftest$ac_exeext
13056 if { (ac_try="$ac_link"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_link") 2>conftest.er1
13064 grep -v '^ *+' conftest.er1 >conftest.err
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
13069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13070 { (case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_try") 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; } &&
13079 { ac_try='test -s conftest$ac_exeext'
13080 { (case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_try") 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; }; then
13089 eval "$as_ac_var=yes"
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13094 eval "$as_ac_var=no"
13097 rm -f core conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13100 ac_res=`eval echo '${'$as_ac_var'}'`
13101 { echo "$as_me:$LINENO: result: $ac_res" >&5
13102 echo "${ECHO_T}$ac_res" >&6; }
13103 if test `eval echo '${'$as_ac_var'}'` = yes; then
13104 cat >>confdefs.h <<_ACEOF
13105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13113 if test "$WITH_LLVMGCCDIR" = "default" ; then
13114 LLVMGCC="llvm-gcc${EXEEXT}"
13115 LLVMGXX="llvm-g++${EXEEXT}"
13116 LLVMGCCCOMMAND="$LLVMGCC"
13117 LLVMGXXCOMMAND="$LLVMGXX"
13118 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13120 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13122 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13123 set dummy $LLVMGCC; ac_word=$2
13124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13126 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13127 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $PATH
13138 test -z "$as_dir" && as_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
13140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13141 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13152 LLVMGCC=$ac_cv_path_LLVMGCC
13153 if test -n "$LLVMGCC"; then
13154 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13155 echo "${ECHO_T}$LLVMGCC" >&6; }
13157 { echo "$as_me:$LINENO: result: no" >&5
13158 echo "${ECHO_T}no" >&6; }
13162 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13163 set dummy $LLVMGXX; ac_word=$2
13164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13166 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175 for as_dir in $PATH
13178 test -z "$as_dir" && as_dir=.
13179 for ac_exec_ext in '' $ac_executable_extensions; do
13180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13181 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13192 LLVMGXX=$ac_cv_path_LLVMGXX
13193 if test -n "$LLVMGXX"; then
13194 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13195 echo "${ECHO_T}$LLVMGXX" >&6; }
13197 { echo "$as_me:$LINENO: result: no" >&5
13198 echo "${ECHO_T}no" >&6; }
13203 if test -z "$LLVMGCC"; then
13204 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13205 LLVMGCCCOMMAND="$LLVMGCC"
13207 if test -z "$LLVMGXX"; then
13208 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13209 LLVMGXXCOMMAND="$LLVMGXX"
13216 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13218 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13223 # Check whether --with-llvmcc was given.
13224 if test "${with_llvmcc+set}" = set; then
13225 withval=$with_llvmcc;
13230 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13231 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13232 if test "$with_llvmcc" != "check"; then
13233 if (test "$with_llvmcc" != "llvm-gcc" &&
13234 test "$with_llvmcc" != "clang" &&
13235 test "$with_llvmcc" != "none"); then
13236 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13237 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13238 { (exit 1); exit 1; }; }
13240 WITH_LLVMCC="$with_llvmcc"
13241 elif test -n "$LLVMGCC"; then
13242 WITH_LLVMCC=llvm-gcc
13243 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13248 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13249 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13250 LLVMCC_OPTION=$WITH_LLVMCC
13253 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13254 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13267 if test "$GCC" != "yes" && test "$ICC" != "yes"
13269 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13270 echo "$as_me: error: gcc|icc required but not found" >&2;}
13271 { (exit 1); exit 1; }; }
13274 if test "$GXX" != "yes" && test "$IXX" != "yes"
13276 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13277 echo "$as_me: error: g++|icc required but not found" >&2;}
13278 { (exit 1); exit 1; }; }
13281 if test "$GCC" = "yes"
13283 cat >conftest.$ac_ext <<_ACEOF
13284 #if !defined(__GNUC__) || __GNUC__ < 3
13285 #error Unsupported GCC version
13289 rm -f conftest.$ac_objext
13290 if { (ac_try="$ac_compile"
13291 case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296 (eval "$ac_compile") 2>conftest.er1
13298 grep -v '^ *+' conftest.er1 >conftest.err
13300 cat conftest.err >&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
13303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13304 { (case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_try") 2>&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest.$ac_objext'
13314 { (case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_try") 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
13325 echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13328 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13329 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13330 { (exit 1); exit 1; }; }
13333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13336 if test -z "$llvm_cv_gnu_make_command"
13338 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13339 echo "$as_me: error: GNU Make required but not found" >&2;}
13340 { (exit 1); exit 1; }; }
13343 { echo "$as_me:$LINENO: result: ok" >&5
13344 echo "${ECHO_T}ok" >&6; }
13346 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13347 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13348 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13350 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13352 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13353 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13357 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13358 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13359 if test "${ac_cv_lib_m_sin+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 ac_check_lib_save_LIBS=$LIBS
13364 cat >conftest.$ac_ext <<_ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13371 /* Override any GCC internal prototype to avoid an error.
13372 Use char because int might match the return type of a GCC
13373 builtin and then its argument prototype would still apply. */
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (ac_try="$ac_link"
13388 case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_link") 2>conftest.er1
13395 grep -v '^ *+' conftest.er1 >conftest.err
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } &&
13400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13401 { (case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_try") 2>&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; } &&
13410 { ac_try='test -s conftest$ac_exeext'
13411 { (case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_try") 2>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
13420 ac_cv_lib_m_sin=yes
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13428 rm -f core conftest.err conftest.$ac_objext \
13429 conftest$ac_exeext conftest.$ac_ext
13430 LIBS=$ac_check_lib_save_LIBS
13432 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13433 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13434 if test $ac_cv_lib_m_sin = yes; then
13435 cat >>confdefs.h <<_ACEOF
13436 #define HAVE_LIBM 1
13443 if test "$llvm_cv_os_type" = "MingW" ; then
13445 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13446 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13447 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 ac_check_lib_save_LIBS=$LIBS
13451 LIBS="-limagehlp $LIBS"
13452 cat >conftest.$ac_ext <<_ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13468 rm -f conftest.$ac_objext conftest$ac_exeext
13469 if { (ac_try="$ac_link"
13470 case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_link") 2>conftest.er1
13477 grep -v '^ *+' conftest.er1 >conftest.err
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest$ac_exeext'
13493 { (case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_try") 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 ac_cv_lib_imagehlp_main=yes
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13507 ac_cv_lib_imagehlp_main=no
13510 rm -f core conftest.err conftest.$ac_objext \
13511 conftest$ac_exeext conftest.$ac_ext
13512 LIBS=$ac_check_lib_save_LIBS
13514 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13515 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13516 if test $ac_cv_lib_imagehlp_main = yes; then
13517 cat >>confdefs.h <<_ACEOF
13518 #define HAVE_LIBIMAGEHLP 1
13521 LIBS="-limagehlp $LIBS"
13526 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13527 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13528 if test "${ac_cv_lib_psapi_main+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 ac_check_lib_save_LIBS=$LIBS
13532 LIBS="-lpsapi $LIBS"
13533 cat >conftest.$ac_ext <<_ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13549 rm -f conftest.$ac_objext conftest$ac_exeext
13550 if { (ac_try="$ac_link"
13551 case "(($ac_try" in
13552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13553 *) ac_try_echo=$ac_try;;
13555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556 (eval "$ac_link") 2>conftest.er1
13558 grep -v '^ *+' conftest.er1 >conftest.err
13560 cat conftest.err >&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
13563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13564 { (case "(($ac_try" in
13565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566 *) ac_try_echo=$ac_try;;
13568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13569 (eval "$ac_try") 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; } &&
13573 { ac_try='test -s conftest$ac_exeext'
13574 { (case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_try") 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
13583 ac_cv_lib_psapi_main=yes
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13588 ac_cv_lib_psapi_main=no
13591 rm -f core conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
13593 LIBS=$ac_check_lib_save_LIBS
13595 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13596 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13597 if test $ac_cv_lib_psapi_main = yes; then
13598 cat >>confdefs.h <<_ACEOF
13599 #define HAVE_LIBPSAPI 1
13602 LIBS="-lpsapi $LIBS"
13608 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13609 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13610 if test "${ac_cv_search_dlopen+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 ac_func_search_save_LIBS=$LIBS
13614 cat >conftest.$ac_ext <<_ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13621 /* Override any GCC internal prototype to avoid an error.
13622 Use char because int might match the return type of a GCC
13623 builtin and then its argument prototype would still apply. */
13636 for ac_lib in '' dl; do
13637 if test -z "$ac_lib"; then
13638 ac_res="none required"
13641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13643 rm -f conftest.$ac_objext conftest$ac_exeext
13644 if { (ac_try="$ac_link"
13645 case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_link") 2>conftest.er1
13652 grep -v '^ *+' conftest.er1 >conftest.err
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } &&
13657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13658 { (case "(($ac_try" in
13659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660 *) ac_try_echo=$ac_try;;
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663 (eval "$ac_try") 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; } &&
13667 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 ac_cv_search_dlopen=$ac_res
13679 echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13685 rm -f core conftest.err conftest.$ac_objext \
13687 if test "${ac_cv_search_dlopen+set}" = set; then
13691 if test "${ac_cv_search_dlopen+set}" = set; then
13694 ac_cv_search_dlopen=no
13696 rm conftest.$ac_ext
13697 LIBS=$ac_func_search_save_LIBS
13699 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13700 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13701 ac_res=$ac_cv_search_dlopen
13702 if test "$ac_res" != no; then
13703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13705 cat >>confdefs.h <<\_ACEOF
13706 #define HAVE_DLOPEN 1
13710 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13711 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13715 if test "$llvm_cv_enable_libffi" = "yes" ; then
13716 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13717 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13718 if test "${ac_cv_search_ffi_call+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 ac_func_search_save_LIBS=$LIBS
13722 cat >conftest.$ac_ext <<_ACEOF
13725 cat confdefs.h >>conftest.$ac_ext
13726 cat >>conftest.$ac_ext <<_ACEOF
13727 /* end confdefs.h. */
13729 /* Override any GCC internal prototype to avoid an error.
13730 Use char because int might match the return type of a GCC
13731 builtin and then its argument prototype would still apply. */
13739 return ffi_call ();
13744 for ac_lib in '' ffi; do
13745 if test -z "$ac_lib"; then
13746 ac_res="none required"
13749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13751 rm -f conftest.$ac_objext conftest$ac_exeext
13752 if { (ac_try="$ac_link"
13753 case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_link") 2>conftest.er1
13760 grep -v '^ *+' conftest.er1 >conftest.err
13762 cat conftest.err >&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } &&
13765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13766 { (case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_try") 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; } &&
13775 { ac_try='test -s conftest$ac_exeext'
13776 { (case "(($ac_try" in
13777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781 (eval "$ac_try") 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 ac_cv_search_ffi_call=$ac_res
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13793 rm -f core conftest.err conftest.$ac_objext \
13795 if test "${ac_cv_search_ffi_call+set}" = set; then
13799 if test "${ac_cv_search_ffi_call+set}" = set; then
13802 ac_cv_search_ffi_call=no
13804 rm conftest.$ac_ext
13805 LIBS=$ac_func_search_save_LIBS
13807 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13808 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13809 ac_res=$ac_cv_search_ffi_call
13810 if test "$ac_res" != no; then
13811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13813 cat >>confdefs.h <<\_ACEOF
13814 #define HAVE_FFI_CALL 1
13818 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13819 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13820 { (exit 1); exit 1; }; }
13825 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13826 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13827 if test "${ac_cv_search_mallinfo+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 ac_func_search_save_LIBS=$LIBS
13831 cat >conftest.$ac_ext <<_ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13838 /* Override any GCC internal prototype to avoid an error.
13839 Use char because int might match the return type of a GCC
13840 builtin and then its argument prototype would still apply. */
13848 return mallinfo ();
13853 for ac_lib in '' malloc; do
13854 if test -z "$ac_lib"; then
13855 ac_res="none required"
13858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13860 rm -f conftest.$ac_objext conftest$ac_exeext
13861 if { (ac_try="$ac_link"
13862 case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867 (eval "$ac_link") 2>conftest.er1
13869 grep -v '^ *+' conftest.er1 >conftest.err
13871 cat conftest.err >&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13875 { (case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_try") 2>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; } &&
13884 { ac_try='test -s conftest$ac_exeext'
13885 { (case "(($ac_try" in
13886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890 (eval "$ac_try") 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 ac_cv_search_mallinfo=$ac_res
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13902 rm -f core conftest.err conftest.$ac_objext \
13904 if test "${ac_cv_search_mallinfo+set}" = set; then
13908 if test "${ac_cv_search_mallinfo+set}" = set; then
13911 ac_cv_search_mallinfo=no
13913 rm conftest.$ac_ext
13914 LIBS=$ac_func_search_save_LIBS
13916 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13917 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13918 ac_res=$ac_cv_search_mallinfo
13919 if test "$ac_res" != no; then
13920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13922 cat >>confdefs.h <<\_ACEOF
13923 #define HAVE_MALLINFO 1
13929 if test "$ENABLE_THREADS" -eq 1 ; then
13931 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13932 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13933 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 ac_check_lib_save_LIBS=$LIBS
13937 LIBS="-lpthread $LIBS"
13938 cat >conftest.$ac_ext <<_ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13945 /* Override any GCC internal prototype to avoid an error.
13946 Use char because int might match the return type of a GCC
13947 builtin and then its argument prototype would still apply. */
13951 char pthread_mutex_init ();
13955 return pthread_mutex_init ();
13960 rm -f conftest.$ac_objext conftest$ac_exeext
13961 if { (ac_try="$ac_link"
13962 case "(($ac_try" in
13963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964 *) ac_try_echo=$ac_try;;
13966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967 (eval "$ac_link") 2>conftest.er1
13969 grep -v '^ *+' conftest.er1 >conftest.err
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } &&
13974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13975 { (case "(($ac_try" in
13976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13977 *) ac_try_echo=$ac_try;;
13979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980 (eval "$ac_try") 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try='test -s conftest$ac_exeext'
13985 { (case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990 (eval "$ac_try") 2>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
13994 ac_cv_lib_pthread_pthread_mutex_init=yes
13996 echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13999 ac_cv_lib_pthread_pthread_mutex_init=no
14002 rm -f core conftest.err conftest.$ac_objext \
14003 conftest$ac_exeext conftest.$ac_ext
14004 LIBS=$ac_check_lib_save_LIBS
14006 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14007 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14008 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14009 cat >>confdefs.h <<_ACEOF
14010 #define HAVE_LIBPTHREAD 1
14013 LIBS="-lpthread $LIBS"
14017 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14018 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14019 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 ac_func_search_save_LIBS=$LIBS
14023 cat >conftest.$ac_ext <<_ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14030 /* Override any GCC internal prototype to avoid an error.
14031 Use char because int might match the return type of a GCC
14032 builtin and then its argument prototype would still apply. */
14036 char pthread_mutex_lock ();
14040 return pthread_mutex_lock ();
14045 for ac_lib in '' pthread; do
14046 if test -z "$ac_lib"; then
14047 ac_res="none required"
14050 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14052 rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (ac_try="$ac_link"
14054 case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_link") 2>conftest.er1
14061 grep -v '^ *+' conftest.er1 >conftest.err
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14067 { (case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072 (eval "$ac_try") 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; } &&
14076 { ac_try='test -s conftest$ac_exeext'
14077 { (case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082 (eval "$ac_try") 2>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
14086 ac_cv_search_pthread_mutex_lock=$ac_res
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14094 rm -f core conftest.err conftest.$ac_objext \
14096 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14100 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14103 ac_cv_search_pthread_mutex_lock=no
14105 rm conftest.$ac_ext
14106 LIBS=$ac_func_search_save_LIBS
14108 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14109 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14110 ac_res=$ac_cv_search_pthread_mutex_lock
14111 if test "$ac_res" != no; then
14112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14114 cat >>confdefs.h <<\_ACEOF
14115 #define HAVE_PTHREAD_MUTEX_LOCK 1
14120 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14121 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14122 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 ac_func_search_save_LIBS=$LIBS
14126 cat >conftest.$ac_ext <<_ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14133 /* Override any GCC internal prototype to avoid an error.
14134 Use char because int might match the return type of a GCC
14135 builtin and then its argument prototype would still apply. */
14139 char pthread_rwlock_init ();
14143 return pthread_rwlock_init ();
14148 for ac_lib in '' pthread; do
14149 if test -z "$ac_lib"; then
14150 ac_res="none required"
14153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (ac_try="$ac_link"
14157 case "(($ac_try" in
14158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_link") 2>conftest.er1
14164 grep -v '^ *+' conftest.er1 >conftest.err
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14170 { (case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_try") 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; } &&
14179 { ac_try='test -s conftest$ac_exeext'
14180 { (case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_try") 2>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; }; then
14189 ac_cv_search_pthread_rwlock_init=$ac_res
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14197 rm -f core conftest.err conftest.$ac_objext \
14199 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14203 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14206 ac_cv_search_pthread_rwlock_init=no
14208 rm conftest.$ac_ext
14209 LIBS=$ac_func_search_save_LIBS
14211 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14212 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14213 ac_res=$ac_cv_search_pthread_rwlock_init
14214 if test "$ac_res" != no; then
14215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14217 cat >>confdefs.h <<\_ACEOF
14218 #define HAVE_PTHREAD_RWLOCK_INIT 1
14223 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14224 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14225 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 ac_func_search_save_LIBS=$LIBS
14229 cat >conftest.$ac_ext <<_ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14236 /* Override any GCC internal prototype to avoid an error.
14237 Use char because int might match the return type of a GCC
14238 builtin and then its argument prototype would still apply. */
14242 char pthread_getspecific ();
14246 return pthread_getspecific ();
14251 for ac_lib in '' pthread; do
14252 if test -z "$ac_lib"; then
14253 ac_res="none required"
14256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14258 rm -f conftest.$ac_objext conftest$ac_exeext
14259 if { (ac_try="$ac_link"
14260 case "(($ac_try" in
14261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262 *) ac_try_echo=$ac_try;;
14264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265 (eval "$ac_link") 2>conftest.er1
14267 grep -v '^ *+' conftest.er1 >conftest.err
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14273 { (case "(($ac_try" in
14274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275 *) ac_try_echo=$ac_try;;
14277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14278 (eval "$ac_try") 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try='test -s conftest$ac_exeext'
14283 { (case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_try") 2>&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then
14292 ac_cv_search_pthread_getspecific=$ac_res
14294 echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14300 rm -f core conftest.err conftest.$ac_objext \
14302 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14306 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14309 ac_cv_search_pthread_getspecific=no
14311 rm conftest.$ac_ext
14312 LIBS=$ac_func_search_save_LIBS
14314 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14315 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14316 ac_res=$ac_cv_search_pthread_getspecific
14317 if test "$ac_res" != no; then
14318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14320 cat >>confdefs.h <<\_ACEOF
14321 #define HAVE_PTHREAD_GETSPECIFIC 1
14329 # Check whether --with-udis86 was given.
14330 if test "${with_udis86+set}" = set; then
14331 withval=$with_udis86;
14336 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14339 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14340 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14341 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 ac_check_lib_save_LIBS=$LIBS
14345 LIBS="-ludis86 $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. */
14368 rm -f conftest.$ac_objext conftest$ac_exeext
14369 if { (ac_try="$ac_link"
14370 case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_link") 2>conftest.er1
14377 grep -v '^ *+' conftest.er1 >conftest.err
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } &&
14382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14383 { (case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_try") 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest$ac_exeext'
14393 { (case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398 (eval "$ac_try") 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 ac_cv_lib_udis86_ud_init=yes
14404 echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14407 ac_cv_lib_udis86_ud_init=no
14410 rm -f core conftest.err conftest.$ac_objext \
14411 conftest$ac_exeext conftest.$ac_ext
14412 LIBS=$ac_check_lib_save_LIBS
14414 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14415 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14416 if test $ac_cv_lib_udis86_ud_init = yes; then
14417 cat >>confdefs.h <<_ACEOF
14418 #define HAVE_LIBUDIS86 1
14421 LIBS="-ludis86 $LIBS"
14425 echo "Error! You need to have libudis86 around."
14437 cat >>confdefs.h <<_ACEOF
14438 #define USE_UDIS86 $USE_UDIS86
14443 # Check whether --with-oprofile was given.
14444 if test "${with_oprofile+set}" = set; then
14445 withval=$with_oprofile;
14449 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14450 no) llvm_cv_oppath=
14453 *) llvm_cv_oppath="${withval}/lib/oprofile"
14454 CPPFLAGS="-I${withval}/include";;
14456 if test -n "$llvm_cv_oppath" ; then
14457 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14458 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14459 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14460 if test "${ac_cv_search_bfd_init+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 ac_func_search_save_LIBS=$LIBS
14464 cat >conftest.$ac_ext <<_ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14471 /* Override any GCC internal prototype to avoid an error.
14472 Use char because int might match the return type of a GCC
14473 builtin and then its argument prototype would still apply. */
14481 return bfd_init ();
14486 for ac_lib in '' bfd; do
14487 if test -z "$ac_lib"; then
14488 ac_res="none required"
14491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14493 rm -f conftest.$ac_objext conftest$ac_exeext
14494 if { (ac_try="$ac_link"
14495 case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14500 (eval "$ac_link") 2>conftest.er1
14502 grep -v '^ *+' conftest.er1 >conftest.err
14504 cat conftest.err >&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } &&
14507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14508 { (case "(($ac_try" in
14509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513 (eval "$ac_try") 2>&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); }; } &&
14517 { ac_try='test -s conftest$ac_exeext'
14518 { (case "(($ac_try" in
14519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520 *) ac_try_echo=$ac_try;;
14522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14523 (eval "$ac_try") 2>&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }; then
14527 ac_cv_search_bfd_init=$ac_res
14529 echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14535 rm -f core conftest.err conftest.$ac_objext \
14537 if test "${ac_cv_search_bfd_init+set}" = set; then
14541 if test "${ac_cv_search_bfd_init+set}" = set; then
14544 ac_cv_search_bfd_init=no
14546 rm conftest.$ac_ext
14547 LIBS=$ac_func_search_save_LIBS
14549 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14550 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14551 ac_res=$ac_cv_search_bfd_init
14552 if test "$ac_res" != no; then
14553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14557 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14558 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14559 if test "${ac_cv_search_op_open_agent+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 ac_func_search_save_LIBS=$LIBS
14563 cat >conftest.$ac_ext <<_ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14570 /* Override any GCC internal prototype to avoid an error.
14571 Use char because int might match the return type of a GCC
14572 builtin and then its argument prototype would still apply. */
14576 char op_open_agent ();
14580 return op_open_agent ();
14585 for ac_lib in '' opagent; do
14586 if test -z "$ac_lib"; then
14587 ac_res="none required"
14590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14592 rm -f conftest.$ac_objext conftest$ac_exeext
14593 if { (ac_try="$ac_link"
14594 case "(($ac_try" in
14595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596 *) ac_try_echo=$ac_try;;
14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599 (eval "$ac_link") 2>conftest.er1
14601 grep -v '^ *+' conftest.er1 >conftest.err
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14607 { (case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612 (eval "$ac_try") 2>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; } &&
14616 { ac_try='test -s conftest$ac_exeext'
14617 { (case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_try") 2>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; }; then
14626 ac_cv_search_op_open_agent=$ac_res
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14634 rm -f core conftest.err conftest.$ac_objext \
14636 if test "${ac_cv_search_op_open_agent+set}" = set; then
14640 if test "${ac_cv_search_op_open_agent+set}" = set; then
14643 ac_cv_search_op_open_agent=no
14645 rm conftest.$ac_ext
14646 LIBS=$ac_func_search_save_LIBS
14648 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14649 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14650 ac_res=$ac_cv_search_op_open_agent
14651 if test "$ac_res" != no; then
14652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14656 echo "Error! You need to have libopagent around."
14661 if test "${ac_cv_header_opagent_h+set}" = set; then
14662 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14663 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14664 if test "${ac_cv_header_opagent_h+set}" = set; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14667 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14668 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14670 # Is the header compilable?
14671 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14672 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14673 cat >conftest.$ac_ext <<_ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 $ac_includes_default
14680 #include <opagent.h>
14682 rm -f conftest.$ac_objext
14683 if { (ac_try="$ac_compile"
14684 case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_compile") 2>conftest.er1
14691 grep -v '^ *+' conftest.er1 >conftest.err
14693 cat conftest.err >&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } &&
14696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14697 { (case "(($ac_try" in
14698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699 *) ac_try_echo=$ac_try;;
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_try") 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; } &&
14706 { ac_try='test -s conftest.$ac_objext'
14707 { (case "(($ac_try" in
14708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709 *) ac_try_echo=$ac_try;;
14711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712 (eval "$ac_try") 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 ac_header_compiler=yes
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ac_header_compiler=no
14724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14726 echo "${ECHO_T}$ac_header_compiler" >&6; }
14728 # Is the header present?
14729 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14730 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14731 cat >conftest.$ac_ext <<_ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h. */
14737 #include <opagent.h>
14739 if { (ac_try="$ac_cpp conftest.$ac_ext"
14740 case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14747 grep -v '^ *+' conftest.er1 >conftest.err
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } >/dev/null; then
14752 if test -s conftest.err; then
14753 ac_cpp_err=$ac_c_preproc_warn_flag
14754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14761 if test -z "$ac_cpp_err"; then
14762 ac_header_preproc=yes
14764 echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14767 ac_header_preproc=no
14770 rm -f conftest.err conftest.$ac_ext
14771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14772 echo "${ECHO_T}$ac_header_preproc" >&6; }
14774 # So? What about this header?
14775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14777 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14778 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14780 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14781 ac_header_preproc=yes
14784 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14785 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14787 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14789 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14791 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14793 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14795 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14797 ## ----------------------------------- ##
14798 ## Report this to llvmbugs@cs.uiuc.edu ##
14799 ## ----------------------------------- ##
14801 ) | sed "s/^/$as_me: WARNING: /" >&2
14804 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14805 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14806 if test "${ac_cv_header_opagent_h+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 ac_cv_header_opagent_h=$ac_header_preproc
14811 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14812 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14815 if test $ac_cv_header_opagent_h = yes; then
14819 echo "Error! You need to have opagent.h around."
14835 cat >>confdefs.h <<_ACEOF
14836 #define USE_OPROFILE $USE_OPROFILE
14846 ac_header_dirent=no
14847 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14848 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14849 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14850 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 cat >conftest.$ac_ext <<_ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 #include <sys/types.h>
14872 rm -f conftest.$ac_objext
14873 if { (ac_try="$ac_compile"
14874 case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_compile") 2>conftest.er1
14881 grep -v '^ *+' conftest.er1 >conftest.err
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try='test -s conftest.$ac_objext'
14897 { (case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_try") 2>&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
14906 eval "$as_ac_Header=yes"
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14911 eval "$as_ac_Header=no"
14914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14916 ac_res=`eval echo '${'$as_ac_Header'}'`
14917 { echo "$as_me:$LINENO: result: $ac_res" >&5
14918 echo "${ECHO_T}$ac_res" >&6; }
14919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14920 cat >>confdefs.h <<_ACEOF
14921 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14924 ac_header_dirent=$ac_hdr; break
14928 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14929 if test $ac_header_dirent = dirent.h; then
14930 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14931 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14932 if test "${ac_cv_search_opendir+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 ac_func_search_save_LIBS=$LIBS
14936 cat >conftest.$ac_ext <<_ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14943 /* Override any GCC internal prototype to avoid an error.
14944 Use char because int might match the return type of a GCC
14945 builtin and then its argument prototype would still apply. */
14958 for ac_lib in '' dir; do
14959 if test -z "$ac_lib"; then
14960 ac_res="none required"
14963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14965 rm -f conftest.$ac_objext conftest$ac_exeext
14966 if { (ac_try="$ac_link"
14967 case "(($ac_try" in
14968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969 *) ac_try_echo=$ac_try;;
14971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14972 (eval "$ac_link") 2>conftest.er1
14974 grep -v '^ *+' conftest.er1 >conftest.err
14976 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14980 { (case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_try") 2>&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; } &&
14989 { ac_try='test -s conftest$ac_exeext'
14990 { (case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_try") 2>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }; then
14999 ac_cv_search_opendir=$ac_res
15001 echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15007 rm -f core conftest.err conftest.$ac_objext \
15009 if test "${ac_cv_search_opendir+set}" = set; then
15013 if test "${ac_cv_search_opendir+set}" = set; then
15016 ac_cv_search_opendir=no
15018 rm conftest.$ac_ext
15019 LIBS=$ac_func_search_save_LIBS
15021 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15022 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15023 ac_res=$ac_cv_search_opendir
15024 if test "$ac_res" != no; then
15025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15030 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15031 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15032 if test "${ac_cv_search_opendir+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15035 ac_func_search_save_LIBS=$LIBS
15036 cat >conftest.$ac_ext <<_ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15043 /* Override any GCC internal prototype to avoid an error.
15044 Use char because int might match the return type of a GCC
15045 builtin and then its argument prototype would still apply. */
15058 for ac_lib in '' x; do
15059 if test -z "$ac_lib"; then
15060 ac_res="none required"
15063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15065 rm -f conftest.$ac_objext conftest$ac_exeext
15066 if { (ac_try="$ac_link"
15067 case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_link") 2>conftest.er1
15074 grep -v '^ *+' conftest.er1 >conftest.err
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
15079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15080 { (case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_try") 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; } &&
15089 { ac_try='test -s conftest$ac_exeext'
15090 { (case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_try") 2>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15099 ac_cv_search_opendir=$ac_res
15101 echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15107 rm -f core conftest.err conftest.$ac_objext \
15109 if test "${ac_cv_search_opendir+set}" = set; then
15113 if test "${ac_cv_search_opendir+set}" = set; then
15116 ac_cv_search_opendir=no
15118 rm conftest.$ac_ext
15119 LIBS=$ac_func_search_save_LIBS
15121 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15122 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15123 ac_res=$ac_cv_search_opendir
15124 if test "$ac_res" != no; then
15125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15131 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15132 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15133 if test "${ac_cv_header_mmap_anon+set}" = set; then
15134 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 ac_cpp='$CPP $CPPFLAGS'
15138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15142 cat >conftest.$ac_ext <<_ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15148 #include <sys/mman.h>
15149 #include <unistd.h>
15154 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15159 rm -f conftest.$ac_objext
15160 if { (ac_try="$ac_compile"
15161 case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_compile") 2>conftest.er1
15168 grep -v '^ *+' conftest.er1 >conftest.err
15170 cat conftest.err >&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } &&
15173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15174 { (case "(($ac_try" in
15175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176 *) ac_try_echo=$ac_try;;
15178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15179 (eval "$ac_try") 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_cv_header_mmap_anon=yes
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15198 ac_cv_header_mmap_anon=no
15201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203 ac_cpp='$CPP $CPPFLAGS'
15204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15210 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15211 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15212 if test "$ac_cv_header_mmap_anon" = yes; then
15214 cat >>confdefs.h <<\_ACEOF
15215 #define HAVE_MMAP_ANONYMOUS 1
15220 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15221 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15222 if test "${ac_cv_header_stat_broken+set}" = set; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 cat >conftest.$ac_ext <<_ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15231 #include <sys/types.h>
15232 #include <sys/stat.h>
15234 #if defined S_ISBLK && defined S_IFDIR
15235 # if S_ISBLK (S_IFDIR)
15240 #if defined S_ISBLK && defined S_IFCHR
15241 # if S_ISBLK (S_IFCHR)
15246 #if defined S_ISLNK && defined S_IFREG
15247 # if S_ISLNK (S_IFREG)
15252 #if defined S_ISSOCK && defined S_IFREG
15253 # if S_ISSOCK (S_IFREG)
15259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15260 $EGREP "You lose" >/dev/null 2>&1; then
15261 ac_cv_header_stat_broken=yes
15263 ac_cv_header_stat_broken=no
15268 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15269 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15270 if test $ac_cv_header_stat_broken = yes; then
15272 cat >>confdefs.h <<\_ACEOF
15273 #define STAT_MACROS_BROKEN 1
15278 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15279 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15280 if test "${ac_cv_header_stdc+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 cat >conftest.$ac_ext <<_ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15289 #include <stdlib.h>
15290 #include <stdarg.h>
15291 #include <string.h>
15302 rm -f conftest.$ac_objext
15303 if { (ac_try="$ac_compile"
15304 case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_compile") 2>conftest.er1
15311 grep -v '^ *+' conftest.er1 >conftest.err
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } &&
15316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15317 { (case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_try") 2>&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; } &&
15326 { ac_try='test -s conftest.$ac_objext'
15327 { (case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_try") 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_cv_header_stdc=yes
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15341 ac_cv_header_stdc=no
15344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15346 if test $ac_cv_header_stdc = yes; then
15347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15348 cat >conftest.$ac_ext <<_ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354 #include <string.h>
15357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15358 $EGREP "memchr" >/dev/null 2>&1; then
15361 ac_cv_header_stdc=no
15367 if test $ac_cv_header_stdc = yes; then
15368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15369 cat >conftest.$ac_ext <<_ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 #include <stdlib.h>
15378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15379 $EGREP "free" >/dev/null 2>&1; then
15382 ac_cv_header_stdc=no
15388 if test $ac_cv_header_stdc = yes; then
15389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15390 if test "$cross_compiling" = yes; then
15393 cat >conftest.$ac_ext <<_ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h. */
15400 #include <stdlib.h>
15401 #if ((' ' & 0x0FF) == 0x020)
15402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15405 # define ISLOWER(c) \
15406 (('a' <= (c) && (c) <= 'i') \
15407 || ('j' <= (c) && (c) <= 'r') \
15408 || ('s' <= (c) && (c) <= 'z'))
15409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15417 for (i = 0; i < 256; i++)
15418 if (XOR (islower (i), ISLOWER (i))
15419 || toupper (i) != TOUPPER (i))
15424 rm -f conftest$ac_exeext
15425 if { (ac_try="$ac_link"
15426 case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_link") 2>&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15435 { (case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440 (eval "$ac_try") 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15446 echo "$as_me: program exited with status $ac_status" >&5
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15450 ( exit $ac_status )
15451 ac_cv_header_stdc=no
15453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15459 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15460 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15461 if test $ac_cv_header_stdc = yes; then
15463 cat >>confdefs.h <<\_ACEOF
15464 #define STDC_HEADERS 1
15469 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15470 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15471 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15474 cat >conftest.$ac_ext <<_ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 #include <sys/types.h>
15481 #include <sys/wait.h>
15482 #ifndef WEXITSTATUS
15483 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15486 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15494 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15499 rm -f conftest.$ac_objext
15500 if { (ac_try="$ac_compile"
15501 case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_compile") 2>conftest.er1
15508 grep -v '^ *+' conftest.er1 >conftest.err
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15514 { (case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15519 (eval "$ac_try") 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; } &&
15523 { ac_try='test -s conftest.$ac_objext'
15524 { (case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_try") 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15533 ac_cv_header_sys_wait_h=yes
15535 echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15538 ac_cv_header_sys_wait_h=no
15541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15543 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15544 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15545 if test $ac_cv_header_sys_wait_h = yes; then
15547 cat >>confdefs.h <<\_ACEOF
15548 #define HAVE_SYS_WAIT_H 1
15553 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15554 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15555 if test "${ac_cv_header_time+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 cat >conftest.$ac_ext <<_ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 #include <sys/types.h>
15565 #include <sys/time.h>
15571 if ((struct tm *) 0)
15577 rm -f conftest.$ac_objext
15578 if { (ac_try="$ac_compile"
15579 case "(($ac_try" in
15580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15581 *) ac_try_echo=$ac_try;;
15583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15584 (eval "$ac_compile") 2>conftest.er1
15586 grep -v '^ *+' conftest.er1 >conftest.err
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15592 { (case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_try") 2>&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; } &&
15601 { ac_try='test -s conftest.$ac_objext'
15602 { (case "(($ac_try" in
15603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604 *) ac_try_echo=$ac_try;;
15606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15607 (eval "$ac_try") 2>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 ac_cv_header_time=yes
15613 echo "$as_me: failed program was:" >&5
15614 sed 's/^/| /' conftest.$ac_ext >&5
15616 ac_cv_header_time=no
15619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15621 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15622 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15623 if test $ac_cv_header_time = yes; then
15625 cat >>confdefs.h <<\_ACEOF
15626 #define TIME_WITH_SYS_TIME 1
15638 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 ac_res=`eval echo '${'$as_ac_Header'}'`
15648 { echo "$as_me:$LINENO: result: $ac_res" >&5
15649 echo "${ECHO_T}$ac_res" >&6; }
15651 # Is the header compilable?
15652 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15654 cat >conftest.$ac_ext <<_ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15660 $ac_includes_default
15661 #include <$ac_header>
15663 rm -f conftest.$ac_objext
15664 if { (ac_try="$ac_compile"
15665 case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_compile") 2>conftest.er1
15672 grep -v '^ *+' conftest.er1 >conftest.err
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15678 { (case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_try") 2>&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; } &&
15687 { ac_try='test -s conftest.$ac_objext'
15688 { (case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_try") 2>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; }; then
15697 ac_header_compiler=yes
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15702 ac_header_compiler=no
15705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15707 echo "${ECHO_T}$ac_header_compiler" >&6; }
15709 # Is the header present?
15710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15712 cat >conftest.$ac_ext <<_ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h. */
15718 #include <$ac_header>
15720 if { (ac_try="$ac_cpp conftest.$ac_ext"
15721 case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15728 grep -v '^ *+' conftest.er1 >conftest.err
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } >/dev/null; then
15733 if test -s conftest.err; then
15734 ac_cpp_err=$ac_c_preproc_warn_flag
15735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15742 if test -z "$ac_cpp_err"; then
15743 ac_header_preproc=yes
15745 echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15748 ac_header_preproc=no
15751 rm -f conftest.err conftest.$ac_ext
15752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15753 echo "${ECHO_T}$ac_header_preproc" >&6; }
15755 # So? What about this header?
15756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15762 ac_header_preproc=yes
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15778 ## ----------------------------------- ##
15779 ## Report this to llvmbugs@cs.uiuc.edu ##
15780 ## ----------------------------------- ##
15782 ) | sed "s/^/$as_me: WARNING: /" >&2
15785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15788 echo $ECHO_N "(cached) $ECHO_C" >&6
15790 eval "$as_ac_Header=\$ac_header_preproc"
15792 ac_res=`eval echo '${'$as_ac_Header'}'`
15793 { echo "$as_me:$LINENO: result: $ac_res" >&5
15794 echo "${ECHO_T}$ac_res" >&6; }
15797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15798 cat >>confdefs.h <<_ACEOF
15799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15812 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 ac_res=`eval echo '${'$as_ac_Header'}'`
15822 { echo "$as_me:$LINENO: result: $ac_res" >&5
15823 echo "${ECHO_T}$ac_res" >&6; }
15825 # Is the header compilable?
15826 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15828 cat >conftest.$ac_ext <<_ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834 $ac_includes_default
15835 #include <$ac_header>
15837 rm -f conftest.$ac_objext
15838 if { (ac_try="$ac_compile"
15839 case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_compile") 2>conftest.er1
15846 grep -v '^ *+' conftest.er1 >conftest.err
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } &&
15851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15852 { (case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857 (eval "$ac_try") 2>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; } &&
15861 { ac_try='test -s conftest.$ac_objext'
15862 { (case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_try") 2>&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; }; then
15871 ac_header_compiler=yes
15873 echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15876 ac_header_compiler=no
15879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15881 echo "${ECHO_T}$ac_header_compiler" >&6; }
15883 # Is the header present?
15884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15886 cat >conftest.$ac_ext <<_ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 #include <$ac_header>
15894 if { (ac_try="$ac_cpp conftest.$ac_ext"
15895 case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15902 grep -v '^ *+' conftest.er1 >conftest.err
15904 cat conftest.err >&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } >/dev/null; then
15907 if test -s conftest.err; then
15908 ac_cpp_err=$ac_c_preproc_warn_flag
15909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15916 if test -z "$ac_cpp_err"; then
15917 ac_header_preproc=yes
15919 echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15922 ac_header_preproc=no
15925 rm -f conftest.err conftest.$ac_ext
15926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15927 echo "${ECHO_T}$ac_header_preproc" >&6; }
15929 # So? What about this header?
15930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15936 ac_header_preproc=yes
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15952 ## ----------------------------------- ##
15953 ## Report this to llvmbugs@cs.uiuc.edu ##
15954 ## ----------------------------------- ##
15956 ) | sed "s/^/$as_me: WARNING: /" >&2
15959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 eval "$as_ac_Header=\$ac_header_preproc"
15966 ac_res=`eval echo '${'$as_ac_Header'}'`
15967 { echo "$as_me:$LINENO: result: $ac_res" >&5
15968 echo "${ECHO_T}$ac_res" >&6; }
15971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15972 cat >>confdefs.h <<_ACEOF
15973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15982 for ac_header in utime.h windows.h
15984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6
15991 ac_res=`eval echo '${'$as_ac_Header'}'`
15992 { echo "$as_me:$LINENO: result: $ac_res" >&5
15993 echo "${ECHO_T}$ac_res" >&6; }
15995 # Is the header compilable?
15996 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15998 cat >conftest.$ac_ext <<_ACEOF
16001 cat confdefs.h >>conftest.$ac_ext
16002 cat >>conftest.$ac_ext <<_ACEOF
16003 /* end confdefs.h. */
16004 $ac_includes_default
16005 #include <$ac_header>
16007 rm -f conftest.$ac_objext
16008 if { (ac_try="$ac_compile"
16009 case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_compile") 2>conftest.er1
16016 grep -v '^ *+' conftest.er1 >conftest.err
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } &&
16021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16022 { (case "(($ac_try" in
16023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16024 *) ac_try_echo=$ac_try;;
16026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16027 (eval "$ac_try") 2>&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; } &&
16031 { ac_try='test -s conftest.$ac_objext'
16032 { (case "(($ac_try" in
16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034 *) ac_try_echo=$ac_try;;
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037 (eval "$ac_try") 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; }; then
16041 ac_header_compiler=yes
16043 echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16046 ac_header_compiler=no
16049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16051 echo "${ECHO_T}$ac_header_compiler" >&6; }
16053 # Is the header present?
16054 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16056 cat >conftest.$ac_ext <<_ACEOF
16059 cat confdefs.h >>conftest.$ac_ext
16060 cat >>conftest.$ac_ext <<_ACEOF
16061 /* end confdefs.h. */
16062 #include <$ac_header>
16064 if { (ac_try="$ac_cpp conftest.$ac_ext"
16065 case "(($ac_try" in
16066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067 *) ac_try_echo=$ac_try;;
16069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16072 grep -v '^ *+' conftest.er1 >conftest.err
16074 cat conftest.err >&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } >/dev/null; then
16077 if test -s conftest.err; then
16078 ac_cpp_err=$ac_c_preproc_warn_flag
16079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16086 if test -z "$ac_cpp_err"; then
16087 ac_header_preproc=yes
16089 echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16092 ac_header_preproc=no
16095 rm -f conftest.err conftest.$ac_ext
16096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16097 echo "${ECHO_T}$ac_header_preproc" >&6; }
16099 # So? What about this header?
16100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16106 ac_header_preproc=yes
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16122 ## ----------------------------------- ##
16123 ## Report this to llvmbugs@cs.uiuc.edu ##
16124 ## ----------------------------------- ##
16126 ) | sed "s/^/$as_me: WARNING: /" >&2
16129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 eval "$as_ac_Header=\$ac_header_preproc"
16136 ac_res=`eval echo '${'$as_ac_Header'}'`
16137 { echo "$as_me:$LINENO: result: $ac_res" >&5
16138 echo "${ECHO_T}$ac_res" >&6; }
16141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16142 cat >>confdefs.h <<_ACEOF
16143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16154 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 ac_res=`eval echo '${'$as_ac_Header'}'`
16164 { echo "$as_me:$LINENO: result: $ac_res" >&5
16165 echo "${ECHO_T}$ac_res" >&6; }
16167 # Is the header compilable?
16168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16170 cat >conftest.$ac_ext <<_ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16176 $ac_includes_default
16177 #include <$ac_header>
16179 rm -f conftest.$ac_objext
16180 if { (ac_try="$ac_compile"
16181 case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186 (eval "$ac_compile") 2>conftest.er1
16188 grep -v '^ *+' conftest.er1 >conftest.err
16190 cat conftest.err >&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } &&
16193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16194 { (case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_try") 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest.$ac_objext'
16204 { (case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_try") 2>&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_header_compiler=yes
16215 echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16218 ac_header_compiler=no
16221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16223 echo "${ECHO_T}$ac_header_compiler" >&6; }
16225 # Is the header present?
16226 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16228 cat >conftest.$ac_ext <<_ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16234 #include <$ac_header>
16236 if { (ac_try="$ac_cpp conftest.$ac_ext"
16237 case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16244 grep -v '^ *+' conftest.er1 >conftest.err
16246 cat conftest.err >&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } >/dev/null; then
16249 if test -s conftest.err; then
16250 ac_cpp_err=$ac_c_preproc_warn_flag
16251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16258 if test -z "$ac_cpp_err"; then
16259 ac_header_preproc=yes
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16264 ac_header_preproc=no
16267 rm -f conftest.err conftest.$ac_ext
16268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16269 echo "${ECHO_T}$ac_header_preproc" >&6; }
16271 # So? What about this header?
16272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16278 ac_header_preproc=yes
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16294 ## ----------------------------------- ##
16295 ## Report this to llvmbugs@cs.uiuc.edu ##
16296 ## ----------------------------------- ##
16298 ) | sed "s/^/$as_me: WARNING: /" >&2
16301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16306 eval "$as_ac_Header=\$ac_header_preproc"
16308 ac_res=`eval echo '${'$as_ac_Header'}'`
16309 { echo "$as_me:$LINENO: result: $ac_res" >&5
16310 echo "${ECHO_T}$ac_res" >&6; }
16313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16314 cat >>confdefs.h <<_ACEOF
16315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16326 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 ac_res=`eval echo '${'$as_ac_Header'}'`
16336 { echo "$as_me:$LINENO: result: $ac_res" >&5
16337 echo "${ECHO_T}$ac_res" >&6; }
16339 # Is the header compilable?
16340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16342 cat >conftest.$ac_ext <<_ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h. */
16348 $ac_includes_default
16349 #include <$ac_header>
16351 rm -f conftest.$ac_objext
16352 if { (ac_try="$ac_compile"
16353 case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_compile") 2>conftest.er1
16360 grep -v '^ *+' conftest.er1 >conftest.err
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } &&
16365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16366 { (case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_try") 2>&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; } &&
16375 { ac_try='test -s conftest.$ac_objext'
16376 { (case "(($ac_try" in
16377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381 (eval "$ac_try") 2>&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; }; then
16385 ac_header_compiler=yes
16387 echo "$as_me: failed program was:" >&5
16388 sed 's/^/| /' conftest.$ac_ext >&5
16390 ac_header_compiler=no
16393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16395 echo "${ECHO_T}$ac_header_compiler" >&6; }
16397 # Is the header present?
16398 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16400 cat >conftest.$ac_ext <<_ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16406 #include <$ac_header>
16408 if { (ac_try="$ac_cpp conftest.$ac_ext"
16409 case "(($ac_try" in
16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16416 grep -v '^ *+' conftest.er1 >conftest.err
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } >/dev/null; then
16421 if test -s conftest.err; then
16422 ac_cpp_err=$ac_c_preproc_warn_flag
16423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16430 if test -z "$ac_cpp_err"; then
16431 ac_header_preproc=yes
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16436 ac_header_preproc=no
16439 rm -f conftest.err conftest.$ac_ext
16440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16441 echo "${ECHO_T}$ac_header_preproc" >&6; }
16443 # So? What about this header?
16444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16450 ac_header_preproc=yes
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16466 ## ----------------------------------- ##
16467 ## Report this to llvmbugs@cs.uiuc.edu ##
16468 ## ----------------------------------- ##
16470 ) | sed "s/^/$as_me: WARNING: /" >&2
16473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16478 eval "$as_ac_Header=\$ac_header_preproc"
16480 ac_res=`eval echo '${'$as_ac_Header'}'`
16481 { echo "$as_me:$LINENO: result: $ac_res" >&5
16482 echo "${ECHO_T}$ac_res" >&6; }
16485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16486 cat >>confdefs.h <<_ACEOF
16487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16495 for ac_header in valgrind/valgrind.h
16497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 ac_res=`eval echo '${'$as_ac_Header'}'`
16505 { echo "$as_me:$LINENO: result: $ac_res" >&5
16506 echo "${ECHO_T}$ac_res" >&6; }
16508 # Is the header compilable?
16509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16511 cat >conftest.$ac_ext <<_ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16517 $ac_includes_default
16518 #include <$ac_header>
16520 rm -f conftest.$ac_objext
16521 if { (ac_try="$ac_compile"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_compile") 2>conftest.er1
16529 grep -v '^ *+' conftest.er1 >conftest.err
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
16534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16535 { (case "(($ac_try" in
16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537 *) ac_try_echo=$ac_try;;
16539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540 (eval "$ac_try") 2>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest.$ac_objext'
16545 { (case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_try") 2>&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_header_compiler=yes
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16559 ac_header_compiler=no
16562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16564 echo "${ECHO_T}$ac_header_compiler" >&6; }
16566 # Is the header present?
16567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16569 cat >conftest.$ac_ext <<_ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16575 #include <$ac_header>
16577 if { (ac_try="$ac_cpp conftest.$ac_ext"
16578 case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16585 grep -v '^ *+' conftest.er1 >conftest.err
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } >/dev/null; then
16590 if test -s conftest.err; then
16591 ac_cpp_err=$ac_c_preproc_warn_flag
16592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16599 if test -z "$ac_cpp_err"; then
16600 ac_header_preproc=yes
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 ac_header_preproc=no
16608 rm -f conftest.err conftest.$ac_ext
16609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16610 echo "${ECHO_T}$ac_header_preproc" >&6; }
16612 # So? What about this header?
16613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16619 ac_header_preproc=yes
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16635 ## ----------------------------------- ##
16636 ## Report this to llvmbugs@cs.uiuc.edu ##
16637 ## ----------------------------------- ##
16639 ) | sed "s/^/$as_me: WARNING: /" >&2
16642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 eval "$as_ac_Header=\$ac_header_preproc"
16649 ac_res=`eval echo '${'$as_ac_Header'}'`
16650 { echo "$as_me:$LINENO: result: $ac_res" >&5
16651 echo "${ECHO_T}$ac_res" >&6; }
16654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16655 cat >>confdefs.h <<_ACEOF
16656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16664 for ac_header in fenv.h
16666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16673 ac_res=`eval echo '${'$as_ac_Header'}'`
16674 { echo "$as_me:$LINENO: result: $ac_res" >&5
16675 echo "${ECHO_T}$ac_res" >&6; }
16677 # Is the header compilable?
16678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16680 cat >conftest.$ac_ext <<_ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 $ac_includes_default
16687 #include <$ac_header>
16689 rm -f conftest.$ac_objext
16690 if { (ac_try="$ac_compile"
16691 case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_compile") 2>conftest.er1
16698 grep -v '^ *+' conftest.er1 >conftest.err
16700 cat conftest.err >&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } &&
16703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16704 { (case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_try") 2>&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest.$ac_objext'
16714 { (case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_try") 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 ac_header_compiler=yes
16725 echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16728 ac_header_compiler=no
16731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16733 echo "${ECHO_T}$ac_header_compiler" >&6; }
16735 # Is the header present?
16736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16738 cat >conftest.$ac_ext <<_ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16744 #include <$ac_header>
16746 if { (ac_try="$ac_cpp conftest.$ac_ext"
16747 case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16754 grep -v '^ *+' conftest.er1 >conftest.err
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } >/dev/null; then
16759 if test -s conftest.err; then
16760 ac_cpp_err=$ac_c_preproc_warn_flag
16761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16768 if test -z "$ac_cpp_err"; then
16769 ac_header_preproc=yes
16771 echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16774 ac_header_preproc=no
16777 rm -f conftest.err conftest.$ac_ext
16778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16779 echo "${ECHO_T}$ac_header_preproc" >&6; }
16781 # So? What about this header?
16782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16788 ac_header_preproc=yes
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16804 ## ----------------------------------- ##
16805 ## Report this to llvmbugs@cs.uiuc.edu ##
16806 ## ----------------------------------- ##
16808 ) | sed "s/^/$as_me: WARNING: /" >&2
16811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16816 eval "$as_ac_Header=\$ac_header_preproc"
16818 ac_res=`eval echo '${'$as_ac_Header'}'`
16819 { echo "$as_me:$LINENO: result: $ac_res" >&5
16820 echo "${ECHO_T}$ac_res" >&6; }
16823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16824 cat >>confdefs.h <<_ACEOF
16825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16832 if test "$ENABLE_THREADS" -eq 1 ; then
16834 for ac_header in pthread.h
16836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16841 echo $ECHO_N "(cached) $ECHO_C" >&6
16843 ac_res=`eval echo '${'$as_ac_Header'}'`
16844 { echo "$as_me:$LINENO: result: $ac_res" >&5
16845 echo "${ECHO_T}$ac_res" >&6; }
16847 # Is the header compilable?
16848 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16850 cat >conftest.$ac_ext <<_ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 $ac_includes_default
16857 #include <$ac_header>
16859 rm -f conftest.$ac_objext
16860 if { (ac_try="$ac_compile"
16861 case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_compile") 2>conftest.er1
16868 grep -v '^ *+' conftest.er1 >conftest.err
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16874 { (case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_try") 2>&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try='test -s conftest.$ac_objext'
16884 { (case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_try") 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_header_compiler=yes
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16898 ac_header_compiler=no
16901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16903 echo "${ECHO_T}$ac_header_compiler" >&6; }
16905 # Is the header present?
16906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16908 cat >conftest.$ac_ext <<_ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16914 #include <$ac_header>
16916 if { (ac_try="$ac_cpp conftest.$ac_ext"
16917 case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16924 grep -v '^ *+' conftest.er1 >conftest.err
16926 cat conftest.err >&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } >/dev/null; then
16929 if test -s conftest.err; then
16930 ac_cpp_err=$ac_c_preproc_warn_flag
16931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16938 if test -z "$ac_cpp_err"; then
16939 ac_header_preproc=yes
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 ac_header_preproc=no
16947 rm -f conftest.err conftest.$ac_ext
16948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16949 echo "${ECHO_T}$ac_header_preproc" >&6; }
16951 # So? What about this header?
16952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16958 ac_header_preproc=yes
16961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16974 ## ----------------------------------- ##
16975 ## Report this to llvmbugs@cs.uiuc.edu ##
16976 ## ----------------------------------- ##
16978 ) | sed "s/^/$as_me: WARNING: /" >&2
16981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 eval "$as_ac_Header=\$ac_header_preproc"
16988 ac_res=`eval echo '${'$as_ac_Header'}'`
16989 { echo "$as_me:$LINENO: result: $ac_res" >&5
16990 echo "${ECHO_T}$ac_res" >&6; }
16993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16994 cat >>confdefs.h <<_ACEOF
16995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17011 if test "$llvm_cv_enable_libffi" = "yes" ; then
17014 for ac_header in ffi.h ffi/ffi.h
17016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17021 echo $ECHO_N "(cached) $ECHO_C" >&6
17023 ac_res=`eval echo '${'$as_ac_Header'}'`
17024 { echo "$as_me:$LINENO: result: $ac_res" >&5
17025 echo "${ECHO_T}$ac_res" >&6; }
17027 # Is the header compilable?
17028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17030 cat >conftest.$ac_ext <<_ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h. */
17036 $ac_includes_default
17037 #include <$ac_header>
17039 rm -f conftest.$ac_objext
17040 if { (ac_try="$ac_compile"
17041 case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_compile") 2>conftest.er1
17048 grep -v '^ *+' conftest.er1 >conftest.err
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } &&
17053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17054 { (case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_try") 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; } &&
17063 { ac_try='test -s conftest.$ac_objext'
17064 { (case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_try") 2>&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 ac_header_compiler=yes
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17078 ac_header_compiler=no
17081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17083 echo "${ECHO_T}$ac_header_compiler" >&6; }
17085 # Is the header present?
17086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17088 cat >conftest.$ac_ext <<_ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17094 #include <$ac_header>
17096 if { (ac_try="$ac_cpp conftest.$ac_ext"
17097 case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17104 grep -v '^ *+' conftest.er1 >conftest.err
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } >/dev/null; then
17109 if test -s conftest.err; then
17110 ac_cpp_err=$ac_c_preproc_warn_flag
17111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17118 if test -z "$ac_cpp_err"; then
17119 ac_header_preproc=yes
17121 echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17124 ac_header_preproc=no
17127 rm -f conftest.err conftest.$ac_ext
17128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17129 echo "${ECHO_T}$ac_header_preproc" >&6; }
17131 # So? What about this header?
17132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17138 ac_header_preproc=yes
17141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17154 ## ----------------------------------- ##
17155 ## Report this to llvmbugs@cs.uiuc.edu ##
17156 ## ----------------------------------- ##
17158 ) | sed "s/^/$as_me: WARNING: /" >&2
17161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 eval "$as_ac_Header=\$ac_header_preproc"
17168 ac_res=`eval echo '${'$as_ac_Header'}'`
17169 { echo "$as_me:$LINENO: result: $ac_res" >&5
17170 echo "${ECHO_T}$ac_res" >&6; }
17173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17174 cat >>confdefs.h <<_ACEOF
17175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17185 for ac_header in CrashReporterClient.h
17187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17192 echo $ECHO_N "(cached) $ECHO_C" >&6
17194 ac_res=`eval echo '${'$as_ac_Header'}'`
17195 { echo "$as_me:$LINENO: result: $ac_res" >&5
17196 echo "${ECHO_T}$ac_res" >&6; }
17198 # Is the header compilable?
17199 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17201 cat >conftest.$ac_ext <<_ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h. */
17207 $ac_includes_default
17208 #include <$ac_header>
17210 rm -f conftest.$ac_objext
17211 if { (ac_try="$ac_compile"
17212 case "(($ac_try" in
17213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214 *) ac_try_echo=$ac_try;;
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217 (eval "$ac_compile") 2>conftest.er1
17219 grep -v '^ *+' conftest.er1 >conftest.err
17221 cat conftest.err >&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } &&
17224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17225 { (case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_try") 2>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; } &&
17234 { ac_try='test -s conftest.$ac_objext'
17235 { (case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_try") 2>&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; }; then
17244 ac_header_compiler=yes
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 ac_header_compiler=no
17252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17254 echo "${ECHO_T}$ac_header_compiler" >&6; }
17256 # Is the header present?
17257 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17259 cat >conftest.$ac_ext <<_ACEOF
17262 cat confdefs.h >>conftest.$ac_ext
17263 cat >>conftest.$ac_ext <<_ACEOF
17264 /* end confdefs.h. */
17265 #include <$ac_header>
17267 if { (ac_try="$ac_cpp conftest.$ac_ext"
17268 case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17275 grep -v '^ *+' conftest.er1 >conftest.err
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } >/dev/null; then
17280 if test -s conftest.err; then
17281 ac_cpp_err=$ac_c_preproc_warn_flag
17282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17289 if test -z "$ac_cpp_err"; then
17290 ac_header_preproc=yes
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17295 ac_header_preproc=no
17298 rm -f conftest.err conftest.$ac_ext
17299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17300 echo "${ECHO_T}$ac_header_preproc" >&6; }
17302 # So? What about this header?
17303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17309 ac_header_preproc=yes
17312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17325 ## ----------------------------------- ##
17326 ## Report this to llvmbugs@cs.uiuc.edu ##
17327 ## ----------------------------------- ##
17329 ) | sed "s/^/$as_me: WARNING: /" >&2
17332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 eval "$as_ac_Header=\$ac_header_preproc"
17339 ac_res=`eval echo '${'$as_ac_Header'}'`
17340 { echo "$as_me:$LINENO: result: $ac_res" >&5
17341 echo "${ECHO_T}$ac_res" >&6; }
17344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17345 cat >>confdefs.h <<_ACEOF
17346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17357 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17358 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17359 if test "${ac_cv_huge_val_sanity+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 ac_cpp='$CXXCPP $CPPFLAGS'
17365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17369 ac_save_CXXFLAGS=$CXXFLAGS
17371 if test "$cross_compiling" = yes; then
17372 ac_cv_huge_val_sanity=yes
17374 cat >conftest.$ac_ext <<_ACEOF
17377 cat confdefs.h >>conftest.$ac_ext
17378 cat >>conftest.$ac_ext <<_ACEOF
17379 /* end confdefs.h. */
17384 double x = HUGE_VAL; return x != x;
17389 rm -f conftest$ac_exeext
17390 if { (ac_try="$ac_link"
17391 case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_link") 2>&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 ac_cv_huge_val_sanity=yes
17411 echo "$as_me: program exited with status $ac_status" >&5
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17415 ( exit $ac_status )
17416 ac_cv_huge_val_sanity=no
17418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17422 CXXFLAGS=$ac_save_CXXFLAGS
17424 ac_cpp='$CPP $CPPFLAGS'
17425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17431 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17432 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17433 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17436 { echo "$as_me:$LINENO: checking for pid_t" >&5
17437 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17438 if test "${ac_cv_type_pid_t+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17441 cat >conftest.$ac_ext <<_ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h. */
17447 $ac_includes_default
17448 typedef pid_t ac__type_new_;
17452 if ((ac__type_new_ *) 0)
17454 if (sizeof (ac__type_new_))
17460 rm -f conftest.$ac_objext
17461 if { (ac_try="$ac_compile"
17462 case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_compile") 2>conftest.er1
17469 grep -v '^ *+' conftest.er1 >conftest.err
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
17474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17475 { (case "(($ac_try" in
17476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477 *) ac_try_echo=$ac_try;;
17479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17480 (eval "$ac_try") 2>&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest.$ac_objext'
17485 { (case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_try") 2>&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 ac_cv_type_pid_t=yes
17496 echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17499 ac_cv_type_pid_t=no
17502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17504 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17505 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17506 if test $ac_cv_type_pid_t = yes; then
17510 cat >>confdefs.h <<_ACEOF
17516 { echo "$as_me:$LINENO: checking for size_t" >&5
17517 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17518 if test "${ac_cv_type_size_t+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 cat >conftest.$ac_ext <<_ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h. */
17527 $ac_includes_default
17528 typedef size_t ac__type_new_;
17532 if ((ac__type_new_ *) 0)
17534 if (sizeof (ac__type_new_))
17540 rm -f conftest.$ac_objext
17541 if { (ac_try="$ac_compile"
17542 case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 (eval "$ac_compile") 2>conftest.er1
17549 grep -v '^ *+' conftest.er1 >conftest.err
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
17554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17555 { (case "(($ac_try" in
17556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557 *) ac_try_echo=$ac_try;;
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560 (eval "$ac_try") 2>&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; } &&
17564 { ac_try='test -s conftest.$ac_objext'
17565 { (case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570 (eval "$ac_try") 2>&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
17574 ac_cv_type_size_t=yes
17576 echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17579 ac_cv_type_size_t=no
17582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17584 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17585 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17586 if test $ac_cv_type_size_t = yes; then
17590 cat >>confdefs.h <<_ACEOF
17591 #define size_t unsigned int
17597 cat >>confdefs.h <<_ACEOF
17598 #define RETSIGTYPE void
17601 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17602 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17603 if test "${ac_cv_struct_tm+set}" = set; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17606 cat >conftest.$ac_ext <<_ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h. */
17612 #include <sys/types.h>
17618 struct tm *tp; tp->tm_sec;
17623 rm -f conftest.$ac_objext
17624 if { (ac_try="$ac_compile"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_compile") 2>conftest.er1
17632 grep -v '^ *+' conftest.er1 >conftest.err
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } &&
17637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17638 { (case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_try") 2>&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; } &&
17647 { ac_try='test -s conftest.$ac_objext'
17648 { (case "(($ac_try" in
17649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650 *) ac_try_echo=$ac_try;;
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653 (eval "$ac_try") 2>&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657 ac_cv_struct_tm=time.h
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 ac_cv_struct_tm=sys/time.h
17665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17667 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17668 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17669 if test $ac_cv_struct_tm = sys/time.h; then
17671 cat >>confdefs.h <<\_ACEOF
17672 #define TM_IN_SYS_TIME 1
17677 { echo "$as_me:$LINENO: checking for int64_t" >&5
17678 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17679 if test "${ac_cv_type_int64_t+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17688 $ac_includes_default
17689 typedef int64_t ac__type_new_;
17693 if ((ac__type_new_ *) 0)
17695 if (sizeof (ac__type_new_))
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_compile") 2>conftest.er1
17710 grep -v '^ *+' conftest.er1 >conftest.err
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest.$ac_objext'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 ac_cv_type_int64_t=yes
17737 echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17740 ac_cv_type_int64_t=no
17743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17746 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17747 if test $ac_cv_type_int64_t = yes; then
17749 cat >>confdefs.h <<_ACEOF
17750 #define HAVE_INT64_T 1
17755 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17756 echo "$as_me: error: Type int64_t required but not found" >&2;}
17757 { (exit 1); exit 1; }; }
17760 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17761 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17762 if test "${ac_cv_type_uint64_t+set}" = set; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 cat >conftest.$ac_ext <<_ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h. */
17771 $ac_includes_default
17772 typedef uint64_t ac__type_new_;
17776 if ((ac__type_new_ *) 0)
17778 if (sizeof (ac__type_new_))
17784 rm -f conftest.$ac_objext
17785 if { (ac_try="$ac_compile"
17786 case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791 (eval "$ac_compile") 2>conftest.er1
17793 grep -v '^ *+' conftest.er1 >conftest.err
17795 cat conftest.err >&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } &&
17798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17799 { (case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804 (eval "$ac_try") 2>&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; } &&
17808 { ac_try='test -s conftest.$ac_objext'
17809 { (case "(($ac_try" in
17810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811 *) ac_try_echo=$ac_try;;
17813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17814 (eval "$ac_try") 2>&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17818 ac_cv_type_uint64_t=yes
17820 echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17823 ac_cv_type_uint64_t=no
17826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17828 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17829 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17830 if test $ac_cv_type_uint64_t = yes; then
17832 cat >>confdefs.h <<_ACEOF
17833 #define HAVE_UINT64_T 1
17838 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17839 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17840 if test "${ac_cv_type_u_int64_t+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 cat >conftest.$ac_ext <<_ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 $ac_includes_default
17850 typedef u_int64_t ac__type_new_;
17854 if ((ac__type_new_ *) 0)
17856 if (sizeof (ac__type_new_))
17862 rm -f conftest.$ac_objext
17863 if { (ac_try="$ac_compile"
17864 case "(($ac_try" in
17865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866 *) ac_try_echo=$ac_try;;
17868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869 (eval "$ac_compile") 2>conftest.er1
17871 grep -v '^ *+' conftest.er1 >conftest.err
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } &&
17876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17877 { (case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_try") 2>&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try='test -s conftest.$ac_objext'
17887 { (case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_try") 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_type_u_int64_t=yes
17898 echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17901 ac_cv_type_u_int64_t=no
17904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17906 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17907 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17908 if test $ac_cv_type_u_int64_t = yes; then
17910 cat >>confdefs.h <<_ACEOF
17911 #define HAVE_U_INT64_T 1
17916 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17917 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17918 { (exit 1); exit 1; }; }
17932 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17935 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17938 echo $ECHO_N "(cached) $ECHO_C" >&6
17940 cat >conftest.$ac_ext <<_ACEOF
17943 cat confdefs.h >>conftest.$ac_ext
17944 cat >>conftest.$ac_ext <<_ACEOF
17945 /* end confdefs.h. */
17946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17948 #define $ac_func innocuous_$ac_func
17950 /* System header to define __stub macros and hopefully few prototypes,
17951 which can conflict with char $ac_func (); below.
17952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17953 <limits.h> exists even on freestanding compilers. */
17956 # include <limits.h>
17958 # include <assert.h>
17963 /* Override any GCC internal prototype to avoid an error.
17964 Use char because int might match the return type of a GCC
17965 builtin and then its argument prototype would still apply. */
17970 /* The GNU C library defines this for functions which it implements
17971 to always fail with ENOSYS. Some functions are actually named
17972 something starting with __ and the normal name is an alias. */
17973 #if defined __stub_$ac_func || defined __stub___$ac_func
17980 return $ac_func ();
17985 rm -f conftest.$ac_objext conftest$ac_exeext
17986 if { (ac_try="$ac_link"
17987 case "(($ac_try" in
17988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989 *) ac_try_echo=$ac_try;;
17991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992 (eval "$ac_link") 2>conftest.er1
17994 grep -v '^ *+' conftest.er1 >conftest.err
17996 cat conftest.err >&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); } &&
17999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18000 { (case "(($ac_try" in
18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005 (eval "$ac_try") 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } &&
18009 { ac_try='test -s conftest$ac_exeext'
18010 { (case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_try") 2>&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; }; then
18019 eval "$as_ac_var=yes"
18021 echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18024 eval "$as_ac_var=no"
18027 rm -f core conftest.err conftest.$ac_objext \
18028 conftest$ac_exeext conftest.$ac_ext
18030 ac_res=`eval echo '${'$as_ac_var'}'`
18031 { echo "$as_me:$LINENO: result: $ac_res" >&5
18032 echo "${ECHO_T}$ac_res" >&6; }
18033 if test `eval echo '${'$as_ac_var'}'` = yes; then
18034 cat >>confdefs.h <<_ACEOF
18035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18045 for ac_func in powf fmodf strtof round
18047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 cat >conftest.$ac_ext <<_ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18061 #define $ac_func innocuous_$ac_func
18063 /* System header to define __stub macros and hopefully few prototypes,
18064 which can conflict with char $ac_func (); below.
18065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18066 <limits.h> exists even on freestanding compilers. */
18069 # include <limits.h>
18071 # include <assert.h>
18076 /* Override any GCC internal prototype to avoid an error.
18077 Use char because int might match the return type of a GCC
18078 builtin and then its argument prototype would still apply. */
18083 /* The GNU C library defines this for functions which it implements
18084 to always fail with ENOSYS. Some functions are actually named
18085 something starting with __ and the normal name is an alias. */
18086 #if defined __stub_$ac_func || defined __stub___$ac_func
18093 return $ac_func ();
18098 rm -f conftest.$ac_objext conftest$ac_exeext
18099 if { (ac_try="$ac_link"
18100 case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_link") 2>conftest.er1
18107 grep -v '^ *+' conftest.er1 >conftest.err
18109 cat conftest.err >&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } &&
18112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18113 { (case "(($ac_try" in
18114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115 *) ac_try_echo=$ac_try;;
18117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118 (eval "$ac_try") 2>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; } &&
18122 { ac_try='test -s conftest$ac_exeext'
18123 { (case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_try") 2>&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; }; then
18132 eval "$as_ac_var=yes"
18134 echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18137 eval "$as_ac_var=no"
18140 rm -f core conftest.err conftest.$ac_objext \
18141 conftest$ac_exeext conftest.$ac_ext
18143 ac_res=`eval echo '${'$as_ac_var'}'`
18144 { echo "$as_me:$LINENO: result: $ac_res" >&5
18145 echo "${ECHO_T}$ac_res" >&6; }
18146 if test `eval echo '${'$as_ac_var'}'` = yes; then
18147 cat >>confdefs.h <<_ACEOF
18148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18159 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18162 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18164 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
18167 cat >conftest.$ac_ext <<_ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18175 #define $ac_func innocuous_$ac_func
18177 /* System header to define __stub macros and hopefully few prototypes,
18178 which can conflict with char $ac_func (); below.
18179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180 <limits.h> exists even on freestanding compilers. */
18183 # include <limits.h>
18185 # include <assert.h>
18190 /* Override any GCC internal prototype to avoid an error.
18191 Use char because int might match the return type of a GCC
18192 builtin and then its argument prototype would still apply. */
18197 /* The GNU C library defines this for functions which it implements
18198 to always fail with ENOSYS. Some functions are actually named
18199 something starting with __ and the normal name is an alias. */
18200 #if defined __stub_$ac_func || defined __stub___$ac_func
18207 return $ac_func ();
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219 (eval "$ac_link") 2>conftest.er1
18221 grep -v '^ *+' conftest.er1 >conftest.err
18223 cat conftest.err >&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } &&
18226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18227 { (case "(($ac_try" in
18228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18229 *) ac_try_echo=$ac_try;;
18231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18232 (eval "$ac_try") 2>&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; } &&
18236 { ac_try='test -s conftest$ac_exeext'
18237 { (case "(($ac_try" in
18238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239 *) ac_try_echo=$ac_try;;
18241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242 (eval "$ac_try") 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; }; then
18246 eval "$as_ac_var=yes"
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18251 eval "$as_ac_var=no"
18254 rm -f core conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18257 ac_res=`eval echo '${'$as_ac_var'}'`
18258 { echo "$as_me:$LINENO: result: $ac_res" >&5
18259 echo "${ECHO_T}$ac_res" >&6; }
18260 if test `eval echo '${'$as_ac_var'}'` = yes; then
18261 cat >>confdefs.h <<_ACEOF
18262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18271 for ac_func in isatty mkdtemp mkstemp
18273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 cat >conftest.$ac_ext <<_ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18287 #define $ac_func innocuous_$ac_func
18289 /* System header to define __stub macros and hopefully few prototypes,
18290 which can conflict with char $ac_func (); below.
18291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18292 <limits.h> exists even on freestanding compilers. */
18295 # include <limits.h>
18297 # include <assert.h>
18302 /* Override any GCC internal prototype to avoid an error.
18303 Use char because int might match the return type of a GCC
18304 builtin and then its argument prototype would still apply. */
18309 /* The GNU C library defines this for functions which it implements
18310 to always fail with ENOSYS. Some functions are actually named
18311 something starting with __ and the normal name is an alias. */
18312 #if defined __stub_$ac_func || defined __stub___$ac_func
18319 return $ac_func ();
18324 rm -f conftest.$ac_objext conftest$ac_exeext
18325 if { (ac_try="$ac_link"
18326 case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_link") 2>conftest.er1
18333 grep -v '^ *+' conftest.er1 >conftest.err
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18339 { (case "(($ac_try" in
18340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341 *) ac_try_echo=$ac_try;;
18343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344 (eval "$ac_try") 2>&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; } &&
18348 { ac_try='test -s conftest$ac_exeext'
18349 { (case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_try") 2>&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; }; then
18358 eval "$as_ac_var=yes"
18360 echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18363 eval "$as_ac_var=no"
18366 rm -f core conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18369 ac_res=`eval echo '${'$as_ac_var'}'`
18370 { echo "$as_me:$LINENO: result: $ac_res" >&5
18371 echo "${ECHO_T}$ac_res" >&6; }
18372 if test `eval echo '${'$as_ac_var'}'` = yes; then
18373 cat >>confdefs.h <<_ACEOF
18374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18386 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18392 echo $ECHO_N "(cached) $ECHO_C" >&6
18394 cat >conftest.$ac_ext <<_ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h. */
18400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18402 #define $ac_func innocuous_$ac_func
18404 /* System header to define __stub macros and hopefully few prototypes,
18405 which can conflict with char $ac_func (); below.
18406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18407 <limits.h> exists even on freestanding compilers. */
18410 # include <limits.h>
18412 # include <assert.h>
18417 /* Override any GCC internal prototype to avoid an error.
18418 Use char because int might match the return type of a GCC
18419 builtin and then its argument prototype would still apply. */
18424 /* The GNU C library defines this for functions which it implements
18425 to always fail with ENOSYS. Some functions are actually named
18426 something starting with __ and the normal name is an alias. */
18427 #if defined __stub_$ac_func || defined __stub___$ac_func
18434 return $ac_func ();
18439 rm -f conftest.$ac_objext conftest$ac_exeext
18440 if { (ac_try="$ac_link"
18441 case "(($ac_try" in
18442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443 *) ac_try_echo=$ac_try;;
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_link") 2>conftest.er1
18448 grep -v '^ *+' conftest.er1 >conftest.err
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18454 { (case "(($ac_try" in
18455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456 *) ac_try_echo=$ac_try;;
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459 (eval "$ac_try") 2>&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; } &&
18463 { ac_try='test -s conftest$ac_exeext'
18464 { (case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_try") 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 eval "$as_ac_var=yes"
18475 echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18478 eval "$as_ac_var=no"
18481 rm -f core conftest.err conftest.$ac_objext \
18482 conftest$ac_exeext conftest.$ac_ext
18484 ac_res=`eval echo '${'$as_ac_var'}'`
18485 { echo "$as_me:$LINENO: result: $ac_res" >&5
18486 echo "${ECHO_T}$ac_res" >&6; }
18487 if test `eval echo '${'$as_ac_var'}'` = yes; then
18488 cat >>confdefs.h <<_ACEOF
18489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18499 for ac_func in strerror strerror_r strerror_s setenv
18501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 cat >conftest.$ac_ext <<_ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18515 #define $ac_func innocuous_$ac_func
18517 /* System header to define __stub macros and hopefully few prototypes,
18518 which can conflict with char $ac_func (); below.
18519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18520 <limits.h> exists even on freestanding compilers. */
18523 # include <limits.h>
18525 # include <assert.h>
18530 /* Override any GCC internal prototype to avoid an error.
18531 Use char because int might match the return type of a GCC
18532 builtin and then its argument prototype would still apply. */
18537 /* The GNU C library defines this for functions which it implements
18538 to always fail with ENOSYS. Some functions are actually named
18539 something starting with __ and the normal name is an alias. */
18540 #if defined __stub_$ac_func || defined __stub___$ac_func
18547 return $ac_func ();
18552 rm -f conftest.$ac_objext conftest$ac_exeext
18553 if { (ac_try="$ac_link"
18554 case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_link") 2>conftest.er1
18561 grep -v '^ *+' conftest.er1 >conftest.err
18563 cat conftest.err >&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
18566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18567 { (case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_try") 2>&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; } &&
18576 { ac_try='test -s conftest$ac_exeext'
18577 { (case "(($ac_try" in
18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579 *) ac_try_echo=$ac_try;;
18581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582 (eval "$ac_try") 2>&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; }; then
18586 eval "$as_ac_var=yes"
18588 echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18591 eval "$as_ac_var=no"
18594 rm -f core conftest.err conftest.$ac_objext \
18595 conftest$ac_exeext conftest.$ac_ext
18597 ac_res=`eval echo '${'$as_ac_var'}'`
18598 { echo "$as_me:$LINENO: result: $ac_res" >&5
18599 echo "${ECHO_T}$ac_res" >&6; }
18600 if test `eval echo '${'$as_ac_var'}'` = yes; then
18601 cat >>confdefs.h <<_ACEOF
18602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18612 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18618 echo $ECHO_N "(cached) $ECHO_C" >&6
18620 cat >conftest.$ac_ext <<_ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h. */
18626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18628 #define $ac_func innocuous_$ac_func
18630 /* System header to define __stub macros and hopefully few prototypes,
18631 which can conflict with char $ac_func (); below.
18632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18633 <limits.h> exists even on freestanding compilers. */
18636 # include <limits.h>
18638 # include <assert.h>
18643 /* Override any GCC internal prototype to avoid an error.
18644 Use char because int might match the return type of a GCC
18645 builtin and then its argument prototype would still apply. */
18650 /* The GNU C library defines this for functions which it implements
18651 to always fail with ENOSYS. Some functions are actually named
18652 something starting with __ and the normal name is an alias. */
18653 #if defined __stub_$ac_func || defined __stub___$ac_func
18660 return $ac_func ();
18665 rm -f conftest.$ac_objext conftest$ac_exeext
18666 if { (ac_try="$ac_link"
18667 case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_link") 2>conftest.er1
18674 grep -v '^ *+' conftest.er1 >conftest.err
18676 cat conftest.err >&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); } &&
18679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18680 { (case "(($ac_try" in
18681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682 *) ac_try_echo=$ac_try;;
18684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18685 (eval "$ac_try") 2>&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; } &&
18689 { ac_try='test -s conftest$ac_exeext'
18690 { (case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_try") 2>&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 eval "$as_ac_var=yes"
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18704 eval "$as_ac_var=no"
18707 rm -f core conftest.err conftest.$ac_objext \
18708 conftest$ac_exeext conftest.$ac_ext
18710 ac_res=`eval echo '${'$as_ac_var'}'`
18711 { echo "$as_me:$LINENO: result: $ac_res" >&5
18712 echo "${ECHO_T}$ac_res" >&6; }
18713 if test `eval echo '${'$as_ac_var'}'` = yes; then
18714 cat >>confdefs.h <<_ACEOF
18715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18725 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18733 cat >conftest.$ac_ext <<_ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h. */
18739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18741 #define $ac_func innocuous_$ac_func
18743 /* System header to define __stub macros and hopefully few prototypes,
18744 which can conflict with char $ac_func (); below.
18745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18746 <limits.h> exists even on freestanding compilers. */
18749 # include <limits.h>
18751 # include <assert.h>
18756 /* Override any GCC internal prototype to avoid an error.
18757 Use char because int might match the return type of a GCC
18758 builtin and then its argument prototype would still apply. */
18763 /* The GNU C library defines this for functions which it implements
18764 to always fail with ENOSYS. Some functions are actually named
18765 something starting with __ and the normal name is an alias. */
18766 #if defined __stub_$ac_func || defined __stub___$ac_func
18773 return $ac_func ();
18778 rm -f conftest.$ac_objext conftest$ac_exeext
18779 if { (ac_try="$ac_link"
18780 case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_link") 2>conftest.er1
18787 grep -v '^ *+' conftest.er1 >conftest.err
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try='test -s conftest$ac_exeext'
18803 { (case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_try") 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 eval "$as_ac_var=yes"
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18817 eval "$as_ac_var=no"
18820 rm -f core conftest.err conftest.$ac_objext \
18821 conftest$ac_exeext conftest.$ac_ext
18823 ac_res=`eval echo '${'$as_ac_var'}'`
18824 { echo "$as_me:$LINENO: result: $ac_res" >&5
18825 echo "${ECHO_T}$ac_res" >&6; }
18826 if test `eval echo '${'$as_ac_var'}'` = yes; then
18827 cat >>confdefs.h <<_ACEOF
18828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18834 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18835 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18836 if test "${llvm_cv_c_printf_a+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18840 ac_cpp='$CPP $CPPFLAGS'
18841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18845 if test "$cross_compiling" = yes; then
18846 llvmac_cv_c_printf_a=no
18848 cat >conftest.$ac_ext <<_ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h. */
18857 #include <stdlib.h>
18863 volatile double A, B;
18867 sprintf(Buffer, "%a", A);
18871 if (A != 0x1.999999999999ap-4)
18878 rm -f conftest$ac_exeext
18879 if { (ac_try="$ac_link"
18880 case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885 (eval "$ac_link") 2>&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18889 { (case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_try") 2>&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 llvm_cv_c_printf_a=yes
18900 echo "$as_me: program exited with status $ac_status" >&5
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18904 ( exit $ac_status )
18905 llvmac_cv_c_printf_a=no
18907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18912 ac_cpp='$CPP $CPPFLAGS'
18913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18918 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18919 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18920 if test "$llvm_cv_c_printf_a" = "yes"; then
18922 cat >>confdefs.h <<\_ACEOF
18923 #define HAVE_PRINTF_A 1
18929 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18930 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18931 if test "${ac_cv_func_rand48+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 ac_cpp='$CXXCPP $CPPFLAGS'
18936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18940 cat >conftest.$ac_ext <<_ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18946 #include <stdlib.h>
18950 srand48(0);lrand48();drand48();
18955 rm -f conftest.$ac_objext
18956 if { (ac_try="$ac_compile"
18957 case "(($ac_try" in
18958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959 *) ac_try_echo=$ac_try;;
18961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962 (eval "$ac_compile") 2>conftest.er1
18964 grep -v '^ *+' conftest.er1 >conftest.err
18966 cat conftest.err >&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } &&
18969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; } &&
18979 { ac_try='test -s conftest.$ac_objext'
18980 { (case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_try") 2>&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
18989 ac_cv_func_rand48=yes
18991 echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18994 ac_cv_func_rand48=no
18997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999 ac_cpp='$CPP $CPPFLAGS'
19000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19005 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19006 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19008 if test "$ac_cv_func_rand48" = "yes" ; then
19010 cat >>confdefs.h <<\_ACEOF
19011 #define HAVE_RAND48 1
19018 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19019 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19020 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
19024 ac_cpp='$CXXCPP $CPPFLAGS'
19025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19029 cat >conftest.$ac_ext <<_ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h. */
19044 rm -f conftest.$ac_objext
19045 if { (ac_try="$ac_compile"
19046 case "(($ac_try" in
19047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048 *) ac_try_echo=$ac_try;;
19050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051 (eval "$ac_compile") 2>conftest.er1
19053 grep -v '^ *+' conftest.er1 >conftest.err
19055 cat conftest.err >&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } &&
19058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19059 { (case "(($ac_try" in
19060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061 *) ac_try_echo=$ac_try;;
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064 (eval "$ac_try") 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; } &&
19068 { ac_try='test -s conftest.$ac_objext'
19069 { (case "(($ac_try" in
19070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071 *) ac_try_echo=$ac_try;;
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074 (eval "$ac_try") 2>&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19078 ac_cv_func_isnan_in_math_h=yes
19080 echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19083 ac_cv_func_isnan_in_math_h=no
19086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19088 ac_cpp='$CPP $CPPFLAGS'
19089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19094 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19095 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19098 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19100 cat >>confdefs.h <<\_ACEOF
19101 #define HAVE_ISNAN_IN_MATH_H 1
19106 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19107 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19108 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 ac_cpp='$CXXCPP $CPPFLAGS'
19113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19117 cat >conftest.$ac_ext <<_ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19132 rm -f conftest.$ac_objext
19133 if { (ac_try="$ac_compile"
19134 case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_compile") 2>conftest.er1
19141 grep -v '^ *+' conftest.er1 >conftest.err
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
19146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; } &&
19156 { ac_try='test -s conftest.$ac_objext'
19157 { (case "(($ac_try" in
19158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159 *) ac_try_echo=$ac_try;;
19161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19162 (eval "$ac_try") 2>&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
19166 ac_cv_func_isnan_in_cmath=yes
19168 echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19171 ac_cv_func_isnan_in_cmath=no
19174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19176 ac_cpp='$CPP $CPPFLAGS'
19177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19182 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19183 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19185 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19187 cat >>confdefs.h <<\_ACEOF
19188 #define HAVE_ISNAN_IN_CMATH 1
19193 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19194 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19195 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19199 ac_cpp='$CXXCPP $CPPFLAGS'
19200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19204 cat >conftest.$ac_ext <<_ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19214 float f; std::isnan(f);
19219 rm -f conftest.$ac_objext
19220 if { (ac_try="$ac_compile"
19221 case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226 (eval "$ac_compile") 2>conftest.er1
19228 grep -v '^ *+' conftest.er1 >conftest.err
19230 cat conftest.err >&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
19233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19234 { (case "(($ac_try" in
19235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236 *) ac_try_echo=$ac_try;;
19238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19239 (eval "$ac_try") 2>&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try='test -s conftest.$ac_objext'
19244 { (case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_try") 2>&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
19253 ac_cv_func_std_isnan_in_cmath=yes
19255 echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19258 ac_cv_func_std_isnan_in_cmath=no
19261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19263 ac_cpp='$CPP $CPPFLAGS'
19264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19269 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19270 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19272 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19274 cat >>confdefs.h <<\_ACEOF
19275 #define HAVE_STD_ISNAN_IN_CMATH 1
19281 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19282 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19283 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 ac_cpp='$CXXCPP $CPPFLAGS'
19288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19292 cat >conftest.$ac_ext <<_ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19307 rm -f conftest.$ac_objext
19308 if { (ac_try="$ac_compile"
19309 case "(($ac_try" in
19310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311 *) ac_try_echo=$ac_try;;
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314 (eval "$ac_compile") 2>conftest.er1
19316 grep -v '^ *+' conftest.er1 >conftest.err
19318 cat conftest.err >&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } &&
19321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19322 { (case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_try") 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; } &&
19331 { ac_try='test -s conftest.$ac_objext'
19332 { (case "(($ac_try" in
19333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334 *) ac_try_echo=$ac_try;;
19336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337 (eval "$ac_try") 2>&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; }; then
19341 ac_cv_func_isinf_in_math_h=yes
19343 echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19346 ac_cv_func_isinf_in_math_h=no
19349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19351 ac_cpp='$CPP $CPPFLAGS'
19352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19357 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19358 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19360 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19362 cat >>confdefs.h <<\_ACEOF
19363 #define HAVE_ISINF_IN_MATH_H 1
19368 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19369 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19370 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 ac_cpp='$CXXCPP $CPPFLAGS'
19375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19379 cat >conftest.$ac_ext <<_ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h. */
19394 rm -f conftest.$ac_objext
19395 if { (ac_try="$ac_compile"
19396 case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_compile") 2>conftest.er1
19403 grep -v '^ *+' conftest.er1 >conftest.err
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } &&
19408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19409 { (case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_try") 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; } &&
19418 { ac_try='test -s conftest.$ac_objext'
19419 { (case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_try") 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; }; then
19428 ac_cv_func_isinf_in_cmath=yes
19430 echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19433 ac_cv_func_isinf_in_cmath=no
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438 ac_cpp='$CPP $CPPFLAGS'
19439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19444 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19445 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19447 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19449 cat >>confdefs.h <<\_ACEOF
19450 #define HAVE_ISINF_IN_CMATH 1
19455 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19456 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19457 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19458 echo $ECHO_N "(cached) $ECHO_C" >&6
19461 ac_cpp='$CXXCPP $CPPFLAGS'
19462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19466 cat >conftest.$ac_ext <<_ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h. */
19476 float f; std::isinf(f)}
19481 rm -f conftest.$ac_objext
19482 if { (ac_try="$ac_compile"
19483 case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_compile") 2>conftest.er1
19490 grep -v '^ *+' conftest.er1 >conftest.err
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
19495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; } &&
19505 { ac_try='test -s conftest.$ac_objext'
19506 { (case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_try") 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 ac_cv_func_std_isinf_in_cmath=yes
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19520 ac_cv_func_std_isinf_in_cmath=no
19523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19525 ac_cpp='$CPP $CPPFLAGS'
19526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19531 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19532 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19534 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19536 cat >>confdefs.h <<\_ACEOF
19537 #define HAVE_STD_ISINF_IN_CMATH 1
19542 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19543 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19544 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 ac_cpp='$CXXCPP $CPPFLAGS'
19549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19553 cat >conftest.$ac_ext <<_ACEOF
19556 cat confdefs.h >>conftest.$ac_ext
19557 cat >>conftest.$ac_ext <<_ACEOF
19558 /* end confdefs.h. */
19559 #include <ieeefp.h>
19563 float f; finite(f);
19568 rm -f conftest.$ac_objext
19569 if { (ac_try="$ac_compile"
19570 case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_compile") 2>conftest.er1
19577 grep -v '^ *+' conftest.er1 >conftest.err
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } &&
19582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19583 { (case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_try") 2>&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; } &&
19592 { ac_try='test -s conftest.$ac_objext'
19593 { (case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_try") 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; }; then
19602 ac_cv_func_finite_in_ieeefp_h=yes
19604 echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.$ac_ext >&5
19607 ac_cv_func_finite_in_ieeefp_h=no
19610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19612 ac_cpp='$CPP $CPPFLAGS'
19613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19618 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19619 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19621 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19623 cat >>confdefs.h <<\_ACEOF
19624 #define HAVE_FINITE_IN_IEEEFP_H 1
19631 if test "$llvm_cv_platform_type" = "Unix" ; then
19634 for ac_header in stdlib.h unistd.h
19636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19643 ac_res=`eval echo '${'$as_ac_Header'}'`
19644 { echo "$as_me:$LINENO: result: $ac_res" >&5
19645 echo "${ECHO_T}$ac_res" >&6; }
19647 # Is the header compilable?
19648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19650 cat >conftest.$ac_ext <<_ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19656 $ac_includes_default
19657 #include <$ac_header>
19659 rm -f conftest.$ac_objext
19660 if { (ac_try="$ac_compile"
19661 case "(($ac_try" in
19662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663 *) ac_try_echo=$ac_try;;
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666 (eval "$ac_compile") 2>conftest.er1
19668 grep -v '^ *+' conftest.er1 >conftest.err
19670 cat conftest.err >&5
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); } &&
19673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19674 { (case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_try") 2>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; } &&
19683 { ac_try='test -s conftest.$ac_objext'
19684 { (case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_try") 2>&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; }; then
19693 ac_header_compiler=yes
19695 echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19698 ac_header_compiler=no
19701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19703 echo "${ECHO_T}$ac_header_compiler" >&6; }
19705 # Is the header present?
19706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19708 cat >conftest.$ac_ext <<_ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19714 #include <$ac_header>
19716 if { (ac_try="$ac_cpp conftest.$ac_ext"
19717 case "(($ac_try" in
19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719 *) ac_try_echo=$ac_try;;
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19724 grep -v '^ *+' conftest.er1 >conftest.err
19726 cat conftest.err >&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } >/dev/null; then
19729 if test -s conftest.err; then
19730 ac_cpp_err=$ac_c_preproc_warn_flag
19731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19738 if test -z "$ac_cpp_err"; then
19739 ac_header_preproc=yes
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19744 ac_header_preproc=no
19747 rm -f conftest.err conftest.$ac_ext
19748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19749 echo "${ECHO_T}$ac_header_preproc" >&6; }
19751 # So? What about this header?
19752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19758 ac_header_preproc=yes
19761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19774 ## ----------------------------------- ##
19775 ## Report this to llvmbugs@cs.uiuc.edu ##
19776 ## ----------------------------------- ##
19778 ) | sed "s/^/$as_me: WARNING: /" >&2
19781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 eval "$as_ac_Header=\$ac_header_preproc"
19788 ac_res=`eval echo '${'$as_ac_Header'}'`
19789 { echo "$as_me:$LINENO: result: $ac_res" >&5
19790 echo "${ECHO_T}$ac_res" >&6; }
19793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19794 cat >>confdefs.h <<_ACEOF
19795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19803 for ac_func in getpagesize
19805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 cat >conftest.$ac_ext <<_ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19819 #define $ac_func innocuous_$ac_func
19821 /* System header to define __stub macros and hopefully few prototypes,
19822 which can conflict with char $ac_func (); below.
19823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19824 <limits.h> exists even on freestanding compilers. */
19827 # include <limits.h>
19829 # include <assert.h>
19834 /* Override any GCC internal prototype to avoid an error.
19835 Use char because int might match the return type of a GCC
19836 builtin and then its argument prototype would still apply. */
19841 /* The GNU C library defines this for functions which it implements
19842 to always fail with ENOSYS. Some functions are actually named
19843 something starting with __ and the normal name is an alias. */
19844 #if defined __stub_$ac_func || defined __stub___$ac_func
19851 return $ac_func ();
19856 rm -f conftest.$ac_objext conftest$ac_exeext
19857 if { (ac_try="$ac_link"
19858 case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_link") 2>conftest.er1
19865 grep -v '^ *+' conftest.er1 >conftest.err
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
19870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19871 { (case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_try") 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; } &&
19880 { ac_try='test -s conftest$ac_exeext'
19881 { (case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_try") 2>&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890 eval "$as_ac_var=yes"
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 eval "$as_ac_var=no"
19898 rm -f core conftest.err conftest.$ac_objext \
19899 conftest$ac_exeext conftest.$ac_ext
19901 ac_res=`eval echo '${'$as_ac_var'}'`
19902 { echo "$as_me:$LINENO: result: $ac_res" >&5
19903 echo "${ECHO_T}$ac_res" >&6; }
19904 if test `eval echo '${'$as_ac_var'}'` = yes; then
19905 cat >>confdefs.h <<_ACEOF
19906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19912 { echo "$as_me:$LINENO: checking for working mmap" >&5
19913 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19914 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 if test "$cross_compiling" = yes; then
19918 ac_cv_func_mmap_fixed_mapped=no
19920 cat >conftest.$ac_ext <<_ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19926 $ac_includes_default
19927 /* malloc might have been renamed as rpl_malloc. */
19930 /* Thanks to Mike Haertel and Jim Avera for this test.
19931 Here is a matrix of mmap possibilities:
19932 mmap private not fixed
19933 mmap private fixed at somewhere currently unmapped
19934 mmap private fixed at somewhere already mapped
19935 mmap shared not fixed
19936 mmap shared fixed at somewhere currently unmapped
19937 mmap shared fixed at somewhere already mapped
19938 For private mappings, we should verify that changes cannot be read()
19939 back from the file, nor mmap's back from the file at a different
19940 address. (There have been systems where private was not correctly
19941 implemented like the infamous i386 svr4.0, and systems where the
19942 VM page cache was not coherent with the file system buffer cache
19943 like early versions of FreeBSD and possibly contemporary NetBSD.)
19944 For shared mappings, we should conversely verify that changes get
19945 propagated back to all the places they're supposed to be.
19947 Grep wants private fixed already mapped.
19948 The main things grep needs to know about mmap are:
19949 * does it exist and is it safe to write into the mmap'd area
19950 * how to use it (BSD variants) */
19953 #include <sys/mman.h>
19955 #if !STDC_HEADERS && !HAVE_STDLIB_H
19959 /* This mess was copied from the GNU getpagesize.h. */
19960 #if !HAVE_GETPAGESIZE
19961 /* Assume that all systems that can run configure have sys/param.h. */
19962 # if !HAVE_SYS_PARAM_H
19963 # define HAVE_SYS_PARAM_H 1
19966 # ifdef _SC_PAGESIZE
19967 # define getpagesize() sysconf(_SC_PAGESIZE)
19968 # else /* no _SC_PAGESIZE */
19969 # if HAVE_SYS_PARAM_H
19970 # include <sys/param.h>
19971 # ifdef EXEC_PAGESIZE
19972 # define getpagesize() EXEC_PAGESIZE
19973 # else /* no EXEC_PAGESIZE */
19975 # define getpagesize() NBPG * CLSIZE
19978 # endif /* no CLSIZE */
19979 # else /* no NBPG */
19981 # define getpagesize() NBPC
19982 # else /* no NBPC */
19984 # define getpagesize() PAGESIZE
19985 # endif /* PAGESIZE */
19986 # endif /* no NBPC */
19987 # endif /* no NBPG */
19988 # endif /* no EXEC_PAGESIZE */
19989 # else /* no HAVE_SYS_PARAM_H */
19990 # define getpagesize() 8192 /* punt totally */
19991 # endif /* no HAVE_SYS_PARAM_H */
19992 # endif /* no _SC_PAGESIZE */
19994 #endif /* no HAVE_GETPAGESIZE */
19999 char *data, *data2, *data3;
20003 pagesize = getpagesize ();
20005 /* First, make a file with some known garbage in it. */
20006 data = (char *) malloc (pagesize);
20009 for (i = 0; i < pagesize; ++i)
20010 *(data + i) = rand ();
20012 fd = creat ("conftest.mmap", 0600);
20015 if (write (fd, data, pagesize) != pagesize)
20019 /* Next, try to mmap the file at a fixed address which already has
20020 something else allocated at it. If we can, also make sure that
20021 we see the same garbage. */
20022 fd = open ("conftest.mmap", O_RDWR);
20025 data2 = (char *) malloc (2 * pagesize);
20028 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20029 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20030 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20032 for (i = 0; i < pagesize; ++i)
20033 if (*(data + i) != *(data2 + i))
20036 /* Finally, make sure that changes to the mapped area do not
20037 percolate back to the file as seen by read(). (This is a bug on
20038 some variants of i386 svr4.0.) */
20039 for (i = 0; i < pagesize; ++i)
20040 *(data2 + i) = *(data2 + i) + 1;
20041 data3 = (char *) malloc (pagesize);
20044 if (read (fd, data3, pagesize) != pagesize)
20046 for (i = 0; i < pagesize; ++i)
20047 if (*(data + i) != *(data3 + i))
20053 rm -f conftest$ac_exeext
20054 if { (ac_try="$ac_link"
20055 case "(($ac_try" in
20056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057 *) ac_try_echo=$ac_try;;
20059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060 (eval "$ac_link") 2>&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20064 { (case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_try") 2>&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_func_mmap_fixed_mapped=yes
20075 echo "$as_me: program exited with status $ac_status" >&5
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 ( exit $ac_status )
20080 ac_cv_func_mmap_fixed_mapped=no
20082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20087 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20088 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20089 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20091 cat >>confdefs.h <<\_ACEOF
20092 #define HAVE_MMAP 1
20096 rm -f conftest.mmap
20098 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20099 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20100 if test "${ac_cv_func_mmap_file+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20104 ac_cpp='$CPP $CPPFLAGS'
20105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20109 if test "$cross_compiling" = yes; then
20110 ac_cv_func_mmap_file=no
20112 cat >conftest.$ac_ext <<_ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20120 #include <sys/types.h>
20121 #include <sys/mman.h>
20129 fd = creat ("foo",0777);
20130 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20132 return (fd != (int) MAP_FAILED);
20137 rm -f conftest$ac_exeext
20138 if { (ac_try="$ac_link"
20139 case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_link") 2>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20148 { (case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_try") 2>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; }; then
20157 ac_cv_func_mmap_file=yes
20159 echo "$as_me: program exited with status $ac_status" >&5
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20163 ( exit $ac_status )
20164 ac_cv_func_mmap_file=no
20166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20171 ac_cpp='$CPP $CPPFLAGS'
20172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20178 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20179 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20180 if test "$ac_cv_func_mmap_file" = yes; then
20182 cat >>confdefs.h <<\_ACEOF
20183 #define HAVE_MMAP_FILE
20190 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20191 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20192 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 if test "$llvm_cv_os_type" = "Interix" ; then
20196 ac_cv_need_dev_zero_for_mmap=yes
20198 ac_cv_need_dev_zero_for_mmap=no
20202 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20203 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20204 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20206 cat >>confdefs.h <<\_ACEOF
20207 #define NEED_DEV_ZERO_FOR_MMAP 1
20212 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20214 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20215 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20217 if test "$ac_cv_func_mmap_file" = "no"
20219 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20220 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20224 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20225 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20227 ac_cpp='$CXXCPP $CPPFLAGS'
20228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20232 cat >conftest.$ac_ext <<_ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20239 volatile unsigned long val = 1;
20240 __sync_synchronize();
20241 __sync_val_compare_and_swap(&val, 1, 0);
20242 __sync_add_and_fetch(&val, 1);
20243 __sync_sub_and_fetch(&val, 1);
20248 rm -f conftest.$ac_objext conftest$ac_exeext
20249 if { (ac_try="$ac_link"
20250 case "(($ac_try" in
20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252 *) ac_try_echo=$ac_try;;
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255 (eval "$ac_link") 2>conftest.er1
20257 grep -v '^ *+' conftest.er1 >conftest.err
20259 cat conftest.err >&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } &&
20262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20263 { (case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268 (eval "$ac_try") 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; } &&
20272 { ac_try='test -s conftest$ac_exeext'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20283 ac_cpp='$CPP $CPPFLAGS'
20284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20288 { echo "$as_me:$LINENO: result: yes" >&5
20289 echo "${ECHO_T}yes" >&6; }
20291 cat >>confdefs.h <<\_ACEOF
20292 #define LLVM_MULTITHREADED 1
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20299 { echo "$as_me:$LINENO: result: no" >&5
20300 echo "${ECHO_T}no" >&6; }
20302 cat >>confdefs.h <<\_ACEOF
20303 #define LLVM_MULTITHREADED 0
20306 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20307 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20310 rm -f core conftest.err conftest.$ac_objext \
20311 conftest$ac_exeext conftest.$ac_ext
20314 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20315 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20316 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20317 if test "${llvm_cv_linux_mixed+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20321 ac_cpp='$CPP $CPPFLAGS'
20322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20326 cat >conftest.$ac_ext <<_ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20333 error: Not x86-64 even if uname says so!
20344 rm -f conftest.$ac_objext
20345 if { (ac_try="$ac_compile"
20346 case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_compile") 2>conftest.er1
20353 grep -v '^ *+' conftest.er1 >conftest.err
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } &&
20358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20359 { (case "(($ac_try" in
20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361 *) ac_try_echo=$ac_try;;
20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364 (eval "$ac_try") 2>&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; } &&
20368 { ac_try='test -s conftest.$ac_objext'
20369 { (case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_try") 2>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 llvm_cv_linux_mixed=no
20380 echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20383 llvm_cv_linux_mixed=yes
20386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20388 ac_cpp='$CPP $CPPFLAGS'
20389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20395 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20396 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20398 if test "$llvm_cv_linux_mixed" = "yes"; then
20399 llvm_cv_target_arch="x86"
20405 for ac_func in __dso_handle
20407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20413 cat >conftest.$ac_ext <<_ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20421 #define $ac_func innocuous_$ac_func
20423 /* System header to define __stub macros and hopefully few prototypes,
20424 which can conflict with char $ac_func (); below.
20425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20426 <limits.h> exists even on freestanding compilers. */
20429 # include <limits.h>
20431 # include <assert.h>
20436 /* Override any GCC internal prototype to avoid an error.
20437 Use char because int might match the return type of a GCC
20438 builtin and then its argument prototype would still apply. */
20443 /* The GNU C library defines this for functions which it implements
20444 to always fail with ENOSYS. Some functions are actually named
20445 something starting with __ and the normal name is an alias. */
20446 #if defined __stub_$ac_func || defined __stub___$ac_func
20453 return $ac_func ();
20458 rm -f conftest.$ac_objext conftest$ac_exeext
20459 if { (ac_try="$ac_link"
20460 case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_link") 2>conftest.er1
20467 grep -v '^ *+' conftest.er1 >conftest.err
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } &&
20472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20473 { (case "(($ac_try" in
20474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475 *) ac_try_echo=$ac_try;;
20477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20478 (eval "$ac_try") 2>&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); }; } &&
20482 { ac_try='test -s conftest$ac_exeext'
20483 { (case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_try") 2>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 eval "$as_ac_var=yes"
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 eval "$as_ac_var=no"
20500 rm -f core conftest.err conftest.$ac_objext \
20501 conftest$ac_exeext conftest.$ac_ext
20503 ac_res=`eval echo '${'$as_ac_var'}'`
20504 { echo "$as_me:$LINENO: result: $ac_res" >&5
20505 echo "${ECHO_T}$ac_res" >&6; }
20506 if test `eval echo '${'$as_ac_var'}'` = yes; then
20507 cat >>confdefs.h <<_ACEOF
20508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20515 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20516 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20517 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20518 echo $ECHO_N "(cached) $ECHO_C" >&6
20520 llvm_cv_llvmgcc_sanity="no"
20521 if test -x "$LLVMGCC" ; then
20522 cp /dev/null conftest.c
20523 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20524 grep 'target datalayout =' > /dev/null 2>&1
20525 if test $? -eq 0 ; then
20526 llvm_cv_llvmgcc_sanity="yes"
20531 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20532 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20534 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20535 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20536 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20537 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20538 LLVMCC1=$llvmcc1path
20540 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20541 LLVMCC1PLUS=$llvmcc1pluspath
20543 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20544 LLVMGCCDIR=$llvmgccdir
20546 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20547 LLVMGCC_LANGS=$llvmgcclangs
20549 { echo "$as_me:$LINENO: result: ok" >&5
20550 echo "${ECHO_T}ok" >&6; }
20553 SHLIBEXT=$libltdl_cv_shlibext
20556 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20559 # Translate the various configuration directories and other basic
20560 # information into substitutions that will end up in Makefile.config.in
20561 # that these configured values can be used by the makefiles
20562 if test "${prefix}" = "NONE" ; then
20563 prefix="/usr/local"
20565 eval LLVM_PREFIX="${prefix}";
20566 eval LLVM_BINDIR="${prefix}/bin";
20567 eval LLVM_LIBDIR="${prefix}/lib";
20568 eval LLVM_DATADIR="${prefix}/share/llvm";
20569 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20570 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20571 eval LLVM_INCLUDEDIR="${prefix}/include";
20572 eval LLVM_INFODIR="${prefix}/info";
20573 eval LLVM_MANDIR="${prefix}/man";
20574 LLVM_CONFIGTIME=`date`
20586 # Place the various directores into the config.h file as #defines so that we
20587 # can know about the installation paths within LLVM.
20589 cat >>confdefs.h <<_ACEOF
20590 #define LLVM_PREFIX "$LLVM_PREFIX"
20594 cat >>confdefs.h <<_ACEOF
20595 #define LLVM_BINDIR "$LLVM_BINDIR"
20599 cat >>confdefs.h <<_ACEOF
20600 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20604 cat >>confdefs.h <<_ACEOF
20605 #define LLVM_DATADIR "$LLVM_DATADIR"
20609 cat >>confdefs.h <<_ACEOF
20610 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20614 cat >>confdefs.h <<_ACEOF
20615 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20619 cat >>confdefs.h <<_ACEOF
20620 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20624 cat >>confdefs.h <<_ACEOF
20625 #define LLVM_INFODIR "$LLVM_INFODIR"
20629 cat >>confdefs.h <<_ACEOF
20630 #define LLVM_MANDIR "$LLVM_MANDIR"
20634 cat >>confdefs.h <<_ACEOF
20635 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20639 cat >>confdefs.h <<_ACEOF
20640 #define LLVM_HOSTTRIPLE "$host"
20644 # Determine which bindings to build.
20645 if test "$BINDINGS_TO_BUILD" = auto ; then
20646 BINDINGS_TO_BUILD=""
20647 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20648 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20651 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20654 # This isn't really configurey, but it avoids having to repeat the list in
20659 # Do any work necessary to ensure that bindings have what they need.
20660 binding_prereqs_failed=0
20661 for a_binding in $BINDINGS_TO_BUILD ; do
20662 case "$a_binding" in
20664 if test "x$OCAMLC" = x ; then
20665 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20666 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20667 binding_prereqs_failed=1
20669 if test "x$OCAMLDEP" = x ; then
20670 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20671 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20672 binding_prereqs_failed=1
20674 if test "x$OCAMLOPT" = x ; then
20675 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20676 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20678 if test "x$with_ocaml_libdir" != xauto ; then
20679 OCAML_LIBDIR=$with_ocaml_libdir
20682 ocaml_stdlib="`"$OCAMLC" -where`"
20683 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20685 # ocaml stdlib is beneath our prefix; use stdlib
20686 OCAML_LIBDIR=$ocaml_stdlib
20689 # ocaml stdlib is outside our prefix; use libdir/ocaml
20690 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20697 if test "$binding_prereqs_failed" = 1 ; then
20698 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20699 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20700 { (exit 1); exit 1; }; }
20703 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20704 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20705 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20709 ac_cpp='$CXXCPP $CPPFLAGS'
20710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20714 oldcxxflags="$CXXFLAGS"
20715 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20716 cat >conftest.$ac_ext <<_ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20731 rm -f conftest.$ac_objext
20732 if { (ac_try="$ac_compile"
20733 case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_compile") 2>conftest.er1
20740 grep -v '^ *+' conftest.er1 >conftest.err
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } &&
20745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20746 { (case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751 (eval "$ac_try") 2>&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; } &&
20755 { ac_try='test -s conftest.$ac_objext'
20756 { (case "(($ac_try" in
20757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758 *) ac_try_echo=$ac_try;;
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761 (eval "$ac_try") 2>&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; }; then
20765 llvm_cv_cxx_visibility_inlines_hidden=yes
20767 echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20770 llvm_cv_cxx_visibility_inlines_hidden=no
20773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20774 CXXFLAGS="$oldcxxflags"
20776 ac_cpp='$CPP $CPPFLAGS'
20777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20783 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20784 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20785 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20786 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20789 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20794 if test "$llvm_cv_link_use_r" = "yes" ; then
20801 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20802 RDYNAMIC="-Wl,-export-dynamic"
20809 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20816 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20818 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20820 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20822 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20824 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20827 ac_config_files="$ac_config_files Makefile.config"
20830 ac_config_files="$ac_config_files llvm.spec"
20833 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20836 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20839 ac_config_commands="$ac_config_commands setup"
20841 ac_config_commands="$ac_config_commands Makefile"
20844 ac_config_commands="$ac_config_commands Makefile.common"
20847 ac_config_commands="$ac_config_commands examples/Makefile"
20850 ac_config_commands="$ac_config_commands lib/Makefile"
20853 ac_config_commands="$ac_config_commands runtime/Makefile"
20856 ac_config_commands="$ac_config_commands test/Makefile"
20859 ac_config_commands="$ac_config_commands test/Makefile.tests"
20862 ac_config_commands="$ac_config_commands unittests/Makefile"
20865 ac_config_commands="$ac_config_commands tools/Makefile"
20868 ac_config_commands="$ac_config_commands utils/Makefile"
20871 ac_config_commands="$ac_config_commands projects/Makefile"
20874 ac_config_commands="$ac_config_commands bindings/Makefile"
20877 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20881 cat >confcache <<\_ACEOF
20882 # This file is a shell script that caches the results of configure
20883 # tests run on this system so they can be shared between configure
20884 # scripts and configure runs, see configure's option --config-cache.
20885 # It is not useful on other systems. If it contains results you don't
20886 # want to keep, you may remove or edit it.
20888 # config.status only pays attention to the cache file if you give it
20889 # the --recheck option to rerun configure.
20891 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20892 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20893 # following values.
20897 # The following way of writing the cache mishandles newlines in values,
20898 # but we know of no workaround that is simple, portable, and efficient.
20899 # So, we kill variables containing newlines.
20900 # Ultrix sh set writes to stderr and can't be redirected directly,
20901 # and sets the high bit in the cache file unless we assign to the vars.
20903 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20904 eval ac_val=\$$ac_var
20908 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20909 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20912 _ | IFS | as_nl) ;; #(
20913 *) $as_unset $ac_var ;;
20919 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20920 *${as_nl}ac_space=\ *)
20921 # `set' does not quote correctly, so add quotes (double-quote
20922 # substitution turns \\\\ into \\, and sed turns \\ into \).
20925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20928 # `set' quotes correctly as required by POSIX, so do not add quotes.
20929 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20940 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20942 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20943 if test -w "$cache_file"; then
20944 test "x$cache_file" != "x/dev/null" &&
20945 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20946 echo "$as_me: updating cache $cache_file" >&6;}
20947 cat confcache >$cache_file
20949 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20950 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20955 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20956 # Let make expand exec_prefix.
20957 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20959 DEFS=-DHAVE_CONFIG_H
20963 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20964 # 1. Remove the extension, and $U if already installed.
20965 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20966 ac_i=`echo "$ac_i" | sed "$ac_script"`
20967 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20968 # will be set to the directory where LIBOBJS objects are built.
20969 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20970 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20972 LIBOBJS=$ac_libobjs
20974 LTLIBOBJS=$ac_ltlibobjs
20977 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20978 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20979 Usually this means the macro was only invoked conditionally." >&5
20980 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20981 Usually this means the macro was only invoked conditionally." >&2;}
20982 { (exit 1); exit 1; }; }
20984 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20985 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20986 Usually this means the macro was only invoked conditionally." >&5
20987 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20988 Usually this means the macro was only invoked conditionally." >&2;}
20989 { (exit 1); exit 1; }; }
20992 : ${CONFIG_STATUS=./config.status}
20993 ac_clean_files_save=$ac_clean_files
20994 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20995 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20996 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20997 cat >$CONFIG_STATUS <<_ACEOF
20999 # Generated by $as_me.
21000 # Run this file to recreate the current configuration.
21001 # Compiler output produced by configure, useful for debugging
21002 # configure, is in config.log if it exists.
21005 ac_cs_recheck=false
21007 SHELL=\${CONFIG_SHELL-$SHELL}
21010 cat >>$CONFIG_STATUS <<\_ACEOF
21011 ## --------------------- ##
21012 ## M4sh Initialization. ##
21013 ## --------------------- ##
21015 # Be Bourne compatible
21016 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21019 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21020 # is contrary to our usage. Disable this feature.
21021 alias -g '${1+"$@"}'='"$@"'
21022 setopt NO_GLOB_SUBST
21024 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21026 BIN_SH=xpg4; export BIN_SH # for Tru64
21027 DUALCASE=1; export DUALCASE # for MKS sh
21031 # Avoid depending upon Character Ranges.
21032 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21033 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21034 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21035 as_cr_digits='0123456789'
21036 as_cr_alnum=$as_cr_Letters$as_cr_digits
21038 # The user is always right.
21039 if test "${PATH_SEPARATOR+set}" != set; then
21040 echo "#! /bin/sh" >conf$$.sh
21041 echo "exit 0" >>conf$$.sh
21043 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21051 # Support unset when possible.
21052 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21060 # We need space, tab and new line, in precisely that order. Quoting is
21061 # there to prevent editors from complaining about space-tab.
21062 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21063 # splitting by setting IFS to empty value.)
21068 # Find who we are. Look in the path if we contain no directory separator.
21070 *[\\/]* ) as_myself=$0 ;;
21071 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21072 for as_dir in $PATH
21075 test -z "$as_dir" && as_dir=.
21076 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21082 # We did not find ourselves, most probably we were run as `sh COMMAND'
21083 # in which case we are not to be found in the path.
21084 if test "x$as_myself" = x; then
21087 if test ! -f "$as_myself"; then
21088 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21089 { (exit 1); exit 1; }
21092 # Work around bugs in pre-3.0 UWIN ksh.
21093 for as_var in ENV MAIL MAILPATH
21094 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21104 LC_TELEPHONE LC_TIME
21106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21107 eval $as_var=C; export $as_var
21109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21113 # Required to use basename.
21114 if expr a : '\(a\)' >/dev/null 2>&1 &&
21115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21122 as_basename=basename
21128 # Name of the executable.
21129 as_me=`$as_basename -- "$0" ||
21130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21131 X"$0" : 'X\(//\)$' \| \
21132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21134 sed '/^.*\/\([^/][^/]*\)\/*$/{
21153 as_lineno_1=$LINENO
21154 as_lineno_2=$LINENO
21155 test "x$as_lineno_1" != "x$as_lineno_2" &&
21156 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21159 # uniformly replaced by the line number. The first 'sed' inserts a
21160 # line-number line after each line using $LINENO; the second 'sed'
21161 # does the real work. The second script uses 'N' to pair each
21162 # line-number line with the line containing $LINENO, and appends
21163 # trailing '-' during substitution so that $LINENO is not a special
21164 # case at line end.
21165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21166 # scripts with optimization help from Paolo Bonzini. Blame Lee
21167 # E. McMahon (1931-1989) for sed's syntax. :-)
21179 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21182 ' >$as_me.lineno &&
21183 chmod +x "$as_me.lineno" ||
21184 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21185 { (exit 1); exit 1; }; }
21187 # Don't try to exec as it changes $[0], causing all sort of problems
21188 # (the dirname of $[0] is not the place where we might find the
21189 # original and so on. Autoconf is especially sensitive to this).
21190 . "./$as_me.lineno"
21191 # Exit status is that of the last command.
21196 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21202 ECHO_C= ECHO_N= ECHO_T=
21203 case `echo -n x` in
21205 case `echo 'x\c'` in
21206 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21213 if expr a : '\(a\)' >/dev/null 2>&1 &&
21214 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21220 rm -f conf$$ conf$$.exe conf$$.file
21221 if test -d conf$$.dir; then
21222 rm -f conf$$.dir/conf$$.file
21228 if ln -s conf$$.file conf$$ 2>/dev/null; then
21230 # ... but there are two gotchas:
21231 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21232 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21233 # In both cases, we have to default to `cp -p'.
21234 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21236 elif ln conf$$.file conf$$ 2>/dev/null; then
21241 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21242 rmdir conf$$.dir 2>/dev/null
21244 if mkdir -p . 2>/dev/null; then
21247 test -d ./-p && rmdir ./-p
21251 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21252 # systems may use methods other than mode bits to determine executability.
21253 cat >conf$$.file <<_ASEOF
21257 chmod +x conf$$.file
21258 if test -x conf$$.file >/dev/null 2>&1; then
21259 as_executable_p="test -x"
21265 # Sed expression to map a string onto a valid CPP name.
21266 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21268 # Sed expression to map a string onto a valid variable name.
21269 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21274 # Save the log message, to keep $[0] and so on meaningful, and to
21275 # report actual input values of CONFIG_FILES etc. instead of their
21276 # values after options handling.
21278 This file was extended by llvm $as_me 2.9svn, which was
21279 generated by GNU Autoconf 2.60. Invocation command line was
21281 CONFIG_FILES = $CONFIG_FILES
21282 CONFIG_HEADERS = $CONFIG_HEADERS
21283 CONFIG_LINKS = $CONFIG_LINKS
21284 CONFIG_COMMANDS = $CONFIG_COMMANDS
21287 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21292 cat >>$CONFIG_STATUS <<_ACEOF
21293 # Files that config.status was made for.
21294 config_files="$ac_config_files"
21295 config_headers="$ac_config_headers"
21296 config_commands="$ac_config_commands"
21300 cat >>$CONFIG_STATUS <<\_ACEOF
21302 \`$as_me' instantiates files from templates according to the
21303 current configuration.
21305 Usage: $0 [OPTIONS] [FILE]...
21307 -h, --help print this help, then exit
21308 -V, --version print version number, then exit
21309 -q, --quiet do not print progress messages
21310 -d, --debug don't remove temporary files
21311 --recheck update $as_me by reconfiguring in the same conditions
21312 --file=FILE[:TEMPLATE]
21313 instantiate the configuration file FILE
21314 --header=FILE[:TEMPLATE]
21315 instantiate the configuration header FILE
21317 Configuration files:
21320 Configuration headers:
21323 Configuration commands:
21326 Report bugs to <bug-autoconf@gnu.org>."
21329 cat >>$CONFIG_STATUS <<_ACEOF
21331 llvm config.status 2.9svn
21332 configured by $0, generated by GNU Autoconf 2.60,
21333 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21335 Copyright (C) 2006 Free Software Foundation, Inc.
21336 This config.status script is free software; the Free Software Foundation
21337 gives unlimited permission to copy, distribute and modify it."
21344 cat >>$CONFIG_STATUS <<\_ACEOF
21345 # If no file are specified by the user, then we need to provide default
21346 # value. By we need to know if files were specified by the user.
21352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21353 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21364 # Handling of the options.
21365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21367 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21368 echo "$ac_cs_version"; exit ;;
21369 --debug | --debu | --deb | --de | --d | -d )
21371 --file | --fil | --fi | --f )
21373 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21374 ac_need_defaults=false;;
21375 --header | --heade | --head | --hea )
21377 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21378 ac_need_defaults=false;;
21380 # Conflict between --help and --header
21381 { echo "$as_me: error: ambiguous option: $1
21382 Try \`$0 --help' for more information." >&2
21383 { (exit 1); exit 1; }; };;
21384 --help | --hel | -h )
21385 echo "$ac_cs_usage"; exit ;;
21386 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21387 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21390 # This is an error.
21391 -*) { echo "$as_me: error: unrecognized option: $1
21392 Try \`$0 --help' for more information." >&2
21393 { (exit 1); exit 1; }; } ;;
21395 *) ac_config_targets="$ac_config_targets $1"
21396 ac_need_defaults=false ;;
21402 ac_configure_extra_args=
21404 if $ac_cs_silent; then
21406 ac_configure_extra_args="$ac_configure_extra_args --silent"
21410 cat >>$CONFIG_STATUS <<_ACEOF
21411 if \$ac_cs_recheck; then
21412 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21413 CONFIG_SHELL=$SHELL
21414 export CONFIG_SHELL
21415 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21419 cat >>$CONFIG_STATUS <<\_ACEOF
21423 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21424 ## Running $as_me. ##
21430 cat >>$CONFIG_STATUS <<_ACEOF
21434 llvm_src="${srcdir}"
21438 cat >>$CONFIG_STATUS <<\_ACEOF
21440 # Handling of arguments.
21441 for ac_config_target in $ac_config_targets
21443 case $ac_config_target in
21444 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21445 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21446 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21447 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21448 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21449 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21450 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21451 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21452 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21453 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21454 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21455 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21456 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21457 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21458 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21459 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21460 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21461 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21462 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21463 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21464 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21465 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21466 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21467 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21468 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21470 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21471 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21472 { (exit 1); exit 1; }; };;
21477 # If the user did not use the arguments to specify the items to instantiate,
21478 # then the envvar interface is used. Set only those that are not.
21479 # We use the long form for the default assignment because of an extremely
21480 # bizarre bug on SunOS 4.1.3.
21481 if $ac_need_defaults; then
21482 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21483 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21484 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21487 # Have a temporary directory for convenience. Make it in the build tree
21488 # simply because there is no reason against having it here, and in addition,
21489 # creating and moving files from /tmp can sometimes cause problems.
21490 # Hook for its removal unless debugging.
21491 # Note that there is a small window in which the directory will not be cleaned:
21492 # after its creation but before its name has been assigned to `$tmp'.
21496 trap 'exit_status=$?
21497 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21499 trap '{ (exit 1); exit 1; }' 1 2 13 15
21501 # Create a (secure) tmp directory for tmp files.
21504 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21505 test -n "$tmp" && test -d "$tmp"
21508 tmp=./conf$$-$RANDOM
21509 (umask 077 && mkdir "$tmp")
21512 echo "$me: cannot create a temporary directory in ." >&2
21513 { (exit 1); exit 1; }
21517 # Set up the sed scripts for CONFIG_FILES section.
21520 # No need to generate the scripts if there are no CONFIG_FILES.
21521 # This happens for instance when ./config.status config.h
21522 if test -n "$CONFIG_FILES"; then
21529 for ac_last_try in false false false false false :; do
21530 cat >conf$$subs.sed <<_ACEOF
21531 SHELL!$SHELL$ac_delim
21532 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21533 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21534 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21535 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21536 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21537 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21538 exec_prefix!$exec_prefix$ac_delim
21539 prefix!$prefix$ac_delim
21540 program_transform_name!$program_transform_name$ac_delim
21541 bindir!$bindir$ac_delim
21542 sbindir!$sbindir$ac_delim
21543 libexecdir!$libexecdir$ac_delim
21544 datarootdir!$datarootdir$ac_delim
21545 datadir!$datadir$ac_delim
21546 sysconfdir!$sysconfdir$ac_delim
21547 sharedstatedir!$sharedstatedir$ac_delim
21548 localstatedir!$localstatedir$ac_delim
21549 includedir!$includedir$ac_delim
21550 oldincludedir!$oldincludedir$ac_delim
21551 docdir!$docdir$ac_delim
21552 infodir!$infodir$ac_delim
21553 htmldir!$htmldir$ac_delim
21554 dvidir!$dvidir$ac_delim
21555 pdfdir!$pdfdir$ac_delim
21556 psdir!$psdir$ac_delim
21557 libdir!$libdir$ac_delim
21558 localedir!$localedir$ac_delim
21559 mandir!$mandir$ac_delim
21560 DEFS!$DEFS$ac_delim
21561 ECHO_C!$ECHO_C$ac_delim
21562 ECHO_N!$ECHO_N$ac_delim
21563 ECHO_T!$ECHO_T$ac_delim
21564 LIBS!$LIBS$ac_delim
21565 build_alias!$build_alias$ac_delim
21566 host_alias!$host_alias$ac_delim
21567 target_alias!$target_alias$ac_delim
21568 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21569 subdirs!$subdirs$ac_delim
21570 build!$build$ac_delim
21571 build_cpu!$build_cpu$ac_delim
21572 build_vendor!$build_vendor$ac_delim
21573 build_os!$build_os$ac_delim
21574 host!$host$ac_delim
21575 host_cpu!$host_cpu$ac_delim
21576 host_vendor!$host_vendor$ac_delim
21577 host_os!$host_os$ac_delim
21578 target!$target$ac_delim
21579 target_cpu!$target_cpu$ac_delim
21580 target_vendor!$target_vendor$ac_delim
21581 target_os!$target_os$ac_delim
21583 HOST_OS!$HOST_OS$ac_delim
21584 TARGET_OS!$TARGET_OS$ac_delim
21585 LINKALL!$LINKALL$ac_delim
21586 NOLINKALL!$NOLINKALL$ac_delim
21587 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21588 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21589 ARCH!$ARCH$ac_delim
21590 ENDIAN!$ENDIAN$ac_delim
21592 CFLAGS!$CFLAGS$ac_delim
21593 LDFLAGS!$LDFLAGS$ac_delim
21594 CPPFLAGS!$CPPFLAGS$ac_delim
21595 ac_ct_CC!$ac_ct_CC$ac_delim
21596 EXEEXT!$EXEEXT$ac_delim
21597 OBJEXT!$OBJEXT$ac_delim
21599 GREP!$GREP$ac_delim
21600 EGREP!$EGREP$ac_delim
21601 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21602 BUILD_CC!$BUILD_CC$ac_delim
21603 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21604 BUILD_CXX!$BUILD_CXX$ac_delim
21605 CVSBUILD!$CVSBUILD$ac_delim
21606 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21607 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21608 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21609 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21610 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21611 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21612 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21614 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21615 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21616 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21617 ENABLE_PIC!$ENABLE_PIC$ac_delim
21618 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21619 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21620 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21621 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21622 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21623 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21624 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21625 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21626 CLANGPATH!$CLANGPATH$ac_delim
21627 CLANGXXPATH!$CLANGXXPATH$ac_delim
21630 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21632 elif $ac_last_try; then
21633 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21634 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21635 { (exit 1); exit 1; }; }
21637 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21641 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21642 if test -n "$ac_eof"; then
21643 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21644 ac_eof=`expr $ac_eof + 1`
21647 cat >>$CONFIG_STATUS <<_ACEOF
21648 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21649 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21652 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21653 s/^/s,@/; s/!/@,|#_!!_#|/
21656 s/'"$ac_delim"'$/,g/; t
21658 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21659 ' >>$CONFIG_STATUS <conf$$subs.sed
21660 rm -f conf$$subs.sed
21661 cat >>$CONFIG_STATUS <<_ACEOF
21667 for ac_last_try in false false false false false :; do
21668 cat >conf$$subs.sed <<_ACEOF
21669 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21670 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21671 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21672 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21674 CXXFLAGS!$CXXFLAGS$ac_delim
21675 ac_ct_CXX!$ac_ct_CXX$ac_delim
21677 ifGNUmake!$ifGNUmake$ac_delim
21678 LN_S!$LN_S$ac_delim
21681 DATE!$DATE$ac_delim
21682 FIND!$FIND$ac_delim
21683 MKDIR!$MKDIR$ac_delim
21685 RANLIB!$RANLIB$ac_delim
21690 BINPWD!$BINPWD$ac_delim
21691 GRAPHVIZ!$GRAPHVIZ$ac_delim
21694 NEATO!$NEATO$ac_delim
21695 TWOPI!$TWOPI$ac_delim
21696 CIRCO!$CIRCO$ac_delim
21698 DOTTY!$DOTTY$ac_delim
21699 XDOT_PY!$XDOT_PY$ac_delim
21700 PERL!$PERL$ac_delim
21701 HAVE_PERL!$HAVE_PERL$ac_delim
21702 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21703 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21704 INSTALL_DATA!$INSTALL_DATA$ac_delim
21705 BZIP2!$BZIP2$ac_delim
21707 DOXYGEN!$DOXYGEN$ac_delim
21708 GROFF!$GROFF$ac_delim
21709 GZIP!$GZIP$ac_delim
21710 POD2HTML!$POD2HTML$ac_delim
21711 POD2MAN!$POD2MAN$ac_delim
21712 PDFROFF!$PDFROFF$ac_delim
21713 RUNTEST!$RUNTEST$ac_delim
21714 TCLSH!$TCLSH$ac_delim
21716 OCAMLC!$OCAMLC$ac_delim
21717 OCAMLOPT!$OCAMLOPT$ac_delim
21718 OCAMLDEP!$OCAMLDEP$ac_delim
21719 OCAMLDOC!$OCAMLDOC$ac_delim
21721 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21722 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21723 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21724 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21725 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21726 LIBADD_DL!$LIBADD_DL$ac_delim
21727 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21728 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21729 LLVMGCC!$LLVMGCC$ac_delim
21730 LLVMGXX!$LLVMGXX$ac_delim
21731 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21732 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21733 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21734 USE_UDIS86!$USE_UDIS86$ac_delim
21735 USE_OPROFILE!$USE_OPROFILE$ac_delim
21736 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21737 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21738 MMAP_FILE!$MMAP_FILE$ac_delim
21739 LLVMCC1!$LLVMCC1$ac_delim
21740 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21741 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21742 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21743 SHLIBEXT!$SHLIBEXT$ac_delim
21744 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21745 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21746 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21747 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21748 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21749 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21750 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21751 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21752 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21753 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21754 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21755 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21756 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21757 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21758 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21759 RPATH!$RPATH$ac_delim
21760 RDYNAMIC!$RDYNAMIC$ac_delim
21761 LIBOBJS!$LIBOBJS$ac_delim
21762 LTLIBOBJS!$LTLIBOBJS$ac_delim
21765 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
21767 elif $ac_last_try; then
21768 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21769 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21770 { (exit 1); exit 1; }; }
21772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21776 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21777 if test -n "$ac_eof"; then
21778 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21779 ac_eof=`expr $ac_eof + 1`
21782 cat >>$CONFIG_STATUS <<_ACEOF
21783 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21784 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21787 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21788 s/^/s,@/; s/!/@,|#_!!_#|/
21791 s/'"$ac_delim"'$/,g/; t
21793 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21794 ' >>$CONFIG_STATUS <conf$$subs.sed
21795 rm -f conf$$subs.sed
21796 cat >>$CONFIG_STATUS <<_ACEOF
21803 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21804 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21805 # trailing colons and then remove the whole line if VPATH becomes empty
21806 # (actually we leave an empty line to preserve line numbers).
21807 if test "x$srcdir" = x.; then
21808 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21809 s/:*\$(srcdir):*/:/
21810 s/:*\${srcdir}:*/:/
21812 s/^\([^=]*=[ ]*\):*/\1/
21818 cat >>$CONFIG_STATUS <<\_ACEOF
21819 fi # test -n "$CONFIG_FILES"
21822 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21825 :[FHLC]) ac_mode=$ac_tag; continue;;
21827 case $ac_mode$ac_tag in
21829 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21830 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21831 { (exit 1); exit 1; }; };;
21832 :[FH]-) ac_tag=-:-;;
21833 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21850 -) ac_f="$tmp/stdin";;
21851 *) # Look for the file first in the build tree, then in the source tree
21852 # (if the path is not absolute). The absolute path cannot be DOS-style,
21853 # because $ac_f cannot contain `:'.
21857 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21859 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21860 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21861 { (exit 1); exit 1; }; };;
21863 ac_file_inputs="$ac_file_inputs $ac_f"
21866 # Let's still pretend it is `configure' which instantiates (i.e., don't
21867 # use $as_me), people would be surprised to read:
21868 # /* config.h. Generated by config.status. */
21869 configure_input="Generated from "`IFS=:
21870 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21871 if test x"$ac_file" != x-; then
21872 configure_input="$ac_file. $configure_input"
21873 { echo "$as_me:$LINENO: creating $ac_file" >&5
21874 echo "$as_me: creating $ac_file" >&6;}
21878 *:-:* | *:-) cat >"$tmp/stdin";;
21883 ac_dir=`$as_dirname -- "$ac_file" ||
21884 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21885 X"$ac_file" : 'X\(//\)[^/]' \| \
21886 X"$ac_file" : 'X\(//\)$' \| \
21887 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21893 /^X\(\/\/\)[^/].*/{
21908 -*) as_dir=./$as_dir;;
21910 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21914 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21915 *) as_qdir=$as_dir;;
21917 as_dirs="'$as_qdir' $as_dirs"
21918 as_dir=`$as_dirname -- "$as_dir" ||
21919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21920 X"$as_dir" : 'X\(//\)[^/]' \| \
21921 X"$as_dir" : 'X\(//\)$' \| \
21922 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21928 /^X\(\/\/\)[^/].*/{
21941 test -d "$as_dir" && break
21943 test -z "$as_dirs" || eval "mkdir $as_dirs"
21944 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21945 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21946 { (exit 1); exit 1; }; }; }
21950 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21952 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21953 # A ".." for each directory in $ac_dir_suffix.
21954 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21955 case $ac_top_builddir_sub in
21956 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21957 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21960 ac_abs_top_builddir=$ac_pwd
21961 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21962 # for backward compatibility:
21963 ac_top_builddir=$ac_top_build_prefix
21966 .) # We are building in place.
21968 ac_top_srcdir=$ac_top_builddir_sub
21969 ac_abs_top_srcdir=$ac_pwd ;;
21970 [\\/]* | ?:[\\/]* ) # Absolute name.
21971 ac_srcdir=$srcdir$ac_dir_suffix;
21972 ac_top_srcdir=$srcdir
21973 ac_abs_top_srcdir=$srcdir ;;
21974 *) # Relative name.
21975 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21976 ac_top_srcdir=$ac_top_build_prefix$srcdir
21977 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21979 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21989 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21990 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21994 cat >>$CONFIG_STATUS <<\_ACEOF
21995 # If the template does not know about datarootdir, expand it.
21996 # FIXME: This hack should be removed a few years after 2.60.
21997 ac_datarootdir_hack=; ac_datarootdir_seen=
21999 case `sed -n '/datarootdir/ {
22008 ' $ac_file_inputs` in
22009 *datarootdir*) ac_datarootdir_seen=yes;;
22010 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22011 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22012 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22014 cat >>$CONFIG_STATUS <<_ACEOF
22015 ac_datarootdir_hack='
22016 s&@datadir@&$datadir&g
22017 s&@docdir@&$docdir&g
22018 s&@infodir@&$infodir&g
22019 s&@localedir@&$localedir&g
22020 s&@mandir@&$mandir&g
22021 s&\\\${datarootdir}&$datarootdir&g' ;;
22025 # Neutralize VPATH when `$srcdir' = `.'.
22026 # Shell code in configure.ac might set extrasub.
22027 # FIXME: do we really want to maintain this feature?
22028 cat >>$CONFIG_STATUS <<_ACEOF
22032 cat >>$CONFIG_STATUS <<\_ACEOF
22034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22035 s&@configure_input@&$configure_input&;t t
22036 s&@top_builddir@&$ac_top_builddir_sub&;t t
22037 s&@srcdir@&$ac_srcdir&;t t
22038 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22039 s&@top_srcdir@&$ac_top_srcdir&;t t
22040 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22041 s&@builddir@&$ac_builddir&;t t
22042 s&@abs_builddir@&$ac_abs_builddir&;t t
22043 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22044 s&@INSTALL@&$ac_INSTALL&;t t
22045 $ac_datarootdir_hack
22046 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22048 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22049 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22050 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22051 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22052 which seems to be undefined. Please make sure it is defined." >&5
22053 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22054 which seems to be undefined. Please make sure it is defined." >&2;}
22058 -) cat "$tmp/out"; rm -f "$tmp/out";;
22059 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22068 # Transform confdefs.h into a sed script `conftest.defines', that
22069 # substitutes the proper values into config.h.in to produce config.h.
22070 rm -f conftest.defines conftest.tail
22071 # First, append a space to every undef/define line, to ease matching.
22072 echo 's/$/ /' >conftest.defines
22073 # Then, protect against being on the right side of a sed subst, or in
22074 # an unquoted here document, in config.status. If some macros were
22075 # called several times there might be several #defines for the same
22076 # symbol, which is useless. But do not sort them, since the last
22077 # AC_DEFINE must be honored.
22078 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22079 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22080 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22081 # PARAMS is the parameter list in the macro definition--in most cases, it's
22082 # just an empty string.
22083 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22084 ac_dB='\\)[ (].*,\\1define\\2'
22092 s/^[ ]*#[ ]*define[ ][ ]*//
22097 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22098 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22099 ' >>conftest.defines
22101 # Remove the space that was appended to ease matching.
22102 # Then replace #undef with comments. This is necessary, for
22103 # example, in the case of _POSIX_SOURCE, which is predefined and required
22104 # on some systems where configure will not decide to define it.
22105 # (The regexp can be short, since the line contains either #define or #undef.)
22107 s,^[ #]*u.*,/* & */,' >>conftest.defines
22109 # Break up conftest.defines:
22110 ac_max_sed_lines=50
22112 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22113 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22114 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22116 ac_in='$ac_file_inputs'
22117 ac_out='"$tmp/out1"'
22118 ac_nxt='"$tmp/out2"'
22122 # Write a here document:
22123 cat >>$CONFIG_STATUS <<_ACEOF
22124 # First, check the format of the line:
22125 cat >"\$tmp/defines.sed" <<\\CEOF
22126 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22127 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22131 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22133 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22134 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22135 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22136 grep . conftest.tail >/dev/null || break
22137 rm -f conftest.defines
22138 mv conftest.tail conftest.defines
22140 rm -f conftest.defines conftest.tail
22142 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22143 cat >>$CONFIG_STATUS <<\_ACEOF
22144 if test x"$ac_file" != x-; then
22145 echo "/* $configure_input */" >"$tmp/config.h"
22146 cat "$ac_result" >>"$tmp/config.h"
22147 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22148 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22149 echo "$as_me: $ac_file is unchanged" >&6;}
22152 mv "$tmp/config.h" $ac_file
22155 echo "/* $configure_input */"
22161 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22162 echo "$as_me: executing $ac_file commands" >&6;}
22167 case $ac_file$ac_mode in
22168 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22169 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22170 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22171 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22172 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22173 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22174 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22175 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22176 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22177 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22178 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22179 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22180 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22181 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22182 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22183 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22184 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22185 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22186 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22187 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22188 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22189 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22190 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22191 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22192 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22193 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22199 { (exit 0); exit 0; }
22201 chmod +x $CONFIG_STATUS
22202 ac_clean_files=$ac_clean_files_save
22205 # configure is writing to config.log, and then calls config.status.
22206 # config.status does its own redirection, appending to config.log.
22207 # Unfortunately, on DOS this fails, as config.log is still kept open
22208 # by configure, so config.status won't be able to write to it; its
22209 # output is simply discarded. So we exec the FD to /dev/null,
22210 # effectively closing config.log, so it can be properly (re)opened and
22211 # appended to by config.status. When coming back to configure, we
22212 # need to make the FD available again.
22213 if test "$no_create" != yes; then
22215 ac_config_status_args=
22216 test "$silent" = yes &&
22217 ac_config_status_args="$ac_config_status_args --quiet"
22219 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22221 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22222 # would make configure fail if this is the last instruction.
22223 $ac_cs_success || { (exit 1); exit 1; }
22227 # CONFIG_SUBDIRS section.
22229 if test "$no_recursion" != yes; then
22231 # Remove --cache-file and --srcdir arguments so they do not pile up.
22232 ac_sub_configure_args=
22234 eval "set x $ac_configure_args"
22238 if test -n "$ac_prev"; then
22243 -cache-file | --cache-file | --cache-fil | --cache-fi \
22244 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22245 ac_prev=cache_file ;;
22246 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22247 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22250 --config-cache | -C)
22252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22262 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22264 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22268 # Always prepend --prefix to ensure using the same prefix
22269 # in subdir configurations.
22270 ac_arg="--prefix=$prefix"
22272 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22274 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22277 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22279 # Do not complain, so a configure script can configure whichever
22280 # parts of a large source tree are present.
22281 test -d "$srcdir/$ac_dir" || continue
22283 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22284 echo "$as_me:$LINENO: $ac_msg" >&5
22288 -*) as_dir=./$as_dir;;
22290 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22294 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22295 *) as_qdir=$as_dir;;
22297 as_dirs="'$as_qdir' $as_dirs"
22298 as_dir=`$as_dirname -- "$as_dir" ||
22299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22300 X"$as_dir" : 'X\(//\)[^/]' \| \
22301 X"$as_dir" : 'X\(//\)$' \| \
22302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22308 /^X\(\/\/\)[^/].*/{
22321 test -d "$as_dir" && break
22323 test -z "$as_dirs" || eval "mkdir $as_dirs"
22324 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22325 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22326 { (exit 1); exit 1; }; }; }
22330 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22332 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22333 # A ".." for each directory in $ac_dir_suffix.
22334 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22335 case $ac_top_builddir_sub in
22336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22340 ac_abs_top_builddir=$ac_pwd
22341 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22342 # for backward compatibility:
22343 ac_top_builddir=$ac_top_build_prefix
22346 .) # We are building in place.
22348 ac_top_srcdir=$ac_top_builddir_sub
22349 ac_abs_top_srcdir=$ac_pwd ;;
22350 [\\/]* | ?:[\\/]* ) # Absolute name.
22351 ac_srcdir=$srcdir$ac_dir_suffix;
22352 ac_top_srcdir=$srcdir
22353 ac_abs_top_srcdir=$srcdir ;;
22354 *) # Relative name.
22355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22356 ac_top_srcdir=$ac_top_build_prefix$srcdir
22357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22359 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22364 # Check for guested configure; otherwise get Cygnus style configure.
22365 if test -f "$ac_srcdir/configure.gnu"; then
22366 ac_sub_configure=$ac_srcdir/configure.gnu
22367 elif test -f "$ac_srcdir/configure"; then
22368 ac_sub_configure=$ac_srcdir/configure
22369 elif test -f "$ac_srcdir/configure.in"; then
22370 # This should be Cygnus configure.
22371 ac_sub_configure=$ac_aux_dir/configure
22373 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22374 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22378 # The recursion is here.
22379 if test -n "$ac_sub_configure"; then
22380 # Make the cache file name correct relative to the subdirectory.
22381 case $cache_file in
22382 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22383 *) # Relative name.
22384 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22387 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22388 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22389 # The eval makes quoting arguments work.
22390 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22391 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22392 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22393 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22394 { (exit 1); exit 1; }; }