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 pic16, xcore, msp430, systemz, blackfin, ptx, cbe,
1419 and cpp (default=all)
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 pic16-*) llvm_cv_target_arch="PIC16" ;;
2360 xcore-*) llvm_cv_target_arch="XCore" ;;
2361 msp430-*) llvm_cv_target_arch="MSP430" ;;
2362 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2363 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2364 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2365 ptx-*) llvm_cv_target_arch="PTX" ;;
2366 *) llvm_cv_target_arch="Unknown" ;;
2369 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2372 if test "$llvm_cv_target_arch" = "Unknown" ; then
2373 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2377 # Determine the LLVM native architecture for the target
2378 case "$llvm_cv_target_arch" in
2379 x86) LLVM_NATIVE_ARCH="X86" ;;
2380 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2381 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2384 ARCH=$llvm_cv_target_arch
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 if test -n "$CC"; then
2422 { echo "$as_me:$LINENO: result: $CC" >&5
2423 echo "${ECHO_T}$CC" >&6; }
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2431 if test -z "$ac_cv_prog_CC"; then
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434 set dummy gcc; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_ac_ct_CC="gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461 if test -n "$ac_ct_CC"; then
2462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463 echo "${ECHO_T}$ac_ct_CC" >&6; }
2465 { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2469 if test "x$ac_ct_CC" = x; then
2472 case $cross_compiling:$ac_tool_warned in
2474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet. If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&5
2477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet. If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480 ac_tool_warned=yes ;;
2488 if test -z "$CC"; then
2489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_CC="${ac_tool_prefix}cc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 if test -n "$CC"; then
2519 { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2529 if test -z "$CC"; then
2530 # Extract the first word of "cc", so it can be a program name with args.
2531 set dummy cc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549 ac_prog_rejected=yes
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 if test $ac_prog_rejected = yes; then
2561 # We found a bogon in the path, so make sure we never use it.
2562 set dummy $ac_cv_prog_CC
2564 if test $# != 0; then
2565 # We chose a different compiler from the bogus one.
2566 # However, it has the same basename, so the bogon will be chosen
2567 # first if we set CC to just the basename; use the full file name.
2569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2575 if test -n "$CC"; then
2576 { echo "$as_me:$LINENO: result: $CC" >&5
2577 echo "${ECHO_T}$CC" >&6; }
2579 { echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6; }
2585 if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
2587 for ac_prog in cl.exe
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2626 test -n "$CC" && break
2629 if test -z "$CC"; then
2631 for ac_prog in cl.exe
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy $ac_prog; ac_word=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_ac_ct_CC="$ac_prog"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6; }
2665 { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2670 test -n "$ac_ct_CC" && break
2673 if test "x$ac_ct_CC" = x; then
2676 case $cross_compiling:$ac_tool_warned in
2678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet. If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&5
2681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet. If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684 ac_tool_warned=yes ;;
2693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&5
2695 echo "$as_me: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
2699 # Provide some information about the compiler.
2700 echo "$as_me:$LINENO: checking for C compiler version" >&5
2701 ac_compiler=`set X $ac_compile; echo $2`
2702 { (ac_try="$ac_compiler --version >&5"
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler --version >&5") 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
2712 { (ac_try="$ac_compiler -v >&5"
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -v >&5") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722 { (ac_try="$ac_compiler -V >&5"
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -V >&5") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2733 cat >conftest.$ac_ext <<_ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2748 ac_clean_files_save=$ac_clean_files
2749 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750 # Try to create an executable without -o first, disregard a.out.
2751 # It will help us diagnose broken compilers, and finding out an intuition
2753 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2757 # List of possible output files, starting from the most likely.
2758 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759 # only as a last resort. b.out is created by i960 compilers.
2760 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2762 # The IRIX 6 linker writes into existing files which may not be
2763 # executable, retaining their permissions. Remove them first so a
2764 # subsequent execution test works.
2766 for ac_file in $ac_files
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775 if { (ac_try="$ac_link_default"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_link_default") 2>&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
2785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2788 # so that the user can short-circuit this test for compilers unknown to
2790 for ac_file in $ac_files
2792 test -f "$ac_file" || continue
2794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2797 # We found the default executable, but exeext='' is most
2801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805 # We set ac_cv_exeext here because the later test for it is not
2806 # safe: cross compilers may not add the suffix if given an `-o'
2807 # argument, so we may need to know it at that point already.
2808 # Even if this section looks crufty: it has the advantage of
2815 test "$ac_cv_exeext" = no && ac_cv_exeext=
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2821 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&5
2823 echo "$as_me: error: C compiler cannot create executables
2824 See \`config.log' for more details." >&2;}
2825 { (exit 77); exit 77; }; }
2828 ac_exeext=$ac_cv_exeext
2829 { echo "$as_me:$LINENO: result: $ac_file" >&5
2830 echo "${ECHO_T}$ac_file" >&6; }
2832 # Check that the compiler produces executables we can run. If not, either
2833 # the compiler is broken, or we cross compile.
2834 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837 # If not cross compiling, check that we can run a simple program.
2838 if test "$cross_compiling" != yes; then
2839 if { ac_try='./$ac_file'
2840 { (case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2851 if test "$cross_compiling" = maybe; then
2854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855 If you meant to cross compile, use \`--host'.
2856 See \`config.log' for more details." >&5
2857 echo "$as_me: error: cannot run C compiled programs.
2858 If you meant to cross compile, use \`--host'.
2859 See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2864 { echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6; }
2867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2868 ac_clean_files=$ac_clean_files_save
2869 # Check that the compiler produces executables we can run. If not, either
2870 # the compiler is broken, or we cross compile.
2871 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874 echo "${ECHO_T}$cross_compiling" >&6; }
2876 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878 if { (ac_try="$ac_link"
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_link") 2>&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2890 # work properly (i.e., refer to `conftest.exe'), while it won't with
2892 for ac_file in conftest.exe conftest conftest.*; do
2893 test -f "$ac_file" || continue
2895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
2909 rm -f conftest$ac_cv_exeext
2910 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2913 rm -f conftest.$ac_ext
2914 EXEEXT=$ac_cv_exeext
2916 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918 if test "${ac_cv_objext+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2936 rm -f conftest.o conftest.obj
2937 if { (ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
2947 for ac_file in conftest.o conftest.obj conftest.*; do
2948 test -f "$ac_file" || continue;
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2968 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969 echo "${ECHO_T}$ac_cv_objext" >&6; }
2970 OBJEXT=$ac_cv_objext
2972 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 cat >conftest.$ac_ext <<_ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3004 grep -v '^ *+' conftest.er1 >conftest.err
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3041 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3043 GCC=`test $ac_compiler_gnu = yes && echo yes`
3044 ac_test_CFLAGS=${CFLAGS+set}
3045 ac_save_CFLAGS=$CFLAGS
3046 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3048 if test "${ac_cv_prog_cc_g+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 ac_save_c_werror_flag=$ac_c_werror_flag
3052 ac_c_werror_flag=yes
3055 cat >conftest.$ac_ext <<_ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3134 grep -v '^ *+' conftest.er1 >conftest.err
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3164 ac_c_werror_flag=$ac_save_c_werror_flag
3166 cat >conftest.$ac_ext <<_ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3190 grep -v '^ *+' conftest.er1 >conftest.err
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234 if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3243 if test "$GCC" = yes; then
3249 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_c89+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 ac_cv_prog_cc_c89=no
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3264 #include <sys/types.h>
3265 #include <sys/stat.h>
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3280 s = g (p, va_arg (v,int));
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
3288 as 'x'. The following induces an error, until -std is added to get
3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
3291 that's true only with -std. */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 CC="$ac_save_CC $ac_arg"
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3326 grep -v '^ *+' conftest.er1 >conftest.err
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 ac_cv_prog_cc_c89=$ac_arg
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext
3360 test "x$ac_cv_prog_cc_c89" != "xno" && break
3362 rm -f conftest.$ac_ext
3367 case "x$ac_cv_prog_cc_c89" in
3369 { echo "$as_me:$LINENO: result: none needed" >&5
3370 echo "${ECHO_T}none needed" >&6; } ;;
3372 { echo "$as_me:$LINENO: result: unsupported" >&5
3373 echo "${ECHO_T}unsupported" >&6; } ;;
3375 CC="$CC $ac_cv_prog_cc_c89"
3376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3394 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3395 # On Suns, sometimes $CPP names a directory.
3396 if test -n "$CPP" && test -d "$CPP"; then
3399 if test -z "$CPP"; then
3400 if test "${ac_cv_prog_CPP+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 # Double quotes because CPP needs to be expanded
3404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3407 for ac_c_preproc_warn_flag in '' yes
3409 # Use a header file that comes with gcc, so configuring glibc
3410 # with a fresh cross-compiler works.
3411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412 # <limits.h> exists even on freestanding compilers.
3413 # On the NeXT, cc -E runs the code through the compiler's parser,
3414 # not just through cpp. "Syntax error" is here to catch this case.
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3422 # include <limits.h>
3424 # include <assert.h>
3428 if { (ac_try="$ac_cpp conftest.$ac_ext"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3436 grep -v '^ *+' conftest.er1 >conftest.err
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3450 if test -z "$ac_cpp_err"; then
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 # Broken: fails on valid input.
3460 rm -f conftest.err conftest.$ac_ext
3462 # OK, works on sane cases. Now check whether nonexistent headers
3463 # can be detected and how.
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470 #include <ac_nonexistent.h>
3472 if { (ac_try="$ac_cpp conftest.$ac_ext"
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3480 grep -v '^ *+' conftest.er1 >conftest.err
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3494 if test -z "$ac_cpp_err"; then
3495 # Broken: success on invalid input.
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Passes both tests.
3506 rm -f conftest.err conftest.$ac_ext
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then
3523 { echo "$as_me:$LINENO: result: $CPP" >&5
3524 echo "${ECHO_T}$CPP" >&6; }
3526 for ac_c_preproc_warn_flag in '' yes
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
3534 cat >conftest.$ac_ext <<_ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3541 # include <limits.h>
3543 # include <assert.h>
3547 if { (ac_try="$ac_cpp conftest.$ac_ext"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3555 grep -v '^ *+' conftest.er1 >conftest.err
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3569 if test -z "$ac_cpp_err"; then
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 # Broken: fails on valid input.
3579 rm -f conftest.err conftest.$ac_ext
3581 # OK, works on sane cases. Now check whether nonexistent headers
3582 # can be detected and how.
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 #include <ac_nonexistent.h>
3591 if { (ac_try="$ac_cpp conftest.$ac_ext"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3599 grep -v '^ *+' conftest.er1 >conftest.err
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3613 if test -z "$ac_cpp_err"; then
3614 # Broken: success on invalid input.
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 # Passes both tests.
3625 rm -f conftest.err conftest.$ac_ext
3628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629 rm -f conftest.err conftest.$ac_ext
3630 if $ac_preproc_ok; then
3633 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3634 See \`config.log' for more details." >&5
3635 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636 See \`config.log' for more details." >&2;}
3637 { (exit 1); exit 1; }; }
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3649 if test "${ac_cv_path_GREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 # Extract the first word of "grep ggrep" to use in msg output
3653 if test -z "$GREP"; then
3654 set dummy grep ggrep; ac_prog_name=$2
3655 if test "${ac_cv_path_GREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 ac_path_GREP_found=false
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3664 test -z "$as_dir" && as_dir=.
3665 for ac_prog in grep ggrep; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3669 # Check for GNU ac_path_GREP and select it if it is found.
3670 # Check for GNU $ac_path_GREP
3671 case `"$ac_path_GREP" --version 2>&1` in
3673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3676 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
3682 echo 'GREP' >> "conftest.nl"
3683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685 ac_count=`expr $ac_count + 1`
3686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_GREP="$ac_path_GREP"
3689 ac_path_GREP_max=$ac_count
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3698 $ac_path_GREP_found && break 3
3708 GREP="$ac_cv_path_GREP"
3709 if test -z "$GREP"; then
3710 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712 { (exit 1); exit 1; }; }
3716 ac_cv_path_GREP=$GREP
3721 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3723 GREP="$ac_cv_path_GREP"
3726 { echo "$as_me:$LINENO: checking for egrep" >&5
3727 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728 if test "${ac_cv_path_EGREP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3732 then ac_cv_path_EGREP="$GREP -E"
3734 # Extract the first word of "egrep" to use in msg output
3735 if test -z "$EGREP"; then
3736 set dummy egrep; ac_prog_name=$2
3737 if test "${ac_cv_path_EGREP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 ac_path_EGREP_found=false
3741 # Loop through the user's path and test for each of PROGNAME-LIST
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3746 test -z "$as_dir" && as_dir=.
3747 for ac_prog in egrep; do
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3750 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3751 # Check for GNU ac_path_EGREP and select it if it is found.
3752 # Check for GNU $ac_path_EGREP
3753 case `"$ac_path_EGREP" --version 2>&1` in
3755 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3758 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3761 cat "conftest.in" "conftest.in" >"conftest.tmp"
3762 mv "conftest.tmp" "conftest.in"
3763 cp "conftest.in" "conftest.nl"
3764 echo 'EGREP' >> "conftest.nl"
3765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3767 ac_count=`expr $ac_count + 1`
3768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769 # Best one so far, save it but keep looking for a better one
3770 ac_cv_path_EGREP="$ac_path_EGREP"
3771 ac_path_EGREP_max=$ac_count
3773 # 10*(2^10) chars as input seems more than enough
3774 test $ac_count -gt 10 && break
3776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3780 $ac_path_EGREP_found && break 3
3790 EGREP="$ac_cv_path_EGREP"
3791 if test -z "$EGREP"; then
3792 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794 { (exit 1); exit 1; }; }
3798 ac_cv_path_EGREP=$EGREP
3804 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3806 EGREP="$ac_cv_path_EGREP"
3809 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3811 if test "${ac_cv_header_stdc+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3842 grep -v '^ *+' conftest.er1 >conftest.err
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848 { (case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_header_stdc=yes
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_cv_header_stdc=no
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 if test $ac_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879 cat >conftest.$ac_ext <<_ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3889 $EGREP "memchr" >/dev/null 2>&1; then
3892 ac_cv_header_stdc=no
3898 if test $ac_cv_header_stdc = yes; then
3899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 $EGREP "free" >/dev/null 2>&1; then
3913 ac_cv_header_stdc=no
3919 if test $ac_cv_header_stdc = yes; then
3920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3921 if test "$cross_compiling" = yes; then
3924 cat >conftest.$ac_ext <<_ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3932 #if ((' ' & 0x0FF) == 0x020)
3933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3936 # define ISLOWER(c) \
3937 (('a' <= (c) && (c) <= 'i') \
3938 || ('j' <= (c) && (c) <= 'r') \
3939 || ('s' <= (c) && (c) <= 'z'))
3940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3948 for (i = 0; i < 256; i++)
3949 if (XOR (islower (i), ISLOWER (i))
3950 || toupper (i) != TOUPPER (i))
3955 rm -f conftest$ac_exeext
3956 if { (ac_try="$ac_link"
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_link") 2>&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3966 { (case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_try") 2>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3977 echo "$as_me: program exited with status $ac_status" >&5
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3982 ac_cv_header_stdc=no
3984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3990 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3992 if test $ac_cv_header_stdc = yes; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define STDC_HEADERS 1
4000 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4010 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011 inttypes.h stdint.h unistd.h
4013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 cat >conftest.$ac_ext <<_ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 $ac_includes_default
4027 #include <$ac_header>
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4038 grep -v '^ *+' conftest.er1 >conftest.err
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 eval "$as_ac_Header=yes"
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 eval "$as_ac_Header=no"
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_res=`eval echo '${'$as_ac_Header'}'`
4074 { echo "$as_me:$LINENO: result: $ac_res" >&5
4075 echo "${ECHO_T}$ac_res" >&6; }
4076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077 cat >>confdefs.h <<_ACEOF
4078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4086 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088 if test "${ac_cv_c_bigendian+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 # See if sys/param.h defines the BYTE_ORDER macro.
4092 cat >conftest.$ac_ext <<_ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <sys/types.h>
4099 #include <sys/param.h>
4104 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4112 rm -f conftest.$ac_objext
4113 if { (ac_try="$ac_compile"
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4121 grep -v '^ *+' conftest.er1 >conftest.err
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 # It does; now see whether it defined to BIG_ENDIAN or not.
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #include <sys/types.h>
4154 #include <sys/param.h>
4159 #if BYTE_ORDER != BIG_ENDIAN
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4176 grep -v '^ *+' conftest.er1 >conftest.err
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_c_bigendian=yes
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_cv_c_bigendian=no
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 # It does not; compile a test program.
4215 if test "$cross_compiling" = yes; then
4216 # try to guess the endianness by grepping values into an object file
4217 ac_cv_c_bigendian=unknown
4218 cat >conftest.$ac_ext <<_ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4233 _ascii (); _ebcdic ();
4238 rm -f conftest.$ac_objext
4239 if { (ac_try="$ac_compile"
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_compile") 2>conftest.er1
4247 grep -v '^ *+' conftest.er1 >conftest.err
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4273 ac_cv_c_bigendian=yes
4275 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276 if test "$ac_cv_c_bigendian" = unknown; then
4277 ac_cv_c_bigendian=no
4279 # finding both strings is unlikely to happen, but who knows?
4280 ac_cv_c_bigendian=unknown
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 $ac_includes_default
4303 /* Are we little or big endian? From Harbison&Steele. */
4307 char c[sizeof (long int)];
4310 return u.c[sizeof (long int) - 1] == 1;
4316 rm -f conftest$ac_exeext
4317 if { (ac_try="$ac_link"
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_link") 2>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327 { (case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_try") 2>&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_c_bigendian=no
4338 echo "$as_me: program exited with status $ac_status" >&5
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4343 ac_cv_c_bigendian=yes
4345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355 case $ac_cv_c_bigendian in
4363 { { echo "$as_me:$LINENO: error: unknown endianness
4364 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365 echo "$as_me: error: unknown endianness
4366 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367 { (exit 1); exit 1; }; } ;;
4371 if test "$cross_compiling" = yes; then
4372 LLVM_CROSS_COMPILING=1
4375 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377 if test "${ac_cv_build_exeext+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381 ac_cv_build_exeext=.exe
4383 ac_build_prefix=${build_alias}-
4385 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386 set dummy ${ac_build_prefix}gcc; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 if test -n "$BUILD_CC"; then
4393 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 BUILD_CC=$ac_cv_prog_BUILD_CC
4413 if test -n "$BUILD_CC"; then
4414 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415 echo "${ECHO_T}$BUILD_CC" >&6; }
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4422 if test -z "$BUILD_CC"; then
4423 # Extract the first word of "gcc", so it can be a program name with args.
4424 set dummy gcc; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_BUILD_CC="gcc"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 BUILD_CC=$ac_cv_prog_BUILD_CC
4451 if test -n "$BUILD_CC"; then
4452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453 echo "${ECHO_T}$BUILD_CC" >&6; }
4455 { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "cc", so it can be a program name with args.
4462 set dummy cc; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480 ac_prog_rejected=yes
4483 ac_cv_prog_BUILD_CC="cc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 if test $ac_prog_rejected = yes; then
4492 # We found a bogon in the path, so make sure we never use it.
4493 set dummy $ac_cv_prog_BUILD_CC
4495 if test $# != 0; then
4496 # We chose a different compiler from the bogus one.
4497 # However, it has the same basename, so the bogon will be chosen
4498 # first if we set BUILD_CC to just the basename; use the full file name.
4500 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505 BUILD_CC=$ac_cv_prog_BUILD_CC
4506 if test -n "$BUILD_CC"; then
4507 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508 echo "${ECHO_T}$BUILD_CC" >&6; }
4510 { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4517 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519 { (exit 1); exit 1; }; }
4520 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4522 echo 'int main () { return 0; }' > conftest.$ac_ext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4525 (eval $ac_build_link) 2>&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
4529 for file in conftest.*; do
4531 *.c | *.o | *.obj | *.dSYM) ;;
4532 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4536 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538 { (exit 1); exit 1; }; }
4541 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4546 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4547 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4549 ac_build_exeext=$BUILD_EXEEXT
4551 ac_build_prefix=${build_alias}-
4552 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4553 set dummy ${ac_build_prefix}g++; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 if test -n "$BUILD_CXX"; then
4560 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4580 if test -n "$BUILD_CXX"; then
4581 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4582 echo "${ECHO_T}$BUILD_CXX" >&6; }
4584 { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4589 if test -z "$BUILD_CXX"; then
4590 # Extract the first word of "g++", so it can be a program name with args.
4591 set dummy g++; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if test -n "$BUILD_CXX"; then
4598 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_BUILD_CXX="g++"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618 if test -n "$BUILD_CXX"; then
4619 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620 echo "${ECHO_T}$BUILD_CXX" >&6; }
4622 { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4627 if test -z "$BUILD_CXX"; then
4628 # Extract the first word of "c++", so it can be a program name with args.
4629 set dummy c++; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -n "$BUILD_CXX"; then
4636 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4647 ac_prog_rejected=yes
4650 ac_cv_prog_BUILD_CXX="c++"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 if test $ac_prog_rejected = yes; then
4659 # We found a bogon in the path, so make sure we never use it.
4660 set dummy $ac_cv_prog_BUILD_CXX
4662 if test $# != 0; then
4663 # We chose a different compiler from the bogus one.
4664 # However, it has the same basename, so the bogon will be chosen
4665 # first if we set BUILD_CXX to just the basename; use the full file name.
4667 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4672 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4673 if test -n "$BUILD_CXX"; then
4674 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4675 echo "${ECHO_T}$BUILD_CXX" >&6; }
4677 { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4685 LLVM_CROSS_COMPILING=0
4689 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4700 # Check whether --enable-optimized was given.
4701 if test "${enable_optimized+set}" = set; then
4702 enableval=$enable_optimized;
4707 if test ${enableval} = "no" ; then
4711 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4715 # Check whether --enable-profiling was given.
4716 if test "${enable_profiling+set}" = set; then
4717 enableval=$enable_profiling;
4722 if test ${enableval} = "no" ; then
4726 ENABLE_PROFILING=ENABLE_PROFILING=1
4730 # Check whether --enable-assertions was given.
4731 if test "${enable_assertions+set}" = set; then
4732 enableval=$enable_assertions;
4737 if test ${enableval} = "yes" ; then
4741 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4745 # Check whether --enable-expensive-checks was given.
4746 if test "${enable_expensive_checks+set}" = set; then
4747 enableval=$enable_expensive_checks;
4752 if test ${enableval} = "yes" ; then
4753 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4755 EXPENSIVE_CHECKS=yes
4758 ENABLE_EXPENSIVE_CHECKS=
4764 # Check whether --enable-debug-runtime was given.
4765 if test "${enable_debug_runtime+set}" = set; then
4766 enableval=$enable_debug_runtime;
4771 if test ${enableval} = "no" ; then
4775 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4779 # Check whether --enable-debug-symbols was given.
4780 if test "${enable_debug_symbols+set}" = set; then
4781 enableval=$enable_debug_symbols;
4786 if test ${enableval} = "no" ; then
4790 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4794 # Check whether --enable-jit was given.
4795 if test "${enable_jit+set}" = set; then
4796 enableval=$enable_jit;
4801 if test ${enableval} = "no"
4806 case "$llvm_cv_target_arch" in
4807 x86) TARGET_HAS_JIT=1
4809 Sparc) TARGET_HAS_JIT=0
4811 PowerPC) TARGET_HAS_JIT=1
4813 x86_64) TARGET_HAS_JIT=1
4815 Alpha) TARGET_HAS_JIT=1
4817 ARM) TARGET_HAS_JIT=1
4819 Mips) TARGET_HAS_JIT=0
4821 PIC16) TARGET_HAS_JIT=0
4823 XCore) TARGET_HAS_JIT=0
4825 MSP430) TARGET_HAS_JIT=0
4827 SystemZ) TARGET_HAS_JIT=0
4829 Blackfin) TARGET_HAS_JIT=0
4831 MBlaze) TARGET_HAS_JIT=0
4833 PTX) TARGET_HAS_JIT=0
4840 # Check whether --enable-doxygen was given.
4841 if test "${enable_doxygen+set}" = set; then
4842 enableval=$enable_doxygen;
4847 case "$enableval" in
4848 yes) ENABLE_DOXYGEN=1
4850 no) ENABLE_DOXYGEN=0
4852 default) ENABLE_DOXYGEN=0
4854 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4855 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4856 { (exit 1); exit 1; }; } ;;
4859 # Check whether --enable-threads was given.
4860 if test "${enable_threads+set}" = set; then
4861 enableval=$enable_threads;
4866 case "$enableval" in
4867 yes) ENABLE_THREADS=1
4869 no) ENABLE_THREADS=0
4871 default) ENABLE_THREADS=1
4873 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4874 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4875 { (exit 1); exit 1; }; } ;;
4878 cat >>confdefs.h <<_ACEOF
4879 #define ENABLE_THREADS $ENABLE_THREADS
4883 # Check whether --enable-pic was given.
4884 if test "${enable_pic+set}" = set; then
4885 enableval=$enable_pic;
4890 case "$enableval" in
4895 default) ENABLE_PIC=1
4897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
4902 cat >>confdefs.h <<_ACEOF
4903 #define ENABLE_PIC $ENABLE_PIC
4907 # Check whether --enable-shared was given.
4908 if test "${enable_shared+set}" = set; then
4909 enableval=$enable_shared;
4914 case "$enableval" in
4915 yes) ENABLE_SHARED=1
4919 default) ENABLE_SHARED=0
4921 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4922 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4923 { (exit 1); exit 1; }; } ;;
4926 # Check whether --enable-timestamps was given.
4927 if test "${enable_timestamps+set}" = set; then
4928 enableval=$enable_timestamps;
4933 case "$enableval" in
4934 yes) ENABLE_TIMESTAMPS=1
4936 no) ENABLE_TIMESTAMPS=0
4938 default) ENABLE_TIMESTAMPS=1
4940 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4941 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4942 { (exit 1); exit 1; }; } ;;
4945 cat >>confdefs.h <<_ACEOF
4946 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4951 # Check whether --enable-targets was given.
4952 if test "${enable_targets+set}" = set; then
4953 enableval=$enable_targets;
4958 if test "$enableval" = host-only ; then
4961 case "$enableval" in
4962 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4963 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4965 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4967 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4968 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4969 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4970 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4971 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4972 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4973 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4974 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4975 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4976 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4977 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4978 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4979 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4980 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4981 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4982 host) case "$llvm_cv_target_arch" in
4983 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4984 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4985 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4986 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4987 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4988 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4989 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4990 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4991 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4992 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4993 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4994 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4995 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4996 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4997 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4998 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4999 echo "$as_me: error: Can not set target to build" >&2;}
5000 { (exit 1); exit 1; }; } ;;
5002 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5003 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5004 { (exit 1); exit 1; }; } ;;
5009 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5012 # Determine whether we are building LLVM support for the native architecture.
5013 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5014 for a_target in $TARGETS_TO_BUILD; do
5015 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5017 cat >>confdefs.h <<_ACEOF
5018 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5021 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5022 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5023 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5025 cat >>confdefs.h <<_ACEOF
5026 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5030 cat >>confdefs.h <<_ACEOF
5031 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5035 cat >>confdefs.h <<_ACEOF
5036 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5042 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5043 # target feature def files.
5044 LLVM_ENUM_TARGETS=""
5045 LLVM_ENUM_ASM_PRINTERS=""
5046 LLVM_ENUM_ASM_PARSERS=""
5047 LLVM_ENUM_DISASSEMBLERS=""
5048 for target_to_build in $TARGETS_TO_BUILD; do
5049 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5050 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5051 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5053 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5054 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5056 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5057 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5065 # Check whether --enable-cbe-printf-a was given.
5066 if test "${enable_cbe_printf_a+set}" = set; then
5067 enableval=$enable_cbe_printf_a;
5072 case "$enableval" in
5073 yes) ENABLE_CBE_PRINTF_A=1
5075 no) ENABLE_CBE_PRINTF_A=0
5077 default) ENABLE_CBE_PRINTF_A=1
5079 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5080 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5081 { (exit 1); exit 1; }; } ;;
5084 cat >>confdefs.h <<_ACEOF
5085 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5090 # Check whether --with-llvmgccdir was given.
5091 if test "${with_llvmgccdir+set}" = set; then
5092 withval=$with_llvmgccdir;
5098 default) WITH_LLVMGCCDIR=default ;;
5099 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5100 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5101 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5102 { (exit 1); exit 1; }; } ;;
5106 # Check whether --with-llvmgcc was given.
5107 if test "${with_llvmgcc+set}" = set; then
5108 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5114 # Check whether --with-llvmgxx was given.
5115 if test "${with_llvmgxx+set}" = set; then
5116 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5121 if test -n "$LLVMGCC"; then
5122 LLVMGCCCOMMAND="$LLVMGCC"
5125 if test -n "$LLVMGXX"; then
5126 LLVMGXXCOMMAND="$LLVMGXX"
5129 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5130 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5131 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5132 { (exit 1); exit 1; }; };
5135 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5136 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5137 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5138 { (exit 1); exit 1; }; };
5142 # Check whether --with-clang was given.
5143 if test "${with_clang+set}" = set; then
5144 withval=$with_clang;
5151 # Check whether --with-built-clang was given.
5152 if test "${with_built_clang+set}" = set; then
5153 withval=$with_built_clang;
5155 with_built_clang=check
5159 { echo "$as_me:$LINENO: checking clang compiler" >&5
5160 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5163 if test "$with_clang" != "default"; then
5164 WITH_CLANGPATH="$with_clang"
5165 if ! test -x "$WITH_CLANGPATH"; then
5166 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5167 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5168 { (exit 1); exit 1; }; }
5170 elif test "$with_built_clang" = "yes"; then
5172 elif test "$with_built_clang" = "no"; then
5175 if test "$with_built_clang" != "check"; then
5176 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5177 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5178 { (exit 1); exit 1; }; }
5181 if test -f ${srcdir}/tools/clang/README.txt; then
5186 if ! test -z "$WITH_CLANGPATH"; then
5187 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5188 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5189 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5190 elif test "$WITH_BUILT_CLANG" = "1"; then
5191 { echo "$as_me:$LINENO: result: built" >&5
5192 echo "${ECHO_T}built" >&6; }
5194 { echo "$as_me:$LINENO: result: none" >&5
5195 echo "${ECHO_T}none" >&6; }
5197 CLANGPATH=$WITH_CLANGPATH
5199 CLANGXXPATH=$WITH_CLANGXXPATH
5201 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5205 # Check whether --with-optimize-option was given.
5206 if test "${with_optimize_option+set}" = set; then
5207 withval=$with_optimize_option;
5212 { echo "$as_me:$LINENO: checking optimization flags" >&5
5213 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5216 case "$llvm_cv_os_type" in
5217 FreeBSD) optimize_option=-O2 ;;
5218 MingW) optimize_option=-O2 ;;
5219 *) optimize_option=-O3 ;;
5221 *) optimize_option="$withval" ;;
5223 OPTIMIZE_OPTION=$optimize_option
5225 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5226 echo "${ECHO_T}$optimize_option" >&6; }
5229 # Check whether --with-extra-options was given.
5230 if test "${with_extra_options+set}" = set; then
5231 withval=$with_extra_options;
5237 default) EXTRA_OPTIONS= ;;
5238 *) EXTRA_OPTIONS=$withval ;;
5240 EXTRA_OPTIONS=$EXTRA_OPTIONS
5243 # Check whether --enable-bindings was given.
5244 if test "${enable_bindings+set}" = set; then
5245 enableval=$enable_bindings;
5250 BINDINGS_TO_BUILD=""
5251 case "$enableval" in
5252 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5253 all ) BINDINGS_TO_BUILD="ocaml" ;;
5254 none | no) BINDINGS_TO_BUILD="" ;;
5255 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5256 case "$a_binding" in
5257 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5258 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5259 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5260 { (exit 1); exit 1; }; } ;;
5267 # Check whether --with-ocaml-libdir was given.
5268 if test "${with_ocaml_libdir+set}" = set; then
5269 withval=$with_ocaml_libdir;
5275 auto) with_ocaml_libdir="$withval" ;;
5276 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5277 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5278 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5279 { (exit 1); exit 1; }; } ;;
5283 # Check whether --with-c-include-dirs was given.
5284 if test "${with_c_include_dirs+set}" = set; then
5285 withval=$with_c_include_dirs;
5291 cat >>confdefs.h <<_ACEOF
5292 #define C_INCLUDE_DIRS "$withval"
5297 # Check whether --with-cxx-include-root was given.
5298 if test "${with_cxx_include_root+set}" = set; then
5299 withval=$with_cxx_include_root;
5305 cat >>confdefs.h <<_ACEOF
5306 #define CXX_INCLUDE_ROOT "$withval"
5311 # Check whether --with-cxx-include-arch was given.
5312 if test "${with_cxx_include_arch+set}" = set; then
5313 withval=$with_cxx_include_arch;
5319 cat >>confdefs.h <<_ACEOF
5320 #define CXX_INCLUDE_ARCH "$withval"
5325 # Check whether --with-cxx-include-32bit-dir was given.
5326 if test "${with_cxx_include_32bit_dir+set}" = set; then
5327 withval=$with_cxx_include_32bit_dir;
5333 cat >>confdefs.h <<_ACEOF
5334 #define CXX_INCLUDE_32BIT_DIR "$withval"
5339 # Check whether --with-cxx-include-64bit-dir was given.
5340 if test "${with_cxx_include_64bit_dir+set}" = set; then
5341 withval=$with_cxx_include_64bit_dir;
5347 cat >>confdefs.h <<_ACEOF
5348 #define CXX_INCLUDE_64BIT_DIR "$withval"
5353 # Check whether --with-binutils-include was given.
5354 if test "${with_binutils_include+set}" = set; then
5355 withval=$with_binutils_include;
5361 default) WITH_BINUTILS_INCDIR=default ;;
5362 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5363 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5364 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5365 { (exit 1); exit 1; }; } ;;
5367 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5368 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5370 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5371 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5372 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5373 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5374 { (exit 1); exit 1; }; };
5378 # Check whether --enable-libffi was given.
5379 if test "${enable_libffi+set}" = set; then
5380 enableval=$enable_libffi; case "$enableval" in
5381 yes) llvm_cv_enable_libffi="yes" ;;
5382 no) llvm_cv_enable_libffi="no" ;;
5383 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5384 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5385 { (exit 1); exit 1; }; } ;;
5388 llvm_cv_enable_libffi=no
5394 ac_cpp='$CPP $CPPFLAGS'
5395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5398 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5399 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5400 # On Suns, sometimes $CPP names a directory.
5401 if test -n "$CPP" && test -d "$CPP"; then
5404 if test -z "$CPP"; then
5405 if test "${ac_cv_prog_CPP+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 # Double quotes because CPP needs to be expanded
5409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5412 for ac_c_preproc_warn_flag in '' yes
5414 # Use a header file that comes with gcc, so configuring glibc
5415 # with a fresh cross-compiler works.
5416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5417 # <limits.h> exists even on freestanding compilers.
5418 # On the NeXT, cc -E runs the code through the compiler's parser,
5419 # not just through cpp. "Syntax error" is here to catch this case.
5420 cat >conftest.$ac_ext <<_ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5427 # include <limits.h>
5429 # include <assert.h>
5433 if { (ac_try="$ac_cpp conftest.$ac_ext"
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5441 grep -v '^ *+' conftest.er1 >conftest.err
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } >/dev/null; then
5446 if test -s conftest.err; then
5447 ac_cpp_err=$ac_c_preproc_warn_flag
5448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5455 if test -z "$ac_cpp_err"; then
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5461 # Broken: fails on valid input.
5465 rm -f conftest.err conftest.$ac_ext
5467 # OK, works on sane cases. Now check whether nonexistent headers
5468 # can be detected and how.
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 #include <ac_nonexistent.h>
5477 if { (ac_try="$ac_cpp conftest.$ac_ext"
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5485 grep -v '^ *+' conftest.er1 >conftest.err
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } >/dev/null; then
5490 if test -s conftest.err; then
5491 ac_cpp_err=$ac_c_preproc_warn_flag
5492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5499 if test -z "$ac_cpp_err"; then
5500 # Broken: success on invalid input.
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 # Passes both tests.
5511 rm -f conftest.err conftest.$ac_ext
5514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5515 rm -f conftest.err conftest.$ac_ext
5516 if $ac_preproc_ok; then
5528 { echo "$as_me:$LINENO: result: $CPP" >&5
5529 echo "${ECHO_T}$CPP" >&6; }
5531 for ac_c_preproc_warn_flag in '' yes
5533 # Use a header file that comes with gcc, so configuring glibc
5534 # with a fresh cross-compiler works.
5535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5536 # <limits.h> exists even on freestanding compilers.
5537 # On the NeXT, cc -E runs the code through the compiler's parser,
5538 # not just through cpp. "Syntax error" is here to catch this case.
5539 cat >conftest.$ac_ext <<_ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5546 # include <limits.h>
5548 # include <assert.h>
5552 if { (ac_try="$ac_cpp conftest.$ac_ext"
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5560 grep -v '^ *+' conftest.er1 >conftest.err
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } >/dev/null; then
5565 if test -s conftest.err; then
5566 ac_cpp_err=$ac_c_preproc_warn_flag
5567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5574 if test -z "$ac_cpp_err"; then
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5580 # Broken: fails on valid input.
5584 rm -f conftest.err conftest.$ac_ext
5586 # OK, works on sane cases. Now check whether nonexistent headers
5587 # can be detected and how.
5588 cat >conftest.$ac_ext <<_ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 #include <ac_nonexistent.h>
5596 if { (ac_try="$ac_cpp conftest.$ac_ext"
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } >/dev/null; then
5609 if test -s conftest.err; then
5610 ac_cpp_err=$ac_c_preproc_warn_flag
5611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5618 if test -z "$ac_cpp_err"; then
5619 # Broken: success on invalid input.
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5625 # Passes both tests.
5630 rm -f conftest.err conftest.$ac_ext
5633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5634 rm -f conftest.err conftest.$ac_ext
5635 if $ac_preproc_ok; then
5638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5639 See \`config.log' for more details." >&5
5640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5641 See \`config.log' for more details." >&2;}
5642 { (exit 1); exit 1; }; }
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5652 ac_cpp='$CPP $CPPFLAGS'
5653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5656 if test -n "$ac_tool_prefix"; then
5659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5663 if test "${ac_cv_prog_CC+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 if test -n "$CC"; then
5667 ac_cv_prog_CC="$CC" # Let the user override the test.
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 if test -n "$CC"; then
5688 { echo "$as_me:$LINENO: result: $CC" >&5
5689 echo "${ECHO_T}$CC" >&6; }
5691 { echo "$as_me:$LINENO: result: no" >&5
5692 echo "${ECHO_T}no" >&6; }
5696 test -n "$CC" && break
5699 if test -z "$CC"; then
5703 # Extract the first word of "$ac_prog", so it can be a program name with args.
5704 set dummy $ac_prog; ac_word=$2
5705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 if test -n "$ac_ct_CC"; then
5711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5720 ac_cv_prog_ac_ct_CC="$ac_prog"
5721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5731 if test -n "$ac_ct_CC"; then
5732 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5733 echo "${ECHO_T}$ac_ct_CC" >&6; }
5735 { echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6; }
5740 test -n "$ac_ct_CC" && break
5743 if test "x$ac_ct_CC" = x; then
5746 case $cross_compiling:$ac_tool_warned in
5748 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5749 whose name does not start with the host triplet. If you think this
5750 configuration is useful to you, please write to autoconf@gnu.org." >&5
5751 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5752 whose name does not start with the host triplet. If you think this
5753 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5754 ac_tool_warned=yes ;;
5761 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5762 See \`config.log' for more details." >&5
5763 echo "$as_me: error: no acceptable C compiler found in \$PATH
5764 See \`config.log' for more details." >&2;}
5765 { (exit 1); exit 1; }; }
5767 # Provide some information about the compiler.
5768 echo "$as_me:$LINENO: checking for C compiler version" >&5
5769 ac_compiler=`set X $ac_compile; echo $2`
5770 { (ac_try="$ac_compiler --version >&5"
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compiler --version >&5") 2>&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }
5780 { (ac_try="$ac_compiler -v >&5"
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compiler -v >&5") 2>&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }
5790 { (ac_try="$ac_compiler -V >&5"
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_compiler -V >&5") 2>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }
5801 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5802 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5803 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 cat >conftest.$ac_ext <<_ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5824 rm -f conftest.$ac_objext
5825 if { (ac_try="$ac_compile"
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_compile") 2>conftest.er1
5833 grep -v '^ *+' conftest.er1 >conftest.err
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5839 { (case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_try") 2>&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try='test -s conftest.$ac_objext'
5849 { (case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_try") 2>&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5870 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5871 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5872 GCC=`test $ac_compiler_gnu = yes && echo yes`
5873 ac_test_CFLAGS=${CFLAGS+set}
5874 ac_save_CFLAGS=$CFLAGS
5875 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5876 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5877 if test "${ac_cv_prog_cc_g+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 ac_save_c_werror_flag=$ac_c_werror_flag
5881 ac_c_werror_flag=yes
5884 cat >conftest.$ac_ext <<_ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5899 rm -f conftest.$ac_objext
5900 if { (ac_try="$ac_compile"
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_compile") 2>conftest.er1
5908 grep -v '^ *+' conftest.er1 >conftest.err
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } &&
5913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5914 { (case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_try") 2>&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest.$ac_objext'
5924 { (case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_try") 2>&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5939 cat >conftest.$ac_ext <<_ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5954 rm -f conftest.$ac_objext
5955 if { (ac_try="$ac_compile"
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_compile") 2>conftest.er1
5963 grep -v '^ *+' conftest.er1 >conftest.err
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } &&
5968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5969 { (case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974 (eval "$ac_try") 2>&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_try") 2>&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 ac_c_werror_flag=$ac_save_c_werror_flag
5995 cat >conftest.$ac_ext <<_ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6010 rm -f conftest.$ac_objext
6011 if { (ac_try="$ac_compile"
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_compile") 2>conftest.er1
6019 grep -v '^ *+' conftest.er1 >conftest.err
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } &&
6024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6025 { (case "(($ac_try" in
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_try") 2>&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; } &&
6034 { ac_try='test -s conftest.$ac_objext'
6035 { (case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_try") 2>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; }; then
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 ac_c_werror_flag=$ac_save_c_werror_flag
6061 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6062 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6063 if test "$ac_test_CFLAGS" = set; then
6064 CFLAGS=$ac_save_CFLAGS
6065 elif test $ac_cv_prog_cc_g = yes; then
6066 if test "$GCC" = yes; then
6072 if test "$GCC" = yes; then
6078 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6079 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6080 if test "${ac_cv_prog_cc_c89+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 ac_cv_prog_cc_c89=no
6085 cat >conftest.$ac_ext <<_ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6093 #include <sys/types.h>
6094 #include <sys/stat.h>
6095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6096 struct buf { int x; };
6097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6098 static char *e (p, i)
6104 static char *f (char * (*g) (char **, int), char **p, ...)
6109 s = g (p, va_arg (v,int));
6114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6115 function prototypes and stuff, but not '\xHH' hex character constants.
6116 These don't provoke an error unfortunately, instead are silently treated
6117 as 'x'. The following induces an error, until -std is added to get
6118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6119 array size at least. It's necessary to write '\x00'==0 to get something
6120 that's true only with -std. */
6121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6124 inside strings and character constants. */
6126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6128 int test (int i, double x);
6129 struct s1 {int (*f) (int a);};
6130 struct s2 {int (*f) (double a);};
6131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6145 CC="$ac_save_CC $ac_arg"
6146 rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_compile") 2>conftest.er1
6155 grep -v '^ *+' conftest.er1 >conftest.err
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } &&
6160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6161 { (case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; } &&
6170 { ac_try='test -s conftest.$ac_objext'
6171 { (case "(($ac_try" in
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6176 (eval "$ac_try") 2>&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_cv_prog_cc_c89=$ac_arg
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6188 rm -f core conftest.err conftest.$ac_objext
6189 test "x$ac_cv_prog_cc_c89" != "xno" && break
6191 rm -f conftest.$ac_ext
6196 case "x$ac_cv_prog_cc_c89" in
6198 { echo "$as_me:$LINENO: result: none needed" >&5
6199 echo "${ECHO_T}none needed" >&6; } ;;
6201 { echo "$as_me:$LINENO: result: unsupported" >&5
6202 echo "${ECHO_T}unsupported" >&6; } ;;
6204 CC="$CC $ac_cv_prog_cc_c89"
6205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6206 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6211 ac_cpp='$CPP $CPPFLAGS'
6212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6217 ac_cpp='$CXXCPP $CPPFLAGS'
6218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6221 if test -z "$CXX"; then
6222 if test -n "$CCC"; then
6225 if test -n "$ac_tool_prefix"; then
6228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_prog_CXX+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 if test -n "$CXX"; then
6236 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 if test -n "$CXX"; then
6257 { echo "$as_me:$LINENO: result: $CXX" >&5
6258 echo "${ECHO_T}$CXX" >&6; }
6260 { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6265 test -n "$CXX" && break
6268 if test -z "$CXX"; then
6272 # Extract the first word of "$ac_prog", so it can be a program name with args.
6273 set dummy $ac_prog; ac_word=$2
6274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 if test -n "$ac_ct_CXX"; then
6280 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_ac_ct_CXX="$ac_prog"
6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6300 if test -n "$ac_ct_CXX"; then
6301 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6302 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6304 { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6309 test -n "$ac_ct_CXX" && break
6312 if test "x$ac_ct_CXX" = x; then
6315 case $cross_compiling:$ac_tool_warned in
6317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6318 whose name does not start with the host triplet. If you think this
6319 configuration is useful to you, please write to autoconf@gnu.org." >&5
6320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6321 whose name does not start with the host triplet. If you think this
6322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6323 ac_tool_warned=yes ;;
6331 # Provide some information about the compiler.
6332 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6333 ac_compiler=`set X $ac_compile; echo $2`
6334 { (ac_try="$ac_compiler --version >&5"
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_compiler --version >&5") 2>&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }
6344 { (ac_try="$ac_compiler -v >&5"
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compiler -v >&5") 2>&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }
6354 { (ac_try="$ac_compiler -V >&5"
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_compiler -V >&5") 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }
6365 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6366 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6367 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 cat >conftest.$ac_ext <<_ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6388 rm -f conftest.$ac_objext
6389 if { (ac_try="$ac_compile"
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6395 (eval "$ac_compile") 2>conftest.er1
6397 grep -v '^ *+' conftest.er1 >conftest.err
6399 cat conftest.err >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } &&
6402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6403 { (case "(($ac_try" in
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_try") 2>&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; } &&
6412 { ac_try='test -s conftest.$ac_objext'
6413 { (case "(($ac_try" in
6414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6415 *) ac_try_echo=$ac_try;;
6417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6418 (eval "$ac_try") 2>&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6434 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6435 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6436 GXX=`test $ac_compiler_gnu = yes && echo yes`
6437 ac_test_CXXFLAGS=${CXXFLAGS+set}
6438 ac_save_CXXFLAGS=$CXXFLAGS
6439 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6440 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6441 if test "${ac_cv_prog_cxx_g+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6445 ac_cxx_werror_flag=yes
6448 cat >conftest.$ac_ext <<_ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6463 rm -f conftest.$ac_objext
6464 if { (ac_try="$ac_compile"
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_compile") 2>conftest.er1
6472 grep -v '^ *+' conftest.er1 >conftest.err
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6478 { (case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_try") 2>&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; } &&
6487 { ac_try='test -s conftest.$ac_objext'
6488 { (case "(($ac_try" in
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493 (eval "$ac_try") 2>&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6497 ac_cv_prog_cxx_g=yes
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6503 cat >conftest.$ac_ext <<_ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6518 rm -f conftest.$ac_objext
6519 if { (ac_try="$ac_compile"
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_compile") 2>conftest.er1
6527 grep -v '^ *+' conftest.er1 >conftest.err
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } &&
6532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6533 { (case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_try") 2>&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; } &&
6542 { ac_try='test -s conftest.$ac_objext'
6543 { (case "(($ac_try" in
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_try") 2>&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6559 cat >conftest.$ac_ext <<_ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6574 rm -f conftest.$ac_objext
6575 if { (ac_try="$ac_compile"
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581 (eval "$ac_compile") 2>conftest.er1
6583 grep -v '^ *+' conftest.er1 >conftest.err
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6589 { (case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594 (eval "$ac_try") 2>&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604 (eval "$ac_try") 2>&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_cv_prog_cxx_g=yes
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6625 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6626 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6627 if test "$ac_test_CXXFLAGS" = set; then
6628 CXXFLAGS=$ac_save_CXXFLAGS
6629 elif test $ac_cv_prog_cxx_g = yes; then
6630 if test "$GXX" = yes; then
6636 if test "$GXX" = yes; then
6643 ac_cpp='$CPP $CPPFLAGS'
6644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6649 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6650 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6651 if test "${lt_cv_path_NM+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 if test -n "$NM"; then
6655 # Let the user override the test.
6658 lt_nm_to_check="${ac_tool_prefix}nm"
6659 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6660 lt_nm_to_check="$lt_nm_to_check nm"
6662 for lt_tmp_nm in $lt_nm_to_check; do
6663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6664 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6666 test -z "$ac_dir" && ac_dir=.
6667 tmp_nm="$ac_dir/$lt_tmp_nm"
6668 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6669 # Check to see if the nm accepts a BSD-compat flag.
6670 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6671 # nm: unknown option "B" ignored
6672 # Tru64's nm complains that /dev/null is an invalid object file
6673 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6674 */dev/null* | *'Invalid file or object type'*)
6675 lt_cv_path_NM="$tmp_nm -B"
6679 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6681 lt_cv_path_NM="$tmp_nm -p"
6685 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6686 continue # so that we can try to find one that supports BSD flags
6695 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6698 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6699 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6704 { echo "$as_me:$LINENO: checking for GNU make" >&5
6705 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6706 if test "${llvm_cv_gnu_make_command+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 llvm_cv_gnu_make_command=''
6710 for a in "$MAKE" make gmake gnumake ; do
6711 if test -z "$a" ; then continue ; fi ;
6712 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6714 llvm_cv_gnu_make_command=$a ;
6719 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6720 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6721 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6725 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6726 echo "${ECHO_T}\"Not found\"" >&6; };
6730 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6731 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6733 if test "$LN_S" = "ln -s"; then
6734 { echo "$as_me:$LINENO: result: yes" >&5
6735 echo "${ECHO_T}yes" >&6; }
6737 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6738 echo "${ECHO_T}no, using $LN_S" >&6; }
6741 # Extract the first word of "cmp", so it can be a program name with args.
6742 set dummy cmp; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_CMP+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6773 if test -n "$CMP"; then
6774 { echo "$as_me:$LINENO: result: $CMP" >&5
6775 echo "${ECHO_T}$CMP" >&6; }
6777 { echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6; }
6782 # Extract the first word of "cp", so it can be a program name with args.
6783 set dummy cp; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_path_CP+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6814 if test -n "$CP"; then
6815 { echo "$as_me:$LINENO: result: $CP" >&5
6816 echo "${ECHO_T}$CP" >&6; }
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6823 # Extract the first word of "date", so it can be a program name with args.
6824 set dummy date; ac_word=$2
6825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827 if test "${ac_cv_path_DATE+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6854 DATE=$ac_cv_path_DATE
6855 if test -n "$DATE"; then
6856 { echo "$as_me:$LINENO: result: $DATE" >&5
6857 echo "${ECHO_T}$DATE" >&6; }
6859 { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6864 # Extract the first word of "find", so it can be a program name with args.
6865 set dummy find; ac_word=$2
6866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868 if test "${ac_cv_path_FIND+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6883 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6895 FIND=$ac_cv_path_FIND
6896 if test -n "$FIND"; then
6897 { echo "$as_me:$LINENO: result: $FIND" >&5
6898 echo "${ECHO_T}$FIND" >&6; }
6900 { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6905 # Extract the first word of "grep", so it can be a program name with args.
6906 set dummy grep; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_path_GREP+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6936 GREP=$ac_cv_path_GREP
6937 if test -n "$GREP"; then
6938 { echo "$as_me:$LINENO: result: $GREP" >&5
6939 echo "${ECHO_T}$GREP" >&6; }
6941 { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6946 # Extract the first word of "mkdir", so it can be a program name with args.
6947 set dummy mkdir; ac_word=$2
6948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950 if test "${ac_cv_path_MKDIR+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6977 MKDIR=$ac_cv_path_MKDIR
6978 if test -n "$MKDIR"; then
6979 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6980 echo "${ECHO_T}$MKDIR" >&6; }
6982 { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6987 # Extract the first word of "mv", so it can be a program name with args.
6988 set dummy mv; ac_word=$2
6989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991 if test "${ac_cv_path_MV+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7019 if test -n "$MV"; then
7020 { echo "$as_me:$LINENO: result: $MV" >&5
7021 echo "${ECHO_T}$MV" >&6; }
7023 { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7028 if test -n "$ac_tool_prefix"; then
7029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_prog_RANLIB+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 if test -n "$RANLIB"; then
7037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 RANLIB=$ac_cv_prog_RANLIB
7057 if test -n "$RANLIB"; then
7058 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7059 echo "${ECHO_T}$RANLIB" >&6; }
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7067 if test -z "$ac_cv_prog_RANLIB"; then
7068 ac_ct_RANLIB=$RANLIB
7069 # Extract the first word of "ranlib", so it can be a program name with args.
7070 set dummy ranlib; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 if test -n "$ac_ct_RANLIB"; then
7077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7086 ac_cv_prog_ac_ct_RANLIB="ranlib"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7097 if test -n "$ac_ct_RANLIB"; then
7098 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7099 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7101 { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7105 if test "x$ac_ct_RANLIB" = x; then
7108 case $cross_compiling:$ac_tool_warned in
7110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7111 whose name does not start with the host triplet. If you think this
7112 configuration is useful to you, please write to autoconf@gnu.org." >&5
7113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7114 whose name does not start with the host triplet. If you think this
7115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7116 ac_tool_warned=yes ;;
7118 RANLIB=$ac_ct_RANLIB
7121 RANLIB="$ac_cv_prog_RANLIB"
7124 if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}ar; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_prog_AR+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 if test -n "$AR"; then
7133 ac_cv_prog_AR="$AR" # Let the user override the test.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_AR="${ac_tool_prefix}ar"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 if test -n "$AR"; then
7154 { echo "$as_me:$LINENO: result: $AR" >&5
7155 echo "${ECHO_T}$AR" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7163 if test -z "$ac_cv_prog_AR"; then
7165 # Extract the first word of "ar", so it can be a program name with args.
7166 set dummy ar; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 if test -n "$ac_ct_AR"; then
7173 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_prog_ac_ct_AR="ar"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7193 if test -n "$ac_ct_AR"; then
7194 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7195 echo "${ECHO_T}$ac_ct_AR" >&6; }
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7201 if test "x$ac_ct_AR" = x; then
7204 case $cross_compiling:$ac_tool_warned in
7206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7207 whose name does not start with the host triplet. If you think this
7208 configuration is useful to you, please write to autoconf@gnu.org." >&5
7209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7210 whose name does not start with the host triplet. If you think this
7211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7212 ac_tool_warned=yes ;;
7220 # Extract the first word of "rm", so it can be a program name with args.
7221 set dummy rm; ac_word=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_path_RM+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7252 if test -n "$RM"; then
7253 { echo "$as_me:$LINENO: result: $RM" >&5
7254 echo "${ECHO_T}$RM" >&6; }
7256 { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7261 # Extract the first word of "sed", so it can be a program name with args.
7262 set dummy sed; ac_word=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_path_SED+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7293 if test -n "$SED"; then
7294 { echo "$as_me:$LINENO: result: $SED" >&5
7295 echo "${ECHO_T}$SED" >&6; }
7297 { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7302 # Extract the first word of "tar", so it can be a program name with args.
7303 set dummy tar; ac_word=$2
7304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306 if test "${ac_cv_path_TAR+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7334 if test -n "$TAR"; then
7335 { echo "$as_me:$LINENO: result: $TAR" >&5
7336 echo "${ECHO_T}$TAR" >&6; }
7338 { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7343 # Extract the first word of "pwd", so it can be a program name with args.
7344 set dummy pwd; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_BINPWD+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7374 BINPWD=$ac_cv_path_BINPWD
7375 if test -n "$BINPWD"; then
7376 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7377 echo "${ECHO_T}$BINPWD" >&6; }
7379 { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7385 # Extract the first word of "Graphviz", so it can be a program name with args.
7386 set dummy Graphviz; ac_word=$2
7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7416 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7417 if test -n "$GRAPHVIZ"; then
7418 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7419 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7421 { echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6; }
7426 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7428 cat >>confdefs.h <<\_ACEOF
7429 #define HAVE_GRAPHVIZ 1
7432 if test "$llvm_cv_os_type" = "MingW" ; then
7433 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7436 cat >>confdefs.h <<_ACEOF
7437 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7441 # Extract the first word of "dot", so it can be a program name with args.
7442 set dummy dot; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_path_DOT+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7473 if test -n "$DOT"; then
7474 { echo "$as_me:$LINENO: result: $DOT" >&5
7475 echo "${ECHO_T}$DOT" >&6; }
7477 { echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6; }
7482 if test "$DOT" != "echo dot" ; then
7484 cat >>confdefs.h <<\_ACEOF
7488 if test "$llvm_cv_os_type" = "MingW" ; then
7489 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7492 cat >>confdefs.h <<_ACEOF
7493 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7497 # Extract the first word of "fdp", so it can be a program name with args.
7498 set dummy fdp; ac_word=$2
7499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7501 if test "${ac_cv_path_FDP+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7516 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7529 if test -n "$FDP"; then
7530 { echo "$as_me:$LINENO: result: $FDP" >&5
7531 echo "${ECHO_T}$FDP" >&6; }
7533 { echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6; }
7538 if test "$FDP" != "echo fdp" ; then
7540 cat >>confdefs.h <<\_ACEOF
7544 if test "$llvm_cv_os_type" = "MingW" ; then
7545 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7548 cat >>confdefs.h <<_ACEOF
7549 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7553 # Extract the first word of "neato", so it can be a program name with args.
7554 set dummy neato; ac_word=$2
7555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7557 if test "${ac_cv_path_NEATO+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7572 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7584 NEATO=$ac_cv_path_NEATO
7585 if test -n "$NEATO"; then
7586 { echo "$as_me:$LINENO: result: $NEATO" >&5
7587 echo "${ECHO_T}$NEATO" >&6; }
7589 { echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6; }
7594 if test "$NEATO" != "echo neato" ; then
7596 cat >>confdefs.h <<\_ACEOF
7597 #define HAVE_NEATO 1
7600 if test "$llvm_cv_os_type" = "MingW" ; then
7601 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7604 cat >>confdefs.h <<_ACEOF
7605 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7609 # Extract the first word of "twopi", so it can be a program name with args.
7610 set dummy twopi; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_TWOPI+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7640 TWOPI=$ac_cv_path_TWOPI
7641 if test -n "$TWOPI"; then
7642 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7643 echo "${ECHO_T}$TWOPI" >&6; }
7645 { echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6; }
7650 if test "$TWOPI" != "echo twopi" ; then
7652 cat >>confdefs.h <<\_ACEOF
7653 #define HAVE_TWOPI 1
7656 if test "$llvm_cv_os_type" = "MingW" ; then
7657 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7660 cat >>confdefs.h <<_ACEOF
7661 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7665 # Extract the first word of "circo", so it can be a program name with args.
7666 set dummy circo; ac_word=$2
7667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7669 if test "${ac_cv_path_CIRCO+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7684 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7696 CIRCO=$ac_cv_path_CIRCO
7697 if test -n "$CIRCO"; then
7698 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7699 echo "${ECHO_T}$CIRCO" >&6; }
7701 { echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6; }
7706 if test "$CIRCO" != "echo circo" ; then
7708 cat >>confdefs.h <<\_ACEOF
7709 #define HAVE_CIRCO 1
7712 if test "$llvm_cv_os_type" = "MingW" ; then
7713 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7716 cat >>confdefs.h <<_ACEOF
7717 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7721 for ac_prog in gv gsview32
7723 # Extract the first word of "$ac_prog", so it can be a program name with args.
7724 set dummy $ac_prog; ac_word=$2
7725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7727 if test "${ac_cv_path_GV+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7742 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 if test -n "$GV"; then
7755 { echo "$as_me:$LINENO: result: $GV" >&5
7756 echo "${ECHO_T}$GV" >&6; }
7758 { echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6; }
7763 test -n "$GV" && break
7765 test -n "$GV" || GV="echo gv"
7767 if test "$GV" != "echo gv" ; then
7769 cat >>confdefs.h <<\_ACEOF
7773 if test "$llvm_cv_os_type" = "MingW" ; then
7774 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7777 cat >>confdefs.h <<_ACEOF
7778 #define LLVM_PATH_GV "$GV${EXEEXT}"
7782 # Extract the first word of "dotty", so it can be a program name with args.
7783 set dummy dotty; ac_word=$2
7784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786 if test "${ac_cv_path_DOTTY+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7813 DOTTY=$ac_cv_path_DOTTY
7814 if test -n "$DOTTY"; then
7815 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7816 echo "${ECHO_T}$DOTTY" >&6; }
7818 { echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6; }
7823 if test "$DOTTY" != "echo dotty" ; then
7825 cat >>confdefs.h <<\_ACEOF
7826 #define HAVE_DOTTY 1
7829 if test "$llvm_cv_os_type" = "MingW" ; then
7830 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7833 cat >>confdefs.h <<_ACEOF
7834 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7838 # Extract the first word of "xdot.py", so it can be a program name with args.
7839 set dummy xdot.py; ac_word=$2
7840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7842 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7865 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7869 XDOT_PY=$ac_cv_path_XDOT_PY
7870 if test -n "$XDOT_PY"; then
7871 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7872 echo "${ECHO_T}$XDOT_PY" >&6; }
7874 { echo "$as_me:$LINENO: result: no" >&5
7875 echo "${ECHO_T}no" >&6; }
7879 if test "$XDOT_PY" != "echo xdot.py" ; then
7881 cat >>confdefs.h <<\_ACEOF
7882 #define HAVE_XDOT_PY 1
7885 if test "$llvm_cv_os_type" = "MingW" ; then
7886 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7889 cat >>confdefs.h <<_ACEOF
7890 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7896 # Extract the first word of "perl", so it can be a program name with args.
7897 set dummy perl; ac_word=$2
7898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7900 if test "${ac_cv_path_PERL+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7927 PERL=$ac_cv_path_PERL
7928 if test -n "$PERL"; then
7929 { echo "$as_me:$LINENO: result: $PERL" >&5
7930 echo "${ECHO_T}$PERL" >&6; }
7932 { echo "$as_me:$LINENO: result: no" >&5
7933 echo "${ECHO_T}no" >&6; }
7937 if test "$PERL" != "none"; then
7938 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7939 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7940 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7941 { echo "$as_me:$LINENO: result: yes" >&5
7942 echo "${ECHO_T}yes" >&6; }
7945 { echo "$as_me:$LINENO: result: not found" >&5
7946 echo "${ECHO_T}not found" >&6; }
7951 if test x"$PERL" = xnone; then
7954 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7955 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7956 { (exit 1); exit 1; }; }
7962 # Find a good install program. We prefer a C program (faster),
7963 # so one script is as good as another. But avoid the broken or
7964 # incompatible versions:
7965 # SysV /etc/install, /usr/sbin/install
7966 # SunOS /usr/etc/install
7967 # IRIX /sbin/install
7969 # AmigaOS /C/install, which installs bootblocks on floppy discs
7970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7973 # OS/2's system install, which has a completely different semantic
7974 # ./install, which can be erroneously created by make from ./install.sh.
7975 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7976 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7977 if test -z "$INSTALL"; then
7978 if test "${ac_cv_path_install+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 test -z "$as_dir" && as_dir=.
7986 # Account for people who put trailing slashes in PATH elements.
7988 ./ | .// | /cC/* | \
7989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7990 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7993 # OSF1 and SCO ODT 3.0 have their own names for install.
7994 # Don't use installbsd from OSF since it installs stuff as root
7996 for ac_prog in ginstall scoinst install; do
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7999 if test $ac_prog = install &&
8000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8001 # AIX install. It has an incompatible calling convention.
8003 elif test $ac_prog = install &&
8004 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8005 # program-specific install script used by HP pwplus--don't use.
8008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8021 if test "${ac_cv_path_install+set}" = set; then
8022 INSTALL=$ac_cv_path_install
8024 # As a last resort, use the slow shell script. Don't cache a
8025 # value for INSTALL within a source directory, because that will
8026 # break other packages using the cache if that directory is
8027 # removed, or if the value is a relative name.
8028 INSTALL=$ac_install_sh
8031 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8032 echo "${ECHO_T}$INSTALL" >&6; }
8034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8035 # It thinks the first close brace ends the variable substitution.
8036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8043 [\\/$]* | ?:[\\/]* ) ;;
8044 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8047 # Extract the first word of "bzip2", so it can be a program name with args.
8048 set dummy bzip2; ac_word=$2
8049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8051 if test "${ac_cv_path_BZIP2+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 BZIP2=$ac_cv_path_BZIP2
8078 if test -n "$BZIP2"; then
8079 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8080 echo "${ECHO_T}$BZIP2" >&6; }
8082 { echo "$as_me:$LINENO: result: no" >&5
8083 echo "${ECHO_T}no" >&6; }
8087 # Extract the first word of "cat", so it can be a program name with args.
8088 set dummy cat; ac_word=$2
8089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8091 if test "${ac_cv_path_CAT+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8106 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 if test -n "$CAT"; then
8119 { echo "$as_me:$LINENO: result: $CAT" >&5
8120 echo "${ECHO_T}$CAT" >&6; }
8122 { echo "$as_me:$LINENO: result: no" >&5
8123 echo "${ECHO_T}no" >&6; }
8127 # Extract the first word of "doxygen", so it can be a program name with args.
8128 set dummy doxygen; ac_word=$2
8129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8131 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8146 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 DOXYGEN=$ac_cv_path_DOXYGEN
8158 if test -n "$DOXYGEN"; then
8159 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8160 echo "${ECHO_T}$DOXYGEN" >&6; }
8162 { echo "$as_me:$LINENO: result: no" >&5
8163 echo "${ECHO_T}no" >&6; }
8167 # Extract the first word of "groff", so it can be a program name with args.
8168 set dummy groff; ac_word=$2
8169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8171 if test "${ac_cv_path_GROFF+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8186 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 GROFF=$ac_cv_path_GROFF
8198 if test -n "$GROFF"; then
8199 { echo "$as_me:$LINENO: result: $GROFF" >&5
8200 echo "${ECHO_T}$GROFF" >&6; }
8202 { echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6; }
8207 # Extract the first word of "gzip", so it can be a program name with args.
8208 set dummy gzip; ac_word=$2
8209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8211 if test "${ac_cv_path_GZIP+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8226 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 GZIP=$ac_cv_path_GZIP
8238 if test -n "$GZIP"; then
8239 { echo "$as_me:$LINENO: result: $GZIP" >&5
8240 echo "${ECHO_T}$GZIP" >&6; }
8242 { echo "$as_me:$LINENO: result: no" >&5
8243 echo "${ECHO_T}no" >&6; }
8247 # Extract the first word of "pod2html", so it can be a program name with args.
8248 set dummy pod2html; ac_word=$2
8249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8251 if test "${ac_cv_path_POD2HTML+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263 test -z "$as_dir" && as_dir=.
8264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8266 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 POD2HTML=$ac_cv_path_POD2HTML
8278 if test -n "$POD2HTML"; then
8279 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8280 echo "${ECHO_T}$POD2HTML" >&6; }
8282 { echo "$as_me:$LINENO: result: no" >&5
8283 echo "${ECHO_T}no" >&6; }
8287 # Extract the first word of "pod2man", so it can be a program name with args.
8288 set dummy pod2man; ac_word=$2
8289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8291 if test "${ac_cv_path_POD2MAN+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 test -z "$as_dir" && as_dir=.
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8306 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 POD2MAN=$ac_cv_path_POD2MAN
8318 if test -n "$POD2MAN"; then
8319 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8320 echo "${ECHO_T}$POD2MAN" >&6; }
8322 { echo "$as_me:$LINENO: result: no" >&5
8323 echo "${ECHO_T}no" >&6; }
8327 # Extract the first word of "pdfroff", so it can be a program name with args.
8328 set dummy pdfroff; ac_word=$2
8329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8331 if test "${ac_cv_path_PDFROFF+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 test -z "$as_dir" && as_dir=.
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8346 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 PDFROFF=$ac_cv_path_PDFROFF
8358 if test -n "$PDFROFF"; then
8359 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8360 echo "${ECHO_T}$PDFROFF" >&6; }
8362 { echo "$as_me:$LINENO: result: no" >&5
8363 echo "${ECHO_T}no" >&6; }
8367 # Extract the first word of "runtest", so it can be a program name with args.
8368 set dummy runtest; ac_word=$2
8369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8371 if test "${ac_cv_path_RUNTEST+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 test -z "$as_dir" && as_dir=.
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8386 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8397 RUNTEST=$ac_cv_path_RUNTEST
8398 if test -n "$RUNTEST"; then
8399 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8400 echo "${ECHO_T}$RUNTEST" >&6; }
8402 { echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6; }
8409 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8410 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8412 # Check whether --with-tclinclude was given.
8413 if test "${with_tclinclude+set}" = set; then
8414 withval=$with_tclinclude; with_tclinclude=${withval}
8419 if test "${ac_cv_path_tclsh+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 if test x"${with_tclinclude}" != x ; then
8424 if test -f ${with_tclinclude}/tclsh ; then
8425 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8426 elif test -f ${with_tclinclude}/src/tclsh ; then
8427 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8429 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8430 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8431 { (exit 1); exit 1; }; }
8437 if test x"${ac_cv_path_tclsh}" = x ; then
8438 { echo "$as_me:$LINENO: result: none" >&5
8439 echo "${ECHO_T}none" >&6; }
8440 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
8442 # Extract the first word of "$ac_prog", so it can be a program name with args.
8443 set dummy $ac_prog; ac_word=$2
8444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8446 if test "${ac_cv_path_TCLSH+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8461 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 TCLSH=$ac_cv_path_TCLSH
8473 if test -n "$TCLSH"; then
8474 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8475 echo "${ECHO_T}$TCLSH" >&6; }
8477 { echo "$as_me:$LINENO: result: no" >&5
8478 echo "${ECHO_T}no" >&6; }
8482 test -n "$TCLSH" && break
8485 if test x"${TCLSH}" = x ; then
8486 ac_cv_path_tclsh='';
8488 ac_cv_path_tclsh="${TCLSH}";
8491 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8492 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8493 TCLSH="${ac_cv_path_tclsh}"
8497 # Extract the first word of "zip", so it can be a program name with args.
8498 set dummy zip; ac_word=$2
8499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8501 if test "${ac_cv_path_ZIP+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8516 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 if test -n "$ZIP"; then
8529 { echo "$as_me:$LINENO: result: $ZIP" >&5
8530 echo "${ECHO_T}$ZIP" >&6; }
8532 { echo "$as_me:$LINENO: result: no" >&5
8533 echo "${ECHO_T}no" >&6; }
8537 for ac_prog in ocamlc
8539 # Extract the first word of "$ac_prog", so it can be a program name with args.
8540 set dummy $ac_prog; ac_word=$2
8541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8543 if test "${ac_cv_path_OCAMLC+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555 test -z "$as_dir" && as_dir=.
8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8558 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 OCAMLC=$ac_cv_path_OCAMLC
8570 if test -n "$OCAMLC"; then
8571 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8572 echo "${ECHO_T}$OCAMLC" >&6; }
8574 { echo "$as_me:$LINENO: result: no" >&5
8575 echo "${ECHO_T}no" >&6; }
8579 test -n "$OCAMLC" && break
8582 for ac_prog in ocamlopt
8584 # Extract the first word of "$ac_prog", so it can be a program name with args.
8585 set dummy $ac_prog; ac_word=$2
8586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8588 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600 test -z "$as_dir" && as_dir=.
8601 for ac_exec_ext in '' $ac_executable_extensions; do
8602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8603 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8614 OCAMLOPT=$ac_cv_path_OCAMLOPT
8615 if test -n "$OCAMLOPT"; then
8616 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8617 echo "${ECHO_T}$OCAMLOPT" >&6; }
8619 { echo "$as_me:$LINENO: result: no" >&5
8620 echo "${ECHO_T}no" >&6; }
8624 test -n "$OCAMLOPT" && break
8627 for ac_prog in ocamldep
8629 # Extract the first word of "$ac_prog", so it can be a program name with args.
8630 set dummy $ac_prog; ac_word=$2
8631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8633 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 test -z "$as_dir" && as_dir=.
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8648 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 OCAMLDEP=$ac_cv_path_OCAMLDEP
8660 if test -n "$OCAMLDEP"; then
8661 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8662 echo "${ECHO_T}$OCAMLDEP" >&6; }
8664 { echo "$as_me:$LINENO: result: no" >&5
8665 echo "${ECHO_T}no" >&6; }
8669 test -n "$OCAMLDEP" && break
8672 for ac_prog in ocamldoc
8674 # Extract the first word of "$ac_prog", so it can be a program name with args.
8675 set dummy $ac_prog; ac_word=$2
8676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8678 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8693 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8704 OCAMLDOC=$ac_cv_path_OCAMLDOC
8705 if test -n "$OCAMLDOC"; then
8706 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8707 echo "${ECHO_T}$OCAMLDOC" >&6; }
8709 { echo "$as_me:$LINENO: result: no" >&5
8710 echo "${ECHO_T}no" >&6; }
8714 test -n "$OCAMLDOC" && break
8717 for ac_prog in gas as
8719 # Extract the first word of "$ac_prog", so it can be a program name with args.
8720 set dummy $ac_prog; ac_word=$2
8721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8723 if test "${ac_cv_path_GAS+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 test -z "$as_dir" && as_dir=.
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8738 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8750 if test -n "$GAS"; then
8751 { echo "$as_me:$LINENO: result: $GAS" >&5
8752 echo "${ECHO_T}$GAS" >&6; }
8754 { echo "$as_me:$LINENO: result: no" >&5
8755 echo "${ECHO_T}no" >&6; }
8759 test -n "$GAS" && break
8763 { echo "$as_me:$LINENO: checking for linker version" >&5
8764 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8765 if test "${llvm_cv_link_version+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 version_string="$(ld -v 2>&1 | head -1)"
8772 if (echo "$version_string" | grep -q "ld64"); then
8773 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8775 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8779 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8780 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8782 cat >>confdefs.h <<_ACEOF
8783 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8788 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8789 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8790 if test "${llvm_cv_link_use_r+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 ac_cpp='$CPP $CPPFLAGS'
8795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8800 CFLAGS="$CFLAGS -Wl,-R."
8801 cat >conftest.$ac_ext <<_ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8816 rm -f conftest.$ac_objext conftest$ac_exeext
8817 if { (ac_try="$ac_link"
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823 (eval "$ac_link") 2>conftest.er1
8825 grep -v '^ *+' conftest.er1 >conftest.err
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8831 { (case "(($ac_try" in
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836 (eval "$ac_try") 2>&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; } &&
8840 { ac_try='test -s conftest$ac_exeext'
8841 { (case "(($ac_try" in
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846 (eval "$ac_try") 2>&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 llvm_cv_link_use_r=yes
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8855 llvm_cv_link_use_r=no
8858 rm -f core conftest.err conftest.$ac_objext \
8859 conftest$ac_exeext conftest.$ac_ext
8862 ac_cpp='$CPP $CPPFLAGS'
8863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8870 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8871 if test "$llvm_cv_link_use_r" = yes ; then
8873 cat >>confdefs.h <<\_ACEOF
8874 #define HAVE_LINK_R 1
8880 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8881 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8882 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 ac_cpp='$CPP $CPPFLAGS'
8887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8892 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8893 cat >conftest.$ac_ext <<_ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8908 rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (ac_try="$ac_link"
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_link") 2>conftest.er1
8917 grep -v '^ *+' conftest.er1 >conftest.err
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } &&
8922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8923 { (case "(($ac_try" in
8924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925 *) ac_try_echo=$ac_try;;
8927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928 (eval "$ac_try") 2>&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest$ac_exeext'
8933 { (case "(($ac_try" in
8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935 *) ac_try_echo=$ac_try;;
8937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938 (eval "$ac_try") 2>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 llvm_cv_link_use_export_dynamic=yes
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 llvm_cv_link_use_export_dynamic=no
8950 rm -f core conftest.err conftest.$ac_objext \
8951 conftest$ac_exeext conftest.$ac_ext
8954 ac_cpp='$CPP $CPPFLAGS'
8955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8961 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8962 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8963 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8965 cat >>confdefs.h <<\_ACEOF
8966 #define HAVE_LINK_EXPORT_DYNAMIC 1
8972 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8973 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8974 if test "${llvm_cv_link_use_version_script+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 ac_cpp='$CPP $CPPFLAGS'
8979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8985 # The following code is from the autoconf manual,
8986 # "11.13: Limitations of Usual Tools".
8987 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8988 # Use mktemp if possible; otherwise fall back on mkdir,
8989 # with $RANDOM to make collisions less likely.
8993 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8995 test -n "$tmp" && test -d "$tmp"
8997 tmp=$TMPDIR/foo$$-$RANDOM
8998 (umask 077 && mkdir "$tmp")
9001 echo "{" > "$tmp/export.map"
9002 echo " global: main;" >> "$tmp/export.map"
9003 echo " local: *;" >> "$tmp/export.map"
9004 echo "};" >> "$tmp/export.map"
9006 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9007 cat >conftest.$ac_ext <<_ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9022 rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (ac_try="$ac_link"
9025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026 *) ac_try_echo=$ac_try;;
9028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9029 (eval "$ac_link") 2>conftest.er1
9031 grep -v '^ *+' conftest.er1 >conftest.err
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } &&
9036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9037 { (case "(($ac_try" in
9038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039 *) ac_try_echo=$ac_try;;
9041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042 (eval "$ac_try") 2>&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try='test -s conftest$ac_exeext'
9047 { (case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_try") 2>&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 llvm_cv_link_use_version_script=yes
9058 echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9061 llvm_cv_link_use_version_script=no
9064 rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
9066 rm "$tmp/export.map"
9070 ac_cpp='$CPP $CPPFLAGS'
9071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9077 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9078 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9079 if test "$llvm_cv_link_use_version_script" = yes ; then
9080 HAVE_LINK_VERSION_SCRIPT=1
9087 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9088 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9089 if test "${ac_cv_c_const+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 cat >conftest.$ac_ext <<_ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9102 /* FIXME: Include the comments suggested by Paul. */
9104 /* Ultrix mips cc rejects this. */
9105 typedef int charset[2];
9107 /* SunOS 4.1.1 cc rejects this. */
9108 char const *const *ccp;
9110 /* NEC SVR4.0.2 mips cc rejects this. */
9111 struct point {int x, y;};
9112 static struct point const zero = {0,0};
9113 /* AIX XL C 1.02.0.0 rejects this.
9114 It does not let you subtract one const X* pointer from another in
9115 an arm of an if-expression whose if-part is not a constant
9117 const char *g = "string";
9118 ccp = &g + (g ? g-g : 0);
9119 /* HPUX 7.0 cc rejects these. */
9122 ccp = (char const *const *) p;
9123 { /* SCO 3.2v4 cc rejects this. */
9125 char const *s = 0 ? (char *) 0 : (char const *) 0;
9130 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9132 const int *foo = &x[0];
9135 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9136 typedef const int *iptr;
9140 { /* AIX XL C 1.02.0.0 rejects this saying
9141 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9142 struct s { int j; const int *ap[3]; };
9143 struct s *b; b->j = 5;
9145 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9149 return !x[0] && !zero.x;
9156 rm -f conftest.$ac_objext
9157 if { (ac_try="$ac_compile"
9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163 (eval "$ac_compile") 2>conftest.er1
9165 grep -v '^ *+' conftest.er1 >conftest.err
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9171 { (case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_try") 2>&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; } &&
9180 { ac_try='test -s conftest.$ac_objext'
9181 { (case "(($ac_try" in
9182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183 *) ac_try_echo=$ac_try;;
9185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186 (eval "$ac_try") 2>&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; }; then
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9200 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9201 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9202 if test $ac_cv_c_const = no; then
9204 cat >>confdefs.h <<\_ACEOF
9216 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9217 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9218 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9219 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 cat >conftest.$ac_ext <<_ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 #include <sys/types.h>
9241 rm -f conftest.$ac_objext
9242 if { (ac_try="$ac_compile"
9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248 (eval "$ac_compile") 2>conftest.er1
9250 grep -v '^ *+' conftest.er1 >conftest.err
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9256 { (case "(($ac_try" in
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_try") 2>&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try='test -s conftest.$ac_objext'
9266 { (case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_try") 2>&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; }; then
9275 eval "$as_ac_Header=yes"
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9280 eval "$as_ac_Header=no"
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 ac_res=`eval echo '${'$as_ac_Header'}'`
9286 { echo "$as_me:$LINENO: result: $ac_res" >&5
9287 echo "${ECHO_T}$ac_res" >&6; }
9288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9289 cat >>confdefs.h <<_ACEOF
9290 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9293 ac_header_dirent=$ac_hdr; break
9297 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9298 if test $ac_header_dirent = dirent.h; then
9299 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9300 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9301 if test "${ac_cv_search_opendir+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 ac_func_search_save_LIBS=$LIBS
9305 cat >conftest.$ac_ext <<_ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9312 /* Override any GCC internal prototype to avoid an error.
9313 Use char because int might match the return type of a GCC
9314 builtin and then its argument prototype would still apply. */
9327 for ac_lib in '' dir; do
9328 if test -z "$ac_lib"; then
9329 ac_res="none required"
9332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9334 rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (ac_try="$ac_link"
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_link") 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9349 { (case "(($ac_try" in
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9354 (eval "$ac_try") 2>&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; } &&
9358 { ac_try='test -s conftest$ac_exeext'
9359 { (case "(($ac_try" in
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_try") 2>&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
9368 ac_cv_search_opendir=$ac_res
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9376 rm -f core conftest.err conftest.$ac_objext \
9378 if test "${ac_cv_search_opendir+set}" = set; then
9382 if test "${ac_cv_search_opendir+set}" = set; then
9385 ac_cv_search_opendir=no
9388 LIBS=$ac_func_search_save_LIBS
9390 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9391 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9392 ac_res=$ac_cv_search_opendir
9393 if test "$ac_res" != no; then
9394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9399 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9400 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9401 if test "${ac_cv_search_opendir+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 ac_func_search_save_LIBS=$LIBS
9405 cat >conftest.$ac_ext <<_ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9412 /* Override any GCC internal prototype to avoid an error.
9413 Use char because int might match the return type of a GCC
9414 builtin and then its argument prototype would still apply. */
9427 for ac_lib in '' x; do
9428 if test -z "$ac_lib"; then
9429 ac_res="none required"
9432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9434 rm -f conftest.$ac_objext conftest$ac_exeext
9435 if { (ac_try="$ac_link"
9437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438 *) ac_try_echo=$ac_try;;
9440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9441 (eval "$ac_link") 2>conftest.er1
9443 grep -v '^ *+' conftest.er1 >conftest.err
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } &&
9448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9449 { (case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454 (eval "$ac_try") 2>&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; } &&
9458 { ac_try='test -s conftest$ac_exeext'
9459 { (case "(($ac_try" in
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_try") 2>&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 ac_cv_search_opendir=$ac_res
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9476 rm -f core conftest.err conftest.$ac_objext \
9478 if test "${ac_cv_search_opendir+set}" = set; then
9482 if test "${ac_cv_search_opendir+set}" = set; then
9485 ac_cv_search_opendir=no
9488 LIBS=$ac_func_search_save_LIBS
9490 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9491 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9492 ac_res=$ac_cv_search_opendir
9493 if test "$ac_res" != no; then
9494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9501 for ac_header in dlfcn.h
9503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 ac_res=`eval echo '${'$as_ac_Header'}'`
9511 { echo "$as_me:$LINENO: result: $ac_res" >&5
9512 echo "${ECHO_T}$ac_res" >&6; }
9514 # Is the header compilable?
9515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9517 cat >conftest.$ac_ext <<_ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 $ac_includes_default
9524 #include <$ac_header>
9526 rm -f conftest.$ac_objext
9527 if { (ac_try="$ac_compile"
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_compile") 2>conftest.er1
9535 grep -v '^ *+' conftest.er1 >conftest.err
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9541 { (case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_try") 2>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; } &&
9550 { ac_try='test -s conftest.$ac_objext'
9551 { (case "(($ac_try" in
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_try") 2>&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_header_compiler=yes
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 ac_header_compiler=no
9568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9570 echo "${ECHO_T}$ac_header_compiler" >&6; }
9572 # Is the header present?
9573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9575 cat >conftest.$ac_ext <<_ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 #include <$ac_header>
9583 if { (ac_try="$ac_cpp conftest.$ac_ext"
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9591 grep -v '^ *+' conftest.er1 >conftest.err
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } >/dev/null; then
9596 if test -s conftest.err; then
9597 ac_cpp_err=$ac_c_preproc_warn_flag
9598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9605 if test -z "$ac_cpp_err"; then
9606 ac_header_preproc=yes
9608 echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9611 ac_header_preproc=no
9614 rm -f conftest.err conftest.$ac_ext
9615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9616 echo "${ECHO_T}$ac_header_preproc" >&6; }
9618 # So? What about this header?
9619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9625 ac_header_preproc=yes
9628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9635 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9641 ## ----------------------------------- ##
9642 ## Report this to llvmbugs@cs.uiuc.edu ##
9643 ## ----------------------------------- ##
9645 ) | sed "s/^/$as_me: WARNING: /" >&2
9648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 eval "$as_ac_Header=\$ac_header_preproc"
9655 ac_res=`eval echo '${'$as_ac_Header'}'`
9656 { echo "$as_me:$LINENO: result: $ac_res" >&5
9657 echo "${ECHO_T}$ac_res" >&6; }
9660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9661 cat >>confdefs.h <<_ACEOF
9662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9669 # Check whether --enable-ltdl-install was given.
9670 if test "${enable_ltdl_install+set}" = set; then
9671 enableval=$enable_ltdl_install;
9677 if test x"${enable_ltdl_install-no}" != xno; then
9679 INSTALL_LTDL_FALSE='#'
9681 INSTALL_LTDL_TRUE='#'
9687 if test x"${enable_ltdl_convenience-no}" != xno; then
9688 CONVENIENCE_LTDL_TRUE=
9689 CONVENIENCE_LTDL_FALSE='#'
9691 CONVENIENCE_LTDL_TRUE='#'
9692 CONVENIENCE_LTDL_FALSE=
9696 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9697 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9699 libname_spec='lib$name'
9707 shlibpath_overrides_runpath=unknown
9709 dynamic_linker="$host_os ld.so"
9710 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9711 if test "$GCC" = yes; then
9712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9713 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9714 # if the path contains ";" then we assume it to be the separator
9715 # otherwise default to the standard path separator (i.e. ":") - it is
9716 # assumed that no part of a normal pathname contains ";" but that should
9717 # okay in the real world where ";" in dirpaths is itself problematic.
9718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9723 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9725 need_lib_prefix=unknown
9726 hardcode_into_libs=no
9728 # when you set need_version to no, make sure it does not cause -set_version
9729 # flags to be left without arguments
9730 need_version=unknown
9735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9736 shlibpath_var=LIBPATH
9738 # AIX 3 has no versioning support, so we append a major version to the name.
9739 soname_spec='${libname}${release}${shared_ext}$major'
9746 hardcode_into_libs=yes
9747 if test "$host_cpu" = ia64; then
9748 # AIX 5 supports IA64
9749 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9750 shlibpath_var=LD_LIBRARY_PATH
9752 # With GCC up to 2.95.x, collect2 would create an import file
9753 # for dependence libraries. The import file would start with
9754 # the line `#! .'. This would cause the generated library to
9755 # depend on `.', always an invalid library. This was fixed in
9756 # development snapshots of GCC prior to 3.0.
9758 aix4 | aix4.[01] | aix4.[01].*)
9759 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9761 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9768 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9769 # soname into executable. Probably we can add versioning support to
9770 # collect2, so additional links can be useful in future.
9771 if test "$aix_use_runtimelinking" = yes; then
9772 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9773 # instead of lib<name>.a to let people know that these are not
9774 # typical AIX shared libraries.
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9777 # We preserve .a as extension for shared libraries through AIX4.2
9778 # and later when we are not doing run time linking.
9779 library_names_spec='${libname}${release}.a $libname.a'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9782 shlibpath_var=LIBPATH
9787 library_names_spec='$libname.ixlibrary $libname.a'
9788 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9789 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'
9793 library_names_spec='${libname}${shared_ext}'
9794 dynamic_linker="$host_os ld.so"
9795 shlibpath_var=LIBRARY_PATH
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9804 shlibpath_var=LD_LIBRARY_PATH
9805 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9806 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9807 # the default ld.so.conf also contains /usr/contrib/lib and
9808 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9809 # libtool to hard-code these into programs
9812 cygwin* | mingw* | pw32*)
9813 version_type=windows
9818 case $GCC,$host_os in
9819 yes,cygwin* | yes,mingw* | yes,pw32*)
9820 library_names_spec='$libname.dll.a'
9821 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9822 postinstall_cmds='base_file=`basename \${file}`~
9823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9824 dldir=$destdir/`dirname \$dlpath`~
9825 test -d \$dldir || mkdir -p \$dldir~
9826 $install_prog $dir/$dlname \$dldir/$dlname~
9827 chmod a+x \$dldir/$dlname'
9828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9829 dlpath=$dir/\$dldll~
9831 shlibpath_overrides_runpath=yes
9835 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9836 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9837 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9840 # MinGW DLLs use traditional 'lib' prefix
9841 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9842 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9843 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9844 # It is most probably a Windows format PATH printed by
9845 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9846 # path with ; separators, and with drive letters. We can handle the
9847 # drive letters (cygwin fileutils understands them), so leave them,
9848 # especially as we might pass files found there to a mingw objdump,
9849 # which wouldn't understand a cygwinified path. Ahh.
9850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9856 # pw32 DLLs use 'pw' prefix rather than 'lib'
9857 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9863 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9866 dynamic_linker='Win32 ld.exe'
9867 # FIXME: first we should search . and the directory the executable is in
9871 darwin* | rhapsody*)
9872 dynamic_linker="$host_os dyld"
9876 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9877 soname_spec='${libname}${release}${major}$shared_ext'
9878 shlibpath_overrides_runpath=yes
9879 shlibpath_var=DYLD_LIBRARY_PATH
9880 shrext_cmds='.dylib'
9881 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9882 if test "$GCC" = yes; then
9883 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"`
9885 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9887 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9895 soname_spec='${libname}${release}${shared_ext}$major'
9896 shlibpath_var=LD_LIBRARY_PATH
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9908 soname_spec='${libname}${release}${shared_ext}$major'
9909 shlibpath_var=LD_LIBRARY_PATH
9910 shlibpath_overrides_runpath=no
9911 hardcode_into_libs=yes
9912 dynamic_linker='GNU ld.so'
9915 freebsd* | dragonfly*)
9916 # DragonFly does not have aout. When/if they implement a new
9917 # versioning mechanism, adjust this.
9918 if test -x /usr/bin/objformat; then
9919 objformat=`/usr/bin/objformat`
9922 freebsd[123]*) objformat=aout ;;
9926 version_type=freebsd-$objformat
9927 case $version_type in
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9938 shlibpath_var=LD_LIBRARY_PATH
9941 shlibpath_overrides_runpath=yes
9943 freebsd3.[01]* | freebsdelf3.[01]*)
9944 shlibpath_overrides_runpath=yes
9945 hardcode_into_libs=yes
9947 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9948 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9949 shlibpath_overrides_runpath=no
9950 hardcode_into_libs=yes
9952 freebsd*) # from 4.6 on
9953 shlibpath_overrides_runpath=yes
9954 hardcode_into_libs=yes
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9964 soname_spec='${libname}${release}${shared_ext}$major'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 hardcode_into_libs=yes
9969 hpux9* | hpux10* | hpux11*)
9970 # Give a soname corresponding to the major version so that dld.sl refuses to
9971 # link against other versions.
9978 hardcode_into_libs=yes
9979 dynamic_linker="$host_os dld.so"
9980 shlibpath_var=LD_LIBRARY_PATH
9981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 if test "X$HPUX_IA64_MODE" = X32; then
9985 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9987 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9993 hardcode_into_libs=yes
9994 dynamic_linker="$host_os dld.sl"
9995 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998 soname_spec='${libname}${release}${shared_ext}$major'
9999 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10004 dynamic_linker="$host_os dld.sl"
10005 shlibpath_var=SHLIB_PATH
10006 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008 soname_spec='${libname}${release}${shared_ext}$major'
10011 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10012 postinstall_cmds='chmod 555 $lib'
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10022 shlibpath_var=LD_LIBRARY_PATH
10023 shlibpath_overrides_runpath=no
10024 hardcode_into_libs=yes
10027 irix5* | irix6* | nonstopux*)
10029 nonstopux*) version_type=nonstopux ;;
10031 if test "$lt_cv_prog_gnu_ld" = yes; then
10039 soname_spec='${libname}${release}${shared_ext}$major'
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10042 irix5* | nonstopux*)
10043 libsuff= shlibsuff=
10046 case $LD in # libtool.m4 will add one of these switches to LD
10047 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10048 libsuff= shlibsuff= libmagic=32-bit;;
10049 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10050 libsuff=32 shlibsuff=N32 libmagic=N32;;
10051 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10052 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10053 *) libsuff= shlibsuff= libmagic=never-match;;
10057 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10058 shlibpath_overrides_runpath=no
10059 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10060 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10061 hardcode_into_libs=yes
10064 # No shared lib support for Linux oldld, aout, or coff.
10065 linux*oldld* | linux*aout* | linux*coff*)
10069 # This must be Linux ELF.
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 shlibpath_overrides_runpath=no
10079 # This implies no fast_install, which is unacceptable.
10080 # Some rework will be needed to allow for fast_install
10081 # before this can be enabled.
10082 hardcode_into_libs=yes
10084 # Append ld.so.conf contents to the search path
10085 if test -f /etc/ld.so.conf; then
10086 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' ' '`
10087 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10090 # We used to test for /lib/ld.so.1 and disable shared libraries on
10091 # powerpc, because MkLinux only supported shared libraries with the
10092 # GNU dynamic linker. Since this was broken with cross compilers,
10093 # most powerpc-linux boxes support dynamic linking these days and
10094 # people can always --disable-shared, the test was removed, and we
10095 # assume the GNU/Linux dynamic linker is in use.
10096 dynamic_linker='GNU/Linux ld.so'
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 shlibpath_var=LD_LIBRARY_PATH
10106 shlibpath_overrides_runpath=no
10107 hardcode_into_libs=yes
10108 dynamic_linker='GNU ld.so'
10115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10118 dynamic_linker='NetBSD (a.out) ld.so'
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10121 soname_spec='${libname}${release}${shared_ext}$major'
10122 dynamic_linker='NetBSD ld.elf_so'
10124 shlibpath_var=LD_LIBRARY_PATH
10125 shlibpath_overrides_runpath=yes
10126 hardcode_into_libs=yes
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=yes
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 shlibpath_overrides_runpath=yes
10148 sys_lib_dlsearch_path_spec="/usr/lib"
10150 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10152 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10153 *) need_version=no ;;
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10157 shlibpath_var=LD_LIBRARY_PATH
10158 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10160 openbsd2.[89] | openbsd2.[89].*)
10161 shlibpath_overrides_runpath=no
10164 shlibpath_overrides_runpath=yes
10168 shlibpath_overrides_runpath=yes
10173 libname_spec='$name'
10176 library_names_spec='$libname${shared_ext} $libname.a'
10177 dynamic_linker='OS/2 ld.exe'
10178 shlibpath_var=LIBPATH
10181 osf3* | osf4* | osf5*)
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10189 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 shlibpath_overrides_runpath=yes
10200 hardcode_into_libs=yes
10201 # ldd complains unless libraries are executable
10202 postinstall_cmds='chmod +x $lib'
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10208 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 shlibpath_overrides_runpath=yes
10211 if test "$with_gnu_ld" = yes; then
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 case $host_vendor in
10224 shlibpath_overrides_runpath=no
10226 export_dynamic_flag_spec='${wl}-Blargedynsym'
10227 runpath_var=LD_RUN_PATH
10235 shlibpath_overrides_runpath=no
10236 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10242 if test -d /usr/nec ;then
10244 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10245 soname_spec='$libname${shared_ext}.$major'
10246 shlibpath_var=LD_LIBRARY_PATH
10250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10251 version_type=freebsd-elf
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 hardcode_into_libs=yes
10258 if test "$with_gnu_ld" = yes; then
10259 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10260 shlibpath_overrides_runpath=no
10262 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10263 shlibpath_overrides_runpath=yes
10266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10270 sys_lib_dlsearch_path_spec='/usr/lib'
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10284 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10285 echo "${ECHO_T}$dynamic_linker" >&6; }
10286 test "$dynamic_linker" = no && can_build_shared=no
10288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10289 if test "$GCC" = yes; then
10290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10294 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10295 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10296 if test "${libltdl_cv_shlibext+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 eval libltdl_cv_shlibext=$shrext_cmds
10304 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10305 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10306 if test -n "$libltdl_cv_shlibext"; then
10308 cat >>confdefs.h <<_ACEOF
10309 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10315 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10316 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10317 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 libltdl_cv_shlibpath_var="$shlibpath_var"
10322 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10323 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10324 if test -n "$libltdl_cv_shlibpath_var"; then
10326 cat >>confdefs.h <<_ACEOF
10327 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10333 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10334 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10335 if test "${libltdl_cv_sys_search_path+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10340 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10341 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10342 if test -n "$libltdl_cv_sys_search_path"; then
10344 for dir in $libltdl_cv_sys_search_path; do
10345 if test -z "$sys_search_path"; then
10346 sys_search_path="$dir"
10348 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10352 cat >>confdefs.h <<_ACEOF
10353 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10358 { echo "$as_me:$LINENO: checking for objdir" >&5
10359 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10360 if test "${libltdl_cv_objdir+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 libltdl_cv_objdir="$objdir"
10364 if test -n "$objdir"; then
10367 rm -f .libs 2>/dev/null
10368 mkdir .libs 2>/dev/null
10369 if test -d .libs; then
10370 libltdl_cv_objdir=.libs
10372 # MS-DOS does not allow filenames that begin with a dot.
10373 libltdl_cv_objdir=_libs
10375 rmdir .libs 2>/dev/null
10379 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10380 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10382 cat >>confdefs.h <<_ACEOF
10383 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10391 # Check for command to grab the raw symbol name followed by C symbol from nm.
10392 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10393 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10394 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 # These are sane defaults that work on at least a few old systems.
10399 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10401 # Character class describing NM global symbol codes.
10402 symcode='[BCDEGRST]'
10404 # Regexp to match symbols that can be accessed directly from C.
10405 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10407 # Transform an extracted symbol line into a proper C declaration
10408 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10410 # Transform an extracted symbol line into symbol name and symbol address
10411 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'"
10413 # Define system-specific variables.
10418 cygwin* | mingw* | pw32*)
10419 symcode='[ABCDGISTW]'
10421 hpux*) # Its linker distinguishes data from code symbols
10422 if test "$host_cpu" = ia64; then
10423 symcode='[ABCDEGRST]'
10425 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10426 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'"
10429 if test "$host_cpu" = ia64; then
10430 symcode='[ABCDGIRSTW]'
10431 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10432 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'"
10435 irix* | nonstopux*)
10436 symcode='[BCDEGRST]'
10439 symcode='[BCDEGQRST]'
10450 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10458 # Handle CRLF in mingw tool chain
10462 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10466 # If we're using GNU nm, then use its standard symbol codes.
10467 case `$NM -V 2>&1` in
10468 *GNU* | *'with BFD'*)
10469 symcode='[ABCDGIRSTW]' ;;
10472 # Try without a prefix undercore, then with it.
10473 for ac_symprfx in "" "_"; do
10475 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10476 symxfrm="\\1 $ac_symprfx\\2 \\2"
10478 # Write the raw and C identifiers.
10479 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10481 # Check to see that the pipe works correctly.
10485 cat > conftest.$ac_ext <<EOF
10490 void nm_test_func(){}
10494 int main(){nm_test_var='a';nm_test_func();return(0);}
10497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10498 (eval $ac_compile) 2>&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; then
10502 # Now try to grab the symbols.
10504 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10505 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } && test -s "$nlist"; then
10509 # Try sorting and uniquifying the output.
10510 if sort "$nlist" | uniq > "$nlist"T; then
10511 mv -f "$nlist"T "$nlist"
10516 # Make sure that we snagged all the symbols we need.
10517 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10518 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10519 cat <<EOF > conftest.$ac_ext
10525 # Now generate the symbol file.
10526 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10528 cat <<EOF >> conftest.$ac_ext
10529 #if defined (__STDC__) && __STDC__
10530 # define lt_ptr_t void *
10532 # define lt_ptr_t char *
10536 /* The mapping between symbol names and symbols. */
10541 lt_preloaded_symbols[] =
10544 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10545 cat <<\EOF >> conftest.$ac_ext
10553 # Now try linking the two files.
10554 mv conftest.$ac_objext conftstm.$ac_objext
10555 lt_save_LIBS="$LIBS"
10556 lt_save_CFLAGS="$CFLAGS"
10557 LIBS="conftstm.$ac_objext"
10558 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10560 (eval $ac_link) 2>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10566 LIBS="$lt_save_LIBS"
10567 CFLAGS="$lt_save_CFLAGS"
10569 echo "cannot find nm_test_func in $nlist" >&5
10572 echo "cannot find nm_test_var in $nlist" >&5
10575 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10578 echo "$progname: failed program was:" >&5
10579 cat conftest.$ac_ext >&5
10581 rm -f conftest* conftst*
10583 # Do not use the global_symbol_pipe unless it works.
10584 if test "$pipe_works" = yes; then
10587 lt_cv_sys_global_symbol_pipe=
10593 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10594 lt_cv_sys_global_symbol_to_cdecl=
10596 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10597 { echo "$as_me:$LINENO: result: failed" >&5
10598 echo "${ECHO_T}failed" >&6; }
10600 { echo "$as_me:$LINENO: result: ok" >&5
10601 echo "${ECHO_T}ok" >&6; }
10605 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10606 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10607 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10611 libltdl_cv_preloaded_symbols=yes
10613 libltdl_cv_preloaded_symbols=no
10617 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10618 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10619 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10621 cat >>confdefs.h <<\_ACEOF
10622 #define HAVE_PRELOADED_SYMBOLS 1
10630 ac_cpp='$CPP $CPPFLAGS'
10631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10636 { echo "$as_me:$LINENO: checking for shl_load" >&5
10637 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10638 if test "${ac_cv_func_shl_load+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 cat >conftest.$ac_ext <<_ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10647 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10649 #define shl_load innocuous_shl_load
10651 /* System header to define __stub macros and hopefully few prototypes,
10652 which can conflict with char shl_load (); below.
10653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10654 <limits.h> exists even on freestanding compilers. */
10657 # include <limits.h>
10659 # include <assert.h>
10664 /* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
10671 /* The GNU C library defines this for functions which it implements
10672 to always fail with ENOSYS. Some functions are actually named
10673 something starting with __ and the normal name is an alias. */
10674 #if defined __stub_shl_load || defined __stub___shl_load
10681 return shl_load ();
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_link") 2>conftest.er1
10695 grep -v '^ *+' conftest.er1 >conftest.err
10697 cat conftest.err >&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } &&
10700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10701 { (case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706 (eval "$ac_try") 2>&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; } &&
10710 { ac_try='test -s conftest$ac_exeext'
10711 { (case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_try") 2>&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_func_shl_load=yes
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_cv_func_shl_load=no
10728 rm -f core conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10731 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10732 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10733 if test $ac_cv_func_shl_load = yes; then
10735 cat >>confdefs.h <<\_ACEOF
10736 #define HAVE_SHL_LOAD 1
10740 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10741 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10742 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 ac_check_lib_save_LIBS=$LIBS
10747 cat >conftest.$ac_ext <<_ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10754 /* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10764 return shl_load ();
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_link") 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } &&
10783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10784 { (case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_try") 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; } &&
10793 { ac_try='test -s conftest$ac_exeext'
10794 { (case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_try") 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 ac_cv_lib_dld_shl_load=yes
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 ac_cv_lib_dld_shl_load=no
10811 rm -f core conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10813 LIBS=$ac_check_lib_save_LIBS
10815 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10816 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10817 if test $ac_cv_lib_dld_shl_load = yes; then
10819 cat >>confdefs.h <<\_ACEOF
10820 #define HAVE_SHL_LOAD 1
10823 LIBADD_DL="$LIBADD_DL -ldld"
10825 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10826 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10827 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 ac_check_lib_save_LIBS=$LIBS
10832 cat >conftest.$ac_ext <<_ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10839 /* Override any GCC internal prototype to avoid an error.
10840 Use char because int might match the return type of a GCC
10841 builtin and then its argument prototype would still apply. */
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (ac_try="$ac_link"
10856 case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_link") 2>conftest.er1
10863 grep -v '^ *+' conftest.er1 >conftest.err
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869 { (case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest$ac_exeext'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 ac_cv_lib_dl_dlopen=yes
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 ac_cv_lib_dl_dlopen=no
10896 rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
10898 LIBS=$ac_check_lib_save_LIBS
10900 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10901 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10902 if test $ac_cv_lib_dl_dlopen = yes; then
10904 cat >>confdefs.h <<\_ACEOF
10905 #define HAVE_LIBDL 1
10908 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10910 cat >conftest.$ac_ext <<_ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10917 # include <dlfcn.h>
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (ac_try="$ac_link"
10930 case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_link") 2>conftest.er1
10937 grep -v '^ *+' conftest.er1 >conftest.err
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10943 { (case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_try") 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; } &&
10952 { ac_try='test -s conftest$ac_exeext'
10953 { (case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_try") 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10963 cat >>confdefs.h <<\_ACEOF
10964 #define HAVE_LIBDL 1
10966 libltdl_cv_func_dlopen="yes"
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10972 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10973 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 ac_check_lib_save_LIBS=$LIBS
10977 LIBS="-lsvld $LIBS"
10978 cat >conftest.$ac_ext <<_ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
11000 rm -f conftest.$ac_objext conftest$ac_exeext
11001 if { (ac_try="$ac_link"
11002 case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_link") 2>conftest.er1
11009 grep -v '^ *+' conftest.er1 >conftest.err
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11015 { (case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_try") 2>&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; } &&
11024 { ac_try='test -s conftest$ac_exeext'
11025 { (case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_try") 2>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_cv_lib_svld_dlopen=yes
11036 echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11039 ac_cv_lib_svld_dlopen=no
11042 rm -f core conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
11044 LIBS=$ac_check_lib_save_LIBS
11046 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11047 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11048 if test $ac_cv_lib_svld_dlopen = yes; then
11050 cat >>confdefs.h <<\_ACEOF
11051 #define HAVE_LIBDL 1
11054 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11056 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11057 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11058 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 ac_check_lib_save_LIBS=$LIBS
11063 cat >conftest.$ac_ext <<_ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11070 /* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11080 return dld_link ();
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (ac_try="$ac_link"
11087 case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_link") 2>conftest.er1
11094 grep -v '^ *+' conftest.er1 >conftest.err
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11100 { (case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_try") 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest$ac_exeext'
11110 { (case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_try") 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_cv_lib_dld_dld_link=yes
11121 echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11124 ac_cv_lib_dld_dld_link=no
11127 rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
11129 LIBS=$ac_check_lib_save_LIBS
11131 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11132 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11133 if test $ac_cv_lib_dld_dld_link = yes; then
11135 cat >>confdefs.h <<\_ACEOF
11139 LIBADD_DL="$LIBADD_DL -ldld"
11141 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11142 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11143 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 cat >conftest.$ac_ext <<_ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11152 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11154 #define _dyld_func_lookup innocuous__dyld_func_lookup
11156 /* System header to define __stub macros and hopefully few prototypes,
11157 which can conflict with char _dyld_func_lookup (); below.
11158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11159 <limits.h> exists even on freestanding compilers. */
11162 # include <limits.h>
11164 # include <assert.h>
11167 #undef _dyld_func_lookup
11169 /* Override any GCC internal prototype to avoid an error.
11170 Use char because int might match the return type of a GCC
11171 builtin and then its argument prototype would still apply. */
11175 char _dyld_func_lookup ();
11176 /* The GNU C library defines this for functions which it implements
11177 to always fail with ENOSYS. Some functions are actually named
11178 something starting with __ and the normal name is an alias. */
11179 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11186 return _dyld_func_lookup ();
11191 rm -f conftest.$ac_objext conftest$ac_exeext
11192 if { (ac_try="$ac_link"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_link") 2>conftest.er1
11200 grep -v '^ *+' conftest.er1 >conftest.err
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } &&
11205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11206 { (case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_try") 2>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; } &&
11215 { ac_try='test -s conftest$ac_exeext'
11216 { (case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_try") 2>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }; then
11225 ac_cv_func__dyld_func_lookup=yes
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_cv_func__dyld_func_lookup=no
11233 rm -f core conftest.err conftest.$ac_objext \
11234 conftest$ac_exeext conftest.$ac_ext
11236 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11237 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11238 if test $ac_cv_func__dyld_func_lookup = yes; then
11240 cat >>confdefs.h <<\_ACEOF
11241 #define HAVE_DYLD 1
11255 rm -f core conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
11267 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11269 lt_save_LIBS="$LIBS"
11270 LIBS="$LIBS $LIBADD_DL"
11272 for ac_func in dlerror
11274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 cat >conftest.$ac_ext <<_ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11288 #define $ac_func innocuous_$ac_func
11290 /* System header to define __stub macros and hopefully few prototypes,
11291 which can conflict with char $ac_func (); below.
11292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11293 <limits.h> exists even on freestanding compilers. */
11296 # include <limits.h>
11298 # include <assert.h>
11303 /* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11310 /* The GNU C library defines this for functions which it implements
11311 to always fail with ENOSYS. Some functions are actually named
11312 something starting with __ and the normal name is an alias. */
11313 #if defined __stub_$ac_func || defined __stub___$ac_func
11320 return $ac_func ();
11325 rm -f conftest.$ac_objext conftest$ac_exeext
11326 if { (ac_try="$ac_link"
11327 case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_link") 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11340 { (case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_try") 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; } &&
11349 { ac_try='test -s conftest$ac_exeext'
11350 { (case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_try") 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; }; then
11359 eval "$as_ac_var=yes"
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 eval "$as_ac_var=no"
11367 rm -f core conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11370 ac_res=`eval echo '${'$as_ac_var'}'`
11371 { echo "$as_me:$LINENO: result: $ac_res" >&5
11372 echo "${ECHO_T}$ac_res" >&6; }
11373 if test `eval echo '${'$as_ac_var'}'` = yes; then
11374 cat >>confdefs.h <<_ACEOF
11375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11381 LIBS="$lt_save_LIBS"
11384 ac_cpp='$CPP $CPPFLAGS'
11385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11391 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11392 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11393 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11396 ac_cv_sys_symbol_underscore=no
11397 cat > conftest.$ac_ext <<EOF
11398 void nm_test_func(){}
11399 int main(){nm_test_func;return 0;}
11401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11402 (eval $ac_compile) 2>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; then
11406 # Now try to grab the symbols.
11407 ac_nlist=conftest.nm
11408 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11409 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } && test -s "$ac_nlist"; then
11413 # See whether the symbols have a leading underscore.
11414 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11415 ac_cv_sys_symbol_underscore=yes
11417 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11420 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11424 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11427 echo "configure: failed program was:" >&5
11433 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11434 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11437 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11438 if test x"$libltdl_cv_func_dlopen" = xyes ||
11439 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11440 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11441 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11442 if test "${libltdl_cv_need_uscore+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 libltdl_cv_need_uscore=unknown
11447 LIBS="$LIBS $LIBADD_DL"
11448 if test "$cross_compiling" = yes; then :
11449 libltdl_cv_need_uscore=cross
11451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11452 lt_status=$lt_dlunknown
11453 cat > conftest.$ac_ext <<EOF
11454 #line 11454 "configure"
11455 #include "confdefs.h"
11464 # define LT_DLGLOBAL RTLD_GLOBAL
11467 # define LT_DLGLOBAL DL_GLOBAL
11469 # define LT_DLGLOBAL 0
11473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11474 find out it does not work in some platform. */
11475 #ifndef LT_DLLAZY_OR_NOW
11477 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11480 # define LT_DLLAZY_OR_NOW DL_LAZY
11483 # define LT_DLLAZY_OR_NOW RTLD_NOW
11486 # define LT_DLLAZY_OR_NOW DL_NOW
11488 # define LT_DLLAZY_OR_NOW 0
11496 extern "C" void exit (int);
11499 void fnord() { int i=42;}
11502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11503 int status = $lt_dlunknown;
11507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11509 /* dlclose (self); */
11517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11518 (eval $ac_link) 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11522 (./conftest; exit; ) >&5 2>/dev/null
11524 case x$lt_status in
11525 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11526 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11527 x$lt_dlunknown|x*) ;;
11530 # compilation failed
11539 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11540 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11544 if test x"$libltdl_cv_need_uscore" = xyes; then
11546 cat >>confdefs.h <<\_ACEOF
11547 #define NEED_USCORE 1
11553 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11554 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11555 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 # PORTME does your system automatically load deplibs for dlopen?
11559 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11560 # For now, we just catch OSes we know something about -- in the
11561 # future, we'll try test this programmatically.
11562 libltdl_cv_sys_dlopen_deplibs=unknown
11564 aix3*|aix4.1.*|aix4.2.*)
11565 # Unknown whether this is true for these versions of AIX, but
11566 # we want this `case' here to explicitly catch those versions.
11567 libltdl_cv_sys_dlopen_deplibs=unknown
11570 libltdl_cv_sys_dlopen_deplibs=yes
11573 # Assuming the user has installed a libdl from somewhere, this is true
11574 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11575 libltdl_cv_sys_dlopen_deplibs=yes
11577 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11578 # GNU and its variants, using gnu ld.so (Glibc)
11579 libltdl_cv_sys_dlopen_deplibs=yes
11582 libltdl_cv_sys_dlopen_deplibs=yes
11585 libltdl_cv_sys_dlopen_deplibs=yes
11587 irix[12345]*|irix6.[01]*)
11588 # Catch all versions of IRIX before 6.2, and indicate that we don't
11589 # know how it worked for any of those versions.
11590 libltdl_cv_sys_dlopen_deplibs=unknown
11593 # The case above catches anything before 6.2, and it's known that
11594 # at 6.2 and later dlopen does load deplibs.
11595 libltdl_cv_sys_dlopen_deplibs=yes
11598 libltdl_cv_sys_dlopen_deplibs=yes
11601 libltdl_cv_sys_dlopen_deplibs=yes
11604 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11605 # it did *not* use an RPATH in a shared library to find objects the
11606 # library depends on, so we explictly say `no'.
11607 libltdl_cv_sys_dlopen_deplibs=no
11609 osf5.0|osf5.0a|osf5.1)
11610 # dlopen *does* load deplibs and with the right loader patch applied
11611 # it even uses RPATH in a shared library to search for shared objects
11612 # that the library depends on, but there's no easy way to know if that
11613 # patch is installed. Since this is the case, all we can really
11614 # say is unknown -- it depends on the patch being installed. If
11615 # it is, this changes to `yes'. Without it, it would be `no'.
11616 libltdl_cv_sys_dlopen_deplibs=unknown
11619 # the two cases above should catch all versions of osf <= 5.1. Read
11620 # the comments above for what we know about them.
11621 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11622 # is used to find them so we can finally say `yes'.
11623 libltdl_cv_sys_dlopen_deplibs=yes
11626 libltdl_cv_sys_dlopen_deplibs=yes
11628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11629 libltdl_cv_sys_dlopen_deplibs=yes
11634 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11635 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11636 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11638 cat >>confdefs.h <<\_ACEOF
11639 #define LTDL_DLOPEN_DEPLIBS 1
11645 for ac_header in argz.h
11647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11654 ac_res=`eval echo '${'$as_ac_Header'}'`
11655 { echo "$as_me:$LINENO: result: $ac_res" >&5
11656 echo "${ECHO_T}$ac_res" >&6; }
11658 # Is the header compilable?
11659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11661 cat >conftest.$ac_ext <<_ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 $ac_includes_default
11668 #include <$ac_header>
11670 rm -f conftest.$ac_objext
11671 if { (ac_try="$ac_compile"
11672 case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_compile") 2>conftest.er1
11679 grep -v '^ *+' conftest.er1 >conftest.err
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11685 { (case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_try") 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_try") 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_header_compiler=yes
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 ac_header_compiler=no
11712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11714 echo "${ECHO_T}$ac_header_compiler" >&6; }
11716 # Is the header present?
11717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11719 cat >conftest.$ac_ext <<_ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 #include <$ac_header>
11727 if { (ac_try="$ac_cpp conftest.$ac_ext"
11728 case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11735 grep -v '^ *+' conftest.er1 >conftest.err
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } >/dev/null; then
11740 if test -s conftest.err; then
11741 ac_cpp_err=$ac_c_preproc_warn_flag
11742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11749 if test -z "$ac_cpp_err"; then
11750 ac_header_preproc=yes
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11755 ac_header_preproc=no
11758 rm -f conftest.err conftest.$ac_ext
11759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11760 echo "${ECHO_T}$ac_header_preproc" >&6; }
11762 # So? What about this header?
11763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11769 ac_header_preproc=yes
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11785 ## ----------------------------------- ##
11786 ## Report this to llvmbugs@cs.uiuc.edu ##
11787 ## ----------------------------------- ##
11789 ) | sed "s/^/$as_me: WARNING: /" >&2
11792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 eval "$as_ac_Header=\$ac_header_preproc"
11799 ac_res=`eval echo '${'$as_ac_Header'}'`
11800 { echo "$as_me:$LINENO: result: $ac_res" >&5
11801 echo "${ECHO_T}$ac_res" >&6; }
11804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11805 cat >>confdefs.h <<_ACEOF
11806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11814 { echo "$as_me:$LINENO: checking for error_t" >&5
11815 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11816 if test "${ac_cv_type_error_t+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 cat >conftest.$ac_ext <<_ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11829 typedef error_t ac__type_new_;
11833 if ((ac__type_new_ *) 0)
11835 if (sizeof (ac__type_new_))
11841 rm -f conftest.$ac_objext
11842 if { (ac_try="$ac_compile"
11843 case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_compile") 2>conftest.er1
11850 grep -v '^ *+' conftest.er1 >conftest.err
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest.$ac_objext'
11866 { (case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_try") 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 ac_cv_type_error_t=yes
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 ac_cv_type_error_t=no
11883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11885 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11886 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11887 if test $ac_cv_type_error_t = yes; then
11889 cat >>confdefs.h <<_ACEOF
11890 #define HAVE_ERROR_T 1
11896 cat >>confdefs.h <<\_ACEOF
11897 #define error_t int
11908 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 cat >conftest.$ac_ext <<_ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11924 #define $ac_func innocuous_$ac_func
11926 /* System header to define __stub macros and hopefully few prototypes,
11927 which can conflict with char $ac_func (); below.
11928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11929 <limits.h> exists even on freestanding compilers. */
11932 # include <limits.h>
11934 # include <assert.h>
11939 /* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11946 /* The GNU C library defines this for functions which it implements
11947 to always fail with ENOSYS. Some functions are actually named
11948 something starting with __ and the normal name is an alias. */
11949 #if defined __stub_$ac_func || defined __stub___$ac_func
11956 return $ac_func ();
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (ac_try="$ac_link"
11963 case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_link") 2>conftest.er1
11970 grep -v '^ *+' conftest.er1 >conftest.err
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } &&
11975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11976 { (case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest$ac_exeext'
11986 { (case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_try") 2>&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 eval "$as_ac_var=yes"
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 eval "$as_ac_var=no"
12003 rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12006 ac_res=`eval echo '${'$as_ac_var'}'`
12007 { echo "$as_me:$LINENO: result: $ac_res" >&5
12008 echo "${ECHO_T}$ac_res" >&6; }
12009 if test `eval echo '${'$as_ac_var'}'` = yes; then
12010 cat >>confdefs.h <<_ACEOF
12011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12044 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 ac_res=`eval echo '${'$as_ac_Header'}'`
12055 { echo "$as_me:$LINENO: result: $ac_res" >&5
12056 echo "${ECHO_T}$ac_res" >&6; }
12058 # Is the header compilable?
12059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12061 cat >conftest.$ac_ext <<_ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12067 $ac_includes_default
12068 #include <$ac_header>
12070 rm -f conftest.$ac_objext
12071 if { (ac_try="$ac_compile"
12072 case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_compile") 2>conftest.er1
12079 grep -v '^ *+' conftest.er1 >conftest.err
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085 { (case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_try") 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; } &&
12094 { ac_try='test -s conftest.$ac_objext'
12095 { (case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 (eval "$ac_try") 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_header_compiler=yes
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 ac_header_compiler=no
12112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12114 echo "${ECHO_T}$ac_header_compiler" >&6; }
12116 # Is the header present?
12117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12119 cat >conftest.$ac_ext <<_ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 #include <$ac_header>
12127 if { (ac_try="$ac_cpp conftest.$ac_ext"
12128 case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12135 grep -v '^ *+' conftest.er1 >conftest.err
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } >/dev/null; then
12140 if test -s conftest.err; then
12141 ac_cpp_err=$ac_c_preproc_warn_flag
12142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12149 if test -z "$ac_cpp_err"; then
12150 ac_header_preproc=yes
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 ac_header_preproc=no
12158 rm -f conftest.err conftest.$ac_ext
12159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12160 echo "${ECHO_T}$ac_header_preproc" >&6; }
12162 # So? What about this header?
12163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12169 ac_header_preproc=yes
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12185 ## ----------------------------------- ##
12186 ## Report this to llvmbugs@cs.uiuc.edu ##
12187 ## ----------------------------------- ##
12189 ) | sed "s/^/$as_me: WARNING: /" >&2
12192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 eval "$as_ac_Header=\$ac_header_preproc"
12199 ac_res=`eval echo '${'$as_ac_Header'}'`
12200 { echo "$as_me:$LINENO: result: $ac_res" >&5
12201 echo "${ECHO_T}$ac_res" >&6; }
12204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12205 cat >>confdefs.h <<_ACEOF
12206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12217 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 ac_res=`eval echo '${'$as_ac_Header'}'`
12227 { echo "$as_me:$LINENO: result: $ac_res" >&5
12228 echo "${ECHO_T}$ac_res" >&6; }
12230 # Is the header compilable?
12231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12233 cat >conftest.$ac_ext <<_ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 $ac_includes_default
12240 #include <$ac_header>
12242 rm -f conftest.$ac_objext
12243 if { (ac_try="$ac_compile"
12244 case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_compile") 2>conftest.er1
12251 grep -v '^ *+' conftest.er1 >conftest.err
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } &&
12256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12257 { (case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_try") 2>&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; } &&
12266 { ac_try='test -s conftest.$ac_objext'
12267 { (case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_try") 2>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; }; then
12276 ac_header_compiler=yes
12278 echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12281 ac_header_compiler=no
12284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12286 echo "${ECHO_T}$ac_header_compiler" >&6; }
12288 # Is the header present?
12289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12291 cat >conftest.$ac_ext <<_ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297 #include <$ac_header>
12299 if { (ac_try="$ac_cpp conftest.$ac_ext"
12300 case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12307 grep -v '^ *+' conftest.er1 >conftest.err
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } >/dev/null; then
12312 if test -s conftest.err; then
12313 ac_cpp_err=$ac_c_preproc_warn_flag
12314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12321 if test -z "$ac_cpp_err"; then
12322 ac_header_preproc=yes
12324 echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12327 ac_header_preproc=no
12330 rm -f conftest.err conftest.$ac_ext
12331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12332 echo "${ECHO_T}$ac_header_preproc" >&6; }
12334 # So? What about this header?
12335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12341 ac_header_preproc=yes
12344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12357 ## ----------------------------------- ##
12358 ## Report this to llvmbugs@cs.uiuc.edu ##
12359 ## ----------------------------------- ##
12361 ) | sed "s/^/$as_me: WARNING: /" >&2
12364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 eval "$as_ac_Header=\$ac_header_preproc"
12371 ac_res=`eval echo '${'$as_ac_Header'}'`
12372 { echo "$as_me:$LINENO: result: $ac_res" >&5
12373 echo "${ECHO_T}$ac_res" >&6; }
12376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12377 cat >>confdefs.h <<_ACEOF
12378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12387 for ac_header in string.h strings.h
12389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12396 ac_res=`eval echo '${'$as_ac_Header'}'`
12397 { echo "$as_me:$LINENO: result: $ac_res" >&5
12398 echo "${ECHO_T}$ac_res" >&6; }
12400 # Is the header compilable?
12401 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12403 cat >conftest.$ac_ext <<_ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 $ac_includes_default
12410 #include <$ac_header>
12412 rm -f conftest.$ac_objext
12413 if { (ac_try="$ac_compile"
12414 case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_compile") 2>conftest.er1
12421 grep -v '^ *+' conftest.er1 >conftest.err
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } &&
12426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12427 { (case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_try") 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } &&
12436 { ac_try='test -s conftest.$ac_objext'
12437 { (case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_try") 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_header_compiler=yes
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12451 ac_header_compiler=no
12454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12456 echo "${ECHO_T}$ac_header_compiler" >&6; }
12458 # Is the header present?
12459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12461 cat >conftest.$ac_ext <<_ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h. */
12467 #include <$ac_header>
12469 if { (ac_try="$ac_cpp conftest.$ac_ext"
12470 case "(($ac_try" in
12471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12472 *) ac_try_echo=$ac_try;;
12474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12477 grep -v '^ *+' conftest.er1 >conftest.err
12479 cat conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } >/dev/null; then
12482 if test -s conftest.err; then
12483 ac_cpp_err=$ac_c_preproc_warn_flag
12484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12491 if test -z "$ac_cpp_err"; then
12492 ac_header_preproc=yes
12494 echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12497 ac_header_preproc=no
12500 rm -f conftest.err conftest.$ac_ext
12501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12502 echo "${ECHO_T}$ac_header_preproc" >&6; }
12504 # So? What about this header?
12505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12511 ac_header_preproc=yes
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12527 ## ----------------------------------- ##
12528 ## Report this to llvmbugs@cs.uiuc.edu ##
12529 ## ----------------------------------- ##
12531 ) | sed "s/^/$as_me: WARNING: /" >&2
12534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 eval "$as_ac_Header=\$ac_header_preproc"
12541 ac_res=`eval echo '${'$as_ac_Header'}'`
12542 { echo "$as_me:$LINENO: result: $ac_res" >&5
12543 echo "${ECHO_T}$ac_res" >&6; }
12546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12547 cat >>confdefs.h <<_ACEOF
12548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12558 for ac_func in strchr index
12560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12566 cat >conftest.$ac_ext <<_ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12574 #define $ac_func innocuous_$ac_func
12576 /* System header to define __stub macros and hopefully few prototypes,
12577 which can conflict with char $ac_func (); below.
12578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12579 <limits.h> exists even on freestanding compilers. */
12582 # include <limits.h>
12584 # include <assert.h>
12589 /* Override any GCC internal prototype to avoid an error.
12590 Use char because int might match the return type of a GCC
12591 builtin and then its argument prototype would still apply. */
12596 /* The GNU C library defines this for functions which it implements
12597 to always fail with ENOSYS. Some functions are actually named
12598 something starting with __ and the normal name is an alias. */
12599 #if defined __stub_$ac_func || defined __stub___$ac_func
12606 return $ac_func ();
12611 rm -f conftest.$ac_objext conftest$ac_exeext
12612 if { (ac_try="$ac_link"
12613 case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_link") 2>conftest.er1
12620 grep -v '^ *+' conftest.er1 >conftest.err
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12626 { (case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_try") 2>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try='test -s conftest$ac_exeext'
12636 { (case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 eval "$as_ac_var=yes"
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12650 eval "$as_ac_var=no"
12653 rm -f core conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext conftest.$ac_ext
12656 ac_res=`eval echo '${'$as_ac_var'}'`
12657 { echo "$as_me:$LINENO: result: $ac_res" >&5
12658 echo "${ECHO_T}$ac_res" >&6; }
12659 if test `eval echo '${'$as_ac_var'}'` = yes; then
12660 cat >>confdefs.h <<_ACEOF
12661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12669 for ac_func in strrchr rindex
12671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 cat >conftest.$ac_ext <<_ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12685 #define $ac_func innocuous_$ac_func
12687 /* System header to define __stub macros and hopefully few prototypes,
12688 which can conflict with char $ac_func (); below.
12689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12690 <limits.h> exists even on freestanding compilers. */
12693 # include <limits.h>
12695 # include <assert.h>
12700 /* Override any GCC internal prototype to avoid an error.
12701 Use char because int might match the return type of a GCC
12702 builtin and then its argument prototype would still apply. */
12707 /* The GNU C library defines this for functions which it implements
12708 to always fail with ENOSYS. Some functions are actually named
12709 something starting with __ and the normal name is an alias. */
12710 #if defined __stub_$ac_func || defined __stub___$ac_func
12717 return $ac_func ();
12722 rm -f conftest.$ac_objext conftest$ac_exeext
12723 if { (ac_try="$ac_link"
12724 case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_link") 2>conftest.er1
12731 grep -v '^ *+' conftest.er1 >conftest.err
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12737 { (case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_try") 2>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest$ac_exeext'
12747 { (case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752 (eval "$ac_try") 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 eval "$as_ac_var=yes"
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 eval "$as_ac_var=no"
12764 rm -f core conftest.err conftest.$ac_objext \
12765 conftest$ac_exeext conftest.$ac_ext
12767 ac_res=`eval echo '${'$as_ac_var'}'`
12768 { echo "$as_me:$LINENO: result: $ac_res" >&5
12769 echo "${ECHO_T}$ac_res" >&6; }
12770 if test `eval echo '${'$as_ac_var'}'` = yes; then
12771 cat >>confdefs.h <<_ACEOF
12772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12780 for ac_func in memcpy bcopy
12782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 cat >conftest.$ac_ext <<_ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12796 #define $ac_func innocuous_$ac_func
12798 /* System header to define __stub macros and hopefully few prototypes,
12799 which can conflict with char $ac_func (); below.
12800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12801 <limits.h> exists even on freestanding compilers. */
12804 # include <limits.h>
12806 # include <assert.h>
12811 /* Override any GCC internal prototype to avoid an error.
12812 Use char because int might match the return type of a GCC
12813 builtin and then its argument prototype would still apply. */
12818 /* The GNU C library defines this for functions which it implements
12819 to always fail with ENOSYS. Some functions are actually named
12820 something starting with __ and the normal name is an alias. */
12821 #if defined __stub_$ac_func || defined __stub___$ac_func
12828 return $ac_func ();
12833 rm -f conftest.$ac_objext conftest$ac_exeext
12834 if { (ac_try="$ac_link"
12835 case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_link") 2>conftest.er1
12842 grep -v '^ *+' conftest.er1 >conftest.err
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12848 { (case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_try") 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } &&
12857 { ac_try='test -s conftest$ac_exeext'
12858 { (case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_try") 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12867 eval "$as_ac_var=yes"
12869 echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12872 eval "$as_ac_var=no"
12875 rm -f core conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
12878 ac_res=`eval echo '${'$as_ac_var'}'`
12879 { echo "$as_me:$LINENO: result: $ac_res" >&5
12880 echo "${ECHO_T}$ac_res" >&6; }
12881 if test `eval echo '${'$as_ac_var'}'` = yes; then
12882 cat >>confdefs.h <<_ACEOF
12883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12891 for ac_func in memmove strcmp
12893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 cat >conftest.$ac_ext <<_ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12907 #define $ac_func innocuous_$ac_func
12909 /* System header to define __stub macros and hopefully few prototypes,
12910 which can conflict with char $ac_func (); below.
12911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12912 <limits.h> exists even on freestanding compilers. */
12915 # include <limits.h>
12917 # include <assert.h>
12922 /* Override any GCC internal prototype to avoid an error.
12923 Use char because int might match the return type of a GCC
12924 builtin and then its argument prototype would still apply. */
12929 /* The GNU C library defines this for functions which it implements
12930 to always fail with ENOSYS. Some functions are actually named
12931 something starting with __ and the normal name is an alias. */
12932 #if defined __stub_$ac_func || defined __stub___$ac_func
12939 return $ac_func ();
12944 rm -f conftest.$ac_objext conftest$ac_exeext
12945 if { (ac_try="$ac_link"
12946 case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951 (eval "$ac_link") 2>conftest.er1
12953 grep -v '^ *+' conftest.er1 >conftest.err
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12959 { (case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_try") 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; } &&
12968 { ac_try='test -s conftest$ac_exeext'
12969 { (case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_try") 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; }; then
12978 eval "$as_ac_var=yes"
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12983 eval "$as_ac_var=no"
12986 rm -f core conftest.err conftest.$ac_objext \
12987 conftest$ac_exeext conftest.$ac_ext
12989 ac_res=`eval echo '${'$as_ac_var'}'`
12990 { echo "$as_me:$LINENO: result: $ac_res" >&5
12991 echo "${ECHO_T}$ac_res" >&6; }
12992 if test `eval echo '${'$as_ac_var'}'` = yes; then
12993 cat >>confdefs.h <<_ACEOF
12994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13003 for ac_func in closedir opendir readdir
13005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 cat >conftest.$ac_ext <<_ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13019 #define $ac_func innocuous_$ac_func
13021 /* System header to define __stub macros and hopefully few prototypes,
13022 which can conflict with char $ac_func (); below.
13023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13024 <limits.h> exists even on freestanding compilers. */
13027 # include <limits.h>
13029 # include <assert.h>
13034 /* Override any GCC internal prototype to avoid an error.
13035 Use char because int might match the return type of a GCC
13036 builtin and then its argument prototype would still apply. */
13041 /* The GNU C library defines this for functions which it implements
13042 to always fail with ENOSYS. Some functions are actually named
13043 something starting with __ and the normal name is an alias. */
13044 #if defined __stub_$ac_func || defined __stub___$ac_func
13051 return $ac_func ();
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (ac_try="$ac_link"
13058 case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_link") 2>conftest.er1
13065 grep -v '^ *+' conftest.er1 >conftest.err
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13071 { (case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_try") 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; } &&
13080 { ac_try='test -s conftest$ac_exeext'
13081 { (case "(($ac_try" in
13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086 (eval "$ac_try") 2>&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
13090 eval "$as_ac_var=yes"
13092 echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13095 eval "$as_ac_var=no"
13098 rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13101 ac_res=`eval echo '${'$as_ac_var'}'`
13102 { echo "$as_me:$LINENO: result: $ac_res" >&5
13103 echo "${ECHO_T}$ac_res" >&6; }
13104 if test `eval echo '${'$as_ac_var'}'` = yes; then
13105 cat >>confdefs.h <<_ACEOF
13106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13114 if test "$WITH_LLVMGCCDIR" = "default" ; then
13115 LLVMGCC="llvm-gcc${EXEEXT}"
13116 LLVMGXX="llvm-g++${EXEEXT}"
13117 LLVMGCCCOMMAND="$LLVMGCC"
13118 LLVMGXXCOMMAND="$LLVMGXX"
13119 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13121 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13123 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13124 set dummy $LLVMGCC; ac_word=$2
13125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13127 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136 for as_dir in $PATH
13139 test -z "$as_dir" && as_dir=.
13140 for ac_exec_ext in '' $ac_executable_extensions; do
13141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13142 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13153 LLVMGCC=$ac_cv_path_LLVMGCC
13154 if test -n "$LLVMGCC"; then
13155 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13156 echo "${ECHO_T}$LLVMGCC" >&6; }
13158 { echo "$as_me:$LINENO: result: no" >&5
13159 echo "${ECHO_T}no" >&6; }
13163 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13164 set dummy $LLVMGXX; ac_word=$2
13165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13167 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13176 for as_dir in $PATH
13179 test -z "$as_dir" && as_dir=.
13180 for ac_exec_ext in '' $ac_executable_extensions; do
13181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13182 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13193 LLVMGXX=$ac_cv_path_LLVMGXX
13194 if test -n "$LLVMGXX"; then
13195 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13196 echo "${ECHO_T}$LLVMGXX" >&6; }
13198 { echo "$as_me:$LINENO: result: no" >&5
13199 echo "${ECHO_T}no" >&6; }
13204 if test -z "$LLVMGCC"; then
13205 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13206 LLVMGCCCOMMAND="$LLVMGCC"
13208 if test -z "$LLVMGXX"; then
13209 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13210 LLVMGXXCOMMAND="$LLVMGXX"
13217 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13219 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13224 # Check whether --with-llvmcc was given.
13225 if test "${with_llvmcc+set}" = set; then
13226 withval=$with_llvmcc;
13231 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13232 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13233 if test "$with_llvmcc" != "check"; then
13234 if (test "$with_llvmcc" != "llvm-gcc" &&
13235 test "$with_llvmcc" != "clang" &&
13236 test "$with_llvmcc" != "none"); then
13237 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13238 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13239 { (exit 1); exit 1; }; }
13241 WITH_LLVMCC="$with_llvmcc"
13242 elif test -n "$LLVMGCC"; then
13243 WITH_LLVMCC=llvm-gcc
13244 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13249 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13250 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13251 LLVMCC_OPTION=$WITH_LLVMCC
13254 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13255 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13268 if test "$GCC" != "yes" && test "$ICC" != "yes"
13270 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13271 echo "$as_me: error: gcc|icc required but not found" >&2;}
13272 { (exit 1); exit 1; }; }
13275 if test "$GXX" != "yes" && test "$IXX" != "yes"
13277 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13278 echo "$as_me: error: g++|icc required but not found" >&2;}
13279 { (exit 1); exit 1; }; }
13282 if test "$GCC" = "yes"
13284 cat >conftest.$ac_ext <<_ACEOF
13285 #if !defined(__GNUC__) || __GNUC__ < 3
13286 #error Unsupported GCC version
13290 rm -f conftest.$ac_objext
13291 if { (ac_try="$ac_compile"
13292 case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_compile") 2>conftest.er1
13299 grep -v '^ *+' conftest.er1 >conftest.err
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13305 { (case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_try") 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; } &&
13314 { ac_try='test -s conftest.$ac_objext'
13315 { (case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_try") 2>&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; }; then
13326 echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13329 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13330 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13331 { (exit 1); exit 1; }; }
13334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337 if test -z "$llvm_cv_gnu_make_command"
13339 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13340 echo "$as_me: error: GNU Make required but not found" >&2;}
13341 { (exit 1); exit 1; }; }
13344 { echo "$as_me:$LINENO: result: ok" >&5
13345 echo "${ECHO_T}ok" >&6; }
13347 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13348 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13349 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13351 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13353 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13354 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13358 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13359 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13360 if test "${ac_cv_lib_m_sin+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 ac_check_lib_save_LIBS=$LIBS
13365 cat >conftest.$ac_ext <<_ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13372 /* Override any GCC internal prototype to avoid an error.
13373 Use char because int might match the return type of a GCC
13374 builtin and then its argument prototype would still apply. */
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (ac_try="$ac_link"
13389 case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_link") 2>conftest.er1
13396 grep -v '^ *+' conftest.er1 >conftest.err
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } &&
13401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13402 { (case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_try") 2>&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; } &&
13411 { ac_try='test -s conftest$ac_exeext'
13412 { (case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_try") 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_cv_lib_m_sin=yes
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13429 rm -f core conftest.err conftest.$ac_objext \
13430 conftest$ac_exeext conftest.$ac_ext
13431 LIBS=$ac_check_lib_save_LIBS
13433 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13434 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13435 if test $ac_cv_lib_m_sin = yes; then
13436 cat >>confdefs.h <<_ACEOF
13437 #define HAVE_LIBM 1
13444 if test "$llvm_cv_os_type" = "MingW" ; then
13446 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13447 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13448 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 ac_check_lib_save_LIBS=$LIBS
13452 LIBS="-limagehlp $LIBS"
13453 cat >conftest.$ac_ext <<_ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13469 rm -f conftest.$ac_objext conftest$ac_exeext
13470 if { (ac_try="$ac_link"
13471 case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_link") 2>conftest.er1
13478 grep -v '^ *+' conftest.er1 >conftest.err
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13484 { (case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_try") 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest$ac_exeext'
13494 { (case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_try") 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; }; then
13503 ac_cv_lib_imagehlp_main=yes
13505 echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13508 ac_cv_lib_imagehlp_main=no
13511 rm -f core conftest.err conftest.$ac_objext \
13512 conftest$ac_exeext conftest.$ac_ext
13513 LIBS=$ac_check_lib_save_LIBS
13515 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13516 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13517 if test $ac_cv_lib_imagehlp_main = yes; then
13518 cat >>confdefs.h <<_ACEOF
13519 #define HAVE_LIBIMAGEHLP 1
13522 LIBS="-limagehlp $LIBS"
13527 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13528 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13529 if test "${ac_cv_lib_psapi_main+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 ac_check_lib_save_LIBS=$LIBS
13533 LIBS="-lpsapi $LIBS"
13534 cat >conftest.$ac_ext <<_ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (ac_try="$ac_link"
13552 case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_link") 2>conftest.er1
13559 grep -v '^ *+' conftest.er1 >conftest.err
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13565 { (case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest$ac_exeext'
13575 { (case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_try") 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 ac_cv_lib_psapi_main=yes
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13589 ac_cv_lib_psapi_main=no
13592 rm -f core conftest.err conftest.$ac_objext \
13593 conftest$ac_exeext conftest.$ac_ext
13594 LIBS=$ac_check_lib_save_LIBS
13596 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13597 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13598 if test $ac_cv_lib_psapi_main = yes; then
13599 cat >>confdefs.h <<_ACEOF
13600 #define HAVE_LIBPSAPI 1
13603 LIBS="-lpsapi $LIBS"
13609 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13610 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13611 if test "${ac_cv_search_dlopen+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13614 ac_func_search_save_LIBS=$LIBS
13615 cat >conftest.$ac_ext <<_ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13622 /* Override any GCC internal prototype to avoid an error.
13623 Use char because int might match the return type of a GCC
13624 builtin and then its argument prototype would still apply. */
13637 for ac_lib in '' dl; do
13638 if test -z "$ac_lib"; then
13639 ac_res="none required"
13642 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13644 rm -f conftest.$ac_objext conftest$ac_exeext
13645 if { (ac_try="$ac_link"
13646 case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_link") 2>conftest.er1
13653 grep -v '^ *+' conftest.er1 >conftest.err
13655 cat conftest.err >&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } &&
13658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13659 { (case "(($ac_try" in
13660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661 *) ac_try_echo=$ac_try;;
13663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13664 (eval "$ac_try") 2>&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; } &&
13668 { ac_try='test -s conftest$ac_exeext'
13669 { (case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_try") 2>&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; }; then
13678 ac_cv_search_dlopen=$ac_res
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13686 rm -f core conftest.err conftest.$ac_objext \
13688 if test "${ac_cv_search_dlopen+set}" = set; then
13692 if test "${ac_cv_search_dlopen+set}" = set; then
13695 ac_cv_search_dlopen=no
13697 rm conftest.$ac_ext
13698 LIBS=$ac_func_search_save_LIBS
13700 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13701 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13702 ac_res=$ac_cv_search_dlopen
13703 if test "$ac_res" != no; then
13704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13706 cat >>confdefs.h <<\_ACEOF
13707 #define HAVE_DLOPEN 1
13711 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13712 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13716 if test "$llvm_cv_enable_libffi" = "yes" ; then
13717 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13718 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13719 if test "${ac_cv_search_ffi_call+set}" = set; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13722 ac_func_search_save_LIBS=$LIBS
13723 cat >conftest.$ac_ext <<_ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h. */
13730 /* Override any GCC internal prototype to avoid an error.
13731 Use char because int might match the return type of a GCC
13732 builtin and then its argument prototype would still apply. */
13740 return ffi_call ();
13745 for ac_lib in '' ffi; do
13746 if test -z "$ac_lib"; then
13747 ac_res="none required"
13750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13752 rm -f conftest.$ac_objext conftest$ac_exeext
13753 if { (ac_try="$ac_link"
13754 case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_link") 2>conftest.er1
13761 grep -v '^ *+' conftest.er1 >conftest.err
13763 cat conftest.err >&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } &&
13766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13767 { (case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_try") 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; } &&
13776 { ac_try='test -s conftest$ac_exeext'
13777 { (case "(($ac_try" in
13778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779 *) ac_try_echo=$ac_try;;
13781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782 (eval "$ac_try") 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13786 ac_cv_search_ffi_call=$ac_res
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13794 rm -f core conftest.err conftest.$ac_objext \
13796 if test "${ac_cv_search_ffi_call+set}" = set; then
13800 if test "${ac_cv_search_ffi_call+set}" = set; then
13803 ac_cv_search_ffi_call=no
13805 rm conftest.$ac_ext
13806 LIBS=$ac_func_search_save_LIBS
13808 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13809 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13810 ac_res=$ac_cv_search_ffi_call
13811 if test "$ac_res" != no; then
13812 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13814 cat >>confdefs.h <<\_ACEOF
13815 #define HAVE_FFI_CALL 1
13819 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13820 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13821 { (exit 1); exit 1; }; }
13826 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13827 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13828 if test "${ac_cv_search_mallinfo+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 ac_func_search_save_LIBS=$LIBS
13832 cat >conftest.$ac_ext <<_ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13839 /* Override any GCC internal prototype to avoid an error.
13840 Use char because int might match the return type of a GCC
13841 builtin and then its argument prototype would still apply. */
13849 return mallinfo ();
13854 for ac_lib in '' malloc; do
13855 if test -z "$ac_lib"; then
13856 ac_res="none required"
13859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13861 rm -f conftest.$ac_objext conftest$ac_exeext
13862 if { (ac_try="$ac_link"
13863 case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_link") 2>conftest.er1
13870 grep -v '^ *+' conftest.er1 >conftest.err
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13876 { (case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_try") 2>&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; } &&
13885 { ac_try='test -s conftest$ac_exeext'
13886 { (case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_try") 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
13895 ac_cv_search_mallinfo=$ac_res
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13903 rm -f core conftest.err conftest.$ac_objext \
13905 if test "${ac_cv_search_mallinfo+set}" = set; then
13909 if test "${ac_cv_search_mallinfo+set}" = set; then
13912 ac_cv_search_mallinfo=no
13914 rm conftest.$ac_ext
13915 LIBS=$ac_func_search_save_LIBS
13917 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13918 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13919 ac_res=$ac_cv_search_mallinfo
13920 if test "$ac_res" != no; then
13921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13923 cat >>confdefs.h <<\_ACEOF
13924 #define HAVE_MALLINFO 1
13930 if test "$ENABLE_THREADS" -eq 1 ; then
13932 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13933 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13934 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13937 ac_check_lib_save_LIBS=$LIBS
13938 LIBS="-lpthread $LIBS"
13939 cat >conftest.$ac_ext <<_ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13946 /* Override any GCC internal prototype to avoid an error.
13947 Use char because int might match the return type of a GCC
13948 builtin and then its argument prototype would still apply. */
13952 char pthread_mutex_init ();
13956 return pthread_mutex_init ();
13961 rm -f conftest.$ac_objext conftest$ac_exeext
13962 if { (ac_try="$ac_link"
13963 case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_link") 2>conftest.er1
13970 grep -v '^ *+' conftest.er1 >conftest.err
13972 cat conftest.err >&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } &&
13975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13976 { (case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_try") 2>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; } &&
13985 { ac_try='test -s conftest$ac_exeext'
13986 { (case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_try") 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 ac_cv_lib_pthread_pthread_mutex_init=yes
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14000 ac_cv_lib_pthread_pthread_mutex_init=no
14003 rm -f core conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14005 LIBS=$ac_check_lib_save_LIBS
14007 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14008 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14009 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14010 cat >>confdefs.h <<_ACEOF
14011 #define HAVE_LIBPTHREAD 1
14014 LIBS="-lpthread $LIBS"
14018 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14019 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14020 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 ac_func_search_save_LIBS=$LIBS
14024 cat >conftest.$ac_ext <<_ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14031 /* Override any GCC internal prototype to avoid an error.
14032 Use char because int might match the return type of a GCC
14033 builtin and then its argument prototype would still apply. */
14037 char pthread_mutex_lock ();
14041 return pthread_mutex_lock ();
14046 for ac_lib in '' pthread; do
14047 if test -z "$ac_lib"; then
14048 ac_res="none required"
14051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14053 rm -f conftest.$ac_objext conftest$ac_exeext
14054 if { (ac_try="$ac_link"
14055 case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_link") 2>conftest.er1
14062 grep -v '^ *+' conftest.er1 >conftest.err
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
14067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14068 { (case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_try") 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; } &&
14077 { ac_try='test -s conftest$ac_exeext'
14078 { (case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_try") 2>&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 ac_cv_search_pthread_mutex_lock=$ac_res
14089 echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14095 rm -f core conftest.err conftest.$ac_objext \
14097 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14101 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14104 ac_cv_search_pthread_mutex_lock=no
14106 rm conftest.$ac_ext
14107 LIBS=$ac_func_search_save_LIBS
14109 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14110 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14111 ac_res=$ac_cv_search_pthread_mutex_lock
14112 if test "$ac_res" != no; then
14113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14115 cat >>confdefs.h <<\_ACEOF
14116 #define HAVE_PTHREAD_MUTEX_LOCK 1
14121 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14122 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14123 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 ac_func_search_save_LIBS=$LIBS
14127 cat >conftest.$ac_ext <<_ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14134 /* Override any GCC internal prototype to avoid an error.
14135 Use char because int might match the return type of a GCC
14136 builtin and then its argument prototype would still apply. */
14140 char pthread_rwlock_init ();
14144 return pthread_rwlock_init ();
14149 for ac_lib in '' pthread; do
14150 if test -z "$ac_lib"; then
14151 ac_res="none required"
14154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14156 rm -f conftest.$ac_objext conftest$ac_exeext
14157 if { (ac_try="$ac_link"
14158 case "(($ac_try" in
14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160 *) ac_try_echo=$ac_try;;
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_link") 2>conftest.er1
14165 grep -v '^ *+' conftest.er1 >conftest.err
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest$ac_exeext'
14181 { (case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_try") 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 ac_cv_search_pthread_rwlock_init=$ac_res
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14198 rm -f core conftest.err conftest.$ac_objext \
14200 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14204 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14207 ac_cv_search_pthread_rwlock_init=no
14209 rm conftest.$ac_ext
14210 LIBS=$ac_func_search_save_LIBS
14212 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14213 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14214 ac_res=$ac_cv_search_pthread_rwlock_init
14215 if test "$ac_res" != no; then
14216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14218 cat >>confdefs.h <<\_ACEOF
14219 #define HAVE_PTHREAD_RWLOCK_INIT 1
14224 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14225 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14226 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 ac_func_search_save_LIBS=$LIBS
14230 cat >conftest.$ac_ext <<_ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14237 /* Override any GCC internal prototype to avoid an error.
14238 Use char because int might match the return type of a GCC
14239 builtin and then its argument prototype would still apply. */
14243 char pthread_getspecific ();
14247 return pthread_getspecific ();
14252 for ac_lib in '' pthread; do
14253 if test -z "$ac_lib"; then
14254 ac_res="none required"
14257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14259 rm -f conftest.$ac_objext conftest$ac_exeext
14260 if { (ac_try="$ac_link"
14261 case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_link") 2>conftest.er1
14268 grep -v '^ *+' conftest.er1 >conftest.err
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
14273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14274 { (case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_try") 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest$ac_exeext'
14284 { (case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_try") 2>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_cv_search_pthread_getspecific=$ac_res
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14301 rm -f core conftest.err conftest.$ac_objext \
14303 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14307 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14310 ac_cv_search_pthread_getspecific=no
14312 rm conftest.$ac_ext
14313 LIBS=$ac_func_search_save_LIBS
14315 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14316 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14317 ac_res=$ac_cv_search_pthread_getspecific
14318 if test "$ac_res" != no; then
14319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14321 cat >>confdefs.h <<\_ACEOF
14322 #define HAVE_PTHREAD_GETSPECIFIC 1
14330 # Check whether --with-udis86 was given.
14331 if test "${with_udis86+set}" = set; then
14332 withval=$with_udis86;
14337 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14340 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14341 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14342 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 ac_check_lib_save_LIBS=$LIBS
14346 LIBS="-ludis86 $LIBS"
14347 cat >conftest.$ac_ext <<_ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14354 /* Override any GCC internal prototype to avoid an error.
14355 Use char because int might match the return type of a GCC
14356 builtin and then its argument prototype would still apply. */
14369 rm -f conftest.$ac_objext conftest$ac_exeext
14370 if { (ac_try="$ac_link"
14371 case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_link") 2>conftest.er1
14378 grep -v '^ *+' conftest.er1 >conftest.err
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14384 { (case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_try") 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; } &&
14393 { ac_try='test -s conftest$ac_exeext'
14394 { (case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_try") 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_lib_udis86_ud_init=yes
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_cv_lib_udis86_ud_init=no
14411 rm -f core conftest.err conftest.$ac_objext \
14412 conftest$ac_exeext conftest.$ac_ext
14413 LIBS=$ac_check_lib_save_LIBS
14415 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14416 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14417 if test $ac_cv_lib_udis86_ud_init = yes; then
14418 cat >>confdefs.h <<_ACEOF
14419 #define HAVE_LIBUDIS86 1
14422 LIBS="-ludis86 $LIBS"
14426 echo "Error! You need to have libudis86 around."
14438 cat >>confdefs.h <<_ACEOF
14439 #define USE_UDIS86 $USE_UDIS86
14444 # Check whether --with-oprofile was given.
14445 if test "${with_oprofile+set}" = set; then
14446 withval=$with_oprofile;
14450 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14451 no) llvm_cv_oppath=
14454 *) llvm_cv_oppath="${withval}/lib/oprofile"
14455 CPPFLAGS="-I${withval}/include";;
14457 if test -n "$llvm_cv_oppath" ; then
14458 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14459 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14460 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14461 if test "${ac_cv_search_bfd_init+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 ac_func_search_save_LIBS=$LIBS
14465 cat >conftest.$ac_ext <<_ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14472 /* Override any GCC internal prototype to avoid an error.
14473 Use char because int might match the return type of a GCC
14474 builtin and then its argument prototype would still apply. */
14482 return bfd_init ();
14487 for ac_lib in '' bfd; do
14488 if test -z "$ac_lib"; then
14489 ac_res="none required"
14492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (ac_try="$ac_link"
14496 case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_link") 2>conftest.er1
14503 grep -v '^ *+' conftest.er1 >conftest.err
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
14508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14509 { (case "(($ac_try" in
14510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511 *) ac_try_echo=$ac_try;;
14513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514 (eval "$ac_try") 2>&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; } &&
14518 { ac_try='test -s conftest$ac_exeext'
14519 { (case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_try") 2>&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_cv_search_bfd_init=$ac_res
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14536 rm -f core conftest.err conftest.$ac_objext \
14538 if test "${ac_cv_search_bfd_init+set}" = set; then
14542 if test "${ac_cv_search_bfd_init+set}" = set; then
14545 ac_cv_search_bfd_init=no
14547 rm conftest.$ac_ext
14548 LIBS=$ac_func_search_save_LIBS
14550 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14551 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14552 ac_res=$ac_cv_search_bfd_init
14553 if test "$ac_res" != no; then
14554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14558 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14559 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14560 if test "${ac_cv_search_op_open_agent+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 ac_func_search_save_LIBS=$LIBS
14564 cat >conftest.$ac_ext <<_ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h. */
14571 /* Override any GCC internal prototype to avoid an error.
14572 Use char because int might match the return type of a GCC
14573 builtin and then its argument prototype would still apply. */
14577 char op_open_agent ();
14581 return op_open_agent ();
14586 for ac_lib in '' opagent; do
14587 if test -z "$ac_lib"; then
14588 ac_res="none required"
14591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14593 rm -f conftest.$ac_objext conftest$ac_exeext
14594 if { (ac_try="$ac_link"
14595 case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_link") 2>conftest.er1
14602 grep -v '^ *+' conftest.er1 >conftest.err
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14608 { (case "(($ac_try" in
14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613 (eval "$ac_try") 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; } &&
14617 { ac_try='test -s conftest$ac_exeext'
14618 { (case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_try") 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 ac_cv_search_op_open_agent=$ac_res
14629 echo "$as_me: failed program was:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14635 rm -f core conftest.err conftest.$ac_objext \
14637 if test "${ac_cv_search_op_open_agent+set}" = set; then
14641 if test "${ac_cv_search_op_open_agent+set}" = set; then
14644 ac_cv_search_op_open_agent=no
14646 rm conftest.$ac_ext
14647 LIBS=$ac_func_search_save_LIBS
14649 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14650 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14651 ac_res=$ac_cv_search_op_open_agent
14652 if test "$ac_res" != no; then
14653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14657 echo "Error! You need to have libopagent around."
14662 if test "${ac_cv_header_opagent_h+set}" = set; then
14663 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14664 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14665 if test "${ac_cv_header_opagent_h+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14669 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14671 # Is the header compilable?
14672 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14673 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14674 cat >conftest.$ac_ext <<_ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14680 $ac_includes_default
14681 #include <opagent.h>
14683 rm -f conftest.$ac_objext
14684 if { (ac_try="$ac_compile"
14685 case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_compile") 2>conftest.er1
14692 grep -v '^ *+' conftest.er1 >conftest.err
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } &&
14697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14698 { (case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_try") 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; } &&
14707 { ac_try='test -s conftest.$ac_objext'
14708 { (case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_try") 2>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; }; then
14717 ac_header_compiler=yes
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 ac_header_compiler=no
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14727 echo "${ECHO_T}$ac_header_compiler" >&6; }
14729 # Is the header present?
14730 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14731 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14732 cat >conftest.$ac_ext <<_ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 #include <opagent.h>
14740 if { (ac_try="$ac_cpp conftest.$ac_ext"
14741 case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14748 grep -v '^ *+' conftest.er1 >conftest.err
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } >/dev/null; then
14753 if test -s conftest.err; then
14754 ac_cpp_err=$ac_c_preproc_warn_flag
14755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14762 if test -z "$ac_cpp_err"; then
14763 ac_header_preproc=yes
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14768 ac_header_preproc=no
14771 rm -f conftest.err conftest.$ac_ext
14772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14773 echo "${ECHO_T}$ac_header_preproc" >&6; }
14775 # So? What about this header?
14776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14778 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14779 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14781 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14782 ac_header_preproc=yes
14785 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14786 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14787 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14788 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14789 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14790 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14791 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14792 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14794 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14796 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14798 ## ----------------------------------- ##
14799 ## Report this to llvmbugs@cs.uiuc.edu ##
14800 ## ----------------------------------- ##
14802 ) | sed "s/^/$as_me: WARNING: /" >&2
14805 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14806 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14807 if test "${ac_cv_header_opagent_h+set}" = set; then
14808 echo $ECHO_N "(cached) $ECHO_C" >&6
14810 ac_cv_header_opagent_h=$ac_header_preproc
14812 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14813 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14816 if test $ac_cv_header_opagent_h = yes; then
14820 echo "Error! You need to have opagent.h around."
14836 cat >>confdefs.h <<_ACEOF
14837 #define USE_OPROFILE $USE_OPROFILE
14847 ac_header_dirent=no
14848 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14849 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14850 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14851 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 cat >conftest.$ac_ext <<_ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14861 #include <sys/types.h>
14873 rm -f conftest.$ac_objext
14874 if { (ac_try="$ac_compile"
14875 case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_compile") 2>conftest.er1
14882 grep -v '^ *+' conftest.er1 >conftest.err
14884 cat conftest.err >&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); } &&
14887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14888 { (case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_try") 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903 (eval "$ac_try") 2>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 eval "$as_ac_Header=yes"
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14912 eval "$as_ac_Header=no"
14915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917 ac_res=`eval echo '${'$as_ac_Header'}'`
14918 { echo "$as_me:$LINENO: result: $ac_res" >&5
14919 echo "${ECHO_T}$ac_res" >&6; }
14920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14921 cat >>confdefs.h <<_ACEOF
14922 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14925 ac_header_dirent=$ac_hdr; break
14929 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14930 if test $ac_header_dirent = dirent.h; then
14931 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14932 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14933 if test "${ac_cv_search_opendir+set}" = set; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14936 ac_func_search_save_LIBS=$LIBS
14937 cat >conftest.$ac_ext <<_ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14944 /* Override any GCC internal prototype to avoid an error.
14945 Use char because int might match the return type of a GCC
14946 builtin and then its argument prototype would still apply. */
14959 for ac_lib in '' dir; do
14960 if test -z "$ac_lib"; then
14961 ac_res="none required"
14964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (ac_try="$ac_link"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_link") 2>conftest.er1
14975 grep -v '^ *+' conftest.er1 >conftest.err
14977 cat conftest.err >&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } &&
14980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14981 { (case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_try") 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; } &&
14990 { ac_try='test -s conftest$ac_exeext'
14991 { (case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_try") 2>&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; }; then
15000 ac_cv_search_opendir=$ac_res
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15008 rm -f core conftest.err conftest.$ac_objext \
15010 if test "${ac_cv_search_opendir+set}" = set; then
15014 if test "${ac_cv_search_opendir+set}" = set; then
15017 ac_cv_search_opendir=no
15019 rm conftest.$ac_ext
15020 LIBS=$ac_func_search_save_LIBS
15022 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15023 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15024 ac_res=$ac_cv_search_opendir
15025 if test "$ac_res" != no; then
15026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15031 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15032 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15033 if test "${ac_cv_search_opendir+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 ac_func_search_save_LIBS=$LIBS
15037 cat >conftest.$ac_ext <<_ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15044 /* Override any GCC internal prototype to avoid an error.
15045 Use char because int might match the return type of a GCC
15046 builtin and then its argument prototype would still apply. */
15059 for ac_lib in '' x; do
15060 if test -z "$ac_lib"; then
15061 ac_res="none required"
15064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15066 rm -f conftest.$ac_objext conftest$ac_exeext
15067 if { (ac_try="$ac_link"
15068 case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_link") 2>conftest.er1
15075 grep -v '^ *+' conftest.er1 >conftest.err
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15081 { (case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_try") 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; } &&
15090 { ac_try='test -s conftest$ac_exeext'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_cv_search_opendir=$ac_res
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15108 rm -f core conftest.err conftest.$ac_objext \
15110 if test "${ac_cv_search_opendir+set}" = set; then
15114 if test "${ac_cv_search_opendir+set}" = set; then
15117 ac_cv_search_opendir=no
15119 rm conftest.$ac_ext
15120 LIBS=$ac_func_search_save_LIBS
15122 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15123 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15124 ac_res=$ac_cv_search_opendir
15125 if test "$ac_res" != no; then
15126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15132 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15133 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15134 if test "${ac_cv_header_mmap_anon+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 ac_cpp='$CPP $CPPFLAGS'
15139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15143 cat >conftest.$ac_ext <<_ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15149 #include <sys/mman.h>
15150 #include <unistd.h>
15155 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15160 rm -f conftest.$ac_objext
15161 if { (ac_try="$ac_compile"
15162 case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_compile") 2>conftest.er1
15169 grep -v '^ *+' conftest.er1 >conftest.err
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15175 { (case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180 (eval "$ac_try") 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; } &&
15184 { ac_try='test -s conftest.$ac_objext'
15185 { (case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_try") 2>&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; }; then
15194 ac_cv_header_mmap_anon=yes
15196 echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15199 ac_cv_header_mmap_anon=no
15202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15204 ac_cpp='$CPP $CPPFLAGS'
15205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15211 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15212 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15213 if test "$ac_cv_header_mmap_anon" = yes; then
15215 cat >>confdefs.h <<\_ACEOF
15216 #define HAVE_MMAP_ANONYMOUS 1
15221 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15222 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15223 if test "${ac_cv_header_stat_broken+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 cat >conftest.$ac_ext <<_ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 #include <sys/types.h>
15233 #include <sys/stat.h>
15235 #if defined S_ISBLK && defined S_IFDIR
15236 # if S_ISBLK (S_IFDIR)
15241 #if defined S_ISBLK && defined S_IFCHR
15242 # if S_ISBLK (S_IFCHR)
15247 #if defined S_ISLNK && defined S_IFREG
15248 # if S_ISLNK (S_IFREG)
15253 #if defined S_ISSOCK && defined S_IFREG
15254 # if S_ISSOCK (S_IFREG)
15260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15261 $EGREP "You lose" >/dev/null 2>&1; then
15262 ac_cv_header_stat_broken=yes
15264 ac_cv_header_stat_broken=no
15269 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15270 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15271 if test $ac_cv_header_stat_broken = yes; then
15273 cat >>confdefs.h <<\_ACEOF
15274 #define STAT_MACROS_BROKEN 1
15279 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15280 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15281 if test "${ac_cv_header_stdc+set}" = set; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 cat >conftest.$ac_ext <<_ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <stdlib.h>
15291 #include <stdarg.h>
15292 #include <string.h>
15303 rm -f conftest.$ac_objext
15304 if { (ac_try="$ac_compile"
15305 case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_compile") 2>conftest.er1
15312 grep -v '^ *+' conftest.er1 >conftest.err
15314 cat conftest.err >&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } &&
15317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15318 { (case "(($ac_try" in
15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_try") 2>&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; } &&
15327 { ac_try='test -s conftest.$ac_objext'
15328 { (case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_try") 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; }; then
15337 ac_cv_header_stdc=yes
15339 echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15342 ac_cv_header_stdc=no
15345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15347 if test $ac_cv_header_stdc = yes; then
15348 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15349 cat >conftest.$ac_ext <<_ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15355 #include <string.h>
15358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15359 $EGREP "memchr" >/dev/null 2>&1; then
15362 ac_cv_header_stdc=no
15368 if test $ac_cv_header_stdc = yes; then
15369 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15370 cat >conftest.$ac_ext <<_ACEOF
15373 cat confdefs.h >>conftest.$ac_ext
15374 cat >>conftest.$ac_ext <<_ACEOF
15375 /* end confdefs.h. */
15376 #include <stdlib.h>
15379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15380 $EGREP "free" >/dev/null 2>&1; then
15383 ac_cv_header_stdc=no
15389 if test $ac_cv_header_stdc = yes; then
15390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15391 if test "$cross_compiling" = yes; then
15394 cat >conftest.$ac_ext <<_ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15401 #include <stdlib.h>
15402 #if ((' ' & 0x0FF) == 0x020)
15403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15406 # define ISLOWER(c) \
15407 (('a' <= (c) && (c) <= 'i') \
15408 || ('j' <= (c) && (c) <= 'r') \
15409 || ('s' <= (c) && (c) <= 'z'))
15410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15418 for (i = 0; i < 256; i++)
15419 if (XOR (islower (i), ISLOWER (i))
15420 || toupper (i) != TOUPPER (i))
15425 rm -f conftest$ac_exeext
15426 if { (ac_try="$ac_link"
15427 case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_link") 2>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15436 { (case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_try") 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15447 echo "$as_me: program exited with status $ac_status" >&5
15448 echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15451 ( exit $ac_status )
15452 ac_cv_header_stdc=no
15454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15460 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15461 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15462 if test $ac_cv_header_stdc = yes; then
15464 cat >>confdefs.h <<\_ACEOF
15465 #define STDC_HEADERS 1
15470 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15471 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15472 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 cat >conftest.$ac_ext <<_ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15481 #include <sys/types.h>
15482 #include <sys/wait.h>
15483 #ifndef WEXITSTATUS
15484 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15487 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15495 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15500 rm -f conftest.$ac_objext
15501 if { (ac_try="$ac_compile"
15502 case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_compile") 2>conftest.er1
15509 grep -v '^ *+' conftest.er1 >conftest.err
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15515 { (case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_try") 2>&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; } &&
15524 { ac_try='test -s conftest.$ac_objext'
15525 { (case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_try") 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15534 ac_cv_header_sys_wait_h=yes
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 ac_cv_header_sys_wait_h=no
15542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15544 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15545 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15546 if test $ac_cv_header_sys_wait_h = yes; then
15548 cat >>confdefs.h <<\_ACEOF
15549 #define HAVE_SYS_WAIT_H 1
15554 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15555 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15556 if test "${ac_cv_header_time+set}" = set; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 cat >conftest.$ac_ext <<_ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h. */
15565 #include <sys/types.h>
15566 #include <sys/time.h>
15572 if ((struct tm *) 0)
15578 rm -f conftest.$ac_objext
15579 if { (ac_try="$ac_compile"
15580 case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_compile") 2>conftest.er1
15587 grep -v '^ *+' conftest.er1 >conftest.err
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } &&
15592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15593 { (case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_try") 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try='test -s conftest.$ac_objext'
15603 { (case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_try") 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 ac_cv_header_time=yes
15614 echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15617 ac_cv_header_time=no
15620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15622 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15623 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15624 if test $ac_cv_header_time = yes; then
15626 cat >>confdefs.h <<\_ACEOF
15627 #define TIME_WITH_SYS_TIME 1
15639 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 ac_res=`eval echo '${'$as_ac_Header'}'`
15649 { echo "$as_me:$LINENO: result: $ac_res" >&5
15650 echo "${ECHO_T}$ac_res" >&6; }
15652 # Is the header compilable?
15653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15655 cat >conftest.$ac_ext <<_ACEOF
15658 cat confdefs.h >>conftest.$ac_ext
15659 cat >>conftest.$ac_ext <<_ACEOF
15660 /* end confdefs.h. */
15661 $ac_includes_default
15662 #include <$ac_header>
15664 rm -f conftest.$ac_objext
15665 if { (ac_try="$ac_compile"
15666 case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_compile") 2>conftest.er1
15673 grep -v '^ *+' conftest.er1 >conftest.err
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15679 { (case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_try") 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try='test -s conftest.$ac_objext'
15689 { (case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_try") 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_header_compiler=yes
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15703 ac_header_compiler=no
15706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15708 echo "${ECHO_T}$ac_header_compiler" >&6; }
15710 # Is the header present?
15711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15713 cat >conftest.$ac_ext <<_ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 #include <$ac_header>
15721 if { (ac_try="$ac_cpp conftest.$ac_ext"
15722 case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15729 grep -v '^ *+' conftest.er1 >conftest.err
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } >/dev/null; then
15734 if test -s conftest.err; then
15735 ac_cpp_err=$ac_c_preproc_warn_flag
15736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15743 if test -z "$ac_cpp_err"; then
15744 ac_header_preproc=yes
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ac_header_preproc=no
15752 rm -f conftest.err conftest.$ac_ext
15753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15754 echo "${ECHO_T}$ac_header_preproc" >&6; }
15756 # So? What about this header?
15757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15763 ac_header_preproc=yes
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15779 ## ----------------------------------- ##
15780 ## Report this to llvmbugs@cs.uiuc.edu ##
15781 ## ----------------------------------- ##
15783 ) | sed "s/^/$as_me: WARNING: /" >&2
15786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 eval "$as_ac_Header=\$ac_header_preproc"
15793 ac_res=`eval echo '${'$as_ac_Header'}'`
15794 { echo "$as_me:$LINENO: result: $ac_res" >&5
15795 echo "${ECHO_T}$ac_res" >&6; }
15798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15799 cat >>confdefs.h <<_ACEOF
15800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15813 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 ac_res=`eval echo '${'$as_ac_Header'}'`
15823 { echo "$as_me:$LINENO: result: $ac_res" >&5
15824 echo "${ECHO_T}$ac_res" >&6; }
15826 # Is the header compilable?
15827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15829 cat >conftest.$ac_ext <<_ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15835 $ac_includes_default
15836 #include <$ac_header>
15838 rm -f conftest.$ac_objext
15839 if { (ac_try="$ac_compile"
15840 case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_compile") 2>conftest.er1
15847 grep -v '^ *+' conftest.er1 >conftest.err
15849 cat conftest.err >&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
15852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15853 { (case "(($ac_try" in
15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858 (eval "$ac_try") 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } &&
15862 { ac_try='test -s conftest.$ac_objext'
15863 { (case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_try") 2>&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15872 ac_header_compiler=yes
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15877 ac_header_compiler=no
15880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15882 echo "${ECHO_T}$ac_header_compiler" >&6; }
15884 # Is the header present?
15885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15887 cat >conftest.$ac_ext <<_ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 #include <$ac_header>
15895 if { (ac_try="$ac_cpp conftest.$ac_ext"
15896 case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15903 grep -v '^ *+' conftest.er1 >conftest.err
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } >/dev/null; then
15908 if test -s conftest.err; then
15909 ac_cpp_err=$ac_c_preproc_warn_flag
15910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15917 if test -z "$ac_cpp_err"; then
15918 ac_header_preproc=yes
15920 echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15923 ac_header_preproc=no
15926 rm -f conftest.err conftest.$ac_ext
15927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15928 echo "${ECHO_T}$ac_header_preproc" >&6; }
15930 # So? What about this header?
15931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15937 ac_header_preproc=yes
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15953 ## ----------------------------------- ##
15954 ## Report this to llvmbugs@cs.uiuc.edu ##
15955 ## ----------------------------------- ##
15957 ) | sed "s/^/$as_me: WARNING: /" >&2
15960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 eval "$as_ac_Header=\$ac_header_preproc"
15967 ac_res=`eval echo '${'$as_ac_Header'}'`
15968 { echo "$as_me:$LINENO: result: $ac_res" >&5
15969 echo "${ECHO_T}$ac_res" >&6; }
15972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15973 cat >>confdefs.h <<_ACEOF
15974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15983 for ac_header in utime.h windows.h
15985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 ac_res=`eval echo '${'$as_ac_Header'}'`
15993 { echo "$as_me:$LINENO: result: $ac_res" >&5
15994 echo "${ECHO_T}$ac_res" >&6; }
15996 # Is the header compilable?
15997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15999 cat >conftest.$ac_ext <<_ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16005 $ac_includes_default
16006 #include <$ac_header>
16008 rm -f conftest.$ac_objext
16009 if { (ac_try="$ac_compile"
16010 case "(($ac_try" in
16011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012 *) ac_try_echo=$ac_try;;
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015 (eval "$ac_compile") 2>conftest.er1
16017 grep -v '^ *+' conftest.er1 >conftest.err
16019 cat conftest.err >&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); } &&
16022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16023 { (case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_try") 2>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; } &&
16032 { ac_try='test -s conftest.$ac_objext'
16033 { (case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_try") 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16042 ac_header_compiler=yes
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 ac_header_compiler=no
16050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16052 echo "${ECHO_T}$ac_header_compiler" >&6; }
16054 # Is the header present?
16055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16057 cat >conftest.$ac_ext <<_ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16063 #include <$ac_header>
16065 if { (ac_try="$ac_cpp conftest.$ac_ext"
16066 case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16073 grep -v '^ *+' conftest.er1 >conftest.err
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } >/dev/null; then
16078 if test -s conftest.err; then
16079 ac_cpp_err=$ac_c_preproc_warn_flag
16080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16087 if test -z "$ac_cpp_err"; then
16088 ac_header_preproc=yes
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16093 ac_header_preproc=no
16096 rm -f conftest.err conftest.$ac_ext
16097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16098 echo "${ECHO_T}$ac_header_preproc" >&6; }
16100 # So? What about this header?
16101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16107 ac_header_preproc=yes
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16123 ## ----------------------------------- ##
16124 ## Report this to llvmbugs@cs.uiuc.edu ##
16125 ## ----------------------------------- ##
16127 ) | sed "s/^/$as_me: WARNING: /" >&2
16130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16135 eval "$as_ac_Header=\$ac_header_preproc"
16137 ac_res=`eval echo '${'$as_ac_Header'}'`
16138 { echo "$as_me:$LINENO: result: $ac_res" >&5
16139 echo "${ECHO_T}$ac_res" >&6; }
16142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16143 cat >>confdefs.h <<_ACEOF
16144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16155 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 ac_res=`eval echo '${'$as_ac_Header'}'`
16165 { echo "$as_me:$LINENO: result: $ac_res" >&5
16166 echo "${ECHO_T}$ac_res" >&6; }
16168 # Is the header compilable?
16169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16171 cat >conftest.$ac_ext <<_ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 $ac_includes_default
16178 #include <$ac_header>
16180 rm -f conftest.$ac_objext
16181 if { (ac_try="$ac_compile"
16182 case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_compile") 2>conftest.er1
16189 grep -v '^ *+' conftest.er1 >conftest.err
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } &&
16194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16195 { (case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200 (eval "$ac_try") 2>&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest.$ac_objext'
16205 { (case "(($ac_try" in
16206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207 *) ac_try_echo=$ac_try;;
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210 (eval "$ac_try") 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_header_compiler=yes
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 ac_header_compiler=no
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16224 echo "${ECHO_T}$ac_header_compiler" >&6; }
16226 # Is the header present?
16227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16229 cat >conftest.$ac_ext <<_ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h. */
16235 #include <$ac_header>
16237 if { (ac_try="$ac_cpp conftest.$ac_ext"
16238 case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16245 grep -v '^ *+' conftest.er1 >conftest.err
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } >/dev/null; then
16250 if test -s conftest.err; then
16251 ac_cpp_err=$ac_c_preproc_warn_flag
16252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16259 if test -z "$ac_cpp_err"; then
16260 ac_header_preproc=yes
16262 echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16265 ac_header_preproc=no
16268 rm -f conftest.err conftest.$ac_ext
16269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16270 echo "${ECHO_T}$ac_header_preproc" >&6; }
16272 # So? What about this header?
16273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16279 ac_header_preproc=yes
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16295 ## ----------------------------------- ##
16296 ## Report this to llvmbugs@cs.uiuc.edu ##
16297 ## ----------------------------------- ##
16299 ) | sed "s/^/$as_me: WARNING: /" >&2
16302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16307 eval "$as_ac_Header=\$ac_header_preproc"
16309 ac_res=`eval echo '${'$as_ac_Header'}'`
16310 { echo "$as_me:$LINENO: result: $ac_res" >&5
16311 echo "${ECHO_T}$ac_res" >&6; }
16314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16315 cat >>confdefs.h <<_ACEOF
16316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16327 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 ac_res=`eval echo '${'$as_ac_Header'}'`
16337 { echo "$as_me:$LINENO: result: $ac_res" >&5
16338 echo "${ECHO_T}$ac_res" >&6; }
16340 # Is the header compilable?
16341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16343 cat >conftest.$ac_ext <<_ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16349 $ac_includes_default
16350 #include <$ac_header>
16352 rm -f conftest.$ac_objext
16353 if { (ac_try="$ac_compile"
16354 case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_compile") 2>conftest.er1
16361 grep -v '^ *+' conftest.er1 >conftest.err
16363 cat conftest.err >&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); } &&
16366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16367 { (case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372 (eval "$ac_try") 2>&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; } &&
16376 { ac_try='test -s conftest.$ac_objext'
16377 { (case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_try") 2>&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; }; then
16386 ac_header_compiler=yes
16388 echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16391 ac_header_compiler=no
16394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16396 echo "${ECHO_T}$ac_header_compiler" >&6; }
16398 # Is the header present?
16399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16401 cat >conftest.$ac_ext <<_ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 #include <$ac_header>
16409 if { (ac_try="$ac_cpp conftest.$ac_ext"
16410 case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16417 grep -v '^ *+' conftest.er1 >conftest.err
16419 cat conftest.err >&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } >/dev/null; then
16422 if test -s conftest.err; then
16423 ac_cpp_err=$ac_c_preproc_warn_flag
16424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16431 if test -z "$ac_cpp_err"; then
16432 ac_header_preproc=yes
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16437 ac_header_preproc=no
16440 rm -f conftest.err conftest.$ac_ext
16441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16442 echo "${ECHO_T}$ac_header_preproc" >&6; }
16444 # So? What about this header?
16445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16451 ac_header_preproc=yes
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16467 ## ----------------------------------- ##
16468 ## Report this to llvmbugs@cs.uiuc.edu ##
16469 ## ----------------------------------- ##
16471 ) | sed "s/^/$as_me: WARNING: /" >&2
16474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16479 eval "$as_ac_Header=\$ac_header_preproc"
16481 ac_res=`eval echo '${'$as_ac_Header'}'`
16482 { echo "$as_me:$LINENO: result: $ac_res" >&5
16483 echo "${ECHO_T}$ac_res" >&6; }
16486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16487 cat >>confdefs.h <<_ACEOF
16488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16496 for ac_header in valgrind/valgrind.h
16498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 ac_res=`eval echo '${'$as_ac_Header'}'`
16506 { echo "$as_me:$LINENO: result: $ac_res" >&5
16507 echo "${ECHO_T}$ac_res" >&6; }
16509 # Is the header compilable?
16510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16512 cat >conftest.$ac_ext <<_ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 $ac_includes_default
16519 #include <$ac_header>
16521 rm -f conftest.$ac_objext
16522 if { (ac_try="$ac_compile"
16523 case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_compile") 2>conftest.er1
16530 grep -v '^ *+' conftest.er1 >conftest.err
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
16535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest.$ac_objext'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_header_compiler=yes
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16560 ac_header_compiler=no
16563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16565 echo "${ECHO_T}$ac_header_compiler" >&6; }
16567 # Is the header present?
16568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16570 cat >conftest.$ac_ext <<_ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16576 #include <$ac_header>
16578 if { (ac_try="$ac_cpp conftest.$ac_ext"
16579 case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16586 grep -v '^ *+' conftest.er1 >conftest.err
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } >/dev/null; then
16591 if test -s conftest.err; then
16592 ac_cpp_err=$ac_c_preproc_warn_flag
16593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16600 if test -z "$ac_cpp_err"; then
16601 ac_header_preproc=yes
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16606 ac_header_preproc=no
16609 rm -f conftest.err conftest.$ac_ext
16610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16611 echo "${ECHO_T}$ac_header_preproc" >&6; }
16613 # So? What about this header?
16614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16620 ac_header_preproc=yes
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16636 ## ----------------------------------- ##
16637 ## Report this to llvmbugs@cs.uiuc.edu ##
16638 ## ----------------------------------- ##
16640 ) | sed "s/^/$as_me: WARNING: /" >&2
16643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 eval "$as_ac_Header=\$ac_header_preproc"
16650 ac_res=`eval echo '${'$as_ac_Header'}'`
16651 { echo "$as_me:$LINENO: result: $ac_res" >&5
16652 echo "${ECHO_T}$ac_res" >&6; }
16655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16656 cat >>confdefs.h <<_ACEOF
16657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16665 for ac_header in fenv.h
16667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 ac_res=`eval echo '${'$as_ac_Header'}'`
16675 { echo "$as_me:$LINENO: result: $ac_res" >&5
16676 echo "${ECHO_T}$ac_res" >&6; }
16678 # Is the header compilable?
16679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16681 cat >conftest.$ac_ext <<_ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 $ac_includes_default
16688 #include <$ac_header>
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_compile") 2>conftest.er1
16699 grep -v '^ *+' conftest.er1 >conftest.err
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705 { (case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_try") 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_header_compiler=yes
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 ac_header_compiler=no
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16734 echo "${ECHO_T}$ac_header_compiler" >&6; }
16736 # Is the header present?
16737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16739 cat >conftest.$ac_ext <<_ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16745 #include <$ac_header>
16747 if { (ac_try="$ac_cpp conftest.$ac_ext"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16755 grep -v '^ *+' conftest.er1 >conftest.err
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } >/dev/null; then
16760 if test -s conftest.err; then
16761 ac_cpp_err=$ac_c_preproc_warn_flag
16762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16769 if test -z "$ac_cpp_err"; then
16770 ac_header_preproc=yes
16772 echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16775 ac_header_preproc=no
16778 rm -f conftest.err conftest.$ac_ext
16779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16780 echo "${ECHO_T}$ac_header_preproc" >&6; }
16782 # So? What about this header?
16783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16789 ac_header_preproc=yes
16792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16805 ## ----------------------------------- ##
16806 ## Report this to llvmbugs@cs.uiuc.edu ##
16807 ## ----------------------------------- ##
16809 ) | sed "s/^/$as_me: WARNING: /" >&2
16812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16817 eval "$as_ac_Header=\$ac_header_preproc"
16819 ac_res=`eval echo '${'$as_ac_Header'}'`
16820 { echo "$as_me:$LINENO: result: $ac_res" >&5
16821 echo "${ECHO_T}$ac_res" >&6; }
16824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16825 cat >>confdefs.h <<_ACEOF
16826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16833 if test "$ENABLE_THREADS" -eq 1 ; then
16835 for ac_header in pthread.h
16837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16842 echo $ECHO_N "(cached) $ECHO_C" >&6
16844 ac_res=`eval echo '${'$as_ac_Header'}'`
16845 { echo "$as_me:$LINENO: result: $ac_res" >&5
16846 echo "${ECHO_T}$ac_res" >&6; }
16848 # Is the header compilable?
16849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16851 cat >conftest.$ac_ext <<_ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 $ac_includes_default
16858 #include <$ac_header>
16860 rm -f conftest.$ac_objext
16861 if { (ac_try="$ac_compile"
16862 case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867 (eval "$ac_compile") 2>conftest.er1
16869 grep -v '^ *+' conftest.er1 >conftest.err
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
16874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16875 { (case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_try") 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; } &&
16884 { ac_try='test -s conftest.$ac_objext'
16885 { (case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_try") 2>&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 ac_header_compiler=yes
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16899 ac_header_compiler=no
16902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16904 echo "${ECHO_T}$ac_header_compiler" >&6; }
16906 # Is the header present?
16907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16909 cat >conftest.$ac_ext <<_ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16915 #include <$ac_header>
16917 if { (ac_try="$ac_cpp conftest.$ac_ext"
16918 case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16925 grep -v '^ *+' conftest.er1 >conftest.err
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } >/dev/null; then
16930 if test -s conftest.err; then
16931 ac_cpp_err=$ac_c_preproc_warn_flag
16932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16939 if test -z "$ac_cpp_err"; then
16940 ac_header_preproc=yes
16942 echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16945 ac_header_preproc=no
16948 rm -f conftest.err conftest.$ac_ext
16949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16950 echo "${ECHO_T}$ac_header_preproc" >&6; }
16952 # So? What about this header?
16953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16959 ac_header_preproc=yes
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16975 ## ----------------------------------- ##
16976 ## Report this to llvmbugs@cs.uiuc.edu ##
16977 ## ----------------------------------- ##
16979 ) | sed "s/^/$as_me: WARNING: /" >&2
16982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 eval "$as_ac_Header=\$ac_header_preproc"
16989 ac_res=`eval echo '${'$as_ac_Header'}'`
16990 { echo "$as_me:$LINENO: result: $ac_res" >&5
16991 echo "${ECHO_T}$ac_res" >&6; }
16994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16995 cat >>confdefs.h <<_ACEOF
16996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17012 if test "$llvm_cv_enable_libffi" = "yes" ; then
17015 for ac_header in ffi.h ffi/ffi.h
17017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17022 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 ac_res=`eval echo '${'$as_ac_Header'}'`
17025 { echo "$as_me:$LINENO: result: $ac_res" >&5
17026 echo "${ECHO_T}$ac_res" >&6; }
17028 # Is the header compilable?
17029 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17031 cat >conftest.$ac_ext <<_ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 $ac_includes_default
17038 #include <$ac_header>
17040 rm -f conftest.$ac_objext
17041 if { (ac_try="$ac_compile"
17042 case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_compile") 2>conftest.er1
17049 grep -v '^ *+' conftest.er1 >conftest.err
17051 cat conftest.err >&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
17054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17055 { (case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_try") 2>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest.$ac_objext'
17065 { (case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_try") 2>&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
17074 ac_header_compiler=yes
17076 echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17079 ac_header_compiler=no
17082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17084 echo "${ECHO_T}$ac_header_compiler" >&6; }
17086 # Is the header present?
17087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17089 cat >conftest.$ac_ext <<_ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h. */
17095 #include <$ac_header>
17097 if { (ac_try="$ac_cpp conftest.$ac_ext"
17098 case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17105 grep -v '^ *+' conftest.er1 >conftest.err
17107 cat conftest.err >&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } >/dev/null; then
17110 if test -s conftest.err; then
17111 ac_cpp_err=$ac_c_preproc_warn_flag
17112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17119 if test -z "$ac_cpp_err"; then
17120 ac_header_preproc=yes
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17125 ac_header_preproc=no
17128 rm -f conftest.err conftest.$ac_ext
17129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17130 echo "${ECHO_T}$ac_header_preproc" >&6; }
17132 # So? What about this header?
17133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17139 ac_header_preproc=yes
17142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17155 ## ----------------------------------- ##
17156 ## Report this to llvmbugs@cs.uiuc.edu ##
17157 ## ----------------------------------- ##
17159 ) | sed "s/^/$as_me: WARNING: /" >&2
17162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17167 eval "$as_ac_Header=\$ac_header_preproc"
17169 ac_res=`eval echo '${'$as_ac_Header'}'`
17170 { echo "$as_me:$LINENO: result: $ac_res" >&5
17171 echo "${ECHO_T}$ac_res" >&6; }
17174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17175 cat >>confdefs.h <<_ACEOF
17176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17186 for ac_header in CrashReporterClient.h
17188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17195 ac_res=`eval echo '${'$as_ac_Header'}'`
17196 { echo "$as_me:$LINENO: result: $ac_res" >&5
17197 echo "${ECHO_T}$ac_res" >&6; }
17199 # Is the header compilable?
17200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 $ac_includes_default
17209 #include <$ac_header>
17211 rm -f conftest.$ac_objext
17212 if { (ac_try="$ac_compile"
17213 case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_compile") 2>conftest.er1
17220 grep -v '^ *+' conftest.er1 >conftest.err
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
17225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17226 { (case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_try") 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
17235 { ac_try='test -s conftest.$ac_objext'
17236 { (case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_try") 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 ac_header_compiler=yes
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 ac_header_compiler=no
17253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17255 echo "${ECHO_T}$ac_header_compiler" >&6; }
17257 # Is the header present?
17258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17260 cat >conftest.$ac_ext <<_ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 #include <$ac_header>
17268 if { (ac_try="$ac_cpp conftest.$ac_ext"
17269 case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17276 grep -v '^ *+' conftest.er1 >conftest.err
17278 cat conftest.err >&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } >/dev/null; then
17281 if test -s conftest.err; then
17282 ac_cpp_err=$ac_c_preproc_warn_flag
17283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17290 if test -z "$ac_cpp_err"; then
17291 ac_header_preproc=yes
17293 echo "$as_me: failed program was:" >&5
17294 sed 's/^/| /' conftest.$ac_ext >&5
17296 ac_header_preproc=no
17299 rm -f conftest.err conftest.$ac_ext
17300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17301 echo "${ECHO_T}$ac_header_preproc" >&6; }
17303 # So? What about this header?
17304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17310 ac_header_preproc=yes
17313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17326 ## ----------------------------------- ##
17327 ## Report this to llvmbugs@cs.uiuc.edu ##
17328 ## ----------------------------------- ##
17330 ) | sed "s/^/$as_me: WARNING: /" >&2
17333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17338 eval "$as_ac_Header=\$ac_header_preproc"
17340 ac_res=`eval echo '${'$as_ac_Header'}'`
17341 { echo "$as_me:$LINENO: result: $ac_res" >&5
17342 echo "${ECHO_T}$ac_res" >&6; }
17345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17346 cat >>confdefs.h <<_ACEOF
17347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17358 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17359 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17360 if test "${ac_cv_huge_val_sanity+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 ac_cpp='$CXXCPP $CPPFLAGS'
17366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17370 ac_save_CXXFLAGS=$CXXFLAGS
17372 if test "$cross_compiling" = yes; then
17373 ac_cv_huge_val_sanity=yes
17375 cat >conftest.$ac_ext <<_ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17385 double x = HUGE_VAL; return x != x;
17390 rm -f conftest$ac_exeext
17391 if { (ac_try="$ac_link"
17392 case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_link") 2>&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17401 { (case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406 (eval "$ac_try") 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 ac_cv_huge_val_sanity=yes
17412 echo "$as_me: program exited with status $ac_status" >&5
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17416 ( exit $ac_status )
17417 ac_cv_huge_val_sanity=no
17419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17423 CXXFLAGS=$ac_save_CXXFLAGS
17425 ac_cpp='$CPP $CPPFLAGS'
17426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17432 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17433 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17434 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17437 { echo "$as_me:$LINENO: checking for pid_t" >&5
17438 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17439 if test "${ac_cv_type_pid_t+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 cat >conftest.$ac_ext <<_ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 $ac_includes_default
17449 typedef pid_t ac__type_new_;
17453 if ((ac__type_new_ *) 0)
17455 if (sizeof (ac__type_new_))
17461 rm -f conftest.$ac_objext
17462 if { (ac_try="$ac_compile"
17463 case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_compile") 2>conftest.er1
17470 grep -v '^ *+' conftest.er1 >conftest.err
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
17475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17476 { (case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_try") 2>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; } &&
17485 { ac_try='test -s conftest.$ac_objext'
17486 { (case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_try") 2>&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; }; then
17495 ac_cv_type_pid_t=yes
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17500 ac_cv_type_pid_t=no
17503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17505 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17506 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17507 if test $ac_cv_type_pid_t = yes; then
17511 cat >>confdefs.h <<_ACEOF
17517 { echo "$as_me:$LINENO: checking for size_t" >&5
17518 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17519 if test "${ac_cv_type_size_t+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 cat >conftest.$ac_ext <<_ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17528 $ac_includes_default
17529 typedef size_t ac__type_new_;
17533 if ((ac__type_new_ *) 0)
17535 if (sizeof (ac__type_new_))
17541 rm -f conftest.$ac_objext
17542 if { (ac_try="$ac_compile"
17543 case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_compile") 2>conftest.er1
17550 grep -v '^ *+' conftest.er1 >conftest.err
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17556 { (case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_try") 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest.$ac_objext'
17566 { (case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_try") 2>&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; }; then
17575 ac_cv_type_size_t=yes
17577 echo "$as_me: failed program was:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17580 ac_cv_type_size_t=no
17583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17585 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17586 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17587 if test $ac_cv_type_size_t = yes; then
17591 cat >>confdefs.h <<_ACEOF
17592 #define size_t unsigned int
17598 cat >>confdefs.h <<_ACEOF
17599 #define RETSIGTYPE void
17602 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17603 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17604 if test "${ac_cv_struct_tm+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17607 cat >conftest.$ac_ext <<_ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h. */
17613 #include <sys/types.h>
17619 struct tm *tp; tp->tm_sec;
17624 rm -f conftest.$ac_objext
17625 if { (ac_try="$ac_compile"
17626 case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_compile") 2>conftest.er1
17633 grep -v '^ *+' conftest.er1 >conftest.err
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
17638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17639 { (case "(($ac_try" in
17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641 *) ac_try_echo=$ac_try;;
17643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644 (eval "$ac_try") 2>&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; } &&
17648 { ac_try='test -s conftest.$ac_objext'
17649 { (case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_try") 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 ac_cv_struct_tm=time.h
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 ac_cv_struct_tm=sys/time.h
17666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17668 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17669 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17670 if test $ac_cv_struct_tm = sys/time.h; then
17672 cat >>confdefs.h <<\_ACEOF
17673 #define TM_IN_SYS_TIME 1
17678 { echo "$as_me:$LINENO: checking for int64_t" >&5
17679 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17680 if test "${ac_cv_type_int64_t+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17690 typedef int64_t ac__type_new_;
17694 if ((ac__type_new_ *) 0)
17696 if (sizeof (ac__type_new_))
17702 rm -f conftest.$ac_objext
17703 if { (ac_try="$ac_compile"
17704 case "(($ac_try" in
17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706 *) ac_try_echo=$ac_try;;
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_compile") 2>conftest.er1
17711 grep -v '^ *+' conftest.er1 >conftest.err
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17717 { (case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_try") 2>&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try='test -s conftest.$ac_objext'
17727 { (case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_try") 2>&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
17736 ac_cv_type_int64_t=yes
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17741 ac_cv_type_int64_t=no
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17746 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17747 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17748 if test $ac_cv_type_int64_t = yes; then
17750 cat >>confdefs.h <<_ACEOF
17751 #define HAVE_INT64_T 1
17756 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17757 echo "$as_me: error: Type int64_t required but not found" >&2;}
17758 { (exit 1); exit 1; }; }
17761 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17762 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17763 if test "${ac_cv_type_uint64_t+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17766 cat >conftest.$ac_ext <<_ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 $ac_includes_default
17773 typedef uint64_t ac__type_new_;
17777 if ((ac__type_new_ *) 0)
17779 if (sizeof (ac__type_new_))
17785 rm -f conftest.$ac_objext
17786 if { (ac_try="$ac_compile"
17787 case "(($ac_try" in
17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792 (eval "$ac_compile") 2>conftest.er1
17794 grep -v '^ *+' conftest.er1 >conftest.err
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } &&
17799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17800 { (case "(($ac_try" in
17801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802 *) ac_try_echo=$ac_try;;
17804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805 (eval "$ac_try") 2>&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; } &&
17809 { ac_try='test -s conftest.$ac_objext'
17810 { (case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_try") 2>&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 ac_cv_type_uint64_t=yes
17821 echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17824 ac_cv_type_uint64_t=no
17827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17829 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17830 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17831 if test $ac_cv_type_uint64_t = yes; then
17833 cat >>confdefs.h <<_ACEOF
17834 #define HAVE_UINT64_T 1
17839 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17840 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17841 if test "${ac_cv_type_u_int64_t+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17844 cat >conftest.$ac_ext <<_ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17850 $ac_includes_default
17851 typedef u_int64_t ac__type_new_;
17855 if ((ac__type_new_ *) 0)
17857 if (sizeof (ac__type_new_))
17863 rm -f conftest.$ac_objext
17864 if { (ac_try="$ac_compile"
17865 case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_compile") 2>conftest.er1
17872 grep -v '^ *+' conftest.er1 >conftest.err
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17878 { (case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_try") 2>&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; } &&
17887 { ac_try='test -s conftest.$ac_objext'
17888 { (case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_try") 2>&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; }; then
17897 ac_cv_type_u_int64_t=yes
17899 echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17902 ac_cv_type_u_int64_t=no
17905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17907 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17908 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17909 if test $ac_cv_type_u_int64_t = yes; then
17911 cat >>confdefs.h <<_ACEOF
17912 #define HAVE_U_INT64_T 1
17917 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17918 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17919 { (exit 1); exit 1; }; }
17933 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17941 cat >conftest.$ac_ext <<_ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17949 #define $ac_func innocuous_$ac_func
17951 /* System header to define __stub macros and hopefully few prototypes,
17952 which can conflict with char $ac_func (); below.
17953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17954 <limits.h> exists even on freestanding compilers. */
17957 # include <limits.h>
17959 # include <assert.h>
17964 /* Override any GCC internal prototype to avoid an error.
17965 Use char because int might match the return type of a GCC
17966 builtin and then its argument prototype would still apply. */
17971 /* The GNU C library defines this for functions which it implements
17972 to always fail with ENOSYS. Some functions are actually named
17973 something starting with __ and the normal name is an alias. */
17974 #if defined __stub_$ac_func || defined __stub___$ac_func
17981 return $ac_func ();
17986 rm -f conftest.$ac_objext conftest$ac_exeext
17987 if { (ac_try="$ac_link"
17988 case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993 (eval "$ac_link") 2>conftest.er1
17995 grep -v '^ *+' conftest.er1 >conftest.err
17997 cat conftest.err >&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } &&
18000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18001 { (case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_try") 2>&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; } &&
18010 { ac_try='test -s conftest$ac_exeext'
18011 { (case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_try") 2>&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; }; then
18020 eval "$as_ac_var=yes"
18022 echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.$ac_ext >&5
18025 eval "$as_ac_var=no"
18028 rm -f core conftest.err conftest.$ac_objext \
18029 conftest$ac_exeext conftest.$ac_ext
18031 ac_res=`eval echo '${'$as_ac_var'}'`
18032 { echo "$as_me:$LINENO: result: $ac_res" >&5
18033 echo "${ECHO_T}$ac_res" >&6; }
18034 if test `eval echo '${'$as_ac_var'}'` = yes; then
18035 cat >>confdefs.h <<_ACEOF
18036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18046 for ac_func in powf fmodf strtof round
18048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 cat >conftest.$ac_ext <<_ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h. */
18060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18062 #define $ac_func innocuous_$ac_func
18064 /* System header to define __stub macros and hopefully few prototypes,
18065 which can conflict with char $ac_func (); below.
18066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18067 <limits.h> exists even on freestanding compilers. */
18070 # include <limits.h>
18072 # include <assert.h>
18077 /* Override any GCC internal prototype to avoid an error.
18078 Use char because int might match the return type of a GCC
18079 builtin and then its argument prototype would still apply. */
18084 /* The GNU C library defines this for functions which it implements
18085 to always fail with ENOSYS. Some functions are actually named
18086 something starting with __ and the normal name is an alias. */
18087 #if defined __stub_$ac_func || defined __stub___$ac_func
18094 return $ac_func ();
18099 rm -f conftest.$ac_objext conftest$ac_exeext
18100 if { (ac_try="$ac_link"
18101 case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_link") 2>conftest.er1
18108 grep -v '^ *+' conftest.er1 >conftest.err
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114 { (case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_try") 2>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest$ac_exeext'
18124 { (case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_try") 2>&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 eval "$as_ac_var=yes"
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18138 eval "$as_ac_var=no"
18141 rm -f core conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
18144 ac_res=`eval echo '${'$as_ac_var'}'`
18145 { echo "$as_me:$LINENO: result: $ac_res" >&5
18146 echo "${ECHO_T}$ac_res" >&6; }
18147 if test `eval echo '${'$as_ac_var'}'` = yes; then
18148 cat >>confdefs.h <<_ACEOF
18149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18160 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18166 echo $ECHO_N "(cached) $ECHO_C" >&6
18168 cat >conftest.$ac_ext <<_ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18176 #define $ac_func innocuous_$ac_func
18178 /* System header to define __stub macros and hopefully few prototypes,
18179 which can conflict with char $ac_func (); below.
18180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18181 <limits.h> exists even on freestanding compilers. */
18184 # include <limits.h>
18186 # include <assert.h>
18191 /* Override any GCC internal prototype to avoid an error.
18192 Use char because int might match the return type of a GCC
18193 builtin and then its argument prototype would still apply. */
18198 /* The GNU C library defines this for functions which it implements
18199 to always fail with ENOSYS. Some functions are actually named
18200 something starting with __ and the normal name is an alias. */
18201 #if defined __stub_$ac_func || defined __stub___$ac_func
18208 return $ac_func ();
18213 rm -f conftest.$ac_objext conftest$ac_exeext
18214 if { (ac_try="$ac_link"
18215 case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_link") 2>conftest.er1
18222 grep -v '^ *+' conftest.er1 >conftest.err
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } &&
18227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18228 { (case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_try") 2>&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; } &&
18237 { ac_try='test -s conftest$ac_exeext'
18238 { (case "(($ac_try" in
18239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18240 *) ac_try_echo=$ac_try;;
18242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18243 (eval "$ac_try") 2>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
18247 eval "$as_ac_var=yes"
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 eval "$as_ac_var=no"
18255 rm -f core conftest.err conftest.$ac_objext \
18256 conftest$ac_exeext conftest.$ac_ext
18258 ac_res=`eval echo '${'$as_ac_var'}'`
18259 { echo "$as_me:$LINENO: result: $ac_res" >&5
18260 echo "${ECHO_T}$ac_res" >&6; }
18261 if test `eval echo '${'$as_ac_var'}'` = yes; then
18262 cat >>confdefs.h <<_ACEOF
18263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18272 for ac_func in isatty mkdtemp mkstemp
18274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18280 cat >conftest.$ac_ext <<_ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h. */
18286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18288 #define $ac_func innocuous_$ac_func
18290 /* System header to define __stub macros and hopefully few prototypes,
18291 which can conflict with char $ac_func (); below.
18292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18293 <limits.h> exists even on freestanding compilers. */
18296 # include <limits.h>
18298 # include <assert.h>
18303 /* Override any GCC internal prototype to avoid an error.
18304 Use char because int might match the return type of a GCC
18305 builtin and then its argument prototype would still apply. */
18310 /* The GNU C library defines this for functions which it implements
18311 to always fail with ENOSYS. Some functions are actually named
18312 something starting with __ and the normal name is an alias. */
18313 #if defined __stub_$ac_func || defined __stub___$ac_func
18320 return $ac_func ();
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_link") 2>conftest.er1
18334 grep -v '^ *+' conftest.er1 >conftest.err
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } &&
18339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18340 { (case "(($ac_try" in
18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345 (eval "$ac_try") 2>&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try='test -s conftest$ac_exeext'
18350 { (case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_try") 2>&5
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; }; then
18359 eval "$as_ac_var=yes"
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18364 eval "$as_ac_var=no"
18367 rm -f core conftest.err conftest.$ac_objext \
18368 conftest$ac_exeext conftest.$ac_ext
18370 ac_res=`eval echo '${'$as_ac_var'}'`
18371 { echo "$as_me:$LINENO: result: $ac_res" >&5
18372 echo "${ECHO_T}$ac_res" >&6; }
18373 if test `eval echo '${'$as_ac_var'}'` = yes; then
18374 cat >>confdefs.h <<_ACEOF
18375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18387 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18395 cat >conftest.$ac_ext <<_ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18403 #define $ac_func innocuous_$ac_func
18405 /* System header to define __stub macros and hopefully few prototypes,
18406 which can conflict with char $ac_func (); below.
18407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18408 <limits.h> exists even on freestanding compilers. */
18411 # include <limits.h>
18413 # include <assert.h>
18418 /* Override any GCC internal prototype to avoid an error.
18419 Use char because int might match the return type of a GCC
18420 builtin and then its argument prototype would still apply. */
18425 /* The GNU C library defines this for functions which it implements
18426 to always fail with ENOSYS. Some functions are actually named
18427 something starting with __ and the normal name is an alias. */
18428 #if defined __stub_$ac_func || defined __stub___$ac_func
18435 return $ac_func ();
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (ac_try="$ac_link"
18442 case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>conftest.er1
18449 grep -v '^ *+' conftest.er1 >conftest.err
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest$ac_exeext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 eval "$as_ac_var=yes"
18476 echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 eval "$as_ac_var=no"
18482 rm -f core conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
18485 ac_res=`eval echo '${'$as_ac_var'}'`
18486 { echo "$as_me:$LINENO: result: $ac_res" >&5
18487 echo "${ECHO_T}$ac_res" >&6; }
18488 if test `eval echo '${'$as_ac_var'}'` = yes; then
18489 cat >>confdefs.h <<_ACEOF
18490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18500 for ac_func in strerror strerror_r strerror_s setenv
18502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 cat >conftest.$ac_ext <<_ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18516 #define $ac_func innocuous_$ac_func
18518 /* System header to define __stub macros and hopefully few prototypes,
18519 which can conflict with char $ac_func (); below.
18520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18521 <limits.h> exists even on freestanding compilers. */
18524 # include <limits.h>
18526 # include <assert.h>
18531 /* Override any GCC internal prototype to avoid an error.
18532 Use char because int might match the return type of a GCC
18533 builtin and then its argument prototype would still apply. */
18538 /* The GNU C library defines this for functions which it implements
18539 to always fail with ENOSYS. Some functions are actually named
18540 something starting with __ and the normal name is an alias. */
18541 #if defined __stub_$ac_func || defined __stub___$ac_func
18548 return $ac_func ();
18553 rm -f conftest.$ac_objext conftest$ac_exeext
18554 if { (ac_try="$ac_link"
18555 case "(($ac_try" in
18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557 *) ac_try_echo=$ac_try;;
18559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560 (eval "$ac_link") 2>conftest.er1
18562 grep -v '^ *+' conftest.er1 >conftest.err
18564 cat conftest.err >&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } &&
18567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18568 { (case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_try") 2>&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest$ac_exeext'
18578 { (case "(($ac_try" in
18579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580 *) ac_try_echo=$ac_try;;
18582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583 (eval "$ac_try") 2>&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; }; then
18587 eval "$as_ac_var=yes"
18589 echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18592 eval "$as_ac_var=no"
18595 rm -f core conftest.err conftest.$ac_objext \
18596 conftest$ac_exeext conftest.$ac_ext
18598 ac_res=`eval echo '${'$as_ac_var'}'`
18599 { echo "$as_me:$LINENO: result: $ac_res" >&5
18600 echo "${ECHO_T}$ac_res" >&6; }
18601 if test `eval echo '${'$as_ac_var'}'` = yes; then
18602 cat >>confdefs.h <<_ACEOF
18603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18613 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18619 echo $ECHO_N "(cached) $ECHO_C" >&6
18621 cat >conftest.$ac_ext <<_ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18629 #define $ac_func innocuous_$ac_func
18631 /* System header to define __stub macros and hopefully few prototypes,
18632 which can conflict with char $ac_func (); below.
18633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18634 <limits.h> exists even on freestanding compilers. */
18637 # include <limits.h>
18639 # include <assert.h>
18644 /* Override any GCC internal prototype to avoid an error.
18645 Use char because int might match the return type of a GCC
18646 builtin and then its argument prototype would still apply. */
18651 /* The GNU C library defines this for functions which it implements
18652 to always fail with ENOSYS. Some functions are actually named
18653 something starting with __ and the normal name is an alias. */
18654 #if defined __stub_$ac_func || defined __stub___$ac_func
18661 return $ac_func ();
18666 rm -f conftest.$ac_objext conftest$ac_exeext
18667 if { (ac_try="$ac_link"
18668 case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_link") 2>conftest.er1
18675 grep -v '^ *+' conftest.er1 >conftest.err
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
18680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18681 { (case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_try") 2>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; } &&
18690 { ac_try='test -s conftest$ac_exeext'
18691 { (case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_try") 2>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 eval "$as_ac_var=yes"
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 eval "$as_ac_var=no"
18708 rm -f core conftest.err conftest.$ac_objext \
18709 conftest$ac_exeext conftest.$ac_ext
18711 ac_res=`eval echo '${'$as_ac_var'}'`
18712 { echo "$as_me:$LINENO: result: $ac_res" >&5
18713 echo "${ECHO_T}$ac_res" >&6; }
18714 if test `eval echo '${'$as_ac_var'}'` = yes; then
18715 cat >>confdefs.h <<_ACEOF
18716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18726 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18734 cat >conftest.$ac_ext <<_ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18742 #define $ac_func innocuous_$ac_func
18744 /* System header to define __stub macros and hopefully few prototypes,
18745 which can conflict with char $ac_func (); below.
18746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18747 <limits.h> exists even on freestanding compilers. */
18750 # include <limits.h>
18752 # include <assert.h>
18757 /* Override any GCC internal prototype to avoid an error.
18758 Use char because int might match the return type of a GCC
18759 builtin and then its argument prototype would still apply. */
18764 /* The GNU C library defines this for functions which it implements
18765 to always fail with ENOSYS. Some functions are actually named
18766 something starting with __ and the normal name is an alias. */
18767 #if defined __stub_$ac_func || defined __stub___$ac_func
18774 return $ac_func ();
18779 rm -f conftest.$ac_objext conftest$ac_exeext
18780 if { (ac_try="$ac_link"
18781 case "(($ac_try" in
18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783 *) ac_try_echo=$ac_try;;
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786 (eval "$ac_link") 2>conftest.er1
18788 grep -v '^ *+' conftest.er1 >conftest.err
18790 cat conftest.err >&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } &&
18793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18794 { (case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_try") 2>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest$ac_exeext'
18804 { (case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_try") 2>&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 eval "$as_ac_var=yes"
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 eval "$as_ac_var=no"
18821 rm -f core conftest.err conftest.$ac_objext \
18822 conftest$ac_exeext conftest.$ac_ext
18824 ac_res=`eval echo '${'$as_ac_var'}'`
18825 { echo "$as_me:$LINENO: result: $ac_res" >&5
18826 echo "${ECHO_T}$ac_res" >&6; }
18827 if test `eval echo '${'$as_ac_var'}'` = yes; then
18828 cat >>confdefs.h <<_ACEOF
18829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18835 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18836 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18837 if test "${llvm_cv_c_printf_a+set}" = set; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18841 ac_cpp='$CPP $CPPFLAGS'
18842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18846 if test "$cross_compiling" = yes; then
18847 llvmac_cv_c_printf_a=no
18849 cat >conftest.$ac_ext <<_ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h. */
18858 #include <stdlib.h>
18864 volatile double A, B;
18868 sprintf(Buffer, "%a", A);
18872 if (A != 0x1.999999999999ap-4)
18879 rm -f conftest$ac_exeext
18880 if { (ac_try="$ac_link"
18881 case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886 (eval "$ac_link") 2>&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 llvm_cv_c_printf_a=yes
18901 echo "$as_me: program exited with status $ac_status" >&5
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ( exit $ac_status )
18906 llvmac_cv_c_printf_a=no
18908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18913 ac_cpp='$CPP $CPPFLAGS'
18914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18919 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18920 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18921 if test "$llvm_cv_c_printf_a" = "yes"; then
18923 cat >>confdefs.h <<\_ACEOF
18924 #define HAVE_PRINTF_A 1
18930 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18931 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18932 if test "${ac_cv_func_rand48+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 ac_cpp='$CXXCPP $CPPFLAGS'
18937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18941 cat >conftest.$ac_ext <<_ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 #include <stdlib.h>
18951 srand48(0);lrand48();drand48();
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_compile") 2>conftest.er1
18965 grep -v '^ *+' conftest.er1 >conftest.err
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18971 { (case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_try") 2>&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest.$ac_objext'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_try") 2>&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 ac_cv_func_rand48=yes
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18995 ac_cv_func_rand48=no
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19000 ac_cpp='$CPP $CPPFLAGS'
19001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19006 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19007 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19009 if test "$ac_cv_func_rand48" = "yes" ; then
19011 cat >>confdefs.h <<\_ACEOF
19012 #define HAVE_RAND48 1
19019 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19020 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19021 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19025 ac_cpp='$CXXCPP $CPPFLAGS'
19026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19030 cat >conftest.$ac_ext <<_ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19045 rm -f conftest.$ac_objext
19046 if { (ac_try="$ac_compile"
19047 case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_compile") 2>conftest.er1
19054 grep -v '^ *+' conftest.er1 >conftest.err
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } &&
19059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19060 { (case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_try") 2>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; } &&
19069 { ac_try='test -s conftest.$ac_objext'
19070 { (case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_try") 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_func_isnan_in_math_h=yes
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19084 ac_cv_func_isnan_in_math_h=no
19087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19089 ac_cpp='$CPP $CPPFLAGS'
19090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19095 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19096 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19099 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19101 cat >>confdefs.h <<\_ACEOF
19102 #define HAVE_ISNAN_IN_MATH_H 1
19107 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19108 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19109 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19113 ac_cpp='$CXXCPP $CPPFLAGS'
19114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19118 cat >conftest.$ac_ext <<_ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19133 rm -f conftest.$ac_objext
19134 if { (ac_try="$ac_compile"
19135 case "(($ac_try" in
19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140 (eval "$ac_compile") 2>conftest.er1
19142 grep -v '^ *+' conftest.er1 >conftest.err
19144 cat conftest.err >&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } &&
19147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19148 { (case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153 (eval "$ac_try") 2>&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); }; } &&
19157 { ac_try='test -s conftest.$ac_objext'
19158 { (case "(($ac_try" in
19159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160 *) ac_try_echo=$ac_try;;
19162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19163 (eval "$ac_try") 2>&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; }; then
19167 ac_cv_func_isnan_in_cmath=yes
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19172 ac_cv_func_isnan_in_cmath=no
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19177 ac_cpp='$CPP $CPPFLAGS'
19178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19183 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19184 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19186 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19188 cat >>confdefs.h <<\_ACEOF
19189 #define HAVE_ISNAN_IN_CMATH 1
19194 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19195 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19196 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19200 ac_cpp='$CXXCPP $CPPFLAGS'
19201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19205 cat >conftest.$ac_ext <<_ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19215 float f; std::isnan(f);
19220 rm -f conftest.$ac_objext
19221 if { (ac_try="$ac_compile"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_compile") 2>conftest.er1
19229 grep -v '^ *+' conftest.er1 >conftest.err
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } &&
19234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19235 { (case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_try") 2>&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; } &&
19244 { ac_try='test -s conftest.$ac_objext'
19245 { (case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_try") 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 ac_cv_func_std_isnan_in_cmath=yes
19256 echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19259 ac_cv_func_std_isnan_in_cmath=no
19262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19264 ac_cpp='$CPP $CPPFLAGS'
19265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19270 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19271 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19273 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19275 cat >>confdefs.h <<\_ACEOF
19276 #define HAVE_STD_ISNAN_IN_CMATH 1
19282 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19283 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19284 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 ac_cpp='$CXXCPP $CPPFLAGS'
19289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19293 cat >conftest.$ac_ext <<_ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19308 rm -f conftest.$ac_objext
19309 if { (ac_try="$ac_compile"
19310 case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_compile") 2>conftest.er1
19317 grep -v '^ *+' conftest.er1 >conftest.err
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19323 { (case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_try") 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest.$ac_objext'
19333 { (case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_try") 2>&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 ac_cv_func_isinf_in_math_h=yes
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19347 ac_cv_func_isinf_in_math_h=no
19350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19352 ac_cpp='$CPP $CPPFLAGS'
19353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19358 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19359 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19361 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19363 cat >>confdefs.h <<\_ACEOF
19364 #define HAVE_ISINF_IN_MATH_H 1
19369 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19370 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19371 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 ac_cpp='$CXXCPP $CPPFLAGS'
19376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19380 cat >conftest.$ac_ext <<_ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_compile") 2>conftest.er1
19404 grep -v '^ *+' conftest.er1 >conftest.err
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } &&
19409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19410 { (case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_try") 2>&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest.$ac_objext'
19420 { (case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_try") 2>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
19429 ac_cv_func_isinf_in_cmath=yes
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19434 ac_cv_func_isinf_in_cmath=no
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439 ac_cpp='$CPP $CPPFLAGS'
19440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19445 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19446 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19448 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19450 cat >>confdefs.h <<\_ACEOF
19451 #define HAVE_ISINF_IN_CMATH 1
19456 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19457 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19458 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 ac_cpp='$CXXCPP $CPPFLAGS'
19463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19467 cat >conftest.$ac_ext <<_ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h. */
19477 float f; std::isinf(f)}
19482 rm -f conftest.$ac_objext
19483 if { (ac_try="$ac_compile"
19484 case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_compile") 2>conftest.er1
19491 grep -v '^ *+' conftest.er1 >conftest.err
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
19496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19497 { (case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_try") 2>&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; } &&
19506 { ac_try='test -s conftest.$ac_objext'
19507 { (case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_try") 2>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19516 ac_cv_func_std_isinf_in_cmath=yes
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19521 ac_cv_func_std_isinf_in_cmath=no
19524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19526 ac_cpp='$CPP $CPPFLAGS'
19527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19532 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19533 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19535 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19537 cat >>confdefs.h <<\_ACEOF
19538 #define HAVE_STD_ISINF_IN_CMATH 1
19543 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19544 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19545 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 ac_cpp='$CXXCPP $CPPFLAGS'
19550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19554 cat >conftest.$ac_ext <<_ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19560 #include <ieeefp.h>
19564 float f; finite(f);
19569 rm -f conftest.$ac_objext
19570 if { (ac_try="$ac_compile"
19571 case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_compile") 2>conftest.er1
19578 grep -v '^ *+' conftest.er1 >conftest.err
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19584 { (case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_try") 2>&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; } &&
19593 { ac_try='test -s conftest.$ac_objext'
19594 { (case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_try") 2>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; }; then
19603 ac_cv_func_finite_in_ieeefp_h=yes
19605 echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19608 ac_cv_func_finite_in_ieeefp_h=no
19611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19613 ac_cpp='$CPP $CPPFLAGS'
19614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19619 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19620 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19622 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19624 cat >>confdefs.h <<\_ACEOF
19625 #define HAVE_FINITE_IN_IEEEFP_H 1
19632 if test "$llvm_cv_platform_type" = "Unix" ; then
19635 for ac_header in stdlib.h unistd.h
19637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 ac_res=`eval echo '${'$as_ac_Header'}'`
19645 { echo "$as_me:$LINENO: result: $ac_res" >&5
19646 echo "${ECHO_T}$ac_res" >&6; }
19648 # Is the header compilable?
19649 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19651 cat >conftest.$ac_ext <<_ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h. */
19657 $ac_includes_default
19658 #include <$ac_header>
19660 rm -f conftest.$ac_objext
19661 if { (ac_try="$ac_compile"
19662 case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_compile") 2>conftest.er1
19669 grep -v '^ *+' conftest.er1 >conftest.err
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
19674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19675 { (case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_try") 2>&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; } &&
19684 { ac_try='test -s conftest.$ac_objext'
19685 { (case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_try") 2>&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 ac_header_compiler=yes
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19699 ac_header_compiler=no
19702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19704 echo "${ECHO_T}$ac_header_compiler" >&6; }
19706 # Is the header present?
19707 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19709 cat >conftest.$ac_ext <<_ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715 #include <$ac_header>
19717 if { (ac_try="$ac_cpp conftest.$ac_ext"
19718 case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19725 grep -v '^ *+' conftest.er1 >conftest.err
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } >/dev/null; then
19730 if test -s conftest.err; then
19731 ac_cpp_err=$ac_c_preproc_warn_flag
19732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19739 if test -z "$ac_cpp_err"; then
19740 ac_header_preproc=yes
19742 echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19745 ac_header_preproc=no
19748 rm -f conftest.err conftest.$ac_ext
19749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19750 echo "${ECHO_T}$ac_header_preproc" >&6; }
19752 # So? What about this header?
19753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19759 ac_header_preproc=yes
19762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19775 ## ----------------------------------- ##
19776 ## Report this to llvmbugs@cs.uiuc.edu ##
19777 ## ----------------------------------- ##
19779 ) | sed "s/^/$as_me: WARNING: /" >&2
19782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19787 eval "$as_ac_Header=\$ac_header_preproc"
19789 ac_res=`eval echo '${'$as_ac_Header'}'`
19790 { echo "$as_me:$LINENO: result: $ac_res" >&5
19791 echo "${ECHO_T}$ac_res" >&6; }
19794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19795 cat >>confdefs.h <<_ACEOF
19796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19804 for ac_func in getpagesize
19806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19812 cat >conftest.$ac_ext <<_ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19820 #define $ac_func innocuous_$ac_func
19822 /* System header to define __stub macros and hopefully few prototypes,
19823 which can conflict with char $ac_func (); below.
19824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19825 <limits.h> exists even on freestanding compilers. */
19828 # include <limits.h>
19830 # include <assert.h>
19835 /* Override any GCC internal prototype to avoid an error.
19836 Use char because int might match the return type of a GCC
19837 builtin and then its argument prototype would still apply. */
19842 /* The GNU C library defines this for functions which it implements
19843 to always fail with ENOSYS. Some functions are actually named
19844 something starting with __ and the normal name is an alias. */
19845 #if defined __stub_$ac_func || defined __stub___$ac_func
19852 return $ac_func ();
19857 rm -f conftest.$ac_objext conftest$ac_exeext
19858 if { (ac_try="$ac_link"
19859 case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864 (eval "$ac_link") 2>conftest.er1
19866 grep -v '^ *+' conftest.er1 >conftest.err
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19872 { (case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_try") 2>&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; } &&
19881 { ac_try='test -s conftest$ac_exeext'
19882 { (case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_try") 2>&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 eval "$as_ac_var=yes"
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 eval "$as_ac_var=no"
19899 rm -f core conftest.err conftest.$ac_objext \
19900 conftest$ac_exeext conftest.$ac_ext
19902 ac_res=`eval echo '${'$as_ac_var'}'`
19903 { echo "$as_me:$LINENO: result: $ac_res" >&5
19904 echo "${ECHO_T}$ac_res" >&6; }
19905 if test `eval echo '${'$as_ac_var'}'` = yes; then
19906 cat >>confdefs.h <<_ACEOF
19907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19913 { echo "$as_me:$LINENO: checking for working mmap" >&5
19914 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19915 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 if test "$cross_compiling" = yes; then
19919 ac_cv_func_mmap_fixed_mapped=no
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 $ac_includes_default
19928 /* malloc might have been renamed as rpl_malloc. */
19931 /* Thanks to Mike Haertel and Jim Avera for this test.
19932 Here is a matrix of mmap possibilities:
19933 mmap private not fixed
19934 mmap private fixed at somewhere currently unmapped
19935 mmap private fixed at somewhere already mapped
19936 mmap shared not fixed
19937 mmap shared fixed at somewhere currently unmapped
19938 mmap shared fixed at somewhere already mapped
19939 For private mappings, we should verify that changes cannot be read()
19940 back from the file, nor mmap's back from the file at a different
19941 address. (There have been systems where private was not correctly
19942 implemented like the infamous i386 svr4.0, and systems where the
19943 VM page cache was not coherent with the file system buffer cache
19944 like early versions of FreeBSD and possibly contemporary NetBSD.)
19945 For shared mappings, we should conversely verify that changes get
19946 propagated back to all the places they're supposed to be.
19948 Grep wants private fixed already mapped.
19949 The main things grep needs to know about mmap are:
19950 * does it exist and is it safe to write into the mmap'd area
19951 * how to use it (BSD variants) */
19954 #include <sys/mman.h>
19956 #if !STDC_HEADERS && !HAVE_STDLIB_H
19960 /* This mess was copied from the GNU getpagesize.h. */
19961 #if !HAVE_GETPAGESIZE
19962 /* Assume that all systems that can run configure have sys/param.h. */
19963 # if !HAVE_SYS_PARAM_H
19964 # define HAVE_SYS_PARAM_H 1
19967 # ifdef _SC_PAGESIZE
19968 # define getpagesize() sysconf(_SC_PAGESIZE)
19969 # else /* no _SC_PAGESIZE */
19970 # if HAVE_SYS_PARAM_H
19971 # include <sys/param.h>
19972 # ifdef EXEC_PAGESIZE
19973 # define getpagesize() EXEC_PAGESIZE
19974 # else /* no EXEC_PAGESIZE */
19976 # define getpagesize() NBPG * CLSIZE
19979 # endif /* no CLSIZE */
19980 # else /* no NBPG */
19982 # define getpagesize() NBPC
19983 # else /* no NBPC */
19985 # define getpagesize() PAGESIZE
19986 # endif /* PAGESIZE */
19987 # endif /* no NBPC */
19988 # endif /* no NBPG */
19989 # endif /* no EXEC_PAGESIZE */
19990 # else /* no HAVE_SYS_PARAM_H */
19991 # define getpagesize() 8192 /* punt totally */
19992 # endif /* no HAVE_SYS_PARAM_H */
19993 # endif /* no _SC_PAGESIZE */
19995 #endif /* no HAVE_GETPAGESIZE */
20000 char *data, *data2, *data3;
20004 pagesize = getpagesize ();
20006 /* First, make a file with some known garbage in it. */
20007 data = (char *) malloc (pagesize);
20010 for (i = 0; i < pagesize; ++i)
20011 *(data + i) = rand ();
20013 fd = creat ("conftest.mmap", 0600);
20016 if (write (fd, data, pagesize) != pagesize)
20020 /* Next, try to mmap the file at a fixed address which already has
20021 something else allocated at it. If we can, also make sure that
20022 we see the same garbage. */
20023 fd = open ("conftest.mmap", O_RDWR);
20026 data2 = (char *) malloc (2 * pagesize);
20029 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20030 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20031 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20033 for (i = 0; i < pagesize; ++i)
20034 if (*(data + i) != *(data2 + i))
20037 /* Finally, make sure that changes to the mapped area do not
20038 percolate back to the file as seen by read(). (This is a bug on
20039 some variants of i386 svr4.0.) */
20040 for (i = 0; i < pagesize; ++i)
20041 *(data2 + i) = *(data2 + i) + 1;
20042 data3 = (char *) malloc (pagesize);
20045 if (read (fd, data3, pagesize) != pagesize)
20047 for (i = 0; i < pagesize; ++i)
20048 if (*(data + i) != *(data3 + i))
20054 rm -f conftest$ac_exeext
20055 if { (ac_try="$ac_link"
20056 case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_link") 2>&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20065 { (case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_try") 2>&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_cv_func_mmap_fixed_mapped=yes
20076 echo "$as_me: program exited with status $ac_status" >&5
20077 echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20080 ( exit $ac_status )
20081 ac_cv_func_mmap_fixed_mapped=no
20083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20088 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20089 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20090 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20092 cat >>confdefs.h <<\_ACEOF
20093 #define HAVE_MMAP 1
20097 rm -f conftest.mmap
20099 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20100 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20101 if test "${ac_cv_func_mmap_file+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20105 ac_cpp='$CPP $CPPFLAGS'
20106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20110 if test "$cross_compiling" = yes; then
20111 ac_cv_func_mmap_file=no
20113 cat >conftest.$ac_ext <<_ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20121 #include <sys/types.h>
20122 #include <sys/mman.h>
20130 fd = creat ("foo",0777);
20131 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20133 return (fd != (int) MAP_FAILED);
20138 rm -f conftest$ac_exeext
20139 if { (ac_try="$ac_link"
20140 case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_link") 2>&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20149 { (case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_try") 2>&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20158 ac_cv_func_mmap_file=yes
20160 echo "$as_me: program exited with status $ac_status" >&5
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20164 ( exit $ac_status )
20165 ac_cv_func_mmap_file=no
20167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20172 ac_cpp='$CPP $CPPFLAGS'
20173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20179 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20180 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20181 if test "$ac_cv_func_mmap_file" = yes; then
20183 cat >>confdefs.h <<\_ACEOF
20184 #define HAVE_MMAP_FILE
20191 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20192 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20193 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20196 if test "$llvm_cv_os_type" = "Interix" ; then
20197 ac_cv_need_dev_zero_for_mmap=yes
20199 ac_cv_need_dev_zero_for_mmap=no
20203 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20204 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20205 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20207 cat >>confdefs.h <<\_ACEOF
20208 #define NEED_DEV_ZERO_FOR_MMAP 1
20213 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20215 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20216 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20218 if test "$ac_cv_func_mmap_file" = "no"
20220 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20221 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20225 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20226 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20228 ac_cpp='$CXXCPP $CPPFLAGS'
20229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20233 cat >conftest.$ac_ext <<_ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20240 volatile unsigned long val = 1;
20241 __sync_synchronize();
20242 __sync_val_compare_and_swap(&val, 1, 0);
20243 __sync_add_and_fetch(&val, 1);
20244 __sync_sub_and_fetch(&val, 1);
20249 rm -f conftest.$ac_objext conftest$ac_exeext
20250 if { (ac_try="$ac_link"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_link") 2>conftest.er1
20258 grep -v '^ *+' conftest.er1 >conftest.err
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } &&
20263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20264 { (case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_try") 2>&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; } &&
20273 { ac_try='test -s conftest$ac_exeext'
20274 { (case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_try") 2>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20284 ac_cpp='$CPP $CPPFLAGS'
20285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20289 { echo "$as_me:$LINENO: result: yes" >&5
20290 echo "${ECHO_T}yes" >&6; }
20292 cat >>confdefs.h <<\_ACEOF
20293 #define LLVM_MULTITHREADED 1
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 { echo "$as_me:$LINENO: result: no" >&5
20301 echo "${ECHO_T}no" >&6; }
20303 cat >>confdefs.h <<\_ACEOF
20304 #define LLVM_MULTITHREADED 0
20307 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20308 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20311 rm -f core conftest.err conftest.$ac_objext \
20312 conftest$ac_exeext conftest.$ac_ext
20315 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20316 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20317 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20318 if test "${llvm_cv_linux_mixed+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20322 ac_cpp='$CPP $CPPFLAGS'
20323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20327 cat >conftest.$ac_ext <<_ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20334 error: Not x86-64 even if uname says so!
20345 rm -f conftest.$ac_objext
20346 if { (ac_try="$ac_compile"
20347 case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_compile") 2>conftest.er1
20354 grep -v '^ *+' conftest.er1 >conftest.err
20356 cat conftest.err >&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } &&
20359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20360 { (case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_try") 2>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; } &&
20369 { ac_try='test -s conftest.$ac_objext'
20370 { (case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_try") 2>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 llvm_cv_linux_mixed=no
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 llvm_cv_linux_mixed=yes
20387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20389 ac_cpp='$CPP $CPPFLAGS'
20390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20396 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20397 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20399 if test "$llvm_cv_linux_mixed" = "yes"; then
20400 llvm_cv_target_arch="x86"
20406 for ac_func in __dso_handle
20408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20414 cat >conftest.$ac_ext <<_ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h. */
20420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20422 #define $ac_func innocuous_$ac_func
20424 /* System header to define __stub macros and hopefully few prototypes,
20425 which can conflict with char $ac_func (); below.
20426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20427 <limits.h> exists even on freestanding compilers. */
20430 # include <limits.h>
20432 # include <assert.h>
20437 /* Override any GCC internal prototype to avoid an error.
20438 Use char because int might match the return type of a GCC
20439 builtin and then its argument prototype would still apply. */
20444 /* The GNU C library defines this for functions which it implements
20445 to always fail with ENOSYS. Some functions are actually named
20446 something starting with __ and the normal name is an alias. */
20447 #if defined __stub_$ac_func || defined __stub___$ac_func
20454 return $ac_func ();
20459 rm -f conftest.$ac_objext conftest$ac_exeext
20460 if { (ac_try="$ac_link"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_link") 2>conftest.er1
20468 grep -v '^ *+' conftest.er1 >conftest.err
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
20473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20474 { (case "(($ac_try" in
20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476 *) ac_try_echo=$ac_try;;
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479 (eval "$ac_try") 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; } &&
20483 { ac_try='test -s conftest$ac_exeext'
20484 { (case "(($ac_try" in
20485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486 *) ac_try_echo=$ac_try;;
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489 (eval "$ac_try") 2>&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; }; then
20493 eval "$as_ac_var=yes"
20495 echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20498 eval "$as_ac_var=no"
20501 rm -f core conftest.err conftest.$ac_objext \
20502 conftest$ac_exeext conftest.$ac_ext
20504 ac_res=`eval echo '${'$as_ac_var'}'`
20505 { echo "$as_me:$LINENO: result: $ac_res" >&5
20506 echo "${ECHO_T}$ac_res" >&6; }
20507 if test `eval echo '${'$as_ac_var'}'` = yes; then
20508 cat >>confdefs.h <<_ACEOF
20509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20516 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20517 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20518 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 llvm_cv_llvmgcc_sanity="no"
20522 if test -x "$LLVMGCC" ; then
20523 cp /dev/null conftest.c
20524 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20525 grep 'target datalayout =' > /dev/null 2>&1
20526 if test $? -eq 0 ; then
20527 llvm_cv_llvmgcc_sanity="yes"
20532 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20533 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20535 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20536 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20537 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20538 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20539 LLVMCC1=$llvmcc1path
20541 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20542 LLVMCC1PLUS=$llvmcc1pluspath
20544 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20545 LLVMGCCDIR=$llvmgccdir
20547 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20548 LLVMGCC_LANGS=$llvmgcclangs
20550 { echo "$as_me:$LINENO: result: ok" >&5
20551 echo "${ECHO_T}ok" >&6; }
20554 SHLIBEXT=$libltdl_cv_shlibext
20557 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20560 # Translate the various configuration directories and other basic
20561 # information into substitutions that will end up in Makefile.config.in
20562 # that these configured values can be used by the makefiles
20563 if test "${prefix}" = "NONE" ; then
20564 prefix="/usr/local"
20566 eval LLVM_PREFIX="${prefix}";
20567 eval LLVM_BINDIR="${prefix}/bin";
20568 eval LLVM_LIBDIR="${prefix}/lib";
20569 eval LLVM_DATADIR="${prefix}/share/llvm";
20570 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20571 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20572 eval LLVM_INCLUDEDIR="${prefix}/include";
20573 eval LLVM_INFODIR="${prefix}/info";
20574 eval LLVM_MANDIR="${prefix}/man";
20575 LLVM_CONFIGTIME=`date`
20587 # Place the various directores into the config.h file as #defines so that we
20588 # can know about the installation paths within LLVM.
20590 cat >>confdefs.h <<_ACEOF
20591 #define LLVM_PREFIX "$LLVM_PREFIX"
20595 cat >>confdefs.h <<_ACEOF
20596 #define LLVM_BINDIR "$LLVM_BINDIR"
20600 cat >>confdefs.h <<_ACEOF
20601 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20605 cat >>confdefs.h <<_ACEOF
20606 #define LLVM_DATADIR "$LLVM_DATADIR"
20610 cat >>confdefs.h <<_ACEOF
20611 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20615 cat >>confdefs.h <<_ACEOF
20616 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20620 cat >>confdefs.h <<_ACEOF
20621 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20625 cat >>confdefs.h <<_ACEOF
20626 #define LLVM_INFODIR "$LLVM_INFODIR"
20630 cat >>confdefs.h <<_ACEOF
20631 #define LLVM_MANDIR "$LLVM_MANDIR"
20635 cat >>confdefs.h <<_ACEOF
20636 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20640 cat >>confdefs.h <<_ACEOF
20641 #define LLVM_HOSTTRIPLE "$host"
20645 # Determine which bindings to build.
20646 if test "$BINDINGS_TO_BUILD" = auto ; then
20647 BINDINGS_TO_BUILD=""
20648 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20649 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20652 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20655 # This isn't really configurey, but it avoids having to repeat the list in
20660 # Do any work necessary to ensure that bindings have what they need.
20661 binding_prereqs_failed=0
20662 for a_binding in $BINDINGS_TO_BUILD ; do
20663 case "$a_binding" in
20665 if test "x$OCAMLC" = x ; then
20666 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20667 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20668 binding_prereqs_failed=1
20670 if test "x$OCAMLDEP" = x ; then
20671 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20672 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20673 binding_prereqs_failed=1
20675 if test "x$OCAMLOPT" = x ; then
20676 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20677 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20679 if test "x$with_ocaml_libdir" != xauto ; then
20680 OCAML_LIBDIR=$with_ocaml_libdir
20683 ocaml_stdlib="`"$OCAMLC" -where`"
20684 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20686 # ocaml stdlib is beneath our prefix; use stdlib
20687 OCAML_LIBDIR=$ocaml_stdlib
20690 # ocaml stdlib is outside our prefix; use libdir/ocaml
20691 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20698 if test "$binding_prereqs_failed" = 1 ; then
20699 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20700 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20701 { (exit 1); exit 1; }; }
20704 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20705 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20706 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
20710 ac_cpp='$CXXCPP $CPPFLAGS'
20711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20715 oldcxxflags="$CXXFLAGS"
20716 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20717 cat >conftest.$ac_ext <<_ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20732 rm -f conftest.$ac_objext
20733 if { (ac_try="$ac_compile"
20734 case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_compile") 2>conftest.er1
20741 grep -v '^ *+' conftest.er1 >conftest.err
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
20746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20747 { (case "(($ac_try" in
20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749 *) ac_try_echo=$ac_try;;
20751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752 (eval "$ac_try") 2>&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; } &&
20756 { ac_try='test -s conftest.$ac_objext'
20757 { (case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_try") 2>&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }; then
20766 llvm_cv_cxx_visibility_inlines_hidden=yes
20768 echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20771 llvm_cv_cxx_visibility_inlines_hidden=no
20774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20775 CXXFLAGS="$oldcxxflags"
20777 ac_cpp='$CPP $CPPFLAGS'
20778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20784 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20785 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20786 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20787 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20790 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20795 if test "$llvm_cv_link_use_r" = "yes" ; then
20802 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20803 RDYNAMIC="-Wl,-export-dynamic"
20810 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20817 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20819 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20821 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20823 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20825 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20828 ac_config_files="$ac_config_files Makefile.config"
20831 ac_config_files="$ac_config_files llvm.spec"
20834 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20837 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20840 ac_config_commands="$ac_config_commands setup"
20842 ac_config_commands="$ac_config_commands Makefile"
20845 ac_config_commands="$ac_config_commands Makefile.common"
20848 ac_config_commands="$ac_config_commands examples/Makefile"
20851 ac_config_commands="$ac_config_commands lib/Makefile"
20854 ac_config_commands="$ac_config_commands runtime/Makefile"
20857 ac_config_commands="$ac_config_commands test/Makefile"
20860 ac_config_commands="$ac_config_commands test/Makefile.tests"
20863 ac_config_commands="$ac_config_commands unittests/Makefile"
20866 ac_config_commands="$ac_config_commands tools/Makefile"
20869 ac_config_commands="$ac_config_commands utils/Makefile"
20872 ac_config_commands="$ac_config_commands projects/Makefile"
20875 ac_config_commands="$ac_config_commands bindings/Makefile"
20878 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20882 cat >confcache <<\_ACEOF
20883 # This file is a shell script that caches the results of configure
20884 # tests run on this system so they can be shared between configure
20885 # scripts and configure runs, see configure's option --config-cache.
20886 # It is not useful on other systems. If it contains results you don't
20887 # want to keep, you may remove or edit it.
20889 # config.status only pays attention to the cache file if you give it
20890 # the --recheck option to rerun configure.
20892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20894 # following values.
20898 # The following way of writing the cache mishandles newlines in values,
20899 # but we know of no workaround that is simple, portable, and efficient.
20900 # So, we kill variables containing newlines.
20901 # Ultrix sh set writes to stderr and can't be redirected directly,
20902 # and sets the high bit in the cache file unless we assign to the vars.
20904 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20905 eval ac_val=\$$ac_var
20909 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20910 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20913 _ | IFS | as_nl) ;; #(
20914 *) $as_unset $ac_var ;;
20920 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20921 *${as_nl}ac_space=\ *)
20922 # `set' does not quote correctly, so add quotes (double-quote
20923 # substitution turns \\\\ into \\, and sed turns \\ into \).
20926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20929 # `set' quotes correctly as required by POSIX, so do not add quotes.
20930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20939 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20941 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20943 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20944 if test -w "$cache_file"; then
20945 test "x$cache_file" != "x/dev/null" &&
20946 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20947 echo "$as_me: updating cache $cache_file" >&6;}
20948 cat confcache >$cache_file
20950 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20951 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20956 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20957 # Let make expand exec_prefix.
20958 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20960 DEFS=-DHAVE_CONFIG_H
20964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20965 # 1. Remove the extension, and $U if already installed.
20966 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20967 ac_i=`echo "$ac_i" | sed "$ac_script"`
20968 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20969 # will be set to the directory where LIBOBJS objects are built.
20970 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20971 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20973 LIBOBJS=$ac_libobjs
20975 LTLIBOBJS=$ac_ltlibobjs
20978 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20979 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20980 Usually this means the macro was only invoked conditionally." >&5
20981 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20982 Usually this means the macro was only invoked conditionally." >&2;}
20983 { (exit 1); exit 1; }; }
20985 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20986 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20987 Usually this means the macro was only invoked conditionally." >&5
20988 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20989 Usually this means the macro was only invoked conditionally." >&2;}
20990 { (exit 1); exit 1; }; }
20993 : ${CONFIG_STATUS=./config.status}
20994 ac_clean_files_save=$ac_clean_files
20995 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20996 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20997 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20998 cat >$CONFIG_STATUS <<_ACEOF
21000 # Generated by $as_me.
21001 # Run this file to recreate the current configuration.
21002 # Compiler output produced by configure, useful for debugging
21003 # configure, is in config.log if it exists.
21006 ac_cs_recheck=false
21008 SHELL=\${CONFIG_SHELL-$SHELL}
21011 cat >>$CONFIG_STATUS <<\_ACEOF
21012 ## --------------------- ##
21013 ## M4sh Initialization. ##
21014 ## --------------------- ##
21016 # Be Bourne compatible
21017 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21020 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21021 # is contrary to our usage. Disable this feature.
21022 alias -g '${1+"$@"}'='"$@"'
21023 setopt NO_GLOB_SUBST
21025 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21027 BIN_SH=xpg4; export BIN_SH # for Tru64
21028 DUALCASE=1; export DUALCASE # for MKS sh
21032 # Avoid depending upon Character Ranges.
21033 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21034 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21035 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21036 as_cr_digits='0123456789'
21037 as_cr_alnum=$as_cr_Letters$as_cr_digits
21039 # The user is always right.
21040 if test "${PATH_SEPARATOR+set}" != set; then
21041 echo "#! /bin/sh" >conf$$.sh
21042 echo "exit 0" >>conf$$.sh
21044 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21052 # Support unset when possible.
21053 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21061 # We need space, tab and new line, in precisely that order. Quoting is
21062 # there to prevent editors from complaining about space-tab.
21063 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21064 # splitting by setting IFS to empty value.)
21069 # Find who we are. Look in the path if we contain no directory separator.
21071 *[\\/]* ) as_myself=$0 ;;
21072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21073 for as_dir in $PATH
21076 test -z "$as_dir" && as_dir=.
21077 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21083 # We did not find ourselves, most probably we were run as `sh COMMAND'
21084 # in which case we are not to be found in the path.
21085 if test "x$as_myself" = x; then
21088 if test ! -f "$as_myself"; then
21089 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21090 { (exit 1); exit 1; }
21093 # Work around bugs in pre-3.0 UWIN ksh.
21094 for as_var in ENV MAIL MAILPATH
21095 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21105 LC_TELEPHONE LC_TIME
21107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21108 eval $as_var=C; export $as_var
21110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21114 # Required to use basename.
21115 if expr a : '\(a\)' >/dev/null 2>&1 &&
21116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21123 as_basename=basename
21129 # Name of the executable.
21130 as_me=`$as_basename -- "$0" ||
21131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21132 X"$0" : 'X\(//\)$' \| \
21133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21135 sed '/^.*\/\([^/][^/]*\)\/*$/{
21154 as_lineno_1=$LINENO
21155 as_lineno_2=$LINENO
21156 test "x$as_lineno_1" != "x$as_lineno_2" &&
21157 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21160 # uniformly replaced by the line number. The first 'sed' inserts a
21161 # line-number line after each line using $LINENO; the second 'sed'
21162 # does the real work. The second script uses 'N' to pair each
21163 # line-number line with the line containing $LINENO, and appends
21164 # trailing '-' during substitution so that $LINENO is not a special
21165 # case at line end.
21166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21167 # scripts with optimization help from Paolo Bonzini. Blame Lee
21168 # E. McMahon (1931-1989) for sed's syntax. :-)
21180 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21183 ' >$as_me.lineno &&
21184 chmod +x "$as_me.lineno" ||
21185 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21186 { (exit 1); exit 1; }; }
21188 # Don't try to exec as it changes $[0], causing all sort of problems
21189 # (the dirname of $[0] is not the place where we might find the
21190 # original and so on. Autoconf is especially sensitive to this).
21191 . "./$as_me.lineno"
21192 # Exit status is that of the last command.
21197 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21203 ECHO_C= ECHO_N= ECHO_T=
21204 case `echo -n x` in
21206 case `echo 'x\c'` in
21207 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21214 if expr a : '\(a\)' >/dev/null 2>&1 &&
21215 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21221 rm -f conf$$ conf$$.exe conf$$.file
21222 if test -d conf$$.dir; then
21223 rm -f conf$$.dir/conf$$.file
21229 if ln -s conf$$.file conf$$ 2>/dev/null; then
21231 # ... but there are two gotchas:
21232 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21233 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21234 # In both cases, we have to default to `cp -p'.
21235 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21237 elif ln conf$$.file conf$$ 2>/dev/null; then
21242 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21243 rmdir conf$$.dir 2>/dev/null
21245 if mkdir -p . 2>/dev/null; then
21248 test -d ./-p && rmdir ./-p
21252 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21253 # systems may use methods other than mode bits to determine executability.
21254 cat >conf$$.file <<_ASEOF
21258 chmod +x conf$$.file
21259 if test -x conf$$.file >/dev/null 2>&1; then
21260 as_executable_p="test -x"
21266 # Sed expression to map a string onto a valid CPP name.
21267 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21269 # Sed expression to map a string onto a valid variable name.
21270 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21275 # Save the log message, to keep $[0] and so on meaningful, and to
21276 # report actual input values of CONFIG_FILES etc. instead of their
21277 # values after options handling.
21279 This file was extended by llvm $as_me 2.9svn, which was
21280 generated by GNU Autoconf 2.60. Invocation command line was
21282 CONFIG_FILES = $CONFIG_FILES
21283 CONFIG_HEADERS = $CONFIG_HEADERS
21284 CONFIG_LINKS = $CONFIG_LINKS
21285 CONFIG_COMMANDS = $CONFIG_COMMANDS
21288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21293 cat >>$CONFIG_STATUS <<_ACEOF
21294 # Files that config.status was made for.
21295 config_files="$ac_config_files"
21296 config_headers="$ac_config_headers"
21297 config_commands="$ac_config_commands"
21301 cat >>$CONFIG_STATUS <<\_ACEOF
21303 \`$as_me' instantiates files from templates according to the
21304 current configuration.
21306 Usage: $0 [OPTIONS] [FILE]...
21308 -h, --help print this help, then exit
21309 -V, --version print version number, then exit
21310 -q, --quiet do not print progress messages
21311 -d, --debug don't remove temporary files
21312 --recheck update $as_me by reconfiguring in the same conditions
21313 --file=FILE[:TEMPLATE]
21314 instantiate the configuration file FILE
21315 --header=FILE[:TEMPLATE]
21316 instantiate the configuration header FILE
21318 Configuration files:
21321 Configuration headers:
21324 Configuration commands:
21327 Report bugs to <bug-autoconf@gnu.org>."
21330 cat >>$CONFIG_STATUS <<_ACEOF
21332 llvm config.status 2.9svn
21333 configured by $0, generated by GNU Autoconf 2.60,
21334 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21336 Copyright (C) 2006 Free Software Foundation, Inc.
21337 This config.status script is free software; the Free Software Foundation
21338 gives unlimited permission to copy, distribute and modify it."
21345 cat >>$CONFIG_STATUS <<\_ACEOF
21346 # If no file are specified by the user, then we need to provide default
21347 # value. By we need to know if files were specified by the user.
21353 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21354 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21365 # Handling of the options.
21366 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21368 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21369 echo "$ac_cs_version"; exit ;;
21370 --debug | --debu | --deb | --de | --d | -d )
21372 --file | --fil | --fi | --f )
21374 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21375 ac_need_defaults=false;;
21376 --header | --heade | --head | --hea )
21378 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21379 ac_need_defaults=false;;
21381 # Conflict between --help and --header
21382 { echo "$as_me: error: ambiguous option: $1
21383 Try \`$0 --help' for more information." >&2
21384 { (exit 1); exit 1; }; };;
21385 --help | --hel | -h )
21386 echo "$ac_cs_usage"; exit ;;
21387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21391 # This is an error.
21392 -*) { echo "$as_me: error: unrecognized option: $1
21393 Try \`$0 --help' for more information." >&2
21394 { (exit 1); exit 1; }; } ;;
21396 *) ac_config_targets="$ac_config_targets $1"
21397 ac_need_defaults=false ;;
21403 ac_configure_extra_args=
21405 if $ac_cs_silent; then
21407 ac_configure_extra_args="$ac_configure_extra_args --silent"
21411 cat >>$CONFIG_STATUS <<_ACEOF
21412 if \$ac_cs_recheck; then
21413 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21414 CONFIG_SHELL=$SHELL
21415 export CONFIG_SHELL
21416 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21420 cat >>$CONFIG_STATUS <<\_ACEOF
21424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21425 ## Running $as_me. ##
21431 cat >>$CONFIG_STATUS <<_ACEOF
21435 llvm_src="${srcdir}"
21439 cat >>$CONFIG_STATUS <<\_ACEOF
21441 # Handling of arguments.
21442 for ac_config_target in $ac_config_targets
21444 case $ac_config_target in
21445 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21446 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21447 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21448 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21449 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21450 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21451 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21452 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21453 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21454 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21455 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21456 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21457 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21458 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21459 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21460 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21461 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21462 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21463 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21464 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21465 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21466 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21467 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21468 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21469 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21471 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21472 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21473 { (exit 1); exit 1; }; };;
21478 # If the user did not use the arguments to specify the items to instantiate,
21479 # then the envvar interface is used. Set only those that are not.
21480 # We use the long form for the default assignment because of an extremely
21481 # bizarre bug on SunOS 4.1.3.
21482 if $ac_need_defaults; then
21483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21485 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21488 # Have a temporary directory for convenience. Make it in the build tree
21489 # simply because there is no reason against having it here, and in addition,
21490 # creating and moving files from /tmp can sometimes cause problems.
21491 # Hook for its removal unless debugging.
21492 # Note that there is a small window in which the directory will not be cleaned:
21493 # after its creation but before its name has been assigned to `$tmp'.
21497 trap 'exit_status=$?
21498 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21500 trap '{ (exit 1); exit 1; }' 1 2 13 15
21502 # Create a (secure) tmp directory for tmp files.
21505 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21506 test -n "$tmp" && test -d "$tmp"
21509 tmp=./conf$$-$RANDOM
21510 (umask 077 && mkdir "$tmp")
21513 echo "$me: cannot create a temporary directory in ." >&2
21514 { (exit 1); exit 1; }
21518 # Set up the sed scripts for CONFIG_FILES section.
21521 # No need to generate the scripts if there are no CONFIG_FILES.
21522 # This happens for instance when ./config.status config.h
21523 if test -n "$CONFIG_FILES"; then
21530 for ac_last_try in false false false false false :; do
21531 cat >conf$$subs.sed <<_ACEOF
21532 SHELL!$SHELL$ac_delim
21533 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21534 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21535 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21536 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21537 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21538 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21539 exec_prefix!$exec_prefix$ac_delim
21540 prefix!$prefix$ac_delim
21541 program_transform_name!$program_transform_name$ac_delim
21542 bindir!$bindir$ac_delim
21543 sbindir!$sbindir$ac_delim
21544 libexecdir!$libexecdir$ac_delim
21545 datarootdir!$datarootdir$ac_delim
21546 datadir!$datadir$ac_delim
21547 sysconfdir!$sysconfdir$ac_delim
21548 sharedstatedir!$sharedstatedir$ac_delim
21549 localstatedir!$localstatedir$ac_delim
21550 includedir!$includedir$ac_delim
21551 oldincludedir!$oldincludedir$ac_delim
21552 docdir!$docdir$ac_delim
21553 infodir!$infodir$ac_delim
21554 htmldir!$htmldir$ac_delim
21555 dvidir!$dvidir$ac_delim
21556 pdfdir!$pdfdir$ac_delim
21557 psdir!$psdir$ac_delim
21558 libdir!$libdir$ac_delim
21559 localedir!$localedir$ac_delim
21560 mandir!$mandir$ac_delim
21561 DEFS!$DEFS$ac_delim
21562 ECHO_C!$ECHO_C$ac_delim
21563 ECHO_N!$ECHO_N$ac_delim
21564 ECHO_T!$ECHO_T$ac_delim
21565 LIBS!$LIBS$ac_delim
21566 build_alias!$build_alias$ac_delim
21567 host_alias!$host_alias$ac_delim
21568 target_alias!$target_alias$ac_delim
21569 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21570 subdirs!$subdirs$ac_delim
21571 build!$build$ac_delim
21572 build_cpu!$build_cpu$ac_delim
21573 build_vendor!$build_vendor$ac_delim
21574 build_os!$build_os$ac_delim
21575 host!$host$ac_delim
21576 host_cpu!$host_cpu$ac_delim
21577 host_vendor!$host_vendor$ac_delim
21578 host_os!$host_os$ac_delim
21579 target!$target$ac_delim
21580 target_cpu!$target_cpu$ac_delim
21581 target_vendor!$target_vendor$ac_delim
21582 target_os!$target_os$ac_delim
21584 HOST_OS!$HOST_OS$ac_delim
21585 TARGET_OS!$TARGET_OS$ac_delim
21586 LINKALL!$LINKALL$ac_delim
21587 NOLINKALL!$NOLINKALL$ac_delim
21588 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21589 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21590 ARCH!$ARCH$ac_delim
21591 ENDIAN!$ENDIAN$ac_delim
21593 CFLAGS!$CFLAGS$ac_delim
21594 LDFLAGS!$LDFLAGS$ac_delim
21595 CPPFLAGS!$CPPFLAGS$ac_delim
21596 ac_ct_CC!$ac_ct_CC$ac_delim
21597 EXEEXT!$EXEEXT$ac_delim
21598 OBJEXT!$OBJEXT$ac_delim
21600 GREP!$GREP$ac_delim
21601 EGREP!$EGREP$ac_delim
21602 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21603 BUILD_CC!$BUILD_CC$ac_delim
21604 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21605 BUILD_CXX!$BUILD_CXX$ac_delim
21606 CVSBUILD!$CVSBUILD$ac_delim
21607 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21608 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21609 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21610 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21611 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21612 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21613 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21615 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21616 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21617 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21618 ENABLE_PIC!$ENABLE_PIC$ac_delim
21619 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21620 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21621 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21622 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21623 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21624 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21625 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21626 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21627 CLANGPATH!$CLANGPATH$ac_delim
21628 CLANGXXPATH!$CLANGXXPATH$ac_delim
21631 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21633 elif $ac_last_try; then
21634 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21635 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21636 { (exit 1); exit 1; }; }
21638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21642 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21643 if test -n "$ac_eof"; then
21644 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21645 ac_eof=`expr $ac_eof + 1`
21648 cat >>$CONFIG_STATUS <<_ACEOF
21649 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21653 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21654 s/^/s,@/; s/!/@,|#_!!_#|/
21657 s/'"$ac_delim"'$/,g/; t
21659 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21660 ' >>$CONFIG_STATUS <conf$$subs.sed
21661 rm -f conf$$subs.sed
21662 cat >>$CONFIG_STATUS <<_ACEOF
21668 for ac_last_try in false false false false false :; do
21669 cat >conf$$subs.sed <<_ACEOF
21670 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21671 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21672 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21673 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21675 CXXFLAGS!$CXXFLAGS$ac_delim
21676 ac_ct_CXX!$ac_ct_CXX$ac_delim
21678 ifGNUmake!$ifGNUmake$ac_delim
21679 LN_S!$LN_S$ac_delim
21682 DATE!$DATE$ac_delim
21683 FIND!$FIND$ac_delim
21684 MKDIR!$MKDIR$ac_delim
21686 RANLIB!$RANLIB$ac_delim
21691 BINPWD!$BINPWD$ac_delim
21692 GRAPHVIZ!$GRAPHVIZ$ac_delim
21695 NEATO!$NEATO$ac_delim
21696 TWOPI!$TWOPI$ac_delim
21697 CIRCO!$CIRCO$ac_delim
21699 DOTTY!$DOTTY$ac_delim
21700 XDOT_PY!$XDOT_PY$ac_delim
21701 PERL!$PERL$ac_delim
21702 HAVE_PERL!$HAVE_PERL$ac_delim
21703 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21704 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21705 INSTALL_DATA!$INSTALL_DATA$ac_delim
21706 BZIP2!$BZIP2$ac_delim
21708 DOXYGEN!$DOXYGEN$ac_delim
21709 GROFF!$GROFF$ac_delim
21710 GZIP!$GZIP$ac_delim
21711 POD2HTML!$POD2HTML$ac_delim
21712 POD2MAN!$POD2MAN$ac_delim
21713 PDFROFF!$PDFROFF$ac_delim
21714 RUNTEST!$RUNTEST$ac_delim
21715 TCLSH!$TCLSH$ac_delim
21717 OCAMLC!$OCAMLC$ac_delim
21718 OCAMLOPT!$OCAMLOPT$ac_delim
21719 OCAMLDEP!$OCAMLDEP$ac_delim
21720 OCAMLDOC!$OCAMLDOC$ac_delim
21722 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21723 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21724 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21725 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21726 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21727 LIBADD_DL!$LIBADD_DL$ac_delim
21728 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21729 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21730 LLVMGCC!$LLVMGCC$ac_delim
21731 LLVMGXX!$LLVMGXX$ac_delim
21732 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21733 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21734 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21735 USE_UDIS86!$USE_UDIS86$ac_delim
21736 USE_OPROFILE!$USE_OPROFILE$ac_delim
21737 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21738 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21739 MMAP_FILE!$MMAP_FILE$ac_delim
21740 LLVMCC1!$LLVMCC1$ac_delim
21741 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21742 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21743 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21744 SHLIBEXT!$SHLIBEXT$ac_delim
21745 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21746 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21747 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21748 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21749 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21750 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21751 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21752 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21753 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21754 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21755 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21756 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21757 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21758 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21759 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21760 RPATH!$RPATH$ac_delim
21761 RDYNAMIC!$RDYNAMIC$ac_delim
21762 LIBOBJS!$LIBOBJS$ac_delim
21763 LTLIBOBJS!$LTLIBOBJS$ac_delim
21766 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
21768 elif $ac_last_try; then
21769 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21770 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21771 { (exit 1); exit 1; }; }
21773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21777 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21778 if test -n "$ac_eof"; then
21779 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21780 ac_eof=`expr $ac_eof + 1`
21783 cat >>$CONFIG_STATUS <<_ACEOF
21784 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21788 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21789 s/^/s,@/; s/!/@,|#_!!_#|/
21792 s/'"$ac_delim"'$/,g/; t
21794 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21795 ' >>$CONFIG_STATUS <conf$$subs.sed
21796 rm -f conf$$subs.sed
21797 cat >>$CONFIG_STATUS <<_ACEOF
21804 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21805 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21806 # trailing colons and then remove the whole line if VPATH becomes empty
21807 # (actually we leave an empty line to preserve line numbers).
21808 if test "x$srcdir" = x.; then
21809 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21810 s/:*\$(srcdir):*/:/
21811 s/:*\${srcdir}:*/:/
21813 s/^\([^=]*=[ ]*\):*/\1/
21819 cat >>$CONFIG_STATUS <<\_ACEOF
21820 fi # test -n "$CONFIG_FILES"
21823 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21826 :[FHLC]) ac_mode=$ac_tag; continue;;
21828 case $ac_mode$ac_tag in
21830 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21831 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21832 { (exit 1); exit 1; }; };;
21833 :[FH]-) ac_tag=-:-;;
21834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21851 -) ac_f="$tmp/stdin";;
21852 *) # Look for the file first in the build tree, then in the source tree
21853 # (if the path is not absolute). The absolute path cannot be DOS-style,
21854 # because $ac_f cannot contain `:'.
21858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21860 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21861 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21862 { (exit 1); exit 1; }; };;
21864 ac_file_inputs="$ac_file_inputs $ac_f"
21867 # Let's still pretend it is `configure' which instantiates (i.e., don't
21868 # use $as_me), people would be surprised to read:
21869 # /* config.h. Generated by config.status. */
21870 configure_input="Generated from "`IFS=:
21871 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21872 if test x"$ac_file" != x-; then
21873 configure_input="$ac_file. $configure_input"
21874 { echo "$as_me:$LINENO: creating $ac_file" >&5
21875 echo "$as_me: creating $ac_file" >&6;}
21879 *:-:* | *:-) cat >"$tmp/stdin";;
21884 ac_dir=`$as_dirname -- "$ac_file" ||
21885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21886 X"$ac_file" : 'X\(//\)[^/]' \| \
21887 X"$ac_file" : 'X\(//\)$' \| \
21888 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21894 /^X\(\/\/\)[^/].*/{
21909 -*) as_dir=./$as_dir;;
21911 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21915 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21916 *) as_qdir=$as_dir;;
21918 as_dirs="'$as_qdir' $as_dirs"
21919 as_dir=`$as_dirname -- "$as_dir" ||
21920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21921 X"$as_dir" : 'X\(//\)[^/]' \| \
21922 X"$as_dir" : 'X\(//\)$' \| \
21923 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21929 /^X\(\/\/\)[^/].*/{
21942 test -d "$as_dir" && break
21944 test -z "$as_dirs" || eval "mkdir $as_dirs"
21945 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21946 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21947 { (exit 1); exit 1; }; }; }
21951 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21953 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21954 # A ".." for each directory in $ac_dir_suffix.
21955 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21956 case $ac_top_builddir_sub in
21957 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21958 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21961 ac_abs_top_builddir=$ac_pwd
21962 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21963 # for backward compatibility:
21964 ac_top_builddir=$ac_top_build_prefix
21967 .) # We are building in place.
21969 ac_top_srcdir=$ac_top_builddir_sub
21970 ac_abs_top_srcdir=$ac_pwd ;;
21971 [\\/]* | ?:[\\/]* ) # Absolute name.
21972 ac_srcdir=$srcdir$ac_dir_suffix;
21973 ac_top_srcdir=$srcdir
21974 ac_abs_top_srcdir=$srcdir ;;
21975 *) # Relative name.
21976 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21977 ac_top_srcdir=$ac_top_build_prefix$srcdir
21978 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21980 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21990 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21991 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21995 cat >>$CONFIG_STATUS <<\_ACEOF
21996 # If the template does not know about datarootdir, expand it.
21997 # FIXME: This hack should be removed a few years after 2.60.
21998 ac_datarootdir_hack=; ac_datarootdir_seen=
22000 case `sed -n '/datarootdir/ {
22009 ' $ac_file_inputs` in
22010 *datarootdir*) ac_datarootdir_seen=yes;;
22011 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22012 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22013 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22015 cat >>$CONFIG_STATUS <<_ACEOF
22016 ac_datarootdir_hack='
22017 s&@datadir@&$datadir&g
22018 s&@docdir@&$docdir&g
22019 s&@infodir@&$infodir&g
22020 s&@localedir@&$localedir&g
22021 s&@mandir@&$mandir&g
22022 s&\\\${datarootdir}&$datarootdir&g' ;;
22026 # Neutralize VPATH when `$srcdir' = `.'.
22027 # Shell code in configure.ac might set extrasub.
22028 # FIXME: do we really want to maintain this feature?
22029 cat >>$CONFIG_STATUS <<_ACEOF
22033 cat >>$CONFIG_STATUS <<\_ACEOF
22035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22036 s&@configure_input@&$configure_input&;t t
22037 s&@top_builddir@&$ac_top_builddir_sub&;t t
22038 s&@srcdir@&$ac_srcdir&;t t
22039 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22040 s&@top_srcdir@&$ac_top_srcdir&;t t
22041 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22042 s&@builddir@&$ac_builddir&;t t
22043 s&@abs_builddir@&$ac_abs_builddir&;t t
22044 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22045 s&@INSTALL@&$ac_INSTALL&;t t
22046 $ac_datarootdir_hack
22047 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22049 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22050 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22051 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22052 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22053 which seems to be undefined. Please make sure it is defined." >&5
22054 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22055 which seems to be undefined. Please make sure it is defined." >&2;}
22059 -) cat "$tmp/out"; rm -f "$tmp/out";;
22060 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22069 # Transform confdefs.h into a sed script `conftest.defines', that
22070 # substitutes the proper values into config.h.in to produce config.h.
22071 rm -f conftest.defines conftest.tail
22072 # First, append a space to every undef/define line, to ease matching.
22073 echo 's/$/ /' >conftest.defines
22074 # Then, protect against being on the right side of a sed subst, or in
22075 # an unquoted here document, in config.status. If some macros were
22076 # called several times there might be several #defines for the same
22077 # symbol, which is useless. But do not sort them, since the last
22078 # AC_DEFINE must be honored.
22079 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22080 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22081 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22082 # PARAMS is the parameter list in the macro definition--in most cases, it's
22083 # just an empty string.
22084 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22085 ac_dB='\\)[ (].*,\\1define\\2'
22093 s/^[ ]*#[ ]*define[ ][ ]*//
22098 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22099 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22100 ' >>conftest.defines
22102 # Remove the space that was appended to ease matching.
22103 # Then replace #undef with comments. This is necessary, for
22104 # example, in the case of _POSIX_SOURCE, which is predefined and required
22105 # on some systems where configure will not decide to define it.
22106 # (The regexp can be short, since the line contains either #define or #undef.)
22108 s,^[ #]*u.*,/* & */,' >>conftest.defines
22110 # Break up conftest.defines:
22111 ac_max_sed_lines=50
22113 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22114 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22115 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22117 ac_in='$ac_file_inputs'
22118 ac_out='"$tmp/out1"'
22119 ac_nxt='"$tmp/out2"'
22123 # Write a here document:
22124 cat >>$CONFIG_STATUS <<_ACEOF
22125 # First, check the format of the line:
22126 cat >"\$tmp/defines.sed" <<\\CEOF
22127 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22128 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22132 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22134 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22135 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22136 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22137 grep . conftest.tail >/dev/null || break
22138 rm -f conftest.defines
22139 mv conftest.tail conftest.defines
22141 rm -f conftest.defines conftest.tail
22143 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22144 cat >>$CONFIG_STATUS <<\_ACEOF
22145 if test x"$ac_file" != x-; then
22146 echo "/* $configure_input */" >"$tmp/config.h"
22147 cat "$ac_result" >>"$tmp/config.h"
22148 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22149 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22150 echo "$as_me: $ac_file is unchanged" >&6;}
22153 mv "$tmp/config.h" $ac_file
22156 echo "/* $configure_input */"
22162 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22163 echo "$as_me: executing $ac_file commands" >&6;}
22168 case $ac_file$ac_mode in
22169 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22170 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22171 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22172 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22173 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22174 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22175 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22176 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22177 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22178 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22179 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22180 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22181 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22182 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22183 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22184 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22185 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22186 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22187 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22188 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22189 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22190 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22191 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22192 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22193 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22194 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22200 { (exit 0); exit 0; }
22202 chmod +x $CONFIG_STATUS
22203 ac_clean_files=$ac_clean_files_save
22206 # configure is writing to config.log, and then calls config.status.
22207 # config.status does its own redirection, appending to config.log.
22208 # Unfortunately, on DOS this fails, as config.log is still kept open
22209 # by configure, so config.status won't be able to write to it; its
22210 # output is simply discarded. So we exec the FD to /dev/null,
22211 # effectively closing config.log, so it can be properly (re)opened and
22212 # appended to by config.status. When coming back to configure, we
22213 # need to make the FD available again.
22214 if test "$no_create" != yes; then
22216 ac_config_status_args=
22217 test "$silent" = yes &&
22218 ac_config_status_args="$ac_config_status_args --quiet"
22220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22223 # would make configure fail if this is the last instruction.
22224 $ac_cs_success || { (exit 1); exit 1; }
22228 # CONFIG_SUBDIRS section.
22230 if test "$no_recursion" != yes; then
22232 # Remove --cache-file and --srcdir arguments so they do not pile up.
22233 ac_sub_configure_args=
22235 eval "set x $ac_configure_args"
22239 if test -n "$ac_prev"; then
22244 -cache-file | --cache-file | --cache-fil | --cache-fi \
22245 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22246 ac_prev=cache_file ;;
22247 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22248 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22251 --config-cache | -C)
22253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22263 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22265 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22269 # Always prepend --prefix to ensure using the same prefix
22270 # in subdir configurations.
22271 ac_arg="--prefix=$prefix"
22273 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22275 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22278 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22280 # Do not complain, so a configure script can configure whichever
22281 # parts of a large source tree are present.
22282 test -d "$srcdir/$ac_dir" || continue
22284 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22285 echo "$as_me:$LINENO: $ac_msg" >&5
22289 -*) as_dir=./$as_dir;;
22291 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22295 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22296 *) as_qdir=$as_dir;;
22298 as_dirs="'$as_qdir' $as_dirs"
22299 as_dir=`$as_dirname -- "$as_dir" ||
22300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22301 X"$as_dir" : 'X\(//\)[^/]' \| \
22302 X"$as_dir" : 'X\(//\)$' \| \
22303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22309 /^X\(\/\/\)[^/].*/{
22322 test -d "$as_dir" && break
22324 test -z "$as_dirs" || eval "mkdir $as_dirs"
22325 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22326 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22327 { (exit 1); exit 1; }; }; }
22331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22333 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22334 # A ".." for each directory in $ac_dir_suffix.
22335 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22336 case $ac_top_builddir_sub in
22337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22341 ac_abs_top_builddir=$ac_pwd
22342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22343 # for backward compatibility:
22344 ac_top_builddir=$ac_top_build_prefix
22347 .) # We are building in place.
22349 ac_top_srcdir=$ac_top_builddir_sub
22350 ac_abs_top_srcdir=$ac_pwd ;;
22351 [\\/]* | ?:[\\/]* ) # Absolute name.
22352 ac_srcdir=$srcdir$ac_dir_suffix;
22353 ac_top_srcdir=$srcdir
22354 ac_abs_top_srcdir=$srcdir ;;
22355 *) # Relative name.
22356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22357 ac_top_srcdir=$ac_top_build_prefix$srcdir
22358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22365 # Check for guested configure; otherwise get Cygnus style configure.
22366 if test -f "$ac_srcdir/configure.gnu"; then
22367 ac_sub_configure=$ac_srcdir/configure.gnu
22368 elif test -f "$ac_srcdir/configure"; then
22369 ac_sub_configure=$ac_srcdir/configure
22370 elif test -f "$ac_srcdir/configure.in"; then
22371 # This should be Cygnus configure.
22372 ac_sub_configure=$ac_aux_dir/configure
22374 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22375 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22379 # The recursion is here.
22380 if test -n "$ac_sub_configure"; then
22381 # Make the cache file name correct relative to the subdirectory.
22382 case $cache_file in
22383 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22384 *) # Relative name.
22385 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22388 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22389 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22390 # The eval makes quoting arguments work.
22391 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22392 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22393 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22394 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22395 { (exit 1); exit 1; }; }